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
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 rotate_ daemon
start-stop-daemon --stop --quiet --signal TERM --name rotate_daemon --exec /usr/bin/
/etc/acpi/ swivel- panel-down. sh rotate_ daemon
start-stop-daemon --start --quiet --background --name rotate_daemon --exec /usr/bin/
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?