The Following 2 Users Say Thank You to NightShift79 For This Useful Post: | ||
![]() |
2011-02-08
, 11:02
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#62
|
The Following User Says Thank You to dr_frost_dk For This Useful Post: | ||
![]() |
2011-02-08
, 14:50
|
Posts: 105 |
Thanked: 73 times |
Joined on Jan 2011
|
#63
|
![]() |
2011-02-08
, 15:25
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#64
|
The Following User Says Thank You to dr_frost_dk For This Useful Post: | ||
![]() |
2011-02-08
, 15:41
|
Posts: 105 |
Thanked: 73 times |
Joined on Jan 2011
|
#65
|
x=$(cat /home/user/custom_brightness_settings) level1=40 level2=110 level3=160 level4=255 cx=$QBW_CLICK_X if [ $cx -ge 1 -a $cx -le 27 ];then x=$(expr $x - 20);fi if [ $cx -ge 28 -a $cx -le 54 ];then x=$level1;fi if [ $cx -ge 55 -a $cx -le 81 ];then x=$level2;fi if [ $cx -ge 82 -a $cx -le 108 ];then x=$level3;fi if [ $cx -ge 108 -a $cx -le 135 ];then x=$level4;fi if [ $cx -ge 136 -a $cx -le 162 ];then x=$(expr $x + 20);fi if [ $x -le 2 ];then x=2;fi if [ $x -ge 255 ];then x=255;fi echo $x " " echo $x >/home/user/custom_brightness_settings echo "cat /home/user/custom_brightness_settings >/sys/class/backlight/acx565akm/brightness" | sudo gainroot > /dev/null
The Following User Says Thank You to Tinukedaya For This Useful Post: | ||
![]() |
2011-02-08
, 16:47
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#66
|
Actually I just tried the small bar of mine and updated the code for myself. I kinda love it for the small size.
And. I just tried how would the circle look like even smaller (love multitasking on this "phone").. Think you can amend it for 100x100 size as well? I would have hard time deciding which of them to use, but would love to see it work in that size and can't really update that one here....
btw: to easen your work, this is the updated code for the small bar
Code:x=$(cat /home/user/custom_brightness_settings) level1=40 level2=110 level3=160 level4=255 cx=$QBW_CLICK_X if [ $cx -ge 1 -a $cx -le 27 ];then x=$(expr $x - 20);fi if [ $cx -ge 28 -a $cx -le 54 ];then x=$level1;fi if [ $cx -ge 55 -a $cx -le 81 ];then x=$level2;fi if [ $cx -ge 82 -a $cx -le 108 ];then x=$level3;fi if [ $cx -ge 108 -a $cx -le 135 ];then x=$level4;fi if [ $cx -ge 136 -a $cx -le 162 ];then x=$(expr $x + 20);fi if [ $x -le 2 ];then x=2;fi if [ $x -ge 255 ];then x=255;fi echo $x " " echo $x >/home/user/custom_brightness_settings echo "cat /home/user/custom_brightness_settings >/sys/class/backlight/acx565akm/brightness" | sudo gainroot > /dev/null
![]() |
2011-02-08
, 16:56
|
Posts: 105 |
Thanked: 73 times |
Joined on Jan 2011
|
#67
|
![]() |
2011-02-08
, 17:18
|
|
Posts: 1,503 |
Thanked: 2,688 times |
Joined on Oct 2010
@ Denmark
|
#68
|
The Following 2 Users Say Thank You to dr_frost_dk For This Useful Post: | ||
![]() |
2011-02-08
, 18:34
|
Posts: 105 |
Thanked: 73 times |
Joined on Jan 2011
|
#69
|
![]() |
2011-02-08
, 18:49
|
|
Posts: 417 |
Thanked: 200 times |
Joined on Apr 2010
@ Germany
|
#70
|
![]() |
Tags |
brightness, display, light sensor, screen |
Thread Tools | |
|
... I reversed + and -
Here's the fixed design.
...and sure you can use it in your zip.