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)

Un27Pee 2008-07-14 18:05

Re: Advanced Backlight Statusbar Applet
 
[QUOTE=fpp;202870]Here are some detail corrections on El Amir's 0.2.
Guess that makes it 0.3 :-)


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

( méfiance ) seems too strong technically
(Utilisateurs de N800 Attention ! ) perhaps

its my suggestion if it sounds ok

daperl 2008-07-14 23:40

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

Originally Posted by rm_you (Post 202440)
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. :)

GtkAdjustment mostly just mimics the signals from its source widget. Regardless, I had perfect luck with HildonHVolumebar's "private" children. It's a very clean, if not naughty, solution, but it now works exactly like the sound applet. It's so simple you might sh*t yourself. If need be I can give an explanation later, for the time being I'll let the code I included speak for me (I'm burnt). I haven't hooked the beep to the mute button yet, but here's a demo; It's working very well.

Even though nothing bad is likely to happen, please don't use the following unless you know how to fix your tablet software when things go wrong

rm_you 2008-07-14 23:48

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by daperl (Post 203008)
GtkAdjustment mostly just mimics the signals from its source widget. Regardless, I had perfect luck with HildonHVolumebar's "private" children. It's a very clean, if not naughty, solution, but it now works exactly like the sound applet. It's so simple you might sh*t yourself. If need be I can give an explanation later, for the time being I'll let the code I included speak for me (I'm burnt). I haven't hooked the beep to the mute button yet, but here's a demo; It's working very well.

Even though nothing bad is likely to happen, please don't use the following unless you know how to fix your tablet software when things go wrong

Cool! We have already implemented a different solution to the beep problem by version 0.12-8, but we will take a look at this and see if we should use it instead.

In the future, would you mind using SVN as your base? 0.11-7 is days (and many many revisions) old now, which makes patch generation very difficult. :)

daperl 2008-07-15 00:41

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rm_you (Post 203012)
n the future, would you mind using SVN as your base? 0.11-7 is days (and many many revisions) old now, which makes patch generation very difficult. :)

I submitted a request.

rm_you 2008-07-15 01:06

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by daperl (Post 203030)
I submitted a request.

You can already check out SVN without any kind of special permissions, I believe.

Edit: Ah. Come visit us on IRC. :)

allnameswereout 2008-07-15 10:56

Re: Advanced Backlight Statusbar Applet
 
If you are Dutch please review my translation. The more people review it, the better. Maybe we need translation projects or threads? Its very easy to make a translation like this, and with a few people who check out if its correct, you get a valuable contribution quite quickly. So, if more applications require translations, I'd like to contribute.

Oh btw, I just changed my theme, and there is no black in any of my panels (systray). They're all white, or grey. Except the advanced backlight statusbar applet, it does contain black (everything is white or grey). This looks pretty ugly IMO, is it possible to change this? (Can post a screenshot if required.)

GeneralAntilles 2008-07-15 18:01

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by allnameswereout (Post 203133)
Oh btw, I just changed my theme, and there is no black in any of my panels (systray). They're all white, or grey. Except the advanced backlight statusbar applet, it does contain black (everything is white or grey). This looks pretty ugly IMO, is it possible to change this? (Can post a screenshot if required.)

Please do, I can't make sense of your description.

Benson 2008-07-15 18:27

Re: Advanced Backlight Statusbar Applet
 
The images used by this applet have a black or dark background on the areas where the brightness rays and volume waves are. When using a theme with a light-colored statusbar background, it looks kinda funny to have dark areas there, especially when brightness or volume is turned down...

GeneralAntilles 2008-07-15 18:37

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by Benson (Post 203268)
The images used by this applet have a black or dark background on the areas where the brightness rays and volume waves are. When using a theme with a light-colored statusbar background, it looks kinda funny to have dark areas there, especially when brightness or volume is turned down...

Eh, the dark area should be exactly the same as the Nokia applet's icons.

Benson 2008-07-15 18:48

Re: Advanced Backlight Statusbar Applet
 
On the sound, it is. The Nokia applet looks kinda funny, too.

On the brightness... The Nokia applet doesn't have one, because it doesn't have rays.

GeneralAntilles 2008-07-15 19:01

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by Benson (Post 203285)
On the brightness... The Nokia applet doesn't have one, because it doesn't have rays.

Erm, turn both volume and brightness to zero. They both have fan/semi-circle shaped gray transparent backgrounds.

