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)

heavyt 2008-07-10 16:22

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?

:)

Yes the rotation part appears correctly after I installed the packages. :cool:

andreww 2008-07-10 16:26

Re: Advanced Backlight Statusbar Applet
 
Just want to say thanks! The latest release fixed the only minor problem I had with this -- the fact that you had to tap the icon again to close the dialog.

Awesome tool, and the rotation interface is now even easier than the rotate status bar icon.

daperl 2008-07-10 16:40

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by GeneralAntilles (Post 201103)
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.

No, you're right, they scrapped my hack for an excellent, robust solution. My bad, our good.

rm_you 2008-07-10 18:29

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by allnameswereout (Post 201265)
NOTE: fiasco-flasher requires argument -k not -l

Thanks, copy/paste wasn't working for me for some reason and I apparently typo'd my transcription. All fixed. :)

Quote:

Originally Posted by qwerty12 (Post 201307)
If you wish, you can remove the sb-rotate-plugin from the zip and I'd be happy to point people to adv-backlight? :)

Thanks, I will probably do that in just a bit (and also make a .tar.gz version just for the sake of having one, though I will put a zip too so I don't break all the links that exist already).

Quote:

Originally Posted by daperl (Post 201327)
No, you're right, they scrapped my hack for an excellent, robust solution. My bad, our good.

Actually, I'm not sure what GA was looking at, 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

GeneralAntilles 2008-07-10 18:45

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rm_you (Post 201396)
Actually, I'm not sure what GA was looking at, 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

Eh, I'm just going on what jott told me. ;)

Durango 2008-07-10 19:36

Re: Advanced Backlight Statusbar Applet
 
can I add an obnoixous feature request?

Any way to make the backlight dim to a preset level based on time of day? (one level for daylight hours, one for night). I've been using the 800 in the car lately as my mp3 player, and usually I have it set to full brightness during the day or else I can't see the screen, but at night I have to turn it almost all the way down so that it isn't blinding. kind of like the light sensor functionality, but without having the light sensor..

GeneralAntilles 2008-07-10 19:52

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by Durango (Post 201439)
Any way to make the backlight dim to a preset level based on time of day?

Kind of like the Garmins do? ;) Yeah, I don't see any reason why we couldn't do this. The only argument against it is the small issue of feature bloat (the settings dialog is going to explode in size once some of the stuff in the pipeline actually gets coded up and shipped . . .), but I think we can get it in there.

I've opened a feature request for it, anyway.

Durango 2008-07-10 20:43

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by GeneralAntilles (Post 201448)
The only argument against it is the small issue of feature bloat (the settings dialog is going to explode in size once some of the stuff in the pipeline actually gets coded up and shipped . . .)


Naturally, some prefer barebones while others can't live without every feature possible ;) it'll squeeze the screen real estate a little bit more with the dialog open, but I can't see it being even as much as a resource drain as I imagine the light sensor adjusting is on the 810. Thanks for the consideration.

I've never owned a real GPS but I imagine a fair number of them do this. I've been using maemo mapper and Canola (which takes nearly as long to open as the tablet does to boot... you want to talk about feature bloat :D) and solving with annoyance would make it a great car solution. then I just need an equalizer and to get to work on fabbing a mount for the dash :cool:

Benson 2008-07-10 21:20

Re: Advanced Backlight Statusbar Applet
 
Just one tiny request...

The orientation works beautiful, but sometimes (in the past) I've run into situations where keymap gets messed up by a BT keyboard connection or disconnection; rotating to the current orientation was a handy way to fix the mapping. The ability to leave the button for the current orientation enabled could be handy in that case.

Aside from that, it's about as awesome as can be.

GeneralAntilles 2008-07-10 22:05

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by Durango (Post 201462)
Naturally, some prefer barebones while others can't live without every feature possible ;)

OK, put together a rough mockup (missing some parts, namely you should be able to add and remove schedule entries with the real version and the headers are a little funky).

http://www.legacyoflies.com/devuploa...ule-mockup.png

Will get with rm_you about it whenever he gets back from sleepytown. . . .

Quote:

Originally Posted by Benson (Post 201483)
The orientation works beautiful, but sometimes (in the past) I've run into situations where keymap gets messed up by a BT keyboard connection or disconnection; rotating to the current orientation was a handy way to fix the mapping. The ability to leave the button for the current orientation enabled could be handy in that case..

Hrm, well, I can see the point, but I'm not sure if it's something worth addressing with the whole applet, as the grayed out "current" button is a clue as to what the other buttons do. This might be something that'd be better solved by putting together a patch for the code and compiling your own version.

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

GeneralAntilles 2008-07-13 03:40

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by pablob (Post 202359)
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 hooks are actually in the code for working with fanoush's kernel method, they're just commented out. 770 support is somewhere on the list, it's just kind of taken a back seat to other issues. If you want to play with the code a bit and uncomment the relevant lines, you can probably get it working fairly easily, though.

Quote:

Originally Posted by pablob (Post 202359)
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...

Yes, it's hardware rotation, so it's a kernel issue. I'm not sure what status is for 770 rotation support.

rm_you 2008-07-13 09:20

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by daperl (Post 202136)
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".

I will check this out and attempt to implement your changes, hopefully for the next release. Thanks!

Mikma 2008-07-13 11:37

Re: Advanced Backlight Statusbar Applet
 
Hi folks!

Throwing in my 5 cents:
Option to change the "Display stays lit: When charging / Never" would be hot to have in the program menu :)

The one from Control Panel -> Display ...

daperl 2008-07-13 11:44

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rm_you (Post 202412)
I will check this out and attempt to implement your changes, hopefully for the next release. Thanks!

Cool. Meanwhile, I'm putting myself through GTK+/GDK/X11 school; I'm determined to find out how that guy (girl) cleanly captures the "button-release-event" in the volumebar. If you, jott or anyone have any ideas I'd appreciate it. Thanks.

rm_you 2008-07-13 12:24

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by daperl (Post 202433)
Cool. Meanwhile, I'm putting myself through GTK+/GDK/X11 school; I'm determined to find out how that guy (girl) cleanly captures the "button-release-event" in the volumebar. If you, jott or anyone have any ideas I'd appreciate it. Thanks.

Yeah... As you saw, I am doing a really ugly workaround/hack to make it only beep once every second or so (instead of just spamming beeps) but it would be awesome if you could figure that out. I used to use a HildonControlbar, which let me set its update method such that it didn't throw value-changed events until the user stopped moving it for some period of time (ie, got the bar to where they wanted it after dragging). I've thought about looking at how that was done, but the GTK+ codebase is way over my head at the moment. :(

Edit: As it turns out, the volumebar does support that, it's just buried in the GtkAdjustment bits... We'll have it done soon. :)

Quote:

Originally Posted by Mikma (Post 202431)
Hi folks!

Throwing in my 5 cents:
Option to change the "Display stays lit: When charging / Never" would be hot to have in the program menu :)

The one from Control Panel -> Display ...

If I have my way, *all* of the options in the Display Control Panel widget will be present in our configuration, and we will hopefully be able to actually fully replace that control panel widget for much more seamless integration. I don't yet have a timeline for that, but hopefully within the next month. :/

GeneralAntilles 2008-07-13 22:04

Re: Advanced Backlight Statusbar Applet
 
Advanced Backlight needs translators!

We're ready for l18n, we just need some translators to get to work. ;) jott has already put together a German translation, but there are plenty more to do.

See here.

alephito 2008-07-14 00:23

Re: Advanced Backlight Statusbar Applet
 
I can translate it into Spanish. How do I send it to you?

alephito 2008-07-14 00:37

Re: Advanced Backlight Statusbar Applet
 
1 Attachment(s)
Well, this is the Spanish translation. I hope everything is OK.

GeneralAntilles 2008-07-14 00:39

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by alephito (Post 202653)
I can translate it into Spanish. How do I send it to you?

Just fill in the msgstr "" with the translated string, then add your name and email address at the top.

For example:
Code:

#: advanced-backlight.c:1008
msgid "Rotation"
msgstr "Rotación"

See the German translation as well.

Then just get that text file to us however you want.

allnameswereout 2008-07-14 00:40

Re: Advanced Backlight Statusbar Applet
 
Language=Dutch
License=Public Domain


#: advanced-backlight.c:953
msgid "Instellingen..."
msgstr ""

#: advanced-backlight.c:972
msgid "Helderheid"
msgstr ""

#: advanced-backlight.c:990
msgid "Volume"
msgstr ""

#: advanced-backlight.c:1008
msgid "Rotatie"
msgstr ""

#: advanced-backlight.c:1526
msgid "Geavanceerd Achterlicht"
msgstr ""

#: advanced-backlight.c:1533
msgid ""
"Sta nul achterlicht toe\n"
"(N800 gebruikers opgelet!)"
msgstr ""

#: advanced-backlight.c:1540
msgid "Beep tijdens volume verandering"
msgstr ""

#: advanced-backlight.c:1546
msgid "Thema"
msgstr ""

#: advanced-backlight.c:1551
msgid "Helderheid stap grootte"
msgstr ""

#: advanced-backlight.c:1556
msgid "Volume stap grootte"
msgstr ""

#: advanced-backlight.c:1576
msgid "Waarschuwing"
msgstr ""

#: advanced-backlight.c:1580
msgid ""
"Weet je zeker dat je het achterlicht uit wilt schakelen?\n"
"Indien het achterlicht uit is geschakelt kan het erg moeilijk\n"
"zijn het weer aan te krijgen omdat het scherm niet meer zichtbaar is\n"
msgstr ""

Not sure about some parts. Literal translations suck. Feel free to use this in anyway.

rm_you 2008-07-14 09:55

Re: Advanced Backlight Statusbar Applet
 
Thanks for the translations!

We currently have the following translations completed:

Spanish
German
Dutch
Polish
Finnish
Russian
French

We are still looking for translations for many other languages, including but not limited to:

Italian
Swahili
Japanese
Chinese (Mandarin or Cantonese? not sure if we need both or just one?)
Lojban
Sindarin (or Quenya)
Klingon

I'm not sure if all of those are required by the specification (ok, so I'm sure at least a few aren't), but I like to be thorough. :)

Also, feel free to look over the completed translations and submit corrections if there are issues! You can find the most recent versions of the translations here (and please use these as a base for any updates):
https://garage.maemo.org/plugins/scm...=adv-backlight

El Amir 2008-07-14 11:01

Re: Advanced Backlight Statusbar Applet
 
Links to the original file to translate are down. If someone could repost the file Ill gladly contribute and translate it in French :)

rm_you 2008-07-14 11:23

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by El Amir (Post 202770)
Links to the original file to translate are down. If someone could repost the file Ill gladly contribute and translate it in French :)

You can use this as a base for the translation:

http://www.ageofikon.info/advanced-backlight.pot

El Amir 2008-07-14 11:28

Re: Advanced Backlight Statusbar Applet
 
1 Attachment(s)
Here, have the french one on me! :D
Its a quick translation (V0.1) but should do the trick, but if I -or any other french speaking member- ever find something to change, ill repost it on this thread.

boolean 2008-07-14 14:07

Re: Advanced Backlight Statusbar Applet
 
Morning,

Here are some potential candidates for the french translation:

brightness step size -> increment de la luminosite
volume step size -> increment du volume
beep on volume change -> bip au changement du volume

Please spell check the words as some with have accents and I didnt add them in the text above.

El Amir 2008-07-14 14:51

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by boolean (Post 202804)
Morning,

Here are some potential candidates for the french translation:

brightness step size -> increment de la luminosite
volume step size -> increment du volume
beep on volume change -> bip au changement du volume

Please spell check the words as some with have accents and I didnt add them in the text above.

Will do ;)

El Amir 2008-07-14 14:58

Re: Advanced Backlight Statusbar Applet
 
1 Attachment(s)
With some help from boolean, here the french translation V0.2 :cool:

Un27Pee 2008-07-14 15:36

Re: Advanced Backlight Statusbar Applet
 
I have also checked the french translation it seems ok

Laughing Man 2008-07-14 16:13

Re: Advanced Backlight Statusbar Applet
 
Is it just me, or does anyone else have the problem of upon a desktop reset or the tablet is rebooted the applet shows everything at 0 (until you click at it) and then it returns to the values you had set it before. It doesn't seem to do anything adverse, just a cosmetic issue.

fpp 2008-07-14 17:10

Re: Advanced Backlight Statusbar Applet
 
Here are some detail corrections on El Amir's 0.2.
Guess that makes it 0.3 :-)

# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# FRENCH Translation V0.3 by “El Amir” on ITT, + fuzzy & fpp
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-07-13 23:21+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: advanced-backlight.c:953
msgid "Settings..."
msgstr "Paramètres..."

#: advanced-backlight.c:972
msgid "Brightness"
msgstr "Luminosité"

#: advanced-backlight.c:990
msgid "Volume"
msgstr "Volume"

#: advanced-backlight.c:1008
msgid "Rotation"
msgstr "Rotation"

#: advanced-backlight.c:1526
msgid "Advanced Backlight"
msgstr "Rétro-éclairage : options avancées"

#: advanced-backlight.c:1533
msgid ""
"Allow zero backlight\n"
"(N800 users beware!)"
msgstr "Permettre la désactivation du rétro-éclairage\n "
"(Utilisateurs de N800 : méfiance !)

#: advanced-backlight.c:1540
msgid "Beep on volume change"
msgstr "Bip au changement du volume"

#: advanced-backlight.c:1546
msgid "Theme"
msgstr "Thème"

#: advanced-backlight.c:1551
msgid "Brightness step size"
msgstr "Incrément de la luminosité"

#: advanced-backlight.c:1556
msgid "Volume step size"
msgstr "Incrément du volume"

#: advanced-backlight.c:1576
msgid "Warning"
msgstr "Avertissement"

#: advanced-backlight.c:1580
msgid ""
"Are you sure you want to allow the backlight to turn off?\n"
"If the backlight turns off, it may be very difficult to turn it\n"
"back on, as the screen will no longer be visible."
msgstr "Etes-vous sur de vouloir permettre la désactivation du rétro-éclairage ? "\n"
"Si le rétro-éclairage est désactivé, il deviendra très difficile de le réactiver \n"
"puisque l’écran se sera plus visible !"


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

vBulletin® Version 3.8.8