Bug 113064 - No backlight after suspend-to-disk
Summary: No backlight after suspend-to-disk
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: X11 3rd Party (show other bugs)
Version: Beta 8
Hardware: Other All
: P4 - Low : Normal (vote)
Target Milestone: ---
Assignee: Matthias Hopf
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-25 16:17 UTC by Marcel Hilzinger
Modified: 2006-04-19 19:00 UTC (History)
2 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
nVidia Logfile (99.67 KB, text/x-log)
2005-08-26 07:36 UTC, Marcel Hilzinger
Details
nVidia Logfile (130.26 KB, text/x-log)
2005-08-26 07:49 UTC, Marcel Hilzinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Hilzinger 2005-08-25 16:17:06 UTC
With beta3 after suspend-to-disk I get a black-screen with the newest nVidia 
drivers (tested 7167 and 7676). In beta2 this worked. 
 
The state of the machine is somehow unclear: I can access it by ssh, but if I 
press Ctrl+Alt+Del it seems to make a reboot (therefore I guess, that there's 
no KDE restarted). Nevertheless, the reboot hangs, so that I can onyl hard 
reset the maschine. 
 
It's a Dell Inspiron 8600. Worked very well with 9.3 and OSS 10.0 beta2. 
Suspend-to-RAM is still not working because of the backlight. Worked once with 
the 6xxx-nVidia drivers.
Comment 1 Marcel Hilzinger 2005-08-25 16:24:22 UTC
Without X powersave -U works fine, even if the nvidia module is loaded. So  
this might be a problem not related to the nvidia driver.  
 
Please see also bug 113059 
 
Nevertheless powersave -u gives me only a black screen back. I will try 
vbetool here. 
Comment 2 Stefan Dirsch 2005-08-25 20:27:53 UTC
Please attach results of nvidia-bug-report.sh. 
Comment 3 Marcel Hilzinger 2005-08-26 07:09:23 UTC
After login via SSH I see now, that X hangs with 99% CPU 
killall -9 X makes the machine totally freeze. 
nvidia-bug-report.sh will follow soon. 
Comment 4 Marcel Hilzinger 2005-08-26 07:36:35 UTC
Created attachment 47707 [details]
nVidia Logfile

Bugreprort created after starting the system, just after X failed to start.
Comment 5 Marcel Hilzinger 2005-08-26 07:41:02 UTC
Sorry, attachment (id=47707) was meant for bug 113059. 
Comment 6 Marcel Hilzinger 2005-08-26 07:49:35 UTC
Created attachment 47710 [details]
nVidia Logfile

Log created via SSH after the screen remained black. 
ps -ax showed X with 99,9%
Comment 7 Stefan Dirsch 2005-08-26 08:00:57 UTC
This looks indeed like a nvidia driver problem: 
 
(II) NVIDIA(0): Setting mode "1680x1050" 
(WW) NVIDIA(0): WAIT (2, 1, 0x8000, 0x00001258, 0x000012f8, 0) 
(WW) NVIDIA(0): WAIT (1, 1, 0x8000, 0x00001258, 0x000012f8, 0) 
 
 
Comment 8 Marcel Hilzinger 2005-08-26 08:04:42 UTC
On the other hand, the same driver worked with beta2. 
Comment 9 Stefan Dirsch 2005-08-26 08:10:33 UTC
Hmm ... that's correct. The driver hasn't changed between Beta2 and Beta3. 
Comment 10 Marcel Hilzinger 2005-08-26 08:29:56 UTC
Tried it after adding nvidiafb to the blacklist, but no change :-( 
In /var/log/messages I found this: 
Aug 26 10:24:54 linux kernel: NVRM: RmPowerManagement: 4 
[...] some tasks are restarted 
Aug 26 10:25:01 linux kernel: NVRM: Xid: 25,  L1 -> L0 
Aug 26 10:25:01 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:25:25 linux kernel: NVRM: Xid: 25,  L0 -> L0 
Aug 26 10:25:25 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:25:33 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:25:41 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:25:49 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:25:57 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:26:05 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:26:13 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:26:21 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:26:29 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:26:37 linux sshd[5800]: Accepted keyboard-interactive/pam for root 
fro 
m 192.168.1.96 port 20057 ssh2 
Aug 26 10:26:37 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:26:45 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:26:53 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Aug 26 10:27:01 linux kernel: NVRM: Xid: 8, Channel 0000000d 
Comment 11 Stefan Dirsch 2005-08-26 08:37:06 UTC
Looks like you're commenting to the wrong bugreport ... 
Comment 12 Marcel Hilzinger 2005-08-26 08:51:06 UTC
No :-) 
As blacklisting the nvidiabf module helped for starting the system, I hoped 
(yes I realy hoped), that blacklisting resolves also this one. But it didn't. 
 
