Difference between revisions of "BackLight"
From ArmadeusWiki
m (→Installation) |
(Bettter config desc) |
||
Line 1: | Line 1: | ||
==Installation== | ==Installation== | ||
$ make linux-menuconfig | $ make linux-menuconfig | ||
− | Activate '''i.MXL backLight driver''' in '''Device Drivers -> Armadeus specific drivers -> Support for specific Armadeus drivers''' | + | * Activate '''Lowlevel Backlight control''' in '''Device Drivers ---> Graphics support ---> Backlight & LCD device support''' |
− | If built in kernel, reflash your kernel image | + | * Activate '''i.MXL backLight driver''' in '''Device Drivers ---> Armadeus specific drivers ---> Support for specific Armadeus drivers''' |
+ | * If built in kernel, reflash your kernel image; if selected as module either reflash your rootfs or copy ''backlight.ko'', ''imx_bl.ko'' and ''.../lib/modules/2.6.18.1/modules.dep'' to your target. Then | ||
$ modprobe imx_bl | $ modprobe imx_bl | ||
Revision as of 18:53, 13 May 2007
Installation
$ make linux-menuconfig
- Activate Lowlevel Backlight control in Device Drivers ---> Graphics support ---> Backlight & LCD device support
- Activate i.MXL backLight driver in Device Drivers ---> Armadeus specific drivers ---> Support for specific Armadeus drivers
- If built in kernel, reflash your kernel image; if selected as module either reflash your rootfs or copy backlight.ko, imx_bl.ko and .../lib/modules/2.6.18.1/modules.dep to your target. Then
$ modprobe imx_bl
Usage
All backlight controls are done through the /sys interface:
# ls /sys/class/backlight/imxl-bl/ actual_brightness max_brightness subsystem brightness power uevent
Consult the actual brightness:
# cat /sys/class/backlight/imxl-bl/actual_brightness
Consult the max allowed brightness:
# cat /sys/class/backlight/imxl-bl/max_brightness
Change brightness:
# echo 100 > /sys/class/backlight/imxl-bl/brightness