Laptop Specific Utilities
From Gentoo Linux Wiki
Contents |
[edit] Tools
[edit] laptop-mode-tools
[edit] Helper Scripts
These are examples of scripts that can be used from sys-power/acpid or sys-power/powersave.
[edit] Eject CDROM
| File: eject_cdrom.sh |
#/bin/bash /usr/bin/eject /dev/cdrom1 |
[edit] Turn off display
The following script requires x11-apps/xset.
| File: turn_off_display.sh |
#!/bin/bash /usr/bin/xset -display :1.0 dpms force off |
[edit] Toggle synaptics touchpad
The following script requires Synaptics Touchpad be configured properly (with SHMConfig turned on in xorg.conf).
| File: toggle_touchpad.sh |
#/bin/bash if(synclient -l | grep -e "TouchpadOff" | grep -e "0" > /dev/null) ; then synclient TouchpadOff=1 else synclient TouchpadOff=0 fi |
