Search:  
Gentoo Wiki

Laptop_Specific_Utilities

Contents

Tools

laptop-mode-tools

app-laptop/laptop-mode-tools.

Helper Scripts

These are examples of scripts that can be used from sys-power/acpid or sys-power/powersave.

Eject CDROM

File: eject_cdrom.sh
#/bin/bash
/usr/bin/eject /dev/cdrom1

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

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
Retrieved from "http://www.gentoo-wiki.info/Laptop_Specific_Utilities"

Last modified: Thu, 28 Aug 2008 06:08:00 +0000 Hits: 7,955