[nvidia-glx-new] Suspend/Hibernate doesn't work with nvidia-glx.

Bug #92835 reported by Major Andras
6
Affects Status Importance Assigned to Milestone
xorg (Ubuntu)
Expired
Low
Unassigned

Bug Description

After suspend/Hibernate, when I start my computer, the screen goes black, and the system be unresponsive.

ProblemType: Bug
Architecture: i386
Date: Fri Mar 16 16:25:17 2007
DistroRelease: Ubuntu 7.04
Uname: Linux andras-desktop 2.6.20-11-generic #2 SMP Thu Mar 15 08:03:07 UTC 2007 i686 GNU/Linux

Revision history for this message
Major Andras (majorandras) wrote :
Revision history for this message
Major Andras (majorandras) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. Is it possible to switch to a console virtual terminal after resuming by pressing 'Ctrl+Alt+F1'? Thanks in advance.

Revision history for this message
Major Andras (majorandras) wrote :

Unfortunately no, I can't do anything with my keyboard and mouse. The only thing what I see a black screen. A good thing is that the computer is not hang up, because I can ping it and to ssh from another host. I guess the screen initialization is bugy.

Revision history for this message
Pedro Martinez-Julia (pedromj) wrote :

You can try to do a few of things through ssh and get a diagnostic.

From X, try: "echo mem | sudo tee /sys/power/state". This command makes the computer to suspend without any "trick". If the system doesn't resume, reboot and do a normal suspend.

After resume you can get a copy of "/var/log/Xorg.0.log" and post it here.

If the backlit is "off", you can try to force "dpms on" with "xset" and "vbetool". You can try standby, suspend, reduced, off, on...

Also, you can try "vbetool post".

I think you can do other things using vbetool. All this through SSH, you can be happy because you only need to boot once to diagnose the issue :)

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Major:
Do the instructions on https://help.ubuntu.com/community/NvidiaLaptopBinaryDriverSuspend make any difference?

Revision history for this message
Major Andras (majorandras) wrote :

Hello

This how-to is working properly. Suspend and hibernate is working now.
But there is one more minor problem.

andras@andras-desktop:~$ cat /proc/driver/nvidia/agp/status
Status: Disabled

AGP initialization failed, please check the ouput
of the 'dmesg' command and/or your system log file
for additional information on this problem.
andras@andras-desktop:~$

Everything is working fine, but why became disabled the AGP status ?

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Major:
Looks like it couldn't load NvAGP so it disabled AGP entirely (which also worked around the problem). Can you run
dmesg > dmesg.txt
and attach your dmesg.txt so we can check that NvAGP isn't being blocked by the default agpgart support?

Revision history for this message
Major Andras (majorandras) wrote :

Hello

This is the dmesg's output.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

"NVRM: not using NVAGP, an AGPGART backend is loaded!"

Looks like the default agp driver wasn't disabled. Can you add the output of lsmod ?

Revision history for this message
Major Andras (majorandras) wrote :
Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Major:
To disable the builtin agp driver do the following:
sudo echo "blacklist amd64_agp" > /etc/modprobe.d/blacklist-nvidia-amd64_agp
This should create a file /etc/modprobe.d/blacklist-nvidia-amd64_agp . Reboot and then see if dmesg contains any NVAGP messages, check whether AGP is on in /proc/driver/nvidia/agp/status and see if suspend/resume works.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Setting to needsinfo pending Major's reply.

Changed in linux-restricted-modules-2.6.20:
status: Confirmed → Needs Info
Revision history for this message
Major Andras (majorandras) wrote :

After this help, the suspend, hibernate working properly.
Thank you for your support.
It could be better if it works by default. Is it a nvidia-glx problem ?

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Major:
Such a simple question. The best answer I can come up with is "maybe". NVIDIA claim that many of the in kernel AGP drivers fail to save/restore enough state when suspending/resuming (http://us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/README/appendix-q.html and search for "lose their" ) and thus this is the source of the problem.

The nv driver doesn't make use of AGP so it would never be affected by this problem (but then again NVIDIA haven't given anyone but their own people the specs for their cards. Work to get the open source nv driver going with 3D portions of these cards over AGP has to be achieved slowly through reverse engineering - http://nouveau.freedesktop.org/wiki/ ).

It is unclear whether NVIDIA have sent patches to fix the issues they claim are in kernel AGP drivers. It seems that NVIDIA prefer to carry their own agpgart implementation and I believe there are other open source drivers for different graphics cards that use these same in kernel AGP drivers and do successfully suspend and resume. Given that the source code for the NVIDIA drivers is closed, it is unclear exactly where the problem lies and whether it is the NVIDIA binary driver/in kernel AGP drivers that are doing something untoward/not doing enough. Currently only NVIDIA can know for sure.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #34043 and is being marked as such. Please feel free to report any other bugs you may find.

Changed in linux-restricted-modules-2.6.20:
status: Needs Info → Rejected
Revision history for this message
penalvch (penalvch) wrote :

Major Andras, please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 92835

Please ensure you have xdiagnose installed, and that you click the Yes button for attaching additional debugging information.

affects: linux-restricted-modules-2.6.20 (Ubuntu) → xorg (Ubuntu)
Changed in xorg (Ubuntu):
importance: Undecided → Low
status: Invalid → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xorg (Ubuntu) because there has been no activity for 60 days.]

Changed in xorg (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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