
Your Linux Self-Help Desk. A selection of mostly Linux related tutorials, howtos, fixes, news and more.
# automaticly disable touchpad when usb mouse present
# (c) 2008 D. Jansen <>
# published under the GNU GPL 3.0, other licenses on request
SUBSYSTEM=="usb", SYSFS{product}=="*Mouse*"
ACTION=="add", SUBSYSTEM=="input", ID_CLASS="mouse", RUN+="/home/djtm/scripts/touchpad-udev"
ACTION=="remove", SUBSYSTEM=="input", ID_CLASS="mouse", RUN+="/home/djtm/scripts/touchpad-udev"
The new version no longer requires -- Option "SHMConfig" "On" -- in xorg.conf
#!/bin/bash
# automaticly disable touchpad when usb mouse present
# (c) 2008 D. Jansen <>
# published under the GNU GPL 3.0, other licenses on request
if [ "$(grep -e Mouse /proc/bus/input/devices)" ]; then
xinput set-int-prop "Synaptics Touchpad" "Synaptics Off" 8 1
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 8 1
#synclient TouchpadOff=1
else
xinput set-int-prop "Synaptics Touchpad" "Synaptics Off" 8 0
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Synaptics Off" 8 0
#synclient TouchpadOff=0
fi
Einfach ein Verzeichnis $HOME/ram erzeugen und in die /etc/fstab einfügen:
und schon habt ihr eure ganz persönliche Ramdisk, die ihr selbst (un)mounten könnt.
Eine schlanke Alternative zu Workrave ist xwrits. Man muss es dafür komplizierter Starten. Aber ich habe hier eine ganz ordentliche Vorlage:Sperrt nach t=59 Minuten für b=1 Minute den Bildschirm. Das sollte das allermindeste sein. Mehr Optionen erfahrt ihr über man xwrits.
Die Zeit sollte man aufstehen, umhergehen und zumindest in die Ferne gucken. Und etwas Handgymnastik schadet auch nicht.
Unter KDE lasse ich es dann automatisch starten: Durch Rechtsklick auf dem Desktop eine Neue Verknüpfung zu einem Programm anlegen, den obigen Befehl einfügen und unter ~/.kde/Autostart/xwrits.desktop ablegen. Ab sofort startet es bei jedem Sitzungsstart gleich mit.
Falls xwrits nicht gefällt, ist hier eine Liste mit weiteren Alternativen wie z.B. RSIBreak für KDE.
#!/bin/sh
# inid 1.0
# (C) 2004 D. Jansen
# published under the GNU GPL 3.0
# for a copy see http://www.gnu.org/copyleft/gpl.html
if [ $# != 1 ] && [ $# != 2 ] ; then
echo Error: $# arguments given, but must be 1 or 2.
echo "Please put braces around the services if multiple."
echo ex. \#inid \"gpm apache cupsys\" stop;
exit 1;
fi
if [ $2 ]; then
arg=$2
else
arg=start
fi
for daemons in $1;
do
if [ -e /etc/init.d/$daemons ]; then
sudo /etc/init.d/$daemons $arg;
# you can use ". " instead of "sudo "
# if you only use it as root
else
echo /etc/init.d/$daemons not found!
fi
done
#!/bin/sh
/sbin/grub --no-floppy --batch </dev/null 2>/dev/null
root (hd0,1)
savedefault --once --default=7
quit
EOT
su -c "echo 1 > /sys/devices/system/cpu/cpu?/cpufreq/`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`/ignore_nice_load"