Patch webOS Brightness

From WebOS Internals
Revision as of 15:37, 24 July 2009 by NetWhiz (talk | contribs) (→‎Modifying Brightness Slider: - Updated line for webOS 1.1)
Jump to navigation Jump to search

Works with: 1.0.x, 1.1

Modifying Brightness Slider

Obviously this isn't too big a hack, and it honestly barely makes a difference, but people have complained about the lowest brightness being too bright.

As it turns out, the slider goes from 10-100 as the default. You can change this from 0-100 very easily, if you don't mind not having a keyboard backlight at the lowest settings. It is only slightly less bright than the original maximum, but it's such an easy change that people might want to do it anyway.

/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js

webOS 1.0.x: In line 27, change the 10 to 0.

webOS 1.1: In line 34, change the 10 to a 1 (or 0).

Suggested Future Mods

I don't know that it'll be possible, it seems to be only one system call, but it'd be great if someone could figure out how to separate screen brightness and keyboard backlight brightness.

Question: Any idea how to have screen brightness at 0 and still have the keyboard backlight on?

Possible Answer: It's possible to manually hit the keyboard LEDs at any brightness desired. The devices are:

/sys/class/leds/kbd_bl_led_center/brightness 
/sys/class/leds/kbd_bl_led_left/brightness
/sys/class/leds/kbd_bl_led_right/brightness

(-pEEf)