Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340299 - app-laptop/laptop-mode-tools-1.55-r1: broken AC/battary mode detection (probably kernel bug)
Summary: app-laptop/laptop-mode-tools-1.55-r1: broken AC/battary mode detection (proba...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
Depends on:
Reported: 2010-10-09 21:28 UTC by Sergey Mironov
Modified: 2012-01-16 19:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

My linux-2.6.35-gentoo-r5 .config file. (.config,75.19 KB, text/plain)
2010-10-09 21:29 UTC, Sergey Mironov

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Mironov 2010-10-09 21:28:21 UTC
laptop-mode uses /sys/class/power_supply/ACAD/online as first-order source, but it seems to be broken. 

One have to plug-in/plug-out power cable twice to set it to 0. In other words, it misses very first "plug-out" event, so I have a paradox:

# cat /sys/class/power_supply/ACAD/online
# cat /sys/class/power_supply/BAT1/status 

This is probably a kernel bug, but I don't know where to mail it.

Reproducible: Always
Comment 1 Sergey Mironov 2010-10-09 21:29:38 UTC
Created attachment 250055 [details]
My linux-2.6.35-gentoo-r5   .config file.
Comment 2 Franz Trischberger 2010-12-18 06:29:53 UTC
I have the same problem. Seems to be a bug in "Future power /sys interface" (Kernel ACPI-config). If you disable this and enable "Deprecated /proc/acpi files
" and "Deprecated power /proc/acpi directories", everything works fine.

For kernel-bugs, there is
Comment 3 Franz Trischberger 2011-02-10 10:14:49 UTC
With 2.6.37 (using gentoo-sources) this is fixed, at least for our Lenovo Thinkpad SL510.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-01-16 19:21:09 UTC
Try with linux-3.2 and laptop-mode-tools-1.60-r1, reopen if this is still a issue