Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 496604 - 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
Summary: sys-power/upower-0.9.21 fails to go into hibernation mode, does not display a...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-31 17:41 UTC by thunder367
Modified: 2014-06-05 03:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
make.conf (make.conf,3.59 KB, text/plain)
2013-12-31 17:42 UTC, thunder367
Details
emerge --info (emerge.info.txt,6.85 KB, text/plain)
2013-12-31 17:44 UTC, thunder367
Details

Note You need to log in before you can comment on or make changes to this bug.
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