ACPI lid events failure (after dist-upgrade, version 0.37)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kdebase (Ubuntu) |
Fix Released
|
Medium
|
Jonathan Riddell |
Bug Description
I'm happily using breezy using the kubuntu preview CD on my DELL X1 laptop. It's
wonderful how many things were working out of the box.
This afternoon, I've decided to dist-upgrade in order to stay in sync with the
latest developments. I've noticed that since the upgrade, the LID ACPI event
failed, while it was working perfectly before. For information, this event is
supposed to shut the screensaver down and perform a "xset dpms force off" when
the lid is closed, and to restore dpms and screensaver when the lid is open.
The logs from /var/log/acpid revealed that I needed to install some more packages:
LID closed:
Tue Sep 27 21:00:07 2005] received event "button/lid LID 00000080 00000003"
[Tue Sep 27 21:00:07 2005] notifying client 5989[112:112]
[Tue Sep 27 21:00:07 2005] executing action "/etc/acpi/lid.sh"
[Tue Sep 27 21:00:07 2005] BEGIN HANDLER MESSAGES
/usr/share/
xset: unable to open display ""
[Tue Sep 27 21:00:07 2005] END HANDLER MESSAGES
[Tue Sep 27 21:00:07 2005] action exited with status 1
[Tue Sep 27 21:00:07 2005] completed event "button/lid LID 00000080 00000003"
bash: xscreensaver-
LID opened:
[Tue Sep 27 21:00:13 2005] received event "video VID 00000080 00000000"
[Tue Sep 27 21:00:13 2005] notifying client 5989[112:112]
[Tue Sep 27 21:00:13 2005] completed event "video VID 00000080 00000000"
[Tue Sep 27 21:00:13 2005] received event "button/lid LID 00000080 00000004"
[Tue Sep 27 21:00:13 2005] notifying client 5989[112:112]
[Tue Sep 27 21:00:13 2005] executing action "/etc/acpi/lid.sh"
[Tue Sep 27 21:00:13 2005] BEGIN HANDLER MESSAGES
/usr/share/
bash: xscreensaver-
bash: xscreensaver-
xset: unable to open display ""
[Tue Sep 27 21:00:13 2005] END HANDLER MESSAGES
[Tue Sep 27 21:00:13 2005] action exited with status 1
[Tue Sep 27 21:00:13 2005] completed event "button/lid LID 00000080
So I've installed the finger and xscreensaver packages. After that xset still
refuses to work. It seems that finger is not used correctly to guess which user
is using X in /usr/share/
line with the user that logged from KDM, but it doesn't. Setting the user
manually and adding an "export DISPLAY=:0" in /etc/acpi/lid.sh did fix the problem.
So I suspect two problems with the acpi-support package (version 0.37):
* It should include finger and xscreensaver in its dependencies (or at least
check whether xscreensaver is used),
* It seems not to be able to guess the X user, at least if the latest logged in
from KDM.
Anyway, thanks for your great work. I've been able to workaround this, and the
scripts are really well-shaped otherwise.
Should be fixed in the latest upload.