[Bug 932714] New: power manager doesn't recognise mains power
http://bugzilla.opensuse.org/show_bug.cgi?id=932714 Bug ID: 932714 Summary: power manager doesn't recognise mains power Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: x86-64 OS: openSUSE 13.2 Status: NEW Severity: Normal Priority: P5 - None Component: Xfce Assignee: bnc-team-xfce@forge.provo.novell.com Reporter: admin@different-perspectives.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- 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. This seems to happen when the netbook is plugged in, but the plugin on the system panel says it's discharging. Hardware: Samsung NC110 netbook 64 bit. Desktop: XFCE-4.10 All xfce updates from the core openSUSE repos & applied. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
--- Comment #1 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
Guido Berhoerster
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 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
--- Comment #3 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
--- Comment #4 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
--- Comment #5 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
--- Comment #7 from Guido Berhoerster
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. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
--- Comment #8 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
--- Comment #9 from Guido Berhoerster
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. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
http://bugzilla.opensuse.org/show_bug.cgi?id=932714#c10
David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
http://bugzilla.opensuse.org/show_bug.cgi?id=932714#c11
--- Comment #11 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
http://bugzilla.opensuse.org/show_bug.cgi?id=932714#c12
--- Comment #12 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
http://bugzilla.opensuse.org/show_bug.cgi?id=932714#c13
--- Comment #13 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
http://bugzilla.opensuse.org/show_bug.cgi?id=932714#c14
--- Comment #14 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
http://bugzilla.opensuse.org/show_bug.cgi?id=932714#c15
--- Comment #15 from David Hodgson
http://bugzilla.opensuse.org/show_bug.cgi?id=932714
http://bugzilla.opensuse.org/show_bug.cgi?id=932714#c16
Guido Berhoerster
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. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com