maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [OS2008] Advanced Backlight Statusbar Applet (https://talk.maemo.org/showthread.php?t=16531)

tso 2008-06-10 09:13

Re: Advanced Backlight Statusbar Applet
 
hmm, would it include a drag "handle" on the light controller to?

rm_you 2008-06-11 04:09

Re: Advanced Backlight Statusbar Applet
 
A "drag handle"? I was planning on trying to add light-meter support this release, but I'm still not exactly sure *how* it will handle the light-sensor, exactly. What do you mean by "drag handle"?

Also, anyone else who wants to suggest ways to interface with the light sensor, please do! I don't have an n810 myself, so I haven't thought about it much before now...

Quote:

Originally Posted by tso (Post 190360)
hmm, would it include a drag "handle" on the light controller to?


hvacengi 2008-06-18 14:52

Re: Advanced Backlight Statusbar Applet
 
Well, I've noticed that the default light sensor control seems to still run with this applet, until you adjust the light level from the applet which seems to override the built in setting. Then if you put it back in the dark, the screen dims (from the light, not from inactivity). Bringing it back into the light brightens the screen, but not to this applet's setting. I just confirmed this by turning the brightness all the way up (screen brightened), then putting it under my desk but still moving around the control panel (screen dimmed), then bringing it out into the light again (screen brightened), and then turning the brightness down by an eighth on this applet (screen brightened, rather than dimming).

I don't know how you would interface to override this default behavior (haven't looked into it myself either, might be an option over dbus). But, I do have an idea of how I'd like to control it. Unfortunately, by idea may get back to the issue of having the applet do to much, and it may just be way more detail than any one else really wants. I'd like to be able to set the equation for brightness for different segments of light level. That is, I'd like to be able to say "if lux < 50, then b = lux / 150 + 3, if lux < 150 & > 50 then b = lux / 100 + 15,..."

It's just an idea. Like I said, I don't know if it would be more work than should be done, or if any one else would use it.

GeneralAntilles 2008-06-18 15:15

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by hvacengi (Post 193147)
I don't know how you would interface to override this default behavior (haven't looked into it myself either, might be an option over dbus).

You can't and there isn't.

See bug #3237.

Slightly related is this feature request. For anybody who has an issue with this, moreDimmingOptions is a decent stop-gap until a more elegant solution can be reached (which will involve changes to a Nokia "entity" or two, so don't hold your breath :\).

thorbo 2008-06-18 16:30

Re: Advanced Backlight Statusbar Applet
 
Just ran the upgrade to this... and now the dreaded white screen of death restart is going on... just a heads up.

Thor

joepagiii 2008-06-18 16:40

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by thorbo (Post 193186)
Just ran the upgrade to this... and now the dreaded white screen of death restart is going on... just a heads up.

Thor

didnt happen here...

fiferboy 2008-06-18 18:06

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rm_you (Post 190327)
Unfortunately, that isn't how it works. The popdown-window event only happens WHEN the window is closing, which happens when my code tells it to hide the window, and my code doesn't know to hide the window unless it gets the right signal, which it doesn't in certain cases.

I could be wrong, but I tried this before and I just tried several variations on this again... If you think you can make it work, the code is in SVN or downloadable in the files section on the garage, and *please* submit a patch! :)

I have submitted a patch against version 0.9-2 in your garage tracker. The popdown signal actually does work the way I suggested it would, but you were only setting a flag in it. My patch is a single line that closes the window when it receives any sort of outside click.

Patch available here: https://garage.maemo.org/tracker/ind...=564&atid=2116


Okay, I didn't test my patch enough. rm_you, you are correct in your understanding of the popdown event. My testing involved clicking on the home screen as my "away tap" which works with your version as well. Colour me embarassed! I will let you know if I have any more "bright ideas"

thorbo 2008-06-18 18:52

Re: Advanced Backlight Statusbar Applet
 
As an update to my previous post #125, I did a reinstall (doh!) and just to try it -- since at this point I had nothing to lose, I installed the update... works fine now. Who knows.

Thor

summatusmentis 2008-06-18 21:52

Re: Advanced Backlight Statusbar Applet
 
0.9b in diablo works well. I like the hardware keys, and I like the dinging for the sound. However, n810 also supports 0 backlight, perhaps have the dialog read "n8x0 users beware!"

Benson 2008-06-18 21:55

Re: Advanced Backlight Statusbar Applet
 
But it doesn't bother N810 users, because they have a transflective screen.

summatusmentis 2008-06-18 22:36

Re: Advanced Backlight Statusbar Applet
 
it still completely turns off the backlight, making the screen essentially unreadable... very similar to a laptop screen.

I suppose in direct lighting it would be ok, but otherwise, makes the screen as useless as if it were completely off

Benson 2008-06-18 23:21

Re: Advanced Backlight Statusbar Applet
 
Well, you can find some direct lighting and get through; when I did it, I had to ssh/vnc in to make sure I didn't have anything important open. (And since I was in, just fixed the light instead of rebooting.)

summatusmentis 2008-06-18 23:49

Re: Advanced Backlight Statusbar Applet
 
I agree. I'm just saying, it might be nice to not completely exclude the n810 users from the warning regarding what essentially is turning off your screen.

rm_you 2008-06-22 13:37

Re: Advanced Backlight Statusbar Applet
 
summatusmentis: I'll consider rewording the warning there.

Also of note: https://garage.maemo.org/plugins/gbo...il&bounty_id=2

There is now an official bounty on fixing the menu container. It isn't much, but I'm poor, and hey, maybe it's enough incentive to get someone who knows what's going on with GTK (which I don't) to take a look?

rdcinhou 2008-07-06 14:36

Re: Advanced Backlight Statusbar Applet
 
Am I missing something with this applet?

I thought that besides adding functionality it was supposed to replace the separate sound and brightness status-bar icons.

After installing the applet, the new icon didn't show until a reboot--but the default sound and brightness icons are still showing. Even if you somehow hid them, there are still functions provided by those icons which are not provided in the advanced-backlight applet.

Is there something more that I'm supposed to be doing?

GeneralAntilles 2008-07-06 14:39

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rdcinhou (Post 199876)
Am I missing something with this applet?

I thought that besides adding functionality it was supposed to replace the separate sound and brightness status-bar icons.

Open Control panel, double tap Panels, tap the Status bar tab, uncheck the Nokia applets.

It's been explained in the thread a couple times. ;)

rdcinhou 2008-07-08 16:51

Re: Advanced Backlight Statusbar Applet
 
Yes, disabling the status bar applets makes them disappear but the combined applet doesn't replace all of their functions (like display settings and LEDs, sound settings, etc.). You have to re-enable them in order to make any changes. It seems a little silly to have to do that.

Would it be possible for this combined applet to link to the Nokia applets to allow for a common interface for making changes?

qwerty12 2008-07-08 16:53

Re: Advanced Backlight Statusbar Applet
 
Nope, because Nokia are tight arses with their source code.

GeneralAntilles 2008-07-08 17:17

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rdcinhou (Post 200600)
Yes, disabling the status bar applets makes them disappear but the combined applet doesn't replace all of their functions (like display settings and LEDs, sound settings, etc.). You have to re-enable them in order to make any changes. It seems a little silly to have to do that.

How about just opening the Control panel from the Application menu? You don't need to get to the Display and Sound settings from the applets. :\ All the applets are doing is showing you the control panels from there.

daperl 2008-07-08 20:50

Re: Advanced Backlight Statusbar Applet
 
@rm_you: You can get rid of all that frame stuff in your code. It looks like you almost had it the first time but you got the hint wrong. After the line:

Code:

window = hildon_desktop_popup_window_new(0, GTK_ORIENTATION_VERTICAL, HD_POPUP_WINDOW_DIRECTION_RIGHT_BOTTOM);
add these 2 lines:

Code:

gtk_window_set_type_hint(window, GDK_WINDOW_TYPE_HINT_NOTIFICATION);
gtk_window_set_decorated(window, TRUE);


GeneralAntilles 2008-07-10 00:18

Re: Advanced Backlight Statusbar Applet
 
Just a heads up for everybody, Advanced Backlight has been updated to 0.10. Which brings with it some fairly large changes. Including a proper container, which means it'll behave like the Nokia applets now. ;)

Major thanks to jott for figuring out the correct container, adding rotation support, switching to the dsme syscalls and generally being really super-badass awesome. :D

More information on the website, should have just posted to Extras.

Benson 2008-07-10 00:53

Re: Advanced Backlight Statusbar Applet
 
Oh, man! Big and awesome and gorgeous all rolled into one!

I like it much.

Faz 2008-07-10 01:07

Re: Advanced Backlight Statusbar Applet
 
Just updated. Thank you!!! :)

