Bug#684186: gnome-settings-daemon: fails to execute action on low battery condition

2012-12-17 Thread Stefan Nagy
I found this related upstream bug report:
https://bugs.freedesktop.org/show_bug.cgi?id=45321

However, I tried out the workaround mentioned in Comment 4 and it didn't
work for me. I compiled my kernel with CONFIG_ACPI_PROCFS_POWER=y, but
UPower still fails to update the status of the AC adapter.


signature.asc
Description: This is a digitally signed message part


Bug#684186: gnome-settings-daemon: fails to execute action on low battery condition

2012-12-15 Thread Stefan Nagy
I tested this the whole day and eventually got a clearer picture of this
bug. gnome-settings-daemon fails to send my notebook into hibernation
because of two separate issues:

1) UPower fails to update the status of the AC adaptor. 'upower --dump'
shows that the time of last update is always identical to uptime. When
the adapter was plugged in while boot process, action on critical
battery will never be fired.

2) At low battery level the information UPower gets (from the kernel?)
is not correct. The reported battery level will never be lower than
2.99967% ('upower --dump') or 2% ('acpi -b'), time remaining never less
than around 5 minutes. gnome-settings-daemon's default is
'use-time-for-policy true' and 'time-action 120'. This status will never
be reached since the battery drains while time remaining is something
around 300 seconds.


I managed to manipulate the settings so that Gnome sends my notebook
into hibernation in two different ways:

1) I set 'time-critical 420' and 'time-action 300' and booted with the
AC adaptor plugged out, so that the status reported by 'upower --dump'
would be: 'line-power online: no'.

2) I set 'use-time-for-policy false', 'percentage-critical
4' (default=3),'percentage-action 3' (default=2) and booted with the AC
adaptor plugged out, so that the status reported by 'upower --dump'
would be: 'line-power online: no'.


Since to me it seems obvious that this is no gnome-settings-daemon bug,
I'm going to reassign it to UPower. Regarding the wrong battery levels
reported to UPower I already filed a bug against the kernel: #695634.


signature.asc
Description: This is a digitally signed message part


Bug#684186: gnome-settings-daemon: fails to execute action on low battery condition

2012-12-10 Thread Stefan Nagy
Michael Gilbert wrote:
 Unfortunately, there is no consistent or standardized behavior when
 the battery runs out.  If you let that happen, you take the risk of
 losing unsaved data.

I'm not sure I'm getting your point (english isn't my first language)…

Are you saying that users in general can't / shouldn't expect their OS
to prevent data loss when their notebook's battery drains?


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#684186: gnome-settings-daemon: fails to execute action on low battery condition

2012-11-18 Thread Michael Gilbert
control: severity -1 important

Unfortunately, there is no consistent or standardized behavior when
the battery runs out.  If you let that happen, you take the risk of
losing unsaved data.

Best wishes,
Mike


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org