So the /var/log/messages is chatched from after resume, via SSH. 
Comment 13 Stefan Dirsch 2005-08-26 09:18:52 UTC
But this was a completely different system with different problems ...
Comment 14 Marcel Hilzinger 2005-08-26 09:23:22 UTC
No, it's the same laptop, same beta, same nVidia driver. 
Comment 15 Stefan Dirsch 2005-08-26 09:34:34 UTC
Ok. So we see two different problems related to the nvidia driver

  1: nvidiafb module loaded (fixed, no longer loaded by default)
  2: Suspend to RAM broken

Since Suspend to RAM did work with Beta2 with the same nvidia driver it might be 
a kernel related problem.
Comment 16 Marcel Hilzinger 2005-08-26 09:53:22 UTC
1: Yes. 
2: The bug is about suspend-to-disk (that's why I marked it as major). 
 
Suspend-to-ram doesn't work neighter, but this is a second pair of shoes. 
Comment 17 Stefan Dirsch 2005-08-26 15:53:22 UTC
Adjusted severity. You might understand, that it isn't easy for us to investigate 
problems in proprietary drivers.
Comment 18 andy ritger 2005-09-12 16:54:09 UTC
If this is a regression between beta2 and beta3, I would start by investigating
what power management changes went in between those two milestones.

You might also experiment with things such as disabling AGP (are the AGP chipset
registers not getting restored properly?), or forcing use of NVAGP rather than
AGPGART.

NVIDIA's power management is unfortunately not terribly reliable at this time. 
We hope to improve this in the future.
Comment 19 Marcel Hilzinger 2005-09-12 17:12:56 UTC
Current state (RC1):    
    
                  With nVidia    Without nVidia  
Suspend-to-Disk   no backlight*  OK     
Suspend-to-RAM    no backlight   no backlight   
Standby           OK             OK    
   
* worked with 9.3 and 10.0 beta2.   
All tests made with driver 7671. I will make some more tests this evening. 
Comment 20 Stefan Dirsch 2005-09-18 15:20:07 UTC
Please try again with Kernel of Beta2. So we can see if it's really related to 
the kernel. 
Comment 21 Marcel Hilzinger 2005-09-19 07:27:47 UTC
Can you provide me an RPM for download please. I do not have the beta images 
anymore. 
 
 
Comment 22 Stefan Dirsch 2005-09-19 07:37:47 UTC
Sorry, I don't have them either. Looks like we removed them :-( Maybe someone 
on suse-beta-e? 
Comment 23 Marcel Hilzinger 2005-09-19 13:29:41 UTC
Installed beta2 kernel on RC1 and made some tests. After suspend-to-disk I can 
see the graphical boot-screen and some console messages, but then the display 
get's black. Tested nVida drivers 7167 and 7676. Without X it works fine. So 
the problem seems to be related to X/KDE and not kernel/nvidia. 
 
Meanwhile I tested vbetool, too. Works fine but not with nVidia drivers. If I 
use the vNivia drivers the display lightening comes back, but there are only 
dark grey, blue and green artefactes on the display (very ugly). I remember to 
have seen these also, when the display tried to activate some DPMS features. 
 
Will make some tests with nvagp instead of agpgart, soon. 
Comment 24 Marcel Hilzinger 2005-09-19 14:37:20 UTC
Some more tests: Seems, that intel-agp is the bad man. If intel-agp is not 
loaded, suspend-to-disk works as it should. 
 
I also changed the xorg.conf to use nvagp, but I don't think, that this 
changed anything... 
 
To:#18: Do you mean nvidia-agp with Nvagp? I tried to load this module, but it 
seems not to be used. Unloading agpgart is not possible, as the nvidia module 
uses agpgart. 
Comment 25 Stefan Dirsch 2005-09-19 20:52:09 UTC
You need to reboot to get rid of the intel-agp/agpgart modules, since they 
need each other (IMHO a bug). Nvagp means that the builtin agp support in the 
nvidia kernel module is used instead of the kernel agp support. nvidia-agp is 
for nvidia mainboard chipsets. Use 
 
  Option "NvAGP" "1" 
 
in /etc/X11/xorg.conf to enable builtin agp support by nvidia. 
Comment 26 Marcel Hilzinger 2005-09-20 07:53:41 UTC
OK. I know now, what nvidia-agp is for :-) 
 
