Difference between revisions of "BackLight"
From ArmadeusWiki
(Bettter config desc) |
|||
Line 1: | Line 1: | ||
+ | This page will explain you how to configure and use the Linux driver controlling the BackLight of your LCD | ||
+ | |||
+ | ==Introduction== | ||
+ | Backlight control is done through the i.MXL integrated BackLight PWM. The output signal of this PWM is redirected to the BACKLIGHT pin of your LCD connector.<br> | ||
+ | In short the driver is mainly exporting a ''/sys'' interface to user space, allowing you to change the Duty Cycle of the PWM output signal and so the backlight intensity of the LCD. | ||
+ | |||
==Installation== | ==Installation== | ||
$ make linux-menuconfig | $ make linux-menuconfig | ||
Line 7: | Line 13: | ||
==Usage== | ==Usage== | ||
− | All backlight controls are done through the /sys interface: | + | All backlight controls are done through the ''/sys'' interface: |
# ls /sys/class/backlight/imxl-bl/ | # ls /sys/class/backlight/imxl-bl/ | ||
Line 13: | Line 19: | ||
brightness power uevent | brightness power uevent | ||
− | + | * To see the actual brightness: | |
# cat /sys/class/backlight/imxl-bl/actual_brightness | # cat /sys/class/backlight/imxl-bl/actual_brightness | ||
− | + | * To see the max allowed brightness: | |
# cat /sys/class/backlight/imxl-bl/max_brightness | # cat /sys/class/backlight/imxl-bl/max_brightness | ||
− | + | * To change the brightness: | |
# echo 100 > /sys/class/backlight/imxl-bl/brightness | # echo 100 > /sys/class/backlight/imxl-bl/brightness | ||
+ | |||
+ | ==Links== | ||
+ | * [http://en.wikipedia.org/wiki/Pulse-width_modulation#Power_delivery How a PWM is working] |
Revision as of 11:59, 14 September 2007
This page will explain you how to configure and use the Linux driver controlling the BackLight of your LCD
Contents
Introduction
Backlight control is done through the i.MXL integrated BackLight PWM. The output signal of this PWM is redirected to the BACKLIGHT pin of your LCD connector.
In short the driver is mainly exporting a /sys interface to user space, allowing you to change the Duty Cycle of the PWM output signal and so the backlight intensity of the LCD.
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
- To see the actual brightness:
# cat /sys/class/backlight/imxl-bl/actual_brightness
- To see the max allowed brightness:
# cat /sys/class/backlight/imxl-bl/max_brightness
- To change the brightness:
# echo 100 > /sys/class/backlight/imxl-bl/brightness