Changing video resolution from command line?
I need to be able to immediately reset the display resolution from within a shell script (since one of the games I run under Wine resets the resolution to 640x480 and doesn't restore it when it exits). I tried
/sbin/setxconf -g 1024x768 -b 16 but it didn't seem to do anything. What is the command line equivalent of "right-click-on-desktop -> Properties -> Settings -> change-screen-size -> Apply" under Xandros 2.0, which I'm running? (If it didn't log me out when it resizes like that sequence does, it would be even better, by the way.) Thanks in advance to all who respond! |
You should have to make a script that change the XF86Config-4 and reboot the x server...
I'm sur it's possible, but i don't know how, sorry :confused: Creak |
Quote:
Frankly, I didn't expect this to be so complicated. When I run Master of Orion II under Wine, the first thing that happens is that the screen is changed to 640x480 resolution. How does Wine do this without restarting X? Anybody familiar with the Wine source code? |
If you have the "Modes" section set up with a number of alternative resolutions, you should be able to ctrl+alt+"+" or "-" to the other resolutions listed in "Modes".
If not that, then maybe you can use "xvidtune" to set it, but that's less immediate. |
I got a solution from the Usenet group "comp.emulators.ms-windows.wine"; I need to use the "xrandr" command. :D To quote from the Usenet posting:
Quote:
Leslie |
All times are GMT -5. The time now is 06:03 PM. |