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)

daperl 2008-07-11 04:38

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rm_you (Post 201396)
...as the type-hint we used IS that one, and had jott not at almost the exact same time come to me with his patches (well, entire codebase) then your post would have made my day! So, consider yourself very thanked. (Though I'm kind of annoyed that I was SO close and yet didn't get it right for many months because SOMEONE told me the wrong type-hint... *glares at timeless*). :P

The saddest thing about Nokia being closed about this is that their own applets don't even work the same! The dude(s) that wrote the backlight and sound statusbar applets aren't even using the same code. Check it out: the backlight applet works like jott's code, but the sound applet handles the menuitem focus incorrectly. After the "Sound settings..." item loses focus it remains painted as if it still had focus. The color's shade is wrong too.

And on top of all this they give us a dialog box in hello-world.

Lame.

Anyway, jott's stuff should be generalized and folded back into hildon. As a minimum.

Great work.

codeMonkey 2008-07-11 06:04

Re: Advanced Backlight Statusbar Applet
 
Loving the rotation etc updates. Thanks Advanced Statusbar Applet team! :D

lazuli 2008-07-11 09:22

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by codeMonkey (Post 201616)
Loving the rotation etc updates. Thanks Advanced Statusbar Applet team! :D

screen rotation is flawless! a bit confusing at first but works as advertised. thanks for this wonderful app!

rm_you 2008-07-12 05:00

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by daperl (Post 201606)
The saddest thing about Nokia being closed about this is that their own applets don't even work the same! The dude(s) that wrote the backlight and sound statusbar applets aren't even using the same code. Check it out: the backlight applet works like jott's code, but the sound applet handles the menuitem focus incorrectly. After the "Sound settings..." item loses focus it remains painted as if it still had focus. The color's shade is wrong too.

And on top of all this they give us a dialog box in hello-world.

Lame.

Anyway, jott's stuff should be generalized and folded back into hildon. As a minimum.

Great work.

Yeah, these applets being closed-source has been irking me for months and is seriously mind-boggling. I really wish the "source status transparency" initiative would get going so we can see their ridiculous justification for why they don't just open 90% of this stuff.

Similarly, we are now discussing replacing the original Display applet's Control Panel applet, which again would not be necessary if we could just patch theirs (and we would be happy to send things upstream)...

GeneralAntilles 2008-07-12 05:02

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rm_you (Post 202085)
Yeah, these applets being closed-source has been irking me for months and is seriously mind-boggling. I really wish the "source status transparency" initiative would get going so we can see their ridiculous justification for why they don't just open 90% of this stuff.

It's currently my job to help get this rolling wiki-side. Want to help? :p

daperl 2008-07-12 10:05

Re: Advanced Backlight Statusbar Applet
 
1 Attachment(s)
Quote:

Originally Posted by rm_you (Post 202085)
Yeah, these applets being closed-source has been irking me for months and is seriously mind-boggling. I really wish the "source status transparency" initiative would get going so we can see their ridiculous justification for why they don't just open 90% of this stuff.

Similarly, we are now discussing replacing the original Display applet's Control Panel applet, which again would not be necessary if we could just patch theirs (and we would be happy to send things upstream)...

You'd think we'd be burnt out. But no. 'Cause now that this applet looks good, it's now time that this applet feels good.

Introducing multi-threaded sliding widgets. I added this to my own stuff last week and I woke up this (yesterday) morning and decided to add it to your stuff. It's working well. The volume change is smoother than Nokia's (especially when I disconnect the beep). And that's a remaining problem: the volume change beep. As of last week, the hildon volumebar widget wouldn't let me know when it received a button release event (that's when Nokia beeps). Every other widget does. F*cker. Maybe I need an event box; not sure. Anyway, I've enclosed the following 3 files that I changed against 0.11-7:

trunk/merge/configure.ac
trunk/merge/Makefile.am
trunk/merge/advanced-backlight.c

I realize the changes are major for someone not on the project (I'm too afraid to make a context diff), but you should look at them. All is not perfect, but I think I did a good job of cleaning up after myself (multiple add/removes from the statusbar). I can post a .deb if you want a demo. "Like butter".

One last important note. I completely ignored the test stuff. Threads don't work for me in the scratchbox environment and I have no special flags/branches to work without them. A QEMU problem I think. I did all my testing on my n800.

edt 2008-07-13 01:26

Re: Advanced Backlight Statusbar Applet
 
I love the idea of a time based setting for brightness. Think there is a much better option for the control interface though. Create a box with the y axies being the brightness and the x the time (say 100x240 or 50x240 pixels). Then just draw a curve in the box and, presto, your schedule is set.

If you wanted to you could replace the current sliders controls with these boxes too. In which case it might be nice to have an area (boxed) at the left of the box that when clicked in puts a horizontal line across the 24 hours (eg. one brightness all day).

Commets?

amigokin 2008-07-13 02:20

Re: Advanced Backlight Statusbar Applet
 
I don-t see the part to rotate the screen or any setting to activate it. How can I do it? Thanks!

GeneralAntilles 2008-07-13 02:28

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by amigokin (Post 202342)
I don-t see the part to rotate the screen or any setting to activate it. How can I do it? Thanks!

As has already been mentioned. You have to have rotation support installed to see the rotation settings.

pablob 2008-07-13 03:33

Re: Advanced Backlight Statusbar Applet
 
I've tried the applet in my 770 with OS2008HE, and (as expected I guess) the volume worked well while the brightness did not do anything (I am using Fanoush's SDHC+other stuff kernel, and I don't know if it has "advanced brightness" support).

The most interesting thing is that I do get the rotation icons (even though I don't think I have rotation support), and when I tried to put the tablet into portrait mode it "kind of worked". Parts of the screen rotated, but they did not fill the full screen. The touch screen did not like it either. It was quite messy, and I could not even switch it off gracefully!

I imagine that is because the kernel did not support rotations, and I wonder if it is possible to make that work in the 770...


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

vBulletin® Version 3.8.8