On Tue, 01 May 2012 09:47:44 +0200 Massimo Maiurana <[email protected]> said:
> P Purkayastha, il 17/04/2012 00:36, ha scritto: > > On 04/17/2012 03:26 AM, Massimo Maiurana wrote: > >> well, I've just discovered it today, trying to see how the gadget works, > >> but my E build is very old and I'll not update it until ubuntu 12.04 is > >> out, because I'm on 10.04 now and an update would make me loose connman > >> functionalities, so don't bother with it ;) > > > > Oh. I remember now. This was some rounding problem. It has been fixed > > already, long ago. > > ok, I've finally upgrade to 12.04 but... that issue is not gone at all :( > also, it looks like it doesn't have anything to do with Fn keys, because > doesn't happen only when dimming through keys. > > this is what happens: > xrandr tells me I have 10 levels of backlight, from 0 to 9, as always. > whatever default level I set in the backlight module (normal backlight) at > boot it is set one level less. I haven't tried with high levels because they > hurts me, but tried with values from 20 to 30. > after boot, i click on the gadget and try to move the cursor with arrow keys > starting from the bottom; of course the first level is 0, as it should be, but > the second level is 0 too, while it should be 1. every other step is actually > 1 level lower too. this is because the cursor has actually 11 steps, but this > does not reflect the available levels as they're 10. it doesn't work this way - the HARDWARE may only support N steps, but e maps it to a float (double) from 0.0 to 1.0. every time u step up with a key (or the mouse) it will step the same amount in floating point space. someone with hardware that does 10 steps vs someone who has 100 steps will get the same experience - or as close to the same as can be done given their hardware. > ok, let's say i set the cursor on the third position, which in our case > corresponds to level 1 (second level og brightness). all fine, xrandr says > that backlight is set to 1, regardless of what the cursor's position, but > that's the level I want so it's fine. in this situation, if I click on the > gadget the cursor moves to step 2, and the backlight goes to level 0 :( > the odd thing is that every time I click on the gadget it goes one step down, > so another click moves the cursor to step 1. this happens with some positions > of the cursor and not with others, specifically: > cursor at 10 -> click on it -> it stays at 10 > cursor at 9 -> click on it -> it stays at 9 > cursor at 8 -> click on it -> it stays at 8 > cursor at 7 -> click on it -> it lowers to 6 > cursor at 6 -> click on it -> it stays at 6 > cursor at 5 -> click on it -> it stays at 5 > cursor at 4 -> click on it -> it stays at 4 > cursor at 3 -> click on it -> it lowers to 2 > cursor at 2 -> click on it -> it lowers to 1 > cursor at 1 -> click on it -> it lowers to 0 > > let me know if I'm not clear enough :) you are seeing rounding here. a result of e fetching the current value and i think along the way setting it back, but in that process it getting rounded down due to limited resolution in backlight hw. i never see this as i pretty much have the bl set to full or minimmum and not much in between :) > -- > > Massimo Maiurana massimo<at>ragusa.linux.it > http://massimo.solira.org GPG keyID #7044D601 > > Creare l'uomo fu un'idea bizzarra e originale, > ma aggiungere la pecora fu una tautologia. > [Mark Twain] > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-users
