Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charge thresholds confuse kernel #17

Open
haarp opened this issue Oct 13, 2013 · 5 comments
Open

Charge thresholds confuse kernel #17

haarp opened this issue Oct 13, 2013 · 5 comments

Comments

@haarp
Copy link

haarp commented Oct 13, 2013

This is on a W701:

When charge thresholds are set, the kernel does not know about the current battery state. While the battery is idling at the threshold with AC attached for example, I get this:

$ cat /sys/class/power_supply/BAT0/status
Unknown

I am aware that tp_smapi exports its own interface under /sys/devices/platform/smapi, but many tools and daemons such as Upower are unaware of it and will not implemented driver-specific interfaces.
The result is that Upower assumes that the battery is charging, while it is not.

It would be very useful if tp_smapi could also override the power_supply entries in sysfs to provide the correct status, among other things.

Thanks!

@evgeni
Copy link
Member

evgeni commented Oct 15, 2013

Hi,

yes I think I have seen this before. Overriding power_supply sounds like a bad plan to me, but maybe we can trigger some update or supply additional information to the original interface? Will have a closer look when I have some spare time.

Greets

@caadar
Copy link

caadar commented Aug 7, 2017

Unknown bat status confuses laptop-mode with errors:

You have a broken battery. Cannot determine actual state
Please report this to the linux-acpi developers
Not determining any state from this device: /sys/class/power_supply/BAT0

@Rubenzahl
Copy link

Same problem here.

You have a broken battery. Cannot determine actual state
Please report this to the linux-acpi developers
Not determining any state from this device: /sys/class/power_supply/BAT0

$ cat /sys/class/power_supply/BAT0/status
Unknown

Ubuntu 18.04.1 LTS - Ubuntu 7.3.0-16ubuntu3
gcc version 7.3.0
Kernel: 4.15.0-36-generic

What can be done? Regards

1 similar comment
@Rubenzahl
Copy link

Same problem here.

You have a broken battery. Cannot determine actual state
Please report this to the linux-acpi developers
Not determining any state from this device: /sys/class/power_supply/BAT0

$ cat /sys/class/power_supply/BAT0/status
Unknown

Ubuntu 18.04.1 LTS - Ubuntu 7.3.0-16ubuntu3
gcc version 7.3.0
Kernel: 4.15.0-36-generic

What can be done? Regards

@Rubenzahl
Copy link

Now, after upgrading to kernel:
4.15.0-38-generic
the error messages still apear in syslog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants