View Single Post
Posts: 539 | Thanked: 165 times | Joined on Feb 2010 @ Berlin, Germany
#187
Originally Posted by mjec View Post
You probably want to add the command to the sudoers file and then have

echo "" && sudo echo 2 > /sys/class/backlight/acx565akm/brightness

as your DCE script. We begin with echo "" as DCEW doesn't like getting no output.
Might be more useful having the empty echo as a result of the actual command. This way you get noticed in case something goes wrong:

sudo echo 2 > /sys/class/backlight/acx565akm/brightness && echo "" || echo "Error!"

In case everything was OK the output is empty, if there was any error, the output will be "Errror!".
 

The Following User Says Thank You to x-lette For This Useful Post: