User Tools

Site Tools


laptop_hacks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
laptop_hacks [2017/08/16 19:04] – [Laptop Hacks] adminlaptop_hacks [2018/07/15 18:08] – [Power Disconnect/Connect events] admin
Line 47: Line 47:
  
   # if there's a battery battery then listen on dbus for a/c connect/disconnect:   # if there's a battery battery then listen on dbus for a/c connect/disconnect:
-  upower -e |grep -q battery && power-monitor &+  upower -e |grep -q battery && 
 +      power-monitor & 
 +      xfce4-power-manager & 
 +  }
  
 Where, ''power-monitor'' is this bit of python which keeps an eye on remaining battery life (and hibernate as it gets low) but also runs the ''low-power'' script when the power/battery status changes: Where, ''power-monitor'' is this bit of python which keeps an eye on remaining battery life (and hibernate as it gets low) but also runs the ''low-power'' script when the power/battery status changes:
Line 54: Line 57:
      
   # needs to run as normal user under X (so that battery-alarm can popup)   # needs to run as normal user under X (so that battery-alarm can popup)
 +  # requires dbus-python
      
   import gobject, os, sys   import gobject, os, sys
laptop_hacks.txt · Last modified: 2020/02/08 16:41 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki