[Bug 14868] New: acpi lid close script is no good for kde
bugzilla-daemon at bugzilla.ubuntu.com
bugzilla-daemon at bugzilla.ubuntu.com
Wed Sep 7 03:22:58 UTC 2005
Please do not reply to this email. You can add comments at
http://bugzilla.ubuntu.com/show_bug.cgi?id=14868
Ubuntu | acpi-support
Summary: acpi lid close script is no good for kde
Product: Ubuntu
Version: unspecified
Platform: Other
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: acpi-support
AssignedTo: mjg59 at codon.org.uk
ReportedBy: jools at oxfordinspire.co.uk
QAContact: kubuntu-bugs at lists.ubuntu.com
Hi,
the acpi screenblanking screens rely on xscreensaver running. Kde does not use xscreensaver by default so
xscreensaver-command does not work (And as a side effect, when you open the lid of the laptop x.org is using all cpu..
when the xscreensaver-command calls are removed this doesnt happen)..
the script needs to check to see if xscreensaver is running. if not then it should perhaps try to lock the screen the
kde way.
here are the changes which make /etc/acpi/lid.sh work on a kde system (this is with the removal of
xscreensaver-command stuff. you will have to sort out how to detect what system is running etc)
first /etc/acpi/lid.sh
#!/bin/sh
. /usr/share/acpi-support/power-funcs
[ -x /etc/acpi/local/lid.sh.pre ] && /etc/acpi/local/lid.sh.pre
getXuser;
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
. /usr/share/acpi-support/screenblank
fi
[ -x /etc/acpi/local/lid.sh.post ] && /etc/acpi/local/lid.sh.post
and here is /usr/share/acpi-support/screenblank
#!/bin/sh
su $user -c "(kdesktop_lock --forcelock --blank)"
xset dpms force off
--
Configure bugmail: http://bugzilla.ubuntu.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the kubuntu-bugs
mailing list