The steps you mentioned, I did already yesterday. But without agpgart, the 
nvidia module does not load! 
Comment 27 Stefan Dirsch 2005-09-20 08:32:37 UTC
This might be correct. But it should not need the intel-agp loaded. Add  
intel-agp to /etc/hotplug/blacklist and reboot for testing. 
Comment 28 Marcel Hilzinger 2005-09-20 08:48:07 UTC
That's, what I did (see comment #24). If intel-agp is not loaded, the problem 
with suspend-to-disk is resolved. 
Comment 29 Stefan Dirsch 2005-09-20 08:59:09 UTC
Ok. It should be investigated if this is a general problem with the intel-agp  
module or if this is somewhat related to the nvidia driver. It would help to  
test this with an Open Source driver. Of course this cannot be done with the  
nv driver. ATI or Intel chip could be used. Matthias, this would be something 
for you. :-) 
Comment 30 Matthias Hopf 2005-09-29 15:02:01 UTC
Ok, I'll check that, but with a low priority, as we have a workaround (using
NVidia's internal agp module).
Comment 31 Marcel Hilzinger 2005-09-29 15:23:47 UTC
Sorry, but ... 
using NVidia's internal agp module is not the workaround. The workaround (for 
me) was to blacklist intel-agp. Agpgart is still there. 
Comment 32 Matthias Hopf 2005-09-29 15:39:20 UTC
That's what I'm talking about.
agpgart is always loaded. By default, udev also loads the backend driver
(intel-agp in your case). If the backend driver is loaded, the nvidia module
cannot use its own agp backend. If you blacklist the backend driver, it isn't
loaded, and the nvidia module tries to use its own backend.
Comment 33 Stefan Dirsch 2006-03-19 08:34:42 UTC
Does this problem persist with the current NVIDIA driver and/or SUSE 10.1 (Beta8 has been released)?
Comment 34 Marcel Hilzinger 2006-03-19 12:19:08 UTC
Unfortunely yes :-( The current matrix (beta8 Nvidia 8178 with patches for 10.1) is:    
    
                  With nVidia      Without nVidia  
Suspend-to-Disk   strange X*      OK**     
Suspend-to-RAM    strange X      OK   
Standby           strange X      OK  

* strange X meens, that the backlight is on, but the display shows _very_ strange colors going from black to white. The machine seems dead, no SSH possible, only reset switch. Vbetool does not help.

** OK means, that it works with vbestate_save and vbestate_restore. Without vbetool the backlight is not switched on, but the machine does respond.

Suspend2ram/disk with Nvidia driver works without X:
init 3
powersave -U
press the lid button for resume -> OK

but if I call then init 5 to switch back to X, the machine freezes. Did no special investigations now with logfiles etc, but if you have an idea, where the problem might be, I'm glad to hear about it.
Comment 35 Stefan Dirsch 2006-03-19 12:36:47 UTC
Thanks for status update!
Comment 36 Matthias Hopf 2006-03-22 16:27:12 UTC
Unfortunately, I don't have any news yet.

Just want to comment on the 'strange X issue':

In that case the LCD panel isn't driven any longer at all. This state is *very* bad for the LCD, and can damage it if it holds on for a longer time (don't ask me what a longer time is - it certainly survived for me a couple of times for a total of a few minutes). So I wouldn't hestitate to switch the computer off *hard* if this happens to you again.
Comment 37 Marcel Hilzinger 2006-03-22 16:44:03 UTC
Any idea, why the X server freezes also when I switch back to runlevel 5 after suspend?
Comment 38 Matthias Hopf 2006-04-12 15:37:41 UTC
(In reply to comment #37)
> Any idea, why the X server freezes also when I switch back to runlevel 5 after
> suspend?

I guess this happens because the kernel driver thought it had the chip initialized - which it hadn't.

Does the freeze still occure with 8756? NVidia told us that they fixed a lot of suspend issues with that release. Though this seems to be a agp driver issue, the graphics driver could still be involved.

Comment 39 Marcel Hilzinger 2006-04-19 19:00:38 UTC
Unfortunately there is no change with the new NVidia driver. Let's close this bug, as it seems that I'm the only one with this problem.

If someone from Nvidia is interested in more infos, feel free to contact me.