Difference between revisions of "Patch webOS Brightness"

From WebOS Internals
Jump to navigation Jump to search
(Added luna-send commands for keyboard and display brightness)
(No restart is necessary.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{template:patch}}
 
Works with: 1.0.x, 1.1
 
Works with: 1.0.x, 1.1
  
Line 11: Line 12:
  
 
webOS 1.1: In line '''34''', change the 10 to a 1 (or 0).
 
webOS 1.1: In line '''34''', change the 10 to a 1 (or 0).
 +
 +
No restart is necessary.
  
 
= Suggested Future Mods=
 
= Suggested Future Mods=
Line 32: Line 35:
 
luna-send -n 1 palm://com.palm.power/backlight/set '{"display":{"brightness":10}}'
 
luna-send -n 1 palm://com.palm.power/backlight/set '{"display":{"brightness":10}}'
  
I made an app that functions like the screen brightness palm app, that allows these to be adjusted without shell access. I'll post a link as an example once I get dev access and have a thread in the homebrew forum for it.
+
I made an app that functions like the screen brightness palm app, that allows these to be adjusted without shell access. Forum thread with ipkg download (look at the source for an example on how to use the above luna calls in an app): http://forums.precentral.net/homebrew-apps/196412-brightness-unlinked-0-0-3-a.html.
 
--[[User:Zinge|Zinge]] 11:15, 2 August 2009 (UTC)
 
--[[User:Zinge|Zinge]] 11:15, 2 August 2009 (UTC)

Latest revision as of 10:38, 7 August 2009


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).

No restart is necessary.

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)


Answer: Here are the luna-send lines to hit the keyboard and display brightnesses separately.

luna-send -n 1 palm://com.palm.power/backlight/set '{"keypad":{"brightness":10}}'

luna-send -n 1 palm://com.palm.power/backlight/set '{"display":{"brightness":10}}'

I made an app that functions like the screen brightness palm app, that allows these to be adjusted without shell access. Forum thread with ipkg download (look at the source for an example on how to use the above luna calls in an app): http://forums.precentral.net/homebrew-apps/196412-brightness-unlinked-0-0-3-a.html. --Zinge 11:15, 2 August 2009 (UTC)