View Single Post
Posts: 562 | Thanked: 1,732 times | Joined on Jan 2010 @ NYC
#13
I’ve seen some post of people getting this to work, but it doesn’t seem to work for me. I’m trying to get some command line code to run from the desktop (or run from the power button menu).

Here’s what I have so far

Desktop button, which is located at /usr/share/applications/hildon/
Code:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Terminal=true
Name=LowBrite
Exec=/usr/bin/lowBrite2.sh
Icon=
X-Window-Icon=
X-Osso-type=application/x-excutable
I've also tried:
without - Terminal=true
without - X-Window-Icon=
without - X-Osso-type=application/x-excutable[/code]

Here's the sh file, which is located at /usr/bin/:
Code:
#!/bin/sh

sudo gainroot sh -c 'echo 1 > /sys/class/backlight/acx565akm/brightness'
I've also tried:
echo 'echo 1 > /sys/class/backlight/acx565akm/brightness'
echo "echo 1 > /sys/class/backlight/acx565akm/brightness"
"echo 1 > /sys/class/backlight/acx565akm/brightness"
echo 1 > /sys/class/backlight/acx565akm/brightness


I applied chmod +x lowBrite2.sh

What am I doing wrong? And of course the icon/link has just disappeared from the launcher and desktop.

If anyone can help I would be most appreciative

thanks
x

Last edited by xman; 2010-09-05 at 18:21. Reason: Corrected reversed file locations