|
Bugzilla – Full Text Bug Listing |
| Summary: | power manager doesn't recognise mains power | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | David Hodgson <admin> |
| Component: | Basesystem | Assignee: | Forgotten User DV81ZEWZkN <forgotten_DV81ZEWZkN> |
| Status: | RESOLVED WONTFIX | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | admin, forgotten_cAXlJ_FoSf |
| Version: | 13.2 | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | openSUSE 13.2 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: |
list of relevant rpms installed
xfconf-query -c xfce4-power-manager -l -v upower --dump gzipped journalctl extract gzipped upower monitor log xfconf-query -c xfce4-power-manager -l -v upower --dump |
||
|
Description
David Hodgson
2015-05-28 18:42:04 UTC
Created attachment 635897 [details]
list of relevant rpms installed
rpm -qa | egrep -i 'xfce|power|^pm'
(In reply to David Hodgson from comment #0) > When power manager is set to not hibernate if on mains, and hibernate after > a short time on battery, half the time it hibernates when plugged in. Not sure I understand you there, you have disabled automatic suspend/hibernate when on ac but it still hibernates when on ac? Please post the output of: xfconf-query -c xfce4-power-manager -l -v > This seems to happen when the netbook is plugged in, but the plugin on the > system panel says it's discharging. OK, when this happens again (ie. the plugin says it's discharging despite being connected to ac), please run the following command and post its output here: upower --dump It's happened again, in slightly clearer circumstances. This morning, the battery was almost discharged so I plugged it in and left it plugged in. Used it for a while, then left it. About 2pm (5 or so hours later), is was still "on" (i.e. not hibernated) and I used it again for a while, then left it. Just now (another 3 hours later) it was hibernated although still plugged in. The details requested are attached. Created attachment 636942 [details]
xfconf-query -c xfce4-power-manager -l -v
Created attachment 636943 [details]
upower --dump
Apologies. Power manager is set to sleep after 4 hours on mains, and 30mins on battery. Please ignore until I check behaviour again and get further evidence. (In reply to David Hodgson from comment #4) > Created attachment 636942 [details] > xfconf-query -c xfce4-power-manager -l -v OK, so your system is configured to suspend after being inactive for 30 minutes when on battery or 4 hours when plugged in and to hibernate when the battery level falls below 5%. (In reply to David Hodgson from comment #5) > Created attachment 636943 [details] > upower --dump This shows that upower/the kernel think that the system is NOT plugged in but running on battery with the battery level is at 79%. Are you absolutely certain that the system was plugged in when you ran the command? If yes, you either have a hardware problem, e.g. a loose connector or some issue with the battery reporting its status incorrectly, or there is a bug in the kernel or upower. Yes, 100% certain it was plugged into the mains for the duration. AFAIK there's not a loose connection - apart from the unexpected hibernates it behaves as expected. If I leave it plugged into the mains the battery never runs down. There's a BIOS option to preserve battery life which is set. It may have something to do with it as the battery charges up to 80% and never further. I'll leave it plugged in overnight and see when it sleeps - after 4 hours or 30 mins. (In reply to David Hodgson from comment #8) > Yes, 100% certain it was plugged into the mains for the duration. AFAIK > there's not a loose connection - apart from the unexpected hibernates it > behaves as expected. If I leave it plugged into the mains the battery never > runs down. > > There's a BIOS option to preserve battery life which is set. It may have > something to do with it as the battery charges up to 80% and never further. > > I'll leave it plugged in overnight and see when it sleeps - after 4 hours or > 30 mins. You can run upower --monitor-detail to observe any changes in power source and quickly check with cat /sys/class/power_supply/AC/online whether the kernel thinks the system plugged in or not. I now have more evidence there's a real problem. Attached are the log of upower monitor for an extended period, along with relevant journalctl entries for the period (showing sleep & wake) and the recent xfce power config, which should be unchanged from the previous one. I have been using the notebook normally, and it has been plugged into the mains for the last 3 days. Yesterday I made it suspend using the keyboard, and when I resumed it in the evening (at about 22:50) I noticed that the power plugin on the panel wasn't showing the mains plug. Checking the power monitor confirmed that it was charging, so "something" knew the mains was plugged in although upower seemed confused. When I finished working I left it to go to sleep on the timer, which it did at about 00:07, so it slept with the 30 minute "on battery" timer rather than the 4 hour "on mains" timer. Created attachment 637745 [details]
gzipped journalctl extract
journalctl --system --since='2015-06-07 22:18:12' | egrep -i 'power|suspend|hibernate|sleep|boot|resume|wake| pm: '
Created attachment 637746 [details]
gzipped upower monitor log
upower --monitor-detail
Created attachment 637747 [details]
xfconf-query -c xfce4-power-manager -l -v
Created attachment 637748 [details]
upower --dump
I should add that it's still plugged into the mains and the planel plugin is showing "discharging" rather than plugged in, but it's not discharging as the power level isn't going down. I've just unplugged the mains from the notebook, left it out for a few minutes, then plugged it back in. It's now showing "Charging" as the status. (In reply to David Hodgson from comment #10) > I now have more evidence there's a real problem. Attached are the log of > upower monitor for an extended period, along with relevant journalctl > entries for the period (showing sleep & wake) and the recent xfce power > config, which should be unchanged from the previous one. > > I have been using the notebook normally, and it has been plugged into the > mains for the last 3 days. Yesterday I made it suspend using the keyboard, > and when I resumed it in the evening (at about 22:50) I noticed that the > power plugin on the panel wasn't showing the mains plug. Checking the power > monitor confirmed that it was charging, so "something" knew the mains was > plugged in although upower seemed confused. > > When I finished working I left it to go to sleep on the timer, which it did > at about 00:07, so it slept with the 30 minute "on battery" timer rather > than the 4 hour "on mains" timer. Yes, after wakeup on Jun 13, 22:50 upower reports that the battery is discharging with the level stuck at 79% so something clearly isn't right. In any case this is not a bug in xfce4-power-manager which only displays what upower reports, maybe the battery or more likely the kernel do not report the actual state of the battery correctly or it is a bug in upower, so I'm reassigning to the upower maintainer. This version of openSUSE changed to end-of-life (EOL [1]) status. As such it is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of openSUSE, or consider the bug still valid, please feel free to reopen this bug against that version, or open a new ticket. Thank you for reporting this bug and we are sorry it could not be fixed during the lifetime of the release. [1] https://en.opensuse.org/Lifetime |