nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   HP EliteBook 8440p (NVIDIA NVS 3100M) fails to restore screen after DPMS suspend (http://www.nvnews.net/vbulletin/showthread.php?t=156382)

ScreamerX 10-22-10 06:27 PM

HP EliteBook 8440p (NVIDIA NVS 3100M) fails to restore screen after DPMS suspend
 
The display of my HP EliteBook 8440p with NVIDIA NVS 3100M graphics card
does not resume after dpms suspend or dpms off
by pressing keys or mouse movement.

This issue can easily be reproduced:
Code:

$ xset dpms force suspend
After this, pressing keys or moving the mouse does not restore the display.

The following error is logged in /var/log/Xorg.0.log:
Code:

(WW) Oct 23 00:50:42 NVIDIA(GPU-0): AUO (DFP-3): Failed to set DisplayPort power state
(WW) Oct 23 00:50:45 NVIDIA(GPU-0): AUO (DFP-3): Failed to set DisplayPort power state
(EE) Oct 23 00:50:45 NVIDIA(GPU-0): AUO (DFP-3): DisplayPort link training failed

Changing VTs (ctrl-alt-f1; ctrl-alt-f7) restores the display.

This issue does not occur when using version: 195.36.31 (the last version known to work)
It does occur when using todays latest version: 260.19.12

Currently the notebook is running
kernel-2.6.33.4
xorg-server-1.7.7

The problem description may be related to the following post, but I'm afraid:
It is NOT fixed in 260.19.12 (at least for the EliteBook)
http://www.nvnews.net/vbulletin/showthread.php?t=155591

xjuk 12-11-10 02:09 PM

Re: HP EliteBook 8440p (NVIDIA NVS 3100M) fails to restore screen after DPMS suspend
 
Have the same laptop and the same problem! My version is 260.19.06-0ubuntu1
Upgraded to 260.19.26-0ubuntu1~xup~maverick, still not working...
Strange, on battery the screen doesn't turn off, it is black, but on. And it wakes up correctly. On AC power the screen is completely off, and I have this problem to wake up..

dejan 12-17-10 04:37 PM

Re: HP EliteBook 8440p (NVIDIA NVS 3100M) fails to restore screen after DPMS suspend
 
I have the exact same issue on a ThinkPad T61 with Fedora 14.

Using the open source nouveau driver fixes the issue but I'm missing VDPAU so I end up just working around this.

couker 01-09-11 06:16 AM

Re: HP EliteBook 8440p (NVIDIA NVS 3100M) fails to restore screen after DPMS suspend
 
Hi, same laptop, same problem. I have latest nvidia drivers (260.19.29), kernel 2.6.37 and the problem is still not fixed :(

ScreamerX 06-21-11 08:54 AM

Re: HP EliteBook 8440p (NVIDIA NVS 3100M) fails to restore screen after DPMS suspend
 
I've written a nasty workaround for this problem.
This script monitors /var/log/Xorg.0.log for changes.
If an error about "DisplayPort link training failed" gets logged,
it calls "xset dpms force on".

The problem occurs, because the first 3 attempts to train the DisplayPort always fail.
If you move the mouse or call "xset dpms force on" it will do 3 attempts to train the DisplayPort.
After the 4th or 5th attempt it will work.

This observation can easily be reproduced over ssh:
Code:

xset dpms force off
The first attempt to resume from suspend/off always fails and it will log an error to /var/log/Xorg.0.log
Code:

xset dpms force on
The second attempt of this command should work as expected.


Code:

#!/bin/sh

# nvidia_dpms_fix.sh
# 2011-06-12
# by Gernot WALZL

# nasty workaround for nvidia drivers to resume from dpms off/suspend

export DISPLAY=:0

getXauthority () {
  export XAUTHORITY=$(ps -C X -f | grep "$DISPLAY" \
    | sed -n 's/.* -auth \([^ ]*\).*/\1/p')
}

handle_line () {
  if echo "$1" | grep -e "(EE) NVIDIA.* DisplayPort link training failed" \
      > /dev/null; then
    getXauthority
    xset dpms force on
  fi
}

tail --follow=name /var/log/Xorg.0.log --retry --lines=1 2> /dev/null \
  | while read line; do
    handle_line "$line"
  done


udude 09-29-11 06:09 PM

Re: HP EliteBook 8440p (NVIDIA NVS 3100M) fails to restore screen after DPMS suspend
 
ScreamerX
I run your script and it does solve the problem. Many thanks!

As I side note, I notice that XAUTHORITY gets set to an empty string (yet the display resumes successfully).

Can you tell why did you consider xauth setting necessary?


All times are GMT -5. The time now is 11:19 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.