Hello all, I've posted an update of my findings about the user space
daemon to my blog, but I'll share here the basics of what is involved.
Basically there's no need for a daemon anymore, we can just use acpid
and the sysfs file system.

To make this work, create the following two files in /etc/acpi/events
(could vary based on installation):

hdaps_unload (filename can be anything you want)

event=HAPS 00000080
action=echo 30000 > /sys/block/sd?/device/unload_heads

Replace the '?' with the block device that you want to protect. (i.e,
sda, sdb)

hdaps_load (filename can be anything you want)

event=HAPS 00000081 
action=echo 0 > /sys/block/sd?/device/unload_heads

The unload event file basically tells us the drives to unload its heads
immediately. The max time is 30 seconds. The load file will immediately
reload the hard drive heads by sending 0 to the 'unload_heads' file.

I'm also attaching the latest version of the patch, which adds two new
sysfs files so you can view status and change the protection level on
the fly.  Please do let me know if it works for you!  See the updated
blog post for more info if needed.  Thanks

** Patch added: "Should at least compile with all 3.8 series kernels"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/116045/+attachment/3658240/+files/toshiba_hdaps-3.8.10.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/116045

Title:
  Accelerometer not working

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/116045/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to