Skip to content

Commit

Permalink
i3pmd: disabled hybrid sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
biiiep committed May 6, 2015
1 parent df12c8c commit fc5bcca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions scripts/i3pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ case "$1" in

dbus_send PowerOff boolean:true
;;
daemon)
# TODO start script to do power management
# needs to implement handler for
# - low and critical battery state
# - low and critical battery libnotify message
;;
*)
echo "$0 <suspend|hibernate|lock|reboot|poweroff>"
exit 1
Expand Down
3 changes: 2 additions & 1 deletion scripts/i3pmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def can_suspend(self):
return self.session_iface.CanSuspend() == 'yes'

def can_hybrid_sleep(self):
return self.session_iface.CanHybridSleep() == 'yes'
#return self.session_iface.CanHybridSleep() == 'yes'
return False

def can_hibernate(self):
return self.session_iface.CanHibernate() == 'yes'
Expand Down

0 comments on commit fc5bcca

Please sign in to comment.