This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Power management not notifying/ automatically suspending etc

Tags: None
(comma "," separated)
iamsorandom
Registered Member
Posts
50
Karma
0
Hi,
I recently installed Debian Jessie, and am using the KDE desktop, 4.14.2. I'm using the Linux 3.16.0-4-amd64 kernel. I've been having some problems with power management; my laptop is not notifying me or automatically shutting down / suspending / hibernating on low power.

At first, I thought this was because I hadn't set it to do so, but I checked, and notifications are one, critical level set to 7% of battery, and per activity settings are disabled. It's also set through KDE Advanced Power Management Settings to automatically shutdown at the critical level.

However, it isn't doing that; several times it hasn't shutdown until it gets to 0%, and obviously by that point the switch off is unclean and each time threatens to lose me data... I'm hoping it hasn't already.

The widget in my taskbar which shows me how much battery power I have seems to be working fine (it shows %, when I'm charging, and so on). I haven't tried to see if power management works in another desktop... but it seems that my installation does have an idea of what's happening with battery and power since the widget seems to be working fine...

Any ideas for how to fix this or work out what's going on?
Cheers,
Nick
FroL_Onn
Registered Member
Posts
2
Karma
0
iamsorandom wrote:Hi,
I recently installed Debian Jessie, and am using the KDE desktop, 4.14.2. I'm using the Linux 3.16.0-4-amd64 kernel. I've been having some problems with power management; my laptop is not notifying me or automatically shutting down / suspending / hibernating on low power.

At first, I thought this was because I hadn't set it to do so, but I checked, and notifications are one, critical level set to 7% of battery, and per activity settings are disabled. It's also set through KDE Advanced Power Management Settings to automatically shutdown at the critical level.

However, it isn't doing that; several times it hasn't shutdown until it gets to 0%, and obviously by that point the switch off is unclean and each time threatens to lose me data... I'm hoping it hasn't already.

The widget in my taskbar which shows me how much battery power I have seems to be working fine (it shows %, when I'm charging, and so on). I haven't tried to see if power management works in another desktop... but it seems that my installation does have an idea of what's happening with battery and power since the widget seems to be working fine...

Any ideas for how to fix this or work out what's going on?
Cheers,
Nick

Hello!

I have the same problem. Did you find any solution?
I've found some workaroud here: https://bugs.kde.org/show_bug.cgi?id=338406
I've removed ~/.kde/share/config/*power* files and the battery-crirical-level-action came back!

Best regards,
Evgenii
iamsorandom
Registered Member
Posts
50
Karma
0
Hi, thanks for bumping this. I had a look and there's been some useful discussion on the debian mailing lists and forums. There's a suggestion that it's Debian specific.

There's a couple more workarounds:

Option 1

"I can confirm that starting upower before the KDE session makes everything
work as expected. As a workaround, I am currently using the /etc/rc.local
script to start upower with systemctl, as Andreas pointed out:

1) Make the /etc/rc.local script executable with: sudo chmod +x
/etc/rc.local
2) Edit the file and add this line before the "exit 0" one: systemctl start
upower"
(quoted from https://bugs.debian.org/cgi-bin/bugrepo ... =769155#51)

Option 2

Run systemctl enable upower .

This option seems to have worked for me, although I haven't tested it fully.

- -
Thread here about the problem:https://lists.debian.org/debian-kde/2014/12/msg00025.html
And here's the Debian bug tracker report: https://bugs.debian.org/cgi-bin/bugrepo ... bug=769155

Lots of users and suggestions there.
Fingers crossed for a solution soon rather than a workaround!
Joni
Registered Member
Posts
1
Karma
0
Hi - I have a very similar problem. -- debian jessie (solyd distro).
The critical battery action *is* working for me. However, what is not working is the "LOW BATT" notification.
The problem is the
Code: Select all
notify-send
command that BAT_MON uses to push a notification to the desktop.
These notifications are auto dismissed after 5 sec. Sometimes these notifications do not arrive at the desktop at all.
What is missing is persistent notifications. There is an ongoing discussion in kde about persistent notifs. The prevailing mind-set is, if the user doesn't have to do anything, or there is nothing he can do, then notifs auto dismiss after 5 sec.

YOU CAN tell battery monitor to run a script when it hits low batt, for example
Code: Select all
/usr/bin/notify-send --expire-time=3600000 "LOW BATT"
which will make the notification stay on your screen for 1 hour. HOWEVER THIS FEATURE IS NOT WORKING -- Batt Mon doesn't run the script.
iamsorandom
Registered Member
Posts
50
Karma
0
Hmm did you have a look at those bug reports or try those workarounds? sounds to me like this might be a slightly different problem?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft