![]() |
Re: Desktop Command Execution Widget scripts
I'm trying to create a "switch" using this widget to lower the LCD brightness instantly just by clicking on the widget.
Using following command: Code:
echo 2 > /sys/class/backlight/acx565akm/brightness |
Re: Desktop Command Execution Widget scripts
wouldn't you need root rights for that? so probably adding
'| sudo gainroot' to the end? just a guess though. and would need rootsh installed. |
Re: Desktop Command Execution Widget scripts
I tried that but it didn't make any difference.... =(
|
Re: Desktop Command Execution Widget scripts
Quote:
|
Re: Desktop Command Execution Widget scripts
Quote:
Quote:
|
Re: Desktop Command Execution Widget scripts
Quote:
sudo echo 2 > /sys/class/backlight/acx565akm/brightness |
Re: Desktop Command Execution Widget scripts
What you really need is rootsh in front of command - it executes it with root priv. if you have rootsh installed. So:
rootsh echo 2 > ... |
Re: Desktop Command Execution Widget scripts
Quote:
PS: I'm very busy and so the next version is expected to some time in the end of march when I'll have more time. |
Re: Desktop Command Execution Widget scripts
I use the LIRC program which has a socket issue whenever the phone is restarted. The issue is resolved by running the following command lines:
sudo gainroot /etc/init.d/lirc start Is there anyway to use this widget to run these so I do not have to open a terminal when I want to use LIRC?? Maybe two widgets using an echo command for both? |
Re: Desktop Command Execution Widget scripts
Similary to #177 you might want to use
rootsh /etc/init.d/lirc start as commandline. Obviously you will need to have rootsh installed. |
| All times are GMT. The time now is 06:38. |
vBulletin® Version 3.8.8