xspdwn Homepage

xspdwn

xspdwn is a small X program to conveniently (automaticly) spin down your ide hard drive into sleep mode. This is useful to reduce battery consumption and noise of the machine, typically a laptop. xspdwn needs linux and an ide drive (/dev/hda is right now hardcoded) to work correctly.

Download

xspdwn-0.3.tar.gz Announce lsm

For people that don't have the X and kernel header files, and therefore can't compile xspdwn, here a binary that I created on my system. It might or might not work for you. xspdwn-binary

(Here also the previous version: xspdwn-0.2.tar.gz Announce lsm)

Integration

GUI:

Somebody asked if it was possible to dock xspdwn into the KDE panel. It cannot, and I will not include this functionality into the program soon. But there is an even more dirty hack than xspdwn itself that gets pretty close to real docking:

xspcat.sh (and xspmkfifo.sh) are part of a mechanism that might deserve the name "poor man's docking": I'll explain it for KDE, it should work almost the same way for gnome or any other window manager / panel combination.

You can create an application-link (PXSP.kdelnk is my example) that swallows "xspdwn" into the panel. If you click on the swallowed xspdwn it executes "xterm -e xspcat.sh" which gives you a window where you can key in the usual (cryptic) commands to xspdwn. There can be more then one such window.

You can opne the directory of the unpacked xspdwn distribution with the KDE file manager and drag PXSP.kdelnk into kpanel.

NOTE: You have to terminate your commands in the xspcat.sh window with return, because of the buffering policy of an xterm.

SHELL:

you can also send commands to xspdwn by issuing commands like

echo "4 " > /var/run/xspdwn.cmd

in a shell or as a command attached to some icon.