Again, what's actually the issue here (aside from Nokia's default setup not agreeing with some themes). Is there a bug in the brightness icon set, or do we just not like the theme? If it's the latter, feel free to make yourself a new one. The current default is finalized.

Benson 2008-07-15 19:16

Re: Advanced Backlight Statusbar Applet
 
1 Attachment(s)
The issue, I think, is just not liking the advanced-backlight-statusbar-applet's default theme, because, like Nokia's sound-applet theme, it's ugly in combination with certain themes. Pardon me, it seems I've been misrepresenting allnameswereout here, by going off my flawed memory. I'd consider it a bug, at this point.

I'll get a screenshot here, though...

Man, my memory is miscalibrated. (I did remember seeing it look ugly with light themes, but misremembered the reason.) It's about that black bar in the middle of the icon. Barring some good reason for that not being either fully transparent or transparent gray, I'd call it a bug. (Though not very important; seems like it would be reasonable to sit on it till someone submits a fixed icon set.)

Ok, see what I mean about the brightness applet? The Nokia one is a thermometer-style, no rays (or, consequently, shading) in evidence.

GeneralAntilles 2008-07-15 19:23

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by Benson (Post 203297)
Ok, see what I mean about the brightness applet? The Nokia one is a thermometer-style, no rays (or, consequently, shading) in evidence.

The dark gray bar, eh? Well, I've used a number of light backgrounds and I can't say that it's ever bothered me. If somebody wants to rework that set, feel free, but it's not something I'll be fixing.

allnameswereout 2008-07-16 12:08

Re: Advanced Backlight Statusbar Applet
 
Yes, that screenshot describes it well.

Its a design mistake. By default, all the icons are harmonious: they are white, and blend in with any theme nicely. I'm not a usability expect, but I know enough about usability to know the issue.

But I today noticed there is a hildon theme. This one should be the default, because it is more harmonious with the other default icons.

rm_you 2008-07-16 18:59

Re: Advanced Backlight Statusbar Applet
 
We made the decision to continue using the "Default" (we never came up with a unique name for it) iconset because it is more iconic of the project (as it was the original iconset) and, I believe, is much nicer looking than the original Hildon backlight/volume icons. That is just a personal preference though, but that is exactly why there are themes.

If you don't like it, choose a different one, or make your own! If you make and submit an iconset, chances are very high we will add it to the next release if you post a tar/zip here or talk to us about it in IRC.

That said, I had already noticed and been slightly frustrated with that black bar myself, and I may fix it and commit a patch soon, as you are correct, it really doesn't need to be (or look good being) that stark of a contrast.

Actually, if we receive a few more iconsets, we may have to release a separate package (advanced-backlight-icons) containing the extra themes, as they are starting to accumulate. :)

Laughing Man 2008-07-16 23:24

Re: Advanced Backlight Statusbar Applet
 
So... nobody else have that issue I have? (where the advanced blacklight statusbar applet shows 0 values for both brightness and icon on OS boot or desktop reset (yet this has no effect on the actual performance. Example: It may show 0 volume but the volume will still be 100. Same for brightness).

Then once I click the icon, it brings up the menu and the icon is fixed (shows proper values). Though like I said, this is just an astethics issue.

allnameswereout 2008-07-17 00:34

Re: Advanced Backlight Statusbar Applet
 
Thanks for admitting the black line aesthetic issue. Yes, I do prefer the Hildon theme, but even then, the default one with its dark grey line has this issue. I copied the PNGs over, and checked out with the GIMP and noticed 2 colours: very dark grey, and dark grey (:D) but I wasn't sure what colour I should use as replacement (transparent or white), and I think I was using the wrong editting software.

Laughing Man: I do have that issue as well.

rm_you 2008-07-17 01:03

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by Laughing Man (Post 203791)
So... nobody else have that issue I have? (where the advanced blacklight statusbar applet shows 0 values for both brightness and icon on OS boot or desktop reset (yet this has no effect on the actual performance. Example: It may show 0 volume but the volume will still be 100. Same for brightness).

Then once I click the icon, it brings up the menu and the icon is fixed (shows proper values). Though like I said, this is just an astethics issue.

Sorry, haven't gotten around to mentioning that this was fixed already in 0.12, since we never got around to making that release public.

Laughing Man 2008-07-17 01:08

Re: Advanced Backlight Statusbar Applet
 
Ah ok, thanks for the notice. (I was just wondering if anyone else experienced it and if so anyone else notice it. :P).

Benson 2008-07-17 14:29

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rm_you (Post 203815)
Sorry, haven't gotten around to mentioning that this was fixed already in 0.12, since we never got around to making that release public.

Ah, explains the non-reproducability here; I thought I'd remembered it, but couldn't get it to happen. (That's what I get for running extras-devel ;)!)

Edit: Oh, BTW, I was kinda looking at fixing the icon issue, too. But I was going to do it more generically; I'm thinking making a script using imagemagick or netpbm to compose the 42 (6x7) images from 14 (6+7+static background) images. Since this requires excessive dependencies (and reduces flexibility), I don't expect you're interested in having it as part of the build process, but it could be useful for artists (and folks like me) creating icon sets. That also makes it easier to fix the bar issue. For that fix, I suppose one could batch process all 42 with imagemagick/netpbm to clear/fill that rectangle; but I'm happier generalizing. If anyone's interested in this, say so, and I might have it today or tomorrow... comments welcome, too.

Benson 2008-07-17 23:09

Re: Advanced Backlight Statusbar Applet
 
I just almost finished that script. (OK, most of the work was really in extracting the separate images from the original "default" theme... the script is as trivial as expected.)

One question: I'd rather have a three-state icon scheme; is that plausible?
I'm thinking blah-blah-[1-7].[0-4].[mu].png, with the mute separate, so the volume level can, for example, still be shown with a red slash overlaid when muted.
This means instead of 7x6=42, we'd have 7x5x2=70 images per theme, but the redundant ones in themes not maintaining a distinction can be links instead of files, so it needn't waste disk space. It's still a sizable conversion though, and I'm not sure if that's welcome at this point.

If such a change does happen, I strongly recommend we go to either 0- or 1-based for both volume and brightness while we're at it... whose idea was that, anyway?

I'll probably post scripts for both styles, anyway, but wondered if the 3-state way will have been a waste of time.

Benson 2008-07-18 00:15

Re: Advanced Backlight Statusbar Applet
 
1 Attachment(s)
OK, here are the scripts. Note that the new one is just a POC to demonstrate the new theme format I'm proposing, and there is no version using the theme format it makes. I'm not presuming acceptance of my suggestion, but since I was already scripting, it was too easy to just work backwards and do the second script. If there's interest in such a conversion, I'm not above helping with the code aspect.

There are also source images for both proposed and existing formats of the Default theme, as ripped from 0.13-5; I'm not guaranteeing pixel-for-pixel identical results, but the output (in existing format) is visually indistinguishable for sure.

rm_you 2008-07-18 06:32

Re: Advanced Backlight Statusbar Applet
 
Note that I have already fixed the bar in the default iconset as of 0.13.

Your script sounds like an excellent idea though. I agree with you on almost everything there... The 0/1 indexing mixmatch is a legacy issue that annoyed me but I never got around to fixing. I think I'll go ahead and blame GA for that one, since he doesn't get nearly enough blame around here (and, well, he's not ME, which is the point of blame, isn't it? :P).

Also, separating the mute away from the volume number would be good, and I could impliment that (along with symlinks as you suggested for all of the current icon themes until the work can be done to update them) fairly quickly. I will tentatively put that in my TODO for a 0.14 release.

There is actually an iconset idea I had that I have been putting off just because of the immense amount of time required to put them together in photoshop/gimp, but I will whip it up really quickly (yes, REALLY QUICKLY! WOO!) with this script and test it out.

And really, 0.13 should be along VERY soon, we've been delaying due to a few random internal issues as well as 770 support, which I really don't want to push to 0.14, since we're so very close! :)

rm_you 2008-07-18 07:55

Re: Advanced Backlight Statusbar Applet
 
2 Attachment(s)
Ok... So, here the first official (test) iconset created with your script. It is, as all tests (and most art generated by programmers) should be, very horrid. The horribleness of the set has nothing to do with the script, however, as that worked like the charm and made the whole process very simple! Thank you for your work, hopefully we'll get a few more cool themes now! :)

Note: apparently, there are odd display issues if you don't make the left 2 pixel columns of the image transparent (or constant). No idea why, I will look into this... It has not been a problem before, as all of the iconsets do most of their changes towards the center of the icon.

Benson 2008-07-18 15:48

Re: Advanced Backlight Statusbar Applet
 
If that (strange) 2-pixel issue is a hard requirement, it's easy enough to tweak the script to forcibly clear those columns; it really only makes sense, though, if provisions for scaling to the right size are added. Right now it will blissfully stack any random sizes of images, with predictably useless results...

Glad you like it, and even gladder about the format suggestion.

Note that my source images were extracted from 0.13, so I knew that the bar had been fixed. ;) Hopefully those sources will be handy to convert the Default theme over; I've got the hang of extracting these now, so if you want others (I'm thinking Hildon) converted, gimme a shout.

(The key is to take the zero-image as a background and (since it was flat 20% alpha in the interesting regions) map the alpha values in the other images as 20%-100% -> 0%-100%; thus not messing up soft edges too much. It would have been altogether too lame to use a transparent background, and leave the shadow in each volume/brightness image.)

rm_you 2008-07-18 22:56

Re: Advanced Backlight Statusbar Applet
 
Yeah, the script was essential in getting 0.14 done so quickly, as creating the new default iconset took about 5 seconds. :)

The other two iconsets (LCARS and Hildon) are just renamed and symlinked to the correct locations, so they are in need of updates.

Also, I managed to accidentally push 0.14-1 (which is broken for anyone but 770 users) to extras today, hopefully the 14-3 push will be right behind it and no one will notice. :)

GeneralAntilles 2008-07-19 00:38

Re: Advanced Backlight Statusbar Applet
 
Alright, 14-3 should be in Extras sometime soon. It fixes quite a few small issues and adds, primarily, 770 support for OS2008HE (you will need to flash fanoush's kernel, though).

Changes:

Advanced Backlight 0.14 (7/18/2008)
  • Now (again) supports 770 with fanoush kernel for backlight updates (built for OS2008HE, use chinook deb).
  • Changed icon format to better show muted volume level.
Advanced Backlight 0.13 (7/16/2008, -devel only)
  • Initial volume should be correct now.
  • Added GConf notification on volume change.
  • I18n support.
  • Added translations for: de es fi fr nl pl ru se. Thanks to all translators!
  • New approach for beep on volume change (daperl).
  • Fixed mute at zero volume bug.
  • Updated appearance of default iconset.
Advanced Backlight 0.12 (7/14/2008, -devel only)
  • Switching directly to maximum brightness will now work correctly.
  • Muted icon will display correctly when mute is set with volume 0.
  • Now using threaded volume/brightness updates, patch by daperl.
  • Using delayed brightness updates also improves smoothness.
  • Added a new iconset, "Hildon". Thanks, loki!

pablob 2008-07-20 20:26

Re: Advanced Backlight Statusbar Applet
 
It's working fine in OS2008HE now!

Thanks!!

dfinch 2008-07-20 23:29

Re: Advanced Backlight Statusbar Applet
 
I have not seen any of the proposals discussed in the last few posts so if these comments are redundant forgive me and ignore them.

How about a vertical bar for each element like a mixing desk has. The volume could emulate a series of rectangular green LED's with perhaps a red one at the top. The brightness could be yellow with white at the top?

Another suggestion: could we have the ability to delete unwanted themes after settling on the one we like? This would mitigate some of the concern over many icons.

BTW thanks to all involved. I look forwad to what's new inside every time we get a new release.

GeneralAntilles 2008-07-20 23:45

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by dfinch (Post 205269)
Another suggestion: could we have the ability to delete unwanted themes after settling on the one we like? This would mitigate some of the concern over many icons.

What would be the point? You can already do this by deleting the icons from the filesystem, why would you need to implement a GUI deletion method for ~400KB of icons?

Any additional sets are going to be distributed as deb packages which can be uninstalled with the Application manager, anyway.

dfinch 2008-07-20 23:57

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by GeneralAntilles (Post 205270)
What would be the point? You can already do this by deleting the icons from the filesystem, why would you need to implement a GUI deletion method for ~400KB of icons?

Any additional sets are going to be distributed as deb packages which can be uninstalled with the Application manager, anyway.

I would imagine that the majority of users would not know what they are called, where they are located or that it would be safe to delete them.

However, if distributed as seperate packages then this performs the same function as requested so that's great - thanks.

(And remember 400k is most of the 640k that Bill Gates said we would ever need!)

xandor 2008-08-02 18:24

Re: Advanced Backlight Statusbar Applet
 
Umm... I really appreciate this detailed discussion of all the fine points of this useful app, but meanwhile I'm unable to install it (just pre-Diablo) as it apparently needs a whole slew of libs. Can somebody point me in the right direction, please (and how come install packages don't install or at least point to all the requisite libraries)?
I've downloaded it, and tried using the "install from file" command with A.M.

