Skip to contentSkip to conversation

Advice on backlight support

DISCUSSION Rodolfo Giometti 3 participants 3 messages Feb 21, 2007 – Feb 25, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I'd like to add backlight support for input devices since my custom board has a backlighted mini keyboard.

It could be acceptable to move the code from drivers/video/backlight/ to drivers/backlight/ renaming the "Backlight & LCD" name into "Backlight" and adding two new entries "LCD" and, maybe, "Input" (or something like that?).

Thanks in advance,

Rodolfo

Signature · 4 lines
GNU/Linux Solutions                  e-mail:    [email protected]
Linux Device Driver                             [email protected]
Embedded Systems                     		[email protected]
UNIX programming                     phone:     +39 349 2432127
#1 lore raw

Hello Rodolfo,

Quoted 4 lines · you

Hello,

I'd like to add backlight support for input devices since my custom board has a backlighted mini keyboard.

There's already generic indicator API, currently mostly known as
"[new] LED [classdev] API", even though it is already used for things like buzzers, vibrators, etc. Why wouldn't it be suitable for your case?

LCD and LCD backlight are special cases, as they actually should
track state of (abstract) FB device, and keeping their states in sync is pretty important for trivial PM and info accessibility, so worth doing on kernel level.

As for things like "light up keyboard if key was pressed, then light
down after timeout", or "light up backlight LCD on touchscreen touch, light down on timeout", that can be pretty well done in userspace, no?

Quoted 4 lines

It could be acceptable to move the code from drivers/video/backlight/ to drivers/backlight/ renaming the "Backlight & LCD" name into "Backlight" and adding two new entries "LCD" and, maybe, "Input" (or something like that?).

Yes, the fact that lcd.c (LCD power control) lives under backlight
dir, is a bit confusing. But they still has close relation to FB, after all.

Quoted 3 lines

Thanks in advance,

Rodolfo

Signature · 2 lines
Best regards,
 Paul                            mailto:[email protected]
#2 lore raw
In reply to Rodolfo Giometti

Hi!

Quoted 7 lines

I'd like to add backlight support for input devices since my custom board has a backlighted mini keyboard.

It could be acceptable to move the code from drivers/video/backlight/ to drivers/backlight/ renaming the "Backlight & LCD" name into "Backlight" and adding two new entries "LCD" and, maybe, "Input" (or something like that?).

Either that or using led class...

...keyboard backlight actually has selectable level in many cases, so I'm not sure how possible it is to do with led class...?
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html