|
|
#1 | |
|
Registered User
Join Date: Nov 2010
Posts: 3
|
Hi,
Problem description I'm trying to play Windows games on my GNU/Linux machine. Some of these games try to change the resolution from 1024x768 to 640x480 (for example). But the problem is that when the games do that, all I get is a blank screen with a flashing LED (indicating some kind of error). Also, when I switch to a terminal and issue 'DISPLAY=:0.0 xrandr -s 0' to get a working resolution back, all I get is GDM (login prompt). I have found by doing tests that issuing 'xrandr --output default --mode "640x480" ' gets me the flashing LED and blank screen while 'xrandr --output default --mode "640x480" --rate 62' gets me a working 640x480 resolution. I can also play the game in Wine's virtual desktop (so I know everything works correctly). Tried solutions -Tried using 'nvidia-xconfig', it doesn't solve the problem. -Tried using 'nvidia-settings -r', it doesn't work; -Tried asking #xorg on freenode, but they don't support the closed-source nVidia driver Question So my question is: is there a way to make 62 Hertz the 'preferred 640x480 refresh rate'? Or delete specific refresh rates? Or, even, is there a better way to fix my problem I could have missed? Regards, Vhann ================== Here are my system details: Ubuntu 9.10 Karmic Koala $ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=9.10 DISTRIB_CODENAME=karmic DISTRIB_DESCRIPTION="Ubuntu 9.10" $ dpkg --get-selections | grep nvidia nvidia-185-kernel-source install nvidia-185-libvdpau install nvidia-common deinstall nvidia-glx-173 deinstall nvidia-glx-185 install nvidia-settings install /etc/X11/xorg.conf: Quote:
|
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Nov 2010
Posts: 3
|
Ok, I got something working using the metamodes (copied from the 'preview' of nvidia-settings). I checked again and finally, it might be monitor-related.
Oh well, problem solved I guess. |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Aug 2010
Posts: 47
|
Add these 2 options to your Device section in your xorg.conf and reboot
Code:
Option "DynamicTwinView" "false" Option "ModeDebug" "true" Code:
sed -n '/- Modes/,/- End/p' /var/log/Xorg.0.log | sed 's/.*(0)://g' > $HOME/Desktop/modes.txt If you reboot and now run.. Code:
xrandr Code:
xrandr -s 1024x768 -r 60 Code:
Option "ModeValidation" "NoVesaModes,NoXServerModes,NoCustomModes,NoPredefinedModes,NoUserModes" |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Nov 2010
Posts: 3
|
Thanks thecapsaicinkid, this is valuable information.
Though, as I said, the monitor was at fault: it doesn't display interlaced frames and the driver used '60 Hertz Double Scan' as the "default frequency" for 640x480. I just copied the "metamodes 640x480_75 +0+0" or something from nvidia-settings into xorg.conf and it works. Thanks for all the info though, it is valuable nonetheless. Regards, Vhann |
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Aug 2010
Posts: 47
|
No problem, mode creation is all a bit confusing I find.
Some useful links for anyone else struggling with modes; How X generates its modepool http://http.download.nvidia.com/XFre...ppendix-j.html How to ensure your system is picking the correct modes/refresh rate http://forum.xbmc.org/showthread.php?t=70068 Also, this snippet is quite important (xrandr 'lies' about available refresh rates) Code:
Option "DynamicTwinView" "boolean"
Enable or disable support for dynamically configuring TwinView on this X screen. When DynamicTwinView is enabled (the default), the refresh rate of a mode (reported through XF86VidMode or XRandR) does not correctly report the refresh rate, but instead is a unique number such that each MetaMode has a different value. This is to guarantee that MetaModes can be uniquely identified by XRandR.
When DynamicTwinView is disabled, the refresh rate reported through XRandR will be accurate, but NV-CONTROL clients such as nvidia-settings will not be able to dynamically manipulate the X screen's MetaModes. TwinView can still be configured from the X config file when DynamicTwinView is disabled.
Default: DynamicTwinView is enabled.
|
|
|
|
![]() |
| Thread Tools | |
|
|