XTC 2008-08-02 18:56

Re: Advanced Backlight Statusbar Applet
 
I think I've got some issues with this app (n810 diablo).
I've noticed that after some time - the backlit is working at it's maximum level.
When I click on app's icon - and just point stylus at the existing backlit slider (set to ie. 30%) - the display dimms to this 30%.
Looks like it brightens up (maybe if the light sensor is exposed to the high intensity light - just my guess) with time (changing it's max setting).

rm_you 2008-08-03 09:52

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by xandor (Post 209601)
Umm... I really appreciate this detailed discussion of all the fine points of this useful app, but meanwhile I'm unable to install it (just pre-Diablo) as it apparently needs a whole slew of libs. Can somebody point me in the right direction, please (and how come install packages don't install or at least point to all the requisite libraries)?
I've downloaded it, and tried using the "install from file" command with A.M.

If you are using Chinook, you need to use the .install / .deb from the chinook repository. Try downloading and installing this:
http://repository.maemo.org/extras/p...14-3_armel.deb

Or else, in xterm try "apt-get install advanced-backlight" and see what happens.

XTC: Yeah, I don't have an N800 so I can't really test how the light sensor affects the operation of Advanced Backlight, but I would assume that is your problem. You can either disable it (there is a thread somewhere on the forum about this) or else wait for us to properly integrate light sensor support (may be a while, as it is not especially high priority at the moment). We are always looking for tips on how *you* think the light sensor should influence the application.

XTC 2008-08-03 14:50

Re: Advanced Backlight Statusbar Applet
 
For me it would be perfect to have more control over sensor driven behaviour. Example: independently set backlit level for both bright and dimmed behaviour.
I have no idea if there is an access to sensor values to set threshold of triggering values but it would be cool (ie setting at which point to light up hw keyboard separately).
I think that now sensor event sets the max level set by the default applet.

dan 2008-08-08 21:54

Re: Advanced Backlight Statusbar Applet
 
my old light and sound icons at top come back and knockout my advanced light/sound icons. I haven't added any apps other than Debian since it started happening. I just removed and reinstalled Advanced Backlight to v14-3. It just did it again while in app mgr. The screen goes white, then wifi connection comes back then the old display/sound icons comeback. I then have to go to panels and click on old display/sound icons, hit ok, wait for the icons to reappear in menu then click back into Panels and unclick old display/sound icons. Has anyone reported this other than me? TIA

Benson 2008-08-08 22:03

Re: Advanced Backlight Statusbar Applet
 
You have experienced a hildon-desktop crash, typically caused by a bug in some applet you have loaded. It then restarts hildon-desktop with everything in a known clean configuration, to avoid some applet crashing on initialization and causing a loop. Just open the control panel, go to panels, and click OK without changing anything and it'll restore your config for the navigator and taskbar panels; you'll have to restore the home-screen applets manually.

dan 2008-08-08 22:09

Re: Advanced Backlight Statusbar Applet
 
Thanks Benson. I will give it a try. I guess you mean OM weather? Will do. I will report back in a few days. Thanks

xandor 2008-08-17 16:17

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by rm_you (Post 209726)
If you are using Chinook, you need to use the .install / .deb from the chinook repository. Try downloading and installing this:
http://repository.maemo.org/extras/p...14-3_armel.deb

Or else, in xterm try "apt-get install advanced-backlight" and see what happens.

(finally getting back to this!)
Thanks, RM_YOU, but this hasn't helped. "apt-get" acted like it was doing something, but subsequent install attempts with A.M. produced the same result (and I downloaded from your suggested repository). The libraries are all still unavailable.
I'm running OS2007, 38-2, if that's germane.

I don't understand why all the libraries aren't just linked/compiled in!
(but I'm not much up on Linux, admittedly).

GeneralAntilles 2008-08-17 18:42

Re: Advanced Backlight Statusbar Applet
 
Quote:

Originally Posted by xandor (Post 214643)
I'm running OS2007, 38-2, if that's germane.

:rolleyes:

Advanced Backlight only supports OS2008.


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

vBulletin® Version 3.8.8