View Single Post
Posts: 38 | Thanked: 33 times | Joined on Aug 2010 @ Bangalore, India
#9
Originally Posted by cooperpeng View Post
It like good idea, but it didn't work.
I try
Code:
sh -c 'echo 0 > /sys/class/backlight/acx565akm/brightness | sudo gainroot'
sh: cannot create /sys/class/backlight/acx565akm/brightness: Permission denied
Root shell enabled

I see the link, get the file "disable_ts.desktop". The code is " Exec=/bin/busybox sh -c 'echo "sleep 15; echo 1 > /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_ts" | sudo gainroot' "
so I try
Code:
/bin/busybox sh -c 'echo 0 > /sys/class/backlight/acx565akm/brightness | sudo gainroot'
But it was the same.
In fact, I just run my app.py using by cmd shortcuts launching. But it will modify /sys file so that be permission deny. If it's running in terminal is good by root privilege.
Use it this way:

Code:
sh -c 'echo "sleep 1; echo 0 > /sys/class/backlight/acx565akm/brightness" | sudo gainroot'
 

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