Thought I'd save myself a reboot and just disable / enable the Panel. Bad idea! I ended up killing all my desktop applets :D No biggie, all regular applications kept running, so I just closed these and performed a clean restart.

Benson 2008-07-10 01:20

Re: Advanced Backlight Statusbar Applet
 
OK...

Rotation support is kind of wierd right now; with those icons, I'd interpret the one with the upright A as indicating "no change" rather than "rotate to normal"; as it is, starting with anything but normal rotation, one must do mental coordinate transformations, which are an unpleasant distraction.

Not sure it constitutes a bug, but it's not the behavior I expect from those icons, nor the behavior I find most useful in general.

daperl 2008-07-10 01:22

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by GeneralAntilles (Post 201087)
Just a heads up for everybody, Advanced Backlight has been updated to 0.10. Which brings with it some fairly large changes. Including a proper container, which means it'll behave like the Nokia applets now. ;)

Major thanks to jott for figuring out the correct container, adding rotation support, switching to the dsme syscalls and generally being really super-badass awesome. :D

More information on the website, should have just posted to Extras.

I'm glad for the break through, but isn't more accurate to say that jott (or someone) saw my window hint suggestion and ran with it? I've seen the CVS updates.

I have a long, twisting development story that ends with the simplicity of hildon-banner.c and this thread. Please accept my humble apologies if I got something wrong.

GeneralAntilles 2008-07-10 01:35

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by daperl (Post 201101)
I'm glad for the break through, but isn't more accurate to say that jott (or someone) saw my window hint suggestion and ran with it? I've seen the CVS updates.

As far as I'm aware, no. Your hint and his work weren't related (he's been working on this for a while, I believe), we don't even use the window hint you recommended, so I'm not really sure how it could be the same. He doesn't browse itT, anyway.

Really, though, I don't know. You're welcome to ask him directly if you'd like. :)

Quote:

Originally Posted by Benson (Post 201100)
Rotation support is kind of wierd right now; with those icons, I'd interpret the one with the upright A as indicating "no change" rather than "rotate to normal"; as it is, starting with anything but normal rotation, one must do mental coordinate transformations, which are an unpleasant distraction.

Yeah, Benson, I agree. I'm typically the usability tester on these things, so you can lay the blame squarely on my shoulders. ;) One of the internal revisions actually didn't have a "normal" button, and I got myself stuck trying to get it back to normal for a little while. It was probably one of the most frustrating things I've ever experienced. I wanted to go curl up in the corner afterwards, and didn't really have the mental energy into to looking at the fix after rm_you committed it. :D

The plan was to have the icons be relative to the the current orientation, which they are for the normal orientation, but they don't change for the other directions. Definitely a bug (or, more accurately, an incomplete implementation). I'll poke at it a bit and get jott to look at it in the morning. There've been a couple other bugs fixed in svn already, so we may push another update tomorrow, I guess.

nilchak 2008-07-10 02:24

Re: Advanced Backlight Statusbar Applet
 
thanks for the tip... nice improvement - particularly with the rotation thingie...

but how come the update notifier on Diablo didnt notify of this (and other updates) even though I was connected for a long time ?

or is the update notifier only applicable for apps on the diablo maemo extra repos ?

GeneralAntilles 2008-07-10 02:33

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by nilchak (Post 201115)
but how come the update notifier on Diablo didnt notify of this (and other updates) even though I was connected for a long time ?

Probably because you didn't hit the update period yet? It only updates once a day.

Quote:

Originally Posted by nilchak (Post 201115)
or is the update notifier only applicable for apps on the diablo maemo extra repos ?

Update notifier is for anything installed from a repository.

heavyt 2008-07-10 02:45

Re: Advanced Backlight Statusbar Applet
 
For some reason I can only get a screen brightness with this tool equal to about Nokia's backlight setting of level 3. Also I have no rotation options....using N800 Diablo

GeneralAntilles 2008-07-10 02:49

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by heavyt (Post 201121)
For some reason I can only get a screen brightness with this tool equal to about Nokia's backlight setting of level 3.

Sure about this? I'm not really sure how that could be the case.

Quote:

Originally Posted by heavyt (Post 201121)
Also I have no rotation options....using N800 Diablo

Do you have rotation support installed? . . .

heavyt 2008-07-10 02:56

Re: Advanced Backlight Statusbar Applet
 
Yes I am sure about the brightness, ran comparisons 4 times. No I do not have rotation setup dud, sorry.

rotation has been installed.

GeneralAntilles 2008-07-10 05:14

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by heavyt (Post 201124)
Yes I am sure about the brightness, ran comparisons 4 times.

Aha, I see the problem. I thought you meant it wouldn't get dimmer than 3. Yes, we're definitely missing a lot of brightness at the top end. Math appears to be a bit off on that brightness bar.

Will look at this, hopefully a fix (along with some other stuff) will be pushed later today.

jhoff80 2008-07-10 05:52

Re: Advanced Backlight Statusbar Applet
 
I'm not getting the beep on volume change with that option enabled, on Diablo on a n800.

qwerty12 2008-07-10 05:55

Re: Advanced Backlight Statusbar Applet
 
Works for me on a Diablo N800 :/

rm_you 2008-07-10 09:35

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by GeneralAntilles (Post 201148)
Aha, I see the problem. I thought you meant it wouldn't get dimmer than 3. Yes, we're definitely missing a lot of brightness at the top end. Math appears to be a bit off on that brightness bar.

Will look at this, hopefully a fix (along with some other stuff) will be pushed later today.

Yes, the problem has been found and fixed. I pushed 0.11-2 to extras just now, it should hopefully be available soon.

As for the volume beep issue... I think it has something to do with the way we're controlling the frequency of the beeping, as I had the same issue (though it fixed itself after a few reboots and reinstalls, not sure exactly which caused it to work again though).

I will be looking into the beep issue and hopefully jott can shed light on the rotation stuff (I have no idea what's going on there). If we get those improvements done today, there will probably be yet another version pushed to extras soon.

Edit: both the volume beep issue and the rotation issues should be fixed in the latest release (0.11-7) which should be in extras very soon for both chinook and diablo.

heavyt 2008-07-10 13:00

Re: Advanced Backlight Statusbar Applet
 
The brightness issue and 'no beep' seems to have been corrected in the latest release (0.11-7). Nice work.

rm_you 2008-07-10 13:48

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by heavyt (Post 201238)
The brightness issue and 'no beep' seems to have been corrected in the latest release (0.11-7). Nice work.

Thanks. :)

Did the rotation part appear correctly after you installed qwerty12's rotation packages and flashed the kernel?


For anyone else reading this who is curious, the proceedure is very simple:

Grab qwerty12's rotation kit and install it:

wget http://www.ageofikon.info/Rotate.zip
unzip Rotate.zip && cd Rotate/
dpkg -i kernel-diablo-flasher_2.6.21-200823maemo3_all.modfied.deb
dpkg -i libxrandr2_1.2.1-1_armel.deb
dpkg -i xserver-xomap_1.3.99.0~git20070321-0osso20074202_armel.modfied.deb
fiasco-flasher -f -k /usr/share/osso/images/zImage-diablo-200823

Then just reboot and when you click on the Advanced Backlight applet, it should show the rotation options. :)

allnameswereout 2008-07-10 14:15

Re: Advanced Backlight Statusbar Applet
 
NOTE: fiasco-flasher requires argument -k not -l

rock 2008-07-10 15:56

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rm_you (Post 201252)
Thanks. :)

Did the rotation part appear correctly after you installed qwerty12's rotation packages and flashed the kernel?


For anyone else reading this who is curious, the proceedure is very simple:

Grab qwerty12's rotation kit and install it:

wget http://www.ageofikon.info/Rotate.zip
unzip Rotate.zip && cd Rotate/
dpkg -i kernel-diablo-flasher_2.6.21-200823maemo3_all.modfied.deb
dpkg -i libxrandr2_1.2.1-1_armel.deb
dpkg -i xserver-xomap_1.3.99.0~git20070321-0osso20074202_armel.modfied.deb
fiasco-flasher -f -l /usr/share/osso/images/zImage-diablo-200823

Then just reboot and when you click on the Advanced Backlight applet, it should show the rotation options. :)

Does this require having Diablo installed?

qwerty12 2008-07-10 15:57

Re: Advanced Backlight Statusbar Applet
 
Yes. If you are using chinook, there are other ways.

@rm_you,

If you wish, you can remove the sb-rotate-plugin from the zip and I'd be happy to point people to adv-backlight? :)


All times are GMT. The time now is 08:58.

vBulletin® Version 3.8.8