Could not set video mode

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Post Reply
BB_DaKraxor
New Member
Posts: 4
Joined: Mon Aug 23, 2004 4:54 pm
Location: Hungary
Contact:

Could not set video mode

Post by BB_DaKraxor »

Hi,

I'm trying to install zsnes on Gentoo Linux. I've compiled zsnes with opengl and png support, have fglrx installed as video driver properly (I have an ATI card), and I've managed to get several games working on my system like GTA: San Andreas, so I think my video config is quite OK.

When I try to start zsnes, i get this:

Code: Select all

$ zsnes
ZSNES v1.51, (c) 1997-2007, ZSNES Team
Be sure to check http://www.zsnes.com/ for the latest version.

ZSNES is written by the ZSNES Team (See AUTHORS.TXT)
ZSNES comes with ABSOLUTELY NO WARRANTY.  This is free software,
and you are welcome to redistribute it under certain conditions;
please read 'LICENSE.TXT' thoroughly before doing so.

Use ZSNES -? for command line definitions.

Starting Mouse detection.
ManyMouse: 1 mice detected.
Could not set 640x480 video mode: No available video device
I tried changing the video mode with the -v option in commandline with no success. (For example -v 15 changed the error message to "Could not set 1024x768-GL video mode.")

Any ideas how I could get it working? I've googled a lot with no success yet...
Thanks in advance.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Are you not running it as the user which logged into the GUI perhaps?

Try "xhost +"?
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
BB_DaKraxor
New Member
Posts: 4
Joined: Mon Aug 23, 2004 4:54 pm
Location: Hungary
Contact:

Post by BB_DaKraxor »

I'm running it as the same user that is logged in to the GUI.
Tried xhost with any arguments possible, but the error remains the same.
Strangely I can run any other program that uses the X server (the GUI).

Is there anything I need to configure before compiling? I belive the error is because I compiled the source with wrong options. I KNOW it can be run somehow, because I remember playing ZSNES games on my previous OS (Kubuntu) on the same machine, using the same video driver.
BB_DaKraxor
New Member
Posts: 4
Joined: Mon Aug 23, 2004 4:54 pm
Location: Hungary
Contact:

Post by BB_DaKraxor »

Hi again,

after several hours of googling, I've finally found a solution. I thought I should post it, just in case someone else has the same problem.

For some reason, X support is not enabled for SDL by default in Gentoo, so you have to add a USE flag. I think adding the opengl flag might also be useful.

As root, do:

Code: Select all

echo "media-libs/libsdl X opengl" >> /etc/portage/package.use
Then remerge libsdl:

Code: Select all

emerge -vanuN libsdl
Wait for the compilation to finish, then retry running ZSNES.

Hope you find this helpful.
Post Reply