Difference between revisions of "BackLight"

From ArmadeusWiki
Jump to: navigation, search
(Usage)
m (Introduction)
Line 3: Line 3:
 
==Introduction==
 
==Introduction==
  
Backlight control is done through the i.MXL/i.MX27 integrated backlight PWM (inside LCDC module). The output signal of this PWM is redirected to the CONTRAST pin of your LCD connector.
+
Backlight control is done through the i.MX integrated backlight PWM (inside LCDC module). The output signal of this PWM is redirected to the CONTRAST 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.
 
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.

Revision as of 17:48, 15 August 2010

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.MX integrated backlight PWM (inside LCDC module). The output signal of this PWM is redirected to the CONTRAST 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

This driver is now installed by default on the standard Armadeus rootfs.

Usage

On your APF, load the module:

 # modprobe imx_bl
 i.MX Backlight driver v0.X initialized.

All backlight controls are done through the /sys interface:

 # ls /sys/class/backlight/imx-bl/
 actual_brightness  max_brightness     subsystem
 brightness         power              uevent
  • To see the actual brightness:
 # cat /sys/class/backlight/imx-bl/actual_brightness
  • To see the max allowed brightness:
 # cat /sys/class/backlight/imx-bl/max_brightness
  • To change the brightness:
 # echo 100 > /sys/class/backlight/imx-bl/brightness

Examples

  • There is a small test script (shell) in target/linux/modules/backlight/test/
  • For a C/SDL example, take a look at target/demos/backlight_control/

Links