Hi,
Is there anyone here who successfully uses laptop-mode-tools with KDE?
I'm trying to use it with little success. Actually there is a part of
the script, which uses probably xset to switch X standby/power off
times.
xset must be run as a user, not root and after logon (which is done by
KDM in my case).
I put relevant desktop file to /usr/share/autostart. It is run
correctly, because I can see debug output in some file.
However xset settings are not applied. When I run it manually
afterwards, they work just fine. When I (de/re)attach power cable,
they are also applied.
Do you have any suggestions?
Script run by desktop file:
#!/bin/bash
# RG - this script is used for executing laptop-mode
# after (any) user log in
echo "blabla" >>/tmp/session.start
whoami >>/tmp/session.start
sudo /usr/sbin/laptop_mode force
PS.
There is also a bug in Debian BTS:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=445078
--
To UNSUBSCRIBE, email to debian-laptop-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
04-28-2008, 08:20 PM
"Robert Gomulka"
KDE & laptop-mode-tools
Hi,
Is there anyone here who successfully uses laptop-mode-tools with KDE?
I'm trying to use it with little success. Actually there is a part of
the script, which uses probably xset to switch X standby/power off
times.
xset must be run as a user, not root and after logon (which is done by
KDM in my case).
I put relevant desktop file to /usr/share/autostart. It is run
correctly, because I can see debug output in some file.
However xset settings are not applied. When I run it manually
afterwards, they work just fine. When I (de/re)attach power cable,
they are also applied.
Do you have any suggestions?
Script run by desktop file:
#!/bin/bash
# RG - this script is used for executing laptop-mode
# after (any) user log in
echo "blabla" >>/tmp/session.start
whoami >>/tmp/session.start
sudo /usr/sbin/laptop_mode force