Comment 13 for bug 159026

Revision history for this message
Craig Magina (craig.magina) wrote : Re: Lenovo Thinkpad x41 Tablet and X60 Tablet rotate events

Removing the hdaps_ec kernel module isn't needed and having it is probably beneficial as that module is the "IBM Hard Drive Active Protection System (HDAPS) driver." Granted I have not looked at the code to see if it really does park the hard drive if it detects the laptop is in a free fall. A better way to start and stop the rotate daemon would be to use the "start-stop-daemon" tool, instead of doing the random kill to ensure it is dead before starting a new one. The start-stop-daemon will actually check for such things for you. The lines I added are as follows:

/etc/acpi/swivel-panel-up.sh
start-stop-daemon --stop --quiet --signal TERM --name rotate_daemon --exec /usr/bin/rotate_daemon

/etc/acpi/swivel-panel-down.sh
start-stop-daemon --start --quiet --background --name rotate_daemon --exec /usr/bin/rotate_daemon

Thanks for the advice on where to put these lines as this configuration is working very well.

Anyone interested in packaging all of these configurations for the thinkpad tablets?