Sign in to follow this  

Digital display

This topic is 4342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

when trying the arc ball code (lesson48) or similar I get: 2: digital input cannot display this video mode. This is in the middle of screen, the machine locks up and cannot escape. How can I set things up for a digital system?

Share this post


Link to post
Share on other sites
I assume you (disruption) are still running linux w/ X windows system :)

With XF86VidModeGetAllModeLines you can get the mode lines supported. After picking one you think is okay, you can use XF86VidModeSwitchToMode to set it.

From the man page:

#include <X11/extensions/xf86vmode.h>

Bool XF86VidModeGetAllModeLines(
Display *display,
int screen,
int *modecount_return,
XF86VidModeModeInfo ***modesinfo);

Bool XF86VidModeSwitchToMode(
Display *display,
int screen,
XF86VidModeModeInfo *modeline);


Btw: I though that is the reason you are already binding with Xxf86vm :)


EDIT: With XF86VidModeValidateMode you can also check whether a mode is valid w.r.t. your gfx card and monitor.

Share this post


Link to post
Share on other sites

This topic is 4342 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this