maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] EBD - Enhanced Backlight Daemon (https://talk.maemo.org/showthread.php?t=70797)

nightfire 2011-03-08 02:44

[Announce] EBD - Enhanced Backlight Daemon
 
1 Attachment(s)
Hey everyone,

I'd like to introduce EBD - the Enhanced Backlight Daemon.

It monitors the N900's light sensor, and adjusts the backlight according to ambient light conditions.. a feature I was surprised to find missing on release... and again with each update.

EDIT: As others have posted, the feature does exist! Mine just wasn't working. In any case, I'll continue to improve this daemon as more customizable alternative. If nothing else, at least it's GPL, replacing the functionality in MCE.

The daemon itself is written in C and is optimized to reduce its footprint; it draws less than 1MB ram (DBUS aware), and only wakes up when the screen is on.

At the moment, there is no configuration, but I'll add that in the days/weeks to come. Note that it will fight with other LCD brightness events, so if you have a backlight control panel present, it won't work properly while EBD is running. I hope to fix this in a future release.

This is my first official package, so bear with me. I've attached the .deb, until I get set up on the Maemo repositories. It works fine for me, but remember to backup your device before installing anything from outside the stable tree!

To install it, just run (as root):

Code:

dpkg -i ebd_1.1-1_armel.deb
The help sheet:

Code:

10 root@glamb-n900 [~]# ebd -h
EBD - Enhanced Backlight Daemon

The Enhanced Backlight Daemon monitors ambient light conditions using
the device's light sensor, and adjusts the LCD backlight accordingly.

Usage: ebd [-vfVh]
        -v, --verbose          Run in verbose mode
        -f, --foreground        Run in foreground (don't daemonize)
        -V, --version          Display version information
        -h, --help              Display this help sheet

Just a note - if you kill the process (/etc/init.d/ebd stop), you can relaunch it in the foreground as root. In verbose mode, it tells you a bit about what's going on.

Comments/feedback appreciated!

casketizer 2011-03-08 02:55

Re: [Announce] EBD - Enhanced Backlight Daemon
 
What am I missing? My backlight changes all the time when I switch on lights etc.
What does this do different?

lifenexus 2011-03-08 03:11

Re: [Announce] EBD - Enhanced Backlight Daemon
 
im guessing your talking abt the keyboard backlight. this is for lcd back light
Edit: actually even my backlight changes based on the ambient light conditions. never noticed it a lot though. hehe

nman 2011-03-08 03:23

Re: [Announce] EBD - Enhanced Backlight Daemon
 
+1, my n900 already does this...but I'd love to be able to tweak it!

ajack 2011-03-08 03:43

Re: [Announce] EBD - Enhanced Backlight Daemon
 
Can I make a suggestion to this wonderful program?

Instead of using the full brightness, may scale the minimum (current ebd default) and maximum to the maximum brightness as set in the brightness settings of the N900.

Hope you understand what I'm suggesting. Love the app... :)

nightfire 2011-03-08 04:15

Re: [Announce] EBD - Enhanced Backlight Daemon
 
Hmmm.. mine definitely was not adjusting to ambient light, which is why I wrote this.

For everyone whose backlight already auto-adjusts, do you know where the setting is to enable it? I can't find one anywhere and I'm running PR1.3.

glabifrons 2011-03-08 04:18

Re: [Announce] EBD - Enhanced Backlight Daemon
 
Quote:

Originally Posted by casketizer (Post 962880)
What am I missing? My backlight changes all the time when I switch on lights etc.
What does this do different?

Mine too... in fact I find it annoying as I frequently find myself moving my thumb over the sensor and making the display go dim while I'm still in bright light. I have to be careful how I hold the device so the display stays bright enough to be comfortable.
I even noticed it today at work when I walked from a brightly lit part of a hallway to a slightly less well lit part - and my display got considerably dimmer. I had to tilt it towards the light to get the display to brighten back up.

Don't all of 'em do this? (running 1.3 firmware)

glabifrons 2011-03-08 04:21

Re: [Announce] EBD - Enhanced Backlight Daemon
 
Quote:

Originally Posted by ajack (Post 962893)
Can I make a suggestion to this wonderful program?

Instead of using the full brightness, may scale the minimum (current ebd default) and maximum to the maximum brightness as set in the brightness settings of the N900.

Hope you understand what I'm suggesting. Love the app... :)

I like that idea... I've noticed mine overreacts and over-dims when the light around it dims slightly. Being able to adjust the gamma (so to speak) would be nice.

nightfire 2011-03-08 04:25

Re: [Announce] EBD - Enhanced Backlight Daemon
 
Ok, well looks like at some point a year ago I must have disabled my auto-adjustment settings and forgot. :)

Well. Now I feel a little silly.

But, I suppose I can add more functionality and intelligence into ebd to make it superior to the stock auto-adjustment. Keep the suggestions coming everyone; I'll implement them as I have time.

nightfire 2011-03-08 04:32

Re: [Announce] EBD - Enhanced Backlight Daemon
 
Quote:

Originally Posted by ajack (Post 962893)
Can I make a suggestion to this wonderful program?

Instead of using the full brightness, may scale the minimum (current ebd default) and maximum to the maximum brightness as set in the brightness settings of the N900.

Hope you understand what I'm suggesting. Love the app... :)

I think I can make that work. It was my original intention but turned out to be tricky because a lot of processes adjust the brightness level on various events.

At worst, I'll implement an applet to make quick adjustments to the minimum and maximum (ie. LCD profiles).


All times are GMT. The time now is 16:57.

vBulletin® Version 3.8.8