[ltp] display with backlight off after resume

come se fosse antani linux-thinkpad@linux-thinkpad.org
Sat, 7 Jun 2008 14:50:02 +0200


On Fri, Jun 6, 2008 at 20:46, Dmitry E. Mikhailov <sexandvodka@gmail.com> wrote:
>> thank you for the advice, but unfortunately it doesnt do the trick. :(
>> the kernel version is
>> 2.6.25-2-686
>> on debian unstable, as mentioned earlier.
>
> Besides the kernel parameters addition I got the following mod:
>
> Here's my acpi sleep file. Save it, make it executable and run. If it does the
> trick, use it as a sleep action script for acpid.
>
> [root@ibm Network]# cat /etc/acpi/actions/sleep.sh
[CUT]
>
> And are you really sure only the backlight is off, but LCD itself is working?

I ran a few test (all with the acpi_sleep=s3_bios kernel boot option)
I tried your script besides the acpi_sleep boot option and it works
running it from the tty: after the resume the LCD is with backlight
on.
your script ran from the tty: it works!
your script ran from xorg with compiz (de/)activated: it works!
using gnome-power-manager to suspend  (that, afaik, uses pm-suspend
and the hal quirks ) with compiz activated or deactivated: backlight
off issue.

When I get the issue, as I said, after the resume the LCD remains with
backlight off (so, is working, I can see things but the backlight is
off; the external monitor works perfectly after resume).
here is the output of your script but I think below there is nothing
interesting and issue-related.

Usage: dbus-send [--help] [--system | --session] [--dest=NAME]
[--type=TYPE] [--print-reply=(literal)] [--reply-timeout=MSEC]
<destination object path> <message name> [contents ...]
./sleep.sh: line 5: org.freedesktop.NetworkManager.sleep: command not found
./sleep.sh: line 6: /sbin/service: No such file or directory
./sleep.sh: line 46: /sbin/service: No such file or directory
Usage: dbus-send [--help] [--system | --session] [--dest=NAME]
[--type=TYPE] [--print-reply=(literal)] [--reply-timeout=MSEC]
<destination object path> <message name> [contents ...]
./sleep.sh: line 48: org.freedesktop.NetworkManager.wake: command not found
./sleep.sh: line 51: /sys/bus/usb/devices/4-2/power/level: No such
file or directory

anyway I tried (one more time) to google a little bit: I found this
debian bug (a bit old)
Bug#439914: xserver-xorg: backlight is not turned on resume, thinkpad x61s
http://groups.google.it/group/linux.debian.bugs.dist/browse_thread/thread/4c36292b0abf5bd/dede04a644fb1087?lnk=st&q=x40+suspend+backlight+off#dede04a644fb1087

the guy there says he solved the same issue on his X61s with the
acpi_sleep boot option you mentioned earlier.

Actually I can suspend the laptop with your script... so, thank you!

Some months ago everything (on debian unstable, same sysstem as now)
worked perfectly with gnome-power-manager and pm-suspend. What
happened? I never touched that configuration...

thanks,
antani