Adjusting brightness and checking battery level from the con

Share uncovered secrets, useful notes, guides and hacks!

Adjusting brightness and checking battery level from the con

Postby Garold » Thu Dec 20, 2007 12:44 pm

How to adjust the backlighting:
echo "7" > /sys/class/backlight/dcon-bl/brightness

Replace 7 with any number between 0 and 15 (inclusive). 0 is off, 15 is the brightest setting.


How to change between color and monochrome:
echo "0" > /sys/devices/platform/dcon/output
echo "1" > /sys/devices/platform/dcon/output

0 will set it to color, 1 will set it to mono.


How to check the battery level:
cat /sys/class/power_supply/olpc-battery/capacity

This will give you a percentage.


You'll need to be root to modify the screen settings.
Garold
 
Posts: 15
Joined: Mon Dec 24, 2007 3:31 pm

Postby joemcg » Wed Jan 02, 2008 9:46 am

Good stuff, thank you.
joemcg
 
Posts: 19
Joined: Mon Nov 12, 2007 9:58 am


Return to Tips, Tricks & Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

cron