Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 496604

Summary: sys-power/upower-0.9.21 fails to go into hibernation mode, does not display a notification when charged / discharged battery by connecting the external power
Product: Gentoo Linux Reporter: thunder367 <thunder367>
Component: [OLD] Core systemAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED OBSOLETE    
Severity: normal CC: thunder367
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=504574
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: make.conf
emerge --info

Description thunder367 2013-12-31 17:41:12 UTC
Does not work automatically switch to sleep mode when the battery is low;
not output notification of low / full charge, the transition to sleep mode.

Reproducible: Always

Steps to Reproduce:
1.Discharge the battery before any critical level at which the notebook should go into hibernation

Actual Results:  
Notebook crashes off.

Expected Results:  
You should see a notification about a low battery, the laptop should go into hibernation.

Сommand execution

dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.Suspend boolean:true

switches the notebook into hibernation.
Comment 1 thunder367 2013-12-31 17:42:40 UTC
Created attachment 366648 [details]
make.conf
Comment 2 thunder367 2013-12-31 17:44:44 UTC
Created attachment 366650 [details]
emerge --info
Comment 3 thunder367 2013-12-31 17:49:31 UTC
# less /usr/lib/systemd/system-sleep/notify-upower.sh

#!/bin/bash
[ "$1" = "post" ] && exec /usr/bin/dbus-send    \
        --system --type=signal                  \
        --dest=org.freedesktop.UPower           \
        /org/freedesktop/UPower                 \
        org.freedesktop.UPower.Resuming
exit 0
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-06-05 03:03:10 UTC
No longer relavent bug with >=sys-power/upower-0.99.0, because of the dropped .sh script, because of the dropped hibernate/suspend support