View Single Post
Posts: 38 | Thanked: 33 times | Joined on Aug 2010 @ Bangalore, India
#17
There's another method that works great which I saw based on this:

http://talk.maemo.org/showpost.php?p...1&postcount=16

From the above link (disable_ts.zip)

If you put this in a script file:
Code:
sh -c 'echo "sleep 1; echo 1 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_ts" | sudo gainroot'
echo 1 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_ts should fail as permission denied if executed as normal user since it is modifying a sysfs file. But the above method of piping to sudo gainroot works!
 

The Following 2 Users Say Thank You to kitwalker For This Useful Post: