ipaq-sleep backlight control
I did a code cleanup on ipaq-sleep and added the option to use your own backlight control script instead of gpe-conf to adjust brightness.
http://bugs.openembedded.org/show_bug.cgi?id=4101
I have since heard that all 2.6 devices use the standard /sys/class/backlight/*/ method to control brightness and that we don't need/want to support others.
So I have three options and I'd like some opinions:
1) Leave ipaq-sleep the way it is and ship a standard backlight control script that can be overridden/changed per machine. This still allows the legacy gpe-conf method (the default right now)
2) Have ipaq-sleep write directly to /sys/class/backlight/*/ to tweak the brightness and skip this whole mess
3) Have the option to select between 1&2 via conf file entry
Thanks!
Andrew
Hello,
Quoted 9 lines · On Thu, 20 Mar 2008 07:40:27 -0500 "Andrew Paulsen" <[email protected]>…
I did a code cleanup on ipaq-sleep and added the option to use your own backlight control script instead of gpe-conf to adjust brightness.
http://bugs.openembedded.org/show_bug.cgi?id=4101
I have since heard that all 2.6 devices use the standard
/sys/class/backlight/*/method to control brightness and that we don't need/want to support others.
Quoted 7 lines
So I have three options and I'd like some opinions:
1) Leave ipaq-sleep the way it is and ship a standard backlight control script that can be overridden/changed per machine. This still allows the legacy gpe-conf method (the default right now)
2) Have ipaq-sleep write directly to/sys/class/backlight/*/to tweak the brightness and skip this whole mess
3) Have the option to select between 1&2 via conf file entry
IMHO, ipaq-sleep should go to /dev/null. Long-term, it should be replaced by that mythical "machine daemon" which sometimes appear in blogs and ML conversations. Short-time, I wrote another, sane and efficient backlight control daemon, packages/backsaver/ in OE. That still leaves question on suspending device after timeout open though. My plan was to do gradual conversion (disable backlight control in ipaq-sleep, use backsaver for that, with it still using ipaq-sleep's config), but I had to put that on hold, as there're just too many things I have in works already...
Quoted 3 lines
Thanks!
Andrew
[]
Signature · 2 lines
Best regards, Paul mailto:[email protected]
Quoted 4 lines · On Thursday 20 March 2008 20:00:20 Paul Sokolovsky wrote:
IMHO, ipaq-sleep should go to
/dev/null. Long-term, it should be replaced by that mythical "machine daemon" which sometimes appear in blogs and ML conversations. Short-time, I wrote another, sane and efficient backlight control daemon, packages/backsaver/ in OE.
I fully agree to all points. I'll work on the long-term solution :)
Signature · 1 line
Dr. Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de
Quoted 9 lines · Andrew Paulsen
I did a code cleanup on ipaq-sleep and added the option to use your
own backlight control script instead of gpe-conf to adjust brightness.http://bugs.openembedded.org/show_bug.cgi?id=4101
I have since heard that all 2.6 devices use the standard
/sys/class/backlight/*/method to control brightness and that we don't need/want to support others.
Quoted 7 lines
So I have three options and I'd like some opinions:
1) Leave ipaq-sleep the way it is and ship a standard backlight control script that can be overridden/changed per machine. This still allows the legacy gpe-conf method (the default right now)
2) Have ipaq-sleep write directly to/sys/class/backlight/*/to tweak the brightness and skip this whole mess
3) Have the option to select between 1&2 via conf file entry
I made a generic backlight control script that emulates the old gpe-conf methods and enabled it by default. It can easily be overridden to the old behavior by changing ipaq-sleep.conf to point at /usr/bin/bl instead of /usr/bin/bl-ctrl. The code and recipe are in the bugtracker.
Quoted 4 lines
Thanks!
Andrew