# Re: \[patch\] added brightness feature to lcd class.

- From: Pavel Machek \<hidden\>
- Date: 2009-11-07 16:48:40 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2009/11/1321130
- Thread: https://ratatoskr.run/lkml/2009/11/1318593/t.md

```text
On Sat 2009-11-07 21:43:50, InKi Dae wrote:
> Thank you for your comments.
> 
> using backlight is good way in case of TFT-LCD Panel.
> because TFT-LCD Panel needs backlight device to light up.
> 
> but AMOLED LCD Panel doesn't need backlight device because lighting up itself.

I know. So what?

User wants to set brightness. Why should userspace know/care if it is
TFT or AMOLED?

I have this script:

#!/bin/bash
echo $1 > /sys/class/backlight/*/brightness 

why should I have to rewrite it just because you decided amoled is
special?

Kernel is expected to provide hw abstraction...

									Pavel

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