Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#23834 - [upower] [kernel26] System claims no battery is present, but it is!
Attached to Project:
Arch Linux
Opened by Jeremy LaCroix (jlacroix) - Monday, 18 April 2011, 21:08 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 16 February 2012, 17:53 GMT
Opened by Jeremy LaCroix (jlacroix) - Monday, 18 April 2011, 21:08 GMT
Last edited by Tobias Powalowski (tpowa) - Thursday, 16 February 2012, 17:53 GMT
|
DetailsDescription:
I have a Latitude E6410 laptop with KDE 4.6 installed on 64-bit Arch. Sometimes KDE's power management widget (by the clock) will show the battery as empty with a little red x on it, and when you click on it, it will show "battery not present," even when I'm actually running on the battery. Other times I boot up and it's fine, it seems to happen one out of every three boots. I attached the output of "cat /proc/acpi/battery/BAT0/state" while this issue is happening. Additional info: If it matters, I also attached my rc.conf in case I did something wrong. Note that I do not have this problem when testing other distributions, if that means anything. Steps to reproduce: 1.) Start up the computer 2.) Log in 3.) If the battery shows as present, great. If not, reboot again and again until it shows up. |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Thursday, 16 February 2012, 17:53 GMT
Reason for closing: Upstream
Thursday, 16 February 2012, 17:53 GMT
Reason for closing: Upstream
battery_state.txt
$ solid-hardware query 'IS Battery'
Object::connect: No such signal QDBusAbstractInterface::Changed()
udi = '/org/freedesktop/UPower/devices/battery_BAT0'
$ solid-hardware details '/org/freedesktop/UPower/devices/battery_BAT0'
parent = '' (string)
vendor = '' (string)
product = '' (string)
description = '' (string)
That's an example of what you should get:
udi = '/org/freedesktop/UPower/devices/battery_BAT1'
parent = '/org/freedesktop/UPower' (string)
vendor = 'SANYO' (string)
product = 'PA3593U-1BRS' (string)
description = 'Lithium Ion Battery' (string)
Battery.plugged = true (bool)
Battery.type = 'PrimaryBattery' (0x3) (enum)
Battery.chargePercent = 100 (0x64) (int)
Battery.rechargeable = true (bool)
Battery.chargeState = 'NoCharge' (0x0) (enum)
udi = '/org/freedesktop/UPower/devices/battery_BAT0'
parent = '/org/freedesktop/UPower' (string)
vendor = 'Samsung SDI' (string)
product = 'DELL C207206' (string)
description = 'Lithium Ion Battery' (string)
Battery.plugged = true (bool)
Battery.type = 'PrimaryBattery' (0x3) (enum)
Battery.chargePercent = 100 (0x64) (int)
Battery.rechargeable = true (bool)
Battery.chargeState = 'NoCharge' (0x0) (enum)
I have another note to add as I did some more testing today. If I install hal and start the hal demon, the problem is resolved instantaneously. I removed hal because when KDE moved to version 4.6, they declared it no longer necessary. I guess it's still required for now?
1) It used to work perfectly fine without HAL.
2) Enabling HAL does not solve the issue, nothing changes.
3) The battery monitor never works, there are no random boots when it would work.
cat /proc/acpi/battery/BAT0/state
I have that script in a bash file I have KDE run on startup. As soon as I run that command, the battery widget sees the battery and it starts working. I have no idea why this works. I've tested Kubuntu for over a month on a separate hard drive, and it never has this issue on the same laptop, but I tried Googling to see what they may have done to fix it, but there's no trace of this problem ever occurring in Kubuntu.
cat /proc/acpi/battery/BAT0/state
And then I just set it to startup in KDE. Whenver I run that script, KDE finds the battery immediately.
otherwise expect this bug to not get fixed soon.
upower -d
You need to work with upstream.
Send a mail for further assistance from them.
If you can't round it down, send an email to all 3 of them explaining your situation.
Upstream wont fix this if they don't know it's broken.
Here is the upstream bug report:
https://bugs.freedesktop.org/show_bug.cgi?id=41623
And to Ionut Biru, I found your comment to be rude. If I knew how to troubleshoot this and isolate the problem myself, I wouldn't have needed to post it here in the first place, now would I? I've been Googling this since I originally posted the report, and I isolated the problem using your upower -d command (so thank you for that).