No action on battery low/critical

When my laptop reaches the set (20%) battery level, a sound and a pop up message should be displayed, the same goes for crictical but it should also hibernate. However when this limit is reached nothing happens no sound/pop up message and when my battery is depleted it turns off immediately. At first I thought I screwed up, but I now have exactly the same issues on my small acer laptop, therefore I think this might be a bug, is it or did I just do something wrong twice?

Power Management is part of ACPI (advanced configuration and power interface).
Show us the output of:

dmesg | grep -2i acpi

It is too long to fit in here, therfore I put it in a pastebin: http://pastebin.com/Hfz34bfE

Just to make this clear, the battery monitor is showing the right battery levels, there just is no action when it gets low.

Also I discover this, when ac-adapter is unplugged a sound is played, as it should, but the same command still shows AC Adapter [AC0] (on-line), I am guessing this might be a problem

Also I discover this, when ac-adapter is unplugged a sound is played, as it should, but the same command still shows AC Adapter [AC0] (on-line), I am guessing this might be a problem

After a restart it does show as offline

On 2014-03-17 17:56, AndrewAmmerlaan wrote:
>
> When my laptop reaches the set (20%) battery level, a sound and a pop up
> message should be displayed, the same goes for crictical but it should
> also hibernate. However when this limit is reached nothing happens no
> sound/pop up message and when my battery is depleted it turns off
> immediately.

It happened to me a few days ago, accidentally. I left the laptop
running and I forgot to plug it in. I was working on the desktop and I
forgot. Next day, I found the thing off, battery depleted. It did not
hibernate, and it is configured to do so.

However, in my case I think the issue is different: if the machine
thinks that someone else is connected remotely, or you have a local
console opened (both of which could have been the case), the blasted
thing pops up a message requesting the root password to hibernate!

Of course, as there is nobody present, nobody types the password, and
the machine just powers down suddenly when the battery finally depletes.

Yes, there is a bugzilla on this. Nothing will be done, as it is
intentional and they consider the policy a feature, mandated by the
security team at openSUSE/SUSE.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

I don’t get any pop up message asking for root permission, even if this would be the problem I should get a pop up message saying my battery is running low. The problem is not that the laptop doesn’t hibernate, I just want to be warned when my battery is running low.

After my I suspend my computer, I do get notifications. It’s not a solution but a workaround.

On 2014-03-23 12:16, AndrewAmmerlaan wrote:
>
> After my I suspend my computer, I do get notifications. It’s not a
> solution but a workaround.

:-o


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

I think something at start up is broken, I tested suspending my other laptop and after that it did work, but after a reboot it stopped working again. I am guessing some driver is not working correctly with the kernel. Because I have this problem on 2 different laptops I think it is a bug, I am surprised nobody else is having this problem.

On 2014-03-24 11:16, AndrewAmmerlaan wrote:
>
> I think something at start up is broken, I tested suspending my other
> laptop and after that it did work, but after a reboot it stopped working
> again. I am guessing some driver is not working correctly with the
> kernel. Because I have this problem on 2 different laptops I think it is
> a bug, I am surprised nobody else is having this problem.

Well… I never reach low battery condition :slight_smile:

Only once, and I was not present or looking. If I was present (I don’t
know if I was) it did not beep.

It is a condition somewhat difficult to test. You have to leave the
laptop running for a longish time, on battery, and watch it. I don’t
know of a way to emulate low battery condition and test it at will.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

My battery is almost always low, because it only lasts 2 hours.

I would test, whether I would have a hardware bug. Buy a new battery. But I think buying a new laptop would be more favourable than buying a battery.

The second thing is, that you have got a message with “Firmware Bug”. I would test a update there.

On 2014-03-24 18:16, AndrewAmmerlaan wrote:
>
> robin_listas;2632642 Wrote:

>> It is a condition somewhat difficult to test. You have to leave the
>> laptop running for a longish time, on battery, and watch it. I don’t
>> know of a way to emulate low battery condition and test it at will.
>>
>>
>
> My battery is almost always low, because it only lasts 2 hours.

But mine is almost always connected. I move the laptop, another room,
another city, and I plug it in.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

The battery is working fine, it is supposed to last only 2 hours. I check for updates daily, I think a update broke the system because it was working before.

I installed opensuse on a third laptop, and I immediately noticed that the battery notifications were not working, therefore I have added this bug to the bugzilla here: https://bugzilla.novell.com/show_bug.cgi?id=871115

Thanks!

But 2 hours is a short time for a battery in notebooks today. 3 until 5 hours are normal for a new notebook for me.
I want to work in trains, in the garden, …

We are in the 21th century and modern technology should bring a longer time for the battery. I was a little bit surprised about this very short time.

Same for me. I never get notifications at low or hibernation at critical battery level.
The “workaround” with suspending the laptop does work, though. But I guess that is no solution since after rebooting the problem remains…:frowning:

It is a condition somewhat difficult to test. You have to leave the
laptop running for a longish time, on battery, and watch it. I don’t
know of a way to emulate low battery condition and test it at will.

You don’t have to wait until your battery gets low or critical status in order to check whether this bug happens on your system too. Just change the low/critical levels using the powerdevil menu.

This is quite annoying because if you don’t check the battery icon you can easily get surprised with a sudden hard power off and data loss. It used to work like a charm on openSUSE 12.3…

While you are waiting.

You can create a cron job to run a script to check the battery state or a udev rule. Please see https://bbs.archlinux.org/viewtopic.php?id=175970
**
Udev Rule for battery

https://wiki.archlinux.org/index.php/Laptop#Udev_events

Power Management**

Please see https://wiki.archlinux.org/index.php/Power_management

Try installing laptop-mode-tools Ref: https://www.kernel.org/doc/Documentation/laptops/laptop-mode.txt
|** The Laptop Mode Tools** **-- laptop-mode-tools package **
|
|

Laptop Mode Tools is a laptop power saving package for Linux systems. It allows you to extend the battery life of your laptop, in several ways.
It is the primary way to enable the Laptop Mode feature of the Linux kernel, which lets your hard drive spin down.

In addition, it allows you to tweak a number of other power-related settings using a simple configuration file.

On 2014-04-22 03:36, bakamono wrote:
>
> Same for me. I never get notifications at low or hibernation at critical
> battery level.
> The “workaround” with suspending the laptop does work, though. But I
> guess that is no solution since after rebooting the problem remains…:frowning:

Yesterday I was watching a video on battery. There was no warning, but
suddenly the machine hibernated on its own. I plugged it on and
re-powered. I noticed that battery was reported as “0 charge”.

It lasted 1h 40min, I think. Not much, but then the machine has some
years - 2010 perhaps.

I have 13.1 and XFCE. In power manager settings, the action defined for
battery critical is hibernate, so it did just that. But there is no
definition of what level is considered “critical” that I can see.

Also there are some bugs. If the machine thinks that somebody is
connected, or you have a text console opened, it may refuse to
hibernate. I have bugs reported on this. I don’t know if an emergency,
low battery condition, would override.

This case, it worked just fine. :slight_smile:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

I have 13.1 and XFCE. In power manager settings, the action defined for
battery critical is hibernate, so it did just that. But there is no
definition of what level is considered “critical” that I can see.

I think this is unrelated, and it might be xfce missing the functionality of changing the “critical” level in a GUI way.

I am forced to temporarily use another distro for everyday work, I don’ t mind bugs, but this is just too annoying.