[Bug 455786] Re: battery indicator is wrong

2010-02-25 Thread yuszuv
Additionally, I've noticed that the more times my notebook crashes due
to the empty battery (I can't note because of this bug), the lower the
battery's capacity gets. So the bug will ruin my battery with the time.

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] apport-collect data

2010-02-26 Thread yuszuv
Architecture: amd64
DistroRelease: Ubuntu 9.10
Package: gnome-power-manager 2.28.1-0ubuntu1.3
PackageArchitecture: amd64
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 LANGUAGE=de_DE.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-19.56-generic
Uname: Linux 2.6.31-19-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin netdev plugdev sambashare

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] Dependencies.txt

2010-02-26 Thread yuszuv

** Attachment added: "Dependencies.txt"
   http://launchpadlibrarian.net/39829902/Dependencies.txt

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] DevkitPower.txt

2010-02-26 Thread yuszuv

** Attachment added: "DevkitPower.txt"
   http://launchpadlibrarian.net/39829903/DevkitPower.txt

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] GConfNonDefault.txt

2010-02-26 Thread yuszuv

** Attachment added: "GConfNonDefault.txt"
   http://launchpadlibrarian.net/39829905/GConfNonDefault.txt

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] XsessionErrors.txt

2010-02-26 Thread yuszuv

** Attachment added: "XsessionErrors.txt"
   http://launchpadlibrarian.net/39829916/XsessionErrors.txt

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] gnome-power-bugreport.txt

2010-02-26 Thread yuszuv

** Attachment added: "gnome-power-bugreport.txt"
   http://launchpadlibrarian.net/39829917/gnome-power-bugreport.txt

** Changed in: gnome-power-manager (Ubuntu)
   Status: Incomplete => New

** Tags added: apport-collected

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] Re: battery indicator is wrong

2010-01-30 Thread yuszuv
Same problem here. KDE and XFCE battery indicators work well. And
besides the GNOME battery indicator in the panel doesn't show the right
icon, GNOME doesn't seem to recognize a "critical battery state". It
just shows the menu where to choose from "logout", "shutdown", etc. and
three seconds later the computer turns off (due to an empty battery?).
What really sucks is, that then (sometimes) a lot of my preferences are
deleted (as e.g. my sticky notes!). I really hope there will be a fix in
the near future. It would be great!

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] Re: battery indicator is wrong

2010-10-24 Thread yuszuv
Unfortunately, neither "modprobe fujitsu-laptop" nor "acpi_osi=Linux"
nor "acpi=force" helps. If I try this, my python applet that reads out
the current battery states, doesn't work anymore.

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] Re: battery indicator is wrong

2010-10-24 Thread yuszuv
I wonder if the reason for the problem is, that acpi doesn't recognize
the status of the battery. If I run

j...@xylakant:/sys/class/power_supply/BAT0$ acpi
Battery 0: Unknown, 45

you can see, that the status of the battery is "unknown" if the ac
adapter is *un*plugged, while it is

j...@xylakant:/sys/class/power_supply/BAT0$ acpi
Battery 0: Charging, 43%, 00:54:34 until charged

when the ac adapter is plugged. I think in the first case there should
be an "uncharging" instead of "unknown". And could it be, that the xfce
and kde battery indicators doesn't care if the status is "unknown" or
not and just display the other (correct) informations while the gnome
battery indicator stops working as it gets the information, that the
battery status is "unknown"?

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] Re: battery indicator is wrong

2010-10-24 Thread yuszuv
Okay, I found out some things:

1. If the ac adapter is plugged in:

j...@xylakant:/proc/acpi/battery/BAT0$ lshal | grep ac_adapter
udi = '/org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_ADP1'
  ac_adapter.present = true  (bool)
  info.capabilities = {'ac_adapter'} (string list)
  info.category = 'ac_adapter'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_ADP1'  (string)

j...@xylakant:/proc/acpi/battery/BAT0$ lshal | grep battery
udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'
  battery.charge_level.current = 33399  (0x8277)  (int)
  battery.charge_level.design = 57720  (0xe178)  (int)
  battery.charge_level.last_full = 45299  (0xb0f3)  (int)
  battery.charge_level.percentage = 73  (0x49)  (int)
  battery.charge_level.rate = 27772  (0x6c7c)  (int)
  battery.is_rechargeable = true  (bool)
  battery.model = 'Modelxxx'  (string)
  battery.present = true  (bool)
  battery.rechargeable.is_charging = true  (bool)
  battery.rechargeable.is_discharging = false  (bool)
  battery.remaining_time = 1542  (0x606)  (int)
  battery.reporting.current = 3009  (0xbc1)  (int)
  battery.reporting.design = 5200  (0x1450)  (int)
  battery.reporting.last_full = 4081  (0xff1)  (int)
  battery.reporting.rate = 2502  (0x9c6)  (int)
  battery.reporting.technology = 'Li-ion'  (string)
  battery.reporting.unit = 'mAh'  (string)
  battery.serial = 'SN'  (string)
  battery.technology = 'lithium-ion'  (string)
  battery.type = 'primary'  (string)
  battery.vendor = 'Vendor12345678901234567890'  (string)
  battery.voltage.current = 12389  (0x3065)  (int)
  battery.voltage.design = 11100  (0x2b5c)  (int)
  battery.voltage.unit = 'mV'  (string)
  info.capabilities = {'battery'} (string list)
  info.category = 'battery'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'  
(string)

2. If the ac adapter is unplugged, I get:

j...@xylakant:/proc/acpi/battery/BAT0$ lshal | grep ac_adapter
udi = '/org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_ADP1'
  ac_adapter.present = false  (bool)
  info.capabilities = {'ac_adapter'} (string list)
  info.category = 'ac_adapter'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_ADP1'  (string)

j...@xylakant:/proc/acpi/battery/BAT0$ lshal | grep battery
udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'
  battery.charge_level.current = 33843  (0x8433)  (int)
  battery.charge_level.design = 57720  (0xe178)  (int)
  battery.charge_level.last_full = 45299  (0xb0f3)  (int)
  battery.charge_level.percentage = 74  (0x4a)  (int)
  battery.charge_level.rate = 0  (0x0)  (int)
  battery.is_rechargeable = true  (bool)
  battery.model = 'Modelxxx'  (string)
  battery.present = true  (bool)
  battery.rechargeable.is_charging = false  (bool)
  battery.rechargeable.is_discharging = false  (bool)
  battery.reporting.current = 3049  (0xbe9)  (int)
  battery.reporting.design = 5200  (0x1450)  (int)
  battery.reporting.last_full = 4081  (0xff1)  (int)
  battery.reporting.rate = -1  (0x)  (int)
  battery.reporting.technology = 'Li-ion'  (string)
  battery.reporting.unit = 'mAh'  (string)
  battery.serial = 'SN'  (string)
  battery.technology = 'lithium-ion'  (string)
  battery.type = 'primary'  (string)
  battery.vendor = 'Vendor12345678901234567890'  (string)
  battery.voltage.current = 12425  (0x3089)  (int)
  battery.voltage.design = 11100  (0x2b5c)  (int)
  battery.voltage.unit = 'mV'  (string)
  info.capabilities = {'battery'} (string list)
  info.category = 'battery'  (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'  
(string)

So you can see, that HAL recognizes the presence of the ac adapter
correctly, while it doesn't recognize the correct state of the battery.
If the battery is charging, all is okay, but if it's discharging, the
key

 battery.rechargeable.is_discharging = false  (bool)

isn't set correctly. If I do this manually by

sudo hal-set-property --udi
/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0 --key
battery.rechargeable.is_discharging --bool true

this hasn't any effect on the gnome battery indicator (even after
killing the panel) and the is reset to the wrong value "false" after
half a minute or so.

My (humble) opinion is, that hal is setting this key by reading out the
file /proc/acpi/battery/state which contains the wrong value

j...@xylakant:/proc/acpi/battery/BAT0$ cat state
present: yes
capacity state:  ok
charging state:  charged
present rate:2078 mA
remaining capacity:  2777 mAh
present voltage: 11498 mV

where the 3rd lines says, that the battery (while the ac adapter is
unplugged) is "charged", so it's neither charging nor uncharging, so
that the "hal-get-proberty"-values just make perfect sense. But I don't
know how to manipulate whats written into this file and I don't want to
edit it manu

[Bug 455786] Re: battery indicator is wrong

2010-10-26 Thread yuszuv
OK, I managend to build my own kernel with the modified dsdt table. And
it works. So I think it's only a matter of the acpi tables and not a bug
in the gnome power manager. I wonder where I get send my corrected dsdt
table, so that some day it will be integrated in the kernel. Can anyone
help me to get this bug smashed?

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] Re: battery indicator is wrong

2010-10-28 Thread yuszuv
So is there any way to get my fixed dsdt tables into the kernel?

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] Re: battery indicator is wrong

2010-10-29 Thread yuszuv
No, that doesn't help so much, because the option to load an dsdt table
via the kernel boot options has deprecated. I just want that the
corrected dsdt table I have is going to make it into the kernel source,
but I don't know where and how to post my dsdt tables.

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 455786] Re: battery indicator is wrong

2010-06-15 Thread yuszuv
So this seems to be a very easy to eliminate bug. Is there any chance
that this can be done in the near future? This would be very cool, since
I'm too dumb to compile without errors (aside from having seemingly too
little hard disk space).

-- 
battery indicator is wrong
https://bugs.launchpad.net/bugs/455786
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs