Hello,
I am running kubuntu 7.10 on my asus laptop.
When the battery drops below the critical threshold,
it suspends properly and--if I plug the adapter in--it
resumes properly too. This is good.
Unfortunately I work very often remotely, and each time
the laptop does a suspend/resume, I loose the ssh
connections and my remote work. What I would like to
do is simply to add a little delay between the notification
"battery low" and the actual suspension. A warning sound
and a delay would be even better...it would just give me the time
to plug in the adapter before the laptop suspends...
I tried to add some
time.sleep(nsec)
into
guidance-power-manager.py
(precisely at the lines 969 and 978, within PowerManager.checkBatteryCritical() ), but it doesn't work.
Please could anybody help me?
Thank you very much in advance!
Cheers,
davide
I am running kubuntu 7.10 on my asus laptop.
When the battery drops below the critical threshold,
it suspends properly and--if I plug the adapter in--it
resumes properly too. This is good.
Unfortunately I work very often remotely, and each time
the laptop does a suspend/resume, I loose the ssh
connections and my remote work. What I would like to
do is simply to add a little delay between the notification
"battery low" and the actual suspension. A warning sound
and a delay would be even better...it would just give me the time
to plug in the adapter before the laptop suspends...
I tried to add some
time.sleep(nsec)
into
guidance-power-manager.py
(precisely at the lines 969 and 978, within PowerManager.checkBatteryCritical() ), but it doesn't work.
Please could anybody help me?
Thank you very much in advance!
Cheers,
davide
Comment