![]() |
2010-12-12
, 16:40
|
Posts: 152 |
Thanked: 58 times |
Joined on Oct 2010
@ void
|
#42
|
Exec=osso-term -e adom Terminal=true
![]() |
2012-01-28
, 07:53
|
|
Posts: 165 |
Thanked: 18 times |
Joined on Jun 2010
|
#43
|
if [ "$QBW_EXEC_REASON" == "QBW_STARTUP_UPDATE" ]; then # add here switch on instructions gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 2 echo "Level 2"; exit 1; fi; if [ "$QBW_CURRENT_RESULTS_TEXT" == "Level 2" ]; then # add here switch off instructions gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 5 echo "Level 5"; exit 0; else # add here switch on instructions gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 2 echo "Level 2"; exit 1; fi;
![]() |
2012-01-30
, 21:57
|
|
Posts: 165 |
Thanked: 18 times |
Joined on Jun 2010
|
#44
|
gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 1 gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 5
![]() |
2012-02-02
, 09:32
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#45
|
#!/bin/sh B=$(gconftool-2 -g /system/osso/dsm/display/display_brightness) if [ $B == 1 ]; then gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 5 fi if [ $B == 5 ]; then gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 1 fi
[Desktop Entry] Version=1.0.0 Encoding=UTF-8 Name=Brightness Exec=sh /home/user/change_brightness.sh Icon=general_brightness Type=Application X-App-Loading-Image=none
The Following User Says Thank You to nicolai For This Useful Post: | ||
![]() |
2012-02-04
, 09:46
|
|
Posts: 165 |
Thanked: 18 times |
Joined on Jun 2010
|
#46
|
Hi moudy91,
create a shellscript /home/user/change_brightness.sh
Create a .desktop file (/usr/share/applications/hildon/change_brightness.desktop)Code:#!/bin/sh B=$(gconftool-2 -g /system/osso/dsm/display/display_brightness) if [ $B == 1 ]; then gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 5 fi if [ $B == 5 ]; then gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 1 fi
Now you can add a shortcut for this "Brightness-App" on you desktop.Code:[Desktop Entry] Version=1.0.0 Encoding=UTF-8 Name=Brightness Exec=sh /home/user/change_brightness.sh Icon=general_brightness Type=Application X-App-Loading-Image=none
![]() |
2012-02-05
, 00:18
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#47
|
![]() |
2012-02-05
, 08:20
|
|
Posts: 165 |
Thanked: 18 times |
Joined on Jun 2010
|
#48
|
what happens if you execute the script "by hand"?
In xterm enter:
sh /home/user/change_brightness.sh
![]() |
2012-02-05
, 12:51
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#49
|
The Following User Says Thank You to nicolai For This Useful Post: | ||
![]() |
2012-02-05
, 13:23
|
|
Posts: 165 |
Thanked: 18 times |
Joined on Jun 2010
|
#50
|
Thanks for the description!
Cheers,
Andi