CRT monitor refresh setting always resets to 60 after reboot

Bug #949071 reported by sdowney717
84
This bug affects 16 people
Affects Status Importance Assigned to Milestone
nvidia-settings (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Every time PP restarts, I have to run nvidia-settings and force set the monitor refresh rate to 85. It always shows 60 on reboots, and hurts my eyes.

ASFAIK, nvidia settings is properly saving the xorg.conf file.
But perhaps the kernel, just ignores it and always sets the refresh to 60.

Here is the current xorg.conf

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 295.20 (buildd@rothera) Sat Feb 18 09:49:17 UTC 2012

Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Sony CPD-E540"
    HorizSync 30.0 - 110.0
    VertRefresh 48.0 - 170.0
    Option "DPMS"
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8400 GS"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "metamodes" "1600x1200_85 +0+0; 1600x1200 +0+0"
    SubSection "Display"
        Depth 24
    EndSubSection
EndSection

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nvidia-settings 295.20-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-18.28-generic-pae 3.2.9
Uname: Linux 3.2.0-18-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 1.94-0ubuntu2
Architecture: i386
Date: Wed Mar 7 10:29:58 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
 TERM=xterm
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nvidia-settings
UpgradeStatus: Upgraded to precise on 2012-03-02 (5 days ago)

Revision history for this message
sdowney717 (sdowney717) wrote :
Revision history for this message
sdowney717 (sdowney717) wrote :

I started another thread on the hlep section here.
http://ubuntuforums.org/showthread.php?t=1937190

Another thing I noticed is that after I improperly modified xorg.conf and could not boot being stuck at "checking battery state ok"

I restarted with and selected the second menu line. (forget what grub calls it), anyhow I was eventually given several boot options, and when I choose 'failsafe graphics', with the extra line

Modeline "1600x1200" 301.81 1600 1752 2120 2808 1200 1200 1204 1264

in xorg.conf, failsafe graphics failed to load the gui to login.
To me, that is a bug. Failsafe graphics should not load any xorg.cong dont you think?

I had to drop to root login and rm xorg.cong in etc/X11. Then it booted ok.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-settings (Ubuntu):
status: New → Confirmed
Revision history for this message
adasiko (adasiko256) wrote :

I fixed that by this instruction sudo-juice.com/lightdm-resolution/

Revision history for this message
Caesar (caivsivlivscaesar) wrote :

@adasiko Nice workaround there, still a proper solution would be preferable

Revision history for this message
Fubbes (fubbes) wrote :

Is there a plan, when this issue will be solved? 60 Hz on a CRT monitor is unbearable.

Revision history for this message
sdowney717 (sdowney717) wrote :

juice.com/lightdm-resolution/ website only fixes Light DM boot up screen correct?

For me, the boot up screen with the dark purple background, you dont notice the low resolution.

Revision history for this message
Zakhar (alainb06) wrote :
Download full text (4.1 KiB)

Precise Pangolin - x64
Fresh Install
Nvidia Proprietary driver
  Package: nvidia-current 295.40-0ubuntu1
  Package: nvidia-settings 295.33-0ubuntu1

Also affected by the bug.

I twicked the xorg.conf with no success.

I have:
xorg.conf
__________________________________
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Nokia 446Xpro"
    HorizSync 30.0 - 107.0
    VertRefresh 50.0 - 150.0
    Modeline "1280x1024" 157.50 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
    Option "DPMS"
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 210"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "TwinView" "0"
    Option "TwinViewXineramaInfoOrder" "CRT-1"
    Option "metamodes" "1280x1024_85 +0+0"
    SubSection "Display"
        Depth 24
        Modes "1280x1024_85.00"
    EndSubSection
EndSection
________________________________________

/var/log/xorg0.log shows:

[ 1569.781] (--) NVIDIA(0): Connected display device(s) on GeForce 210 at PCI:6:0:0
[ 1569.781] (--) NVIDIA(0): Nokia 446Xpro (CRT-1)
[ 1569.781] (--) NVIDIA(0): Nokia 446Xpro (CRT-1): 400.0 MHz maximum pixel clock
[ 1569.800] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 1569.800] (**) NVIDIA(0): device Nokia 446Xpro (CRT-1) (Using EDID frequencies has
[ 1569.800] (**) NVIDIA(0): been enabled on all display devices.)
[ 1569.825] (II) NVIDIA(0): Assigned Display Device: CRT-1
[ 1569.825] (II) NVIDIA(0): Validated modes:
[ 1569.825] (II) NVIDIA(0): "1280x1024_85+0+0"
[ 1569.825] (II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024
[ 1569.841] (--) NVIDIA(0): DPI set to (90, 96); computed from "UseEdidDpi" X config
[ 1569.841] (--) NVIDIA(0): option
[ 1569.841] (--) Depth 24 pixmap format is 32 bpp
[ 1569.841] (II) NVIDIA: Using 768.00 MB of virtual memory for indirect memory access.

[ 1569.845] (II) NVIDIA(0): Setting mode "1280x1024_85+0+0"

[ 1569.880] (II) Loading extension NV-GLX
[ 1569.900] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 1569.900] (==) NVIDIA(0): Backing store disabled
[ 1569.900] (==) NVIDIA(0): Silken mouse enabled
[ 1569.900] (**) NVIDIA(0): DPMS enabled
[ 1569.900] (II) Loading extension NV-CONTROL
[ 1569.901] (II) Loading extension XINERAMA
[ 1569.901] (II) Loading sub module "dri2"
[ 1569.901] (II) LoadModule: "dri2"
[ 1569.901] (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
[ 1569.901] (II) Module dri2: vendor="X.Org Foundation"
[ 1569.901] compiled for 1.11.3, module version = 1.2.0
[ 1569.901] ABI class: X.Org Server Extension, version 6.0
[ 1569.901] (II) NVIDIA(0): [DRI2] Setup complete
[ 1569.901] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia

...

[ 1569.932] (**) ImExPS/2 Logitech Explorer Mouse: (accel) acceleration threshold: 4
[ 1569.932] (II) config/udev: Adding ...

Read more...

Revision history for this message
Zakhar (alainb06) wrote :

Ok, so here is the workaround... while we expect for a solution.

Considering my xorg file above, I added in "programs at session startup", the following command:

xrandr --output default --mode 1280x1024

This uses the Modeline as defined in the xorg.conf file, and thus now the xorg log shows:

...

[ 3836.645] (II) No input driver specified, ignoring this device.
[ 3836.645] (II) This device may have been added with another device file.

[ 3836.994] (II) NVIDIA(0): Setting mode "1280x1024_60"
[ 3842.916] (II) NVIDIA(0): Setting mode "1280x1024_85+0+0"

[ 3844.405] (II) XKB: reuse xkmfile /var/lib/xkb/server-A49B0D9CDBFA4DEADEE9D72BD5A2170E273505F0.xkm

As you can see, still the faulty setting to 60hz followed by the setting to 85hz due to the session startup program xrandr

Revision history for this message
Fubbes (fubbes) wrote :

Seems to be solved for me after the recent update. My CRT starts up with 85 Hz.

Revision history for this message
sdowney717 (sdowney717) wrote :

mine does not, still comes up at 60.
I am using the Nvidia driver.

Revision history for this message
Matt Pharoah (mpharoah) wrote :

#9 workaround works for me! Thanks a lot! By using gtf to get a valid modeline and adjusting my xorg.conf a little, I was able to use xrandr to set the proper resolution on startup.

Revision history for this message
Egor (4aiman) wrote :

For some personal reason I've swithed to MATE DM and there's NO this problem there, although I have compiz running with all it's wobbly windows and other effects like desktop cube. So, the problem has to do smth with Gnome3...

Revision history for this message
Ross Pert (rosspert) wrote :

Mine is set corretly to 48hz then reverts to 50i
Very Strange, I like 48hz for my films

[ 22.556] (II) NVIDIA(0): Setting mode "1920x1080_48+0+0"

[ 23.340] (II) NVIDIA(0): Setting mode "1920x1080_50i"

Revision history for this message
orange2k (orange2k) wrote :

#9 workaround works for me, too...

Seems that the developers have forgotten about people with CRT monitors...

This problem should have been resolved long ago, IMHO...

Revision history for this message
Matt Pharoah (mpharoah) wrote :

For the record, this happened to be with an LCD monitor on a laptop. I don't think the bug is specific to CRT monitors.

Revision history for this message
Stu-e (get-in) wrote :

I have been having a similar problem but with AMD graphics. In my case it was only one particular user who when logged in the CRT display would change refresh rate to 60Hz causing great discomfort. Changes to the refresh rate using amdcccle (AMD equivalent of nvidia-settings) or even compizconfig would not stick for this user at the next log-in.

The solution was to delete (or edit) the file:
~/.config/monitors.xml

The other users did not have this problem because they did not have this file in their home directory.

Revision history for this message
orange2k (orange2k) wrote :

Somehow the bug is solved now. Probably with the yesterdays xorg update. The monitor is now at the proper resolution at startup, and I don't have to use the workaround from comment 9....

Revision history for this message
Mark Lanctot (mark-lanctot) wrote :

Bug has reappeared with 304.43. I tried the xrandr workaround with no effect.

Revision history for this message
Egor (4aiman) wrote : Re: [Bug 949071] Re: CRT monitor refresh setting always resets to 60 after reboot
Download full text (3.3 KiB)

Still discussing??? O_o

Mon, 22 Oct 2012 12:40:48 -0000 от Mark Lanctot <email address hidden>:
>
>

>

>

>Bug has reappeared with 304.43. I tried the xrandr workaround with no
>
effect.
>
>
--
>
You received this bug notification because you are subscribed to a
>
duplicate bug report (985707).
>https://bugs.launchpad.net/bugs/949071
>
>
Title:
>
  CRT monitor refresh setting always resets to 60 after reboot
>
>
Status in “nvidia-settings” package in Ubuntu:
>
  Confirmed
>
>
Bug description:
>
  Every time PP restarts, I have to run nvidia-settings and force set
>
  the monitor refresh rate to 85. It always shows 60 on reboots, and
>
  hurts my eyes.
>
>
  ASFAIK, nvidia settings is properly saving the xorg.conf file.
>
  But perhaps the kernel, just ignores it and always sets the refresh to 60.
>
>
  Here is the current xorg.conf
>
>
  # nvidia-settings: X configuration file generated by nvidia-settings
>
  # nvidia-settings: version 295.20 (buildd@rothera) Sat Feb 18 09:49:17 UTC 2012
>
>

>
  Section "ServerLayout"
>
      Identifier "Layout0"
>
      Screen 0 "Screen0" 0 0
>
      InputDevice "Keyboard0" "CoreKeyboard"
>
      InputDevice "Mouse0" "CorePointer"
>
      Option "Xinerama" "0"
>
  EndSection
>
>
  Section "Files"
>
  EndSection
>
>
  Section "InputDevice"
>
>
      # generated from default
>
      Identifier "Mouse0"
>
      Driver "mouse"
>
      Option "Protocol" "auto"
>
      Option "Device" "/dev/psaux"
>
      Option "Emulate3Buttons" "no"
>
      Option "ZAxisMapping" "4 5"
>
  EndSection
>
>
  Section "InputDevice"
>
>
      # generated from default
>
      Identifier "Keyboard0"
>
      Driver "kbd"
>
  EndSection
>
>
  Section "Monitor"
>
>
      # HorizSync source: edid, VertRefresh source: edid
>
      Identifier "Monitor0"
>
      VendorName "Unknown"
>
      ModelName "Sony CPD-E540"
>
      HorizSync 30.0 - 110.0
>
      VertRefresh 48.0 - 170.0
>
      Option "DPMS"
>
  EndSection
>
>
  Section "Device"
>
      Identifier "Device0"
>
      Driver "nvidia"
>
      VendorName "NVIDIA Corporation"
>
      BoardName "GeForce 8400 GS"
>
  EndSection
>
>
  Section "Screen"
>
      Identifier "Screen0"
>
      Device "Device0"
>
      Monitor "Monitor0"
>
      DefaultDepth 24
>
      Option "TwinView" "0"
>
      Option "metamodes" "1600x1200_85 +0+0; 1600x1200 +0+0"
>
      SubSection "Display"
>
          Depth 24
>
      EndSubSection
>
  EndSection
>
>
  ProblemType: Bug
>
  DistroRelease: Ubuntu 12.04
>
  Package: nvidia-settings 295.20-0ubuntu1
>
  ProcVersionSignature: Ubuntu 3.2.0-18.28-generic-pae 3.2.9
>
  Uname: Linux 3.2.0-18-generic-pae i686
>
  NonfreeKernelModules: nvidia
>
  ApportVersion: 1.94-0ubuntu2
>
  Architecture: i386
>
  Date: Wed Mar 7 10:29:58 2012
>
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
>
  ProcEnviron:
>
   TERM=xterm
>
   LANG=en_US.UTF-8
>
   SHELL=/bin/bash
>
  SourcePackage: nvidia-settings
>
  UpgradeStatus: Upgraded to precise o...

Read more...

Revision history for this message
daniel (danersti) wrote :

I suggest changing title in "Ubuntu 12.04 always resets refresh rate to 60 hz after reboot", I have nvidia latest 304.60 on lcd monitor that starts with proper resolution after adding lines in xorg.conf section monitor and section screen but cannot start with my preferred refresh rate of 75 hz always have to use nvidia-settings, I tried using xrandr to force 75 hz with the command xrandr -s 1440x900 -r 75 but it sais Rate 75.0 Hz not available for this size, so it seems as if X completely avoid taking into consideration refresh rate different than 60 hz, here my xorg.conf

Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
EndSection

Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "HannStar Display Corp Hanns.G HB171"
    HorizSync 24.0 - 71.0
    VertRefresh 55.0 - 75.0
    Option "DPMS"
    Modeline "1440x900_75.00" 136.75 1440 1536 1688 1936 900 903 909 942 -hsync +vsync
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8400 GS"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "metamodes" "1440x900_75.00"
    Option "Stereo" "0"
    Option "nvidiaXineramaInfoOrder" "CRT-1"
    SubSection "Display"
        Depth 24
    EndSubSection
EndSection

Revision history for this message
daniel (danersti) wrote :

I found a solution to the problem and now can start at my desired refresh rate of 75 hz, I think it can works for all other people, open nvidia-settings then go to X server Display configuration and click on tab X Screen then on MetaMode there are three buttons where the first open a menu containing all the possible resolution and refresh rate, take note of the string containing your desired settings the look at the image right above and by pressing the Delete button remove all the resolution and refresh rate you don't want leaving only the string you want, if you accidentally remove the desired string then use button Add to reinsert it in, finally apply the desired resolution and refresh rate and pressing Save to X configuration file button save in xorg.conf. Restart and it should works, if it doesn't look at my xorg.conf below when I modified the line
    VertRefresh 55.0 - 75.0 in VertRefresh 75.0 - 75.0 to force the use of 75 hz and added line
    Option "UseEDIDFreqs" "False" in section Screen to tell X to use only my settings. I hope it will help someone.

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 295.33 (buildd@zirconium) Fri Mar 30 13:38:49 UTC 2012

Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Option "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "HannStar Display Corp Hanns.G HB171"
    HorizSync 24.0 - 71.0
    VertRefresh 75.0 - 75.0
    Option "DPMS"
EndSection

Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8400 GS"
    Option "NoLogo" "True"
    Option "AddARGBGLXVisuals" "True"
    Option "AddARGBVisuals" "True"
    Option "tripleBuffer" "True"
    Option "BackingStore" "True"
    Option "RenderAccel" "True"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "UseEDIDFreqs" "False"
    Option "TwinView" "0"
    Option "metamodes" "1440x900_75 +0+0"
    SubSection "Display"
        Depth 24
    EndSubSection
EndSection

Revision history for this message
Jeremy VanGelder (jvangeld) wrote :

I tried the method described by daniel @ 22 of deleting all the meta-modes except the one I wanted. This did not work. On restarting the computer, it used a refresh rate which I did not set. All of the meta-modes which I had deleted were undeleted. I did not make daniel's modifications to xorg.conf.

Revision history for this message
daniel (danersti) wrote :

forgot to say a couple of things, after configured nvidia settings go in nvidia-settings Configuration button and press Save Current Configuration button then you have to put this line

 nvidia-settings --load-config-only

in the list of startup application in order to load nvidia settings

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.