Registered Member
|
KDE4.13 on Kubuntu14.04 on an Asus Laptop.
1. Laptop runnig on AC power. Systray shows battery conncted to AC power. Tooltip shows battery level. On click, shows display brightness, etc. correctly 2. Close the laptop lid. Laptop suspends. 3. Switch off the AC power 4. Open the laptop lid. It wakes up. But now, systray shows the same icon --- battery connected to AC power! Tooltip and on-click display shows the correct status i.e. disconnectod from AC power battery. Worse still, there are no warnings on Low Power, etc. If I interchange steps 2 and 3 i.e. switch the AC power off BEFORE closing the laptop lid, on wakeup, all is well. The systray icon shows discharging battery, etc. What is missing? How do I set it right?
--
Manjaro KDE. Kernel 4.19.244-1-MANJARO. 64-bit. Plasma 5.24.5. KDE Frameworks 5.94.0. Qt 5.15.4. 8GB RAM and more than 100GB free on the hard disk. |
Administrator
|
Please provide the output of "upower -d" of a freshly booted, as well as incorrectly behaving system. It sounds like a firmware / hardware controller problem. Does your system not react to lid open/close events as well once it has entered this state by any chance?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Here is the output of upower -d on a freshly rebooted system:
About your other questions, let me clarify. The core problem is if I switch off the power supply when the PC is suspended, on wake, the battery icon in the system tray shows that the battery is connected! It does not show warnings on reaching low and critical levels. None of the settings in 'On Battery' tab in power settings apply. It behaves as if it is connected to power. The tooltip on hover and the data on clicking the icon shows the battery is not connected. However, if I switch the power off when the PC is not suspended, everything works as expected.
--
Manjaro KDE. Kernel 4.19.244-1-MANJARO. 64-bit. Plasma 5.24.5. KDE Frameworks 5.94.0. Qt 5.15.4. 8GB RAM and more than 100GB free on the hard disk. |
|
Ben wanted to know whether the book still goes to STR when closing the lid *after* triggering the false state condition (it's a matter of on which level the issue is located: hardware -> kernel -> upower -> libsolid -> powerdevil)
The upower dump on the problematic state will also help on this question. |
Registered Member
|
I think I do not get what information is needed. Suspend -> Switch off power -> wake-up this routine leads to the behaviour I have mentioned. If I do not pay attention to the power level, laptop does not suspend. It just shuts down when the battery completely drains. There are no warnings either. The upower -d output I have provided is when the laptop was restarted with AC power connected. Do you need the upower -d output AFTER suspend -> Switch off power -> wake-up routine?
--
Manjaro KDE. Kernel 4.19.244-1-MANJARO. 64-bit. Plasma 5.24.5. KDE Frameworks 5.94.0. Qt 5.15.4. 8GB RAM and more than 100GB free on the hard disk. |
|
"upower -d" for good AND bad state are required for a comparism.
The other question was, whether closing the lid does still suspend the notebook once the broken state is entered, or whether this is broken as well. |
Registered Member
|
OK. On closing the lid, the laptop suspends --- in both conditions.
The output of upower -d when there was a problem is:
Please let me know if more information is needed.
--
Manjaro KDE. Kernel 4.19.244-1-MANJARO. 64-bit. Plasma 5.24.5. KDE Frameworks 5.94.0. Qt 5.15.4. 8GB RAM and more than 100GB free on the hard disk. |
Administrator
|
This is the source of the problem. As far as the system is concerned - it is receiving AC power. Can you please check the files under /sys/class/power_supply/ to see if the kernel believes the same thing? The content of /sys/class/power_supply/ACAD/online or /sys/class/power_supply/AC0/online is probably what is relevant here. It will be "1" if it believes the charger is connected, or "0" if not.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Yes. /sys/class/power_supply/ACAD/online did contain "1" even when it was not connected to AC power. How do I set this right?
--
Manjaro KDE. Kernel 4.19.244-1-MANJARO. 64-bit. Plasma 5.24.5. KDE Frameworks 5.94.0. Qt 5.15.4. 8GB RAM and more than 100GB free on the hard disk. |
Administrator
|
This means you are experiencing either a hardware level or kernel bug. I'm afraid i'm not sure how to investigate either scenario.
The UPower developers would likely have an idea where to begin looking though.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar