[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/392122 Title: dim display when idle only dims but doesn't restore the previous value when not idle anymore To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/392122/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
I can confirm that this problem went away after unchecking reduce backlight brightness box for on battery power as suggested by Justyn in #17. My symptoms were the same as described where it would dim quicker than the 30 seconds idle and when the mouse moved it would never return the previous brightness. With this option unchecked it fixed this issue. Interestingly this setting seems to interfere in a number of areas and I suspect the problems people are having are due to conflicts with this setting. For example: If I turn the brightness all the way up using my hardware buttons (with this setting enabled) it goes to full brightness; however, if I open the power management system app it immediately dims to what I presume should be the maximum with the setting enabled. Possibly this means that the issue has more to do with the brightness buttons ignoring the reduce backlight brightness options and the system getting confused. I'm not sure how the power management is handled (though I plan to look) but perhaps the seemingly too quick dim is actually the system periodicly checking and noticing the brightness is higher than the reduced maximum and adjusting. A normal user would interpret this as an idle event when in fact it is unrelated. Morale of this story I think the problem is with the brightness buttons allowing the maximum brightness using the reduce backlight brightness to be bypassed causing the system to appear to randomly dim the screen and not appropriately restore the brightness when coming out of idle. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/392122 Title: dim display when idle only dims but doesn't restore the previous value when not idle anymore To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/392122/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
I'm very confident now in my previous statement and I'm pretty sure have found the bug. Attached is a log file (that is only sort of helpful) using gnome-power- manager --verbose and it shows the following: Turning on reduce backlight brightness - Backlight immediately goes to 50 (the new max) Use hardware keys to turn brightness up - Brightness will move all the way to 100 (past the max) Leave computer idle* -brightness adjusts for idle dim amount of 15 User responds by moving mouse to kick out of idle more - brightness will increase to reduced max of 50 So the immediate issue is that the hardware buttons are not respecting the reduced backlight brightness button. The clearly make it go past the max level of 50% and causes the unexpected behavior when coming out of idle. So the easiest resolution I think is make the hardware buttons respect the reduced backlight (note all the reduced backlight option does is multiply the normal backlight percentage by .5). This will cause some user confusion though as to why they can't make the brightness go all the way up so there needs to be some type of user feedback when the max is hit in this mode, probably as part of the nice little popup that comes up when hitting the brightness keys. I haven't inspected the code yet but it seems that the hardware keys really just ignore any of the internal scale options on the correct brightness percentage (shown below). If possible I'm just going to try make them utilize this percentage and the entire problem should be corrected. I've never looked at this code though so it may take me a while to figure it out. TI:20:15:35 TH:0x1ba3c80FI:gpm-backlight.c FN:gpm_backlight_brightness_evaluate_and_set,311 - 1. main brightness 1.00 TI:20:15:35 TH:0x1ba3c80FI:gpm-backlight.c FN:gpm_backlight_brightness_evaluate_and_set,331 - 2. battery scale 0.50, brightness 0.50 TI:20:15:35 TH:0x1ba3c80FI:gpm-backlight.c FN:gpm_backlight_brightness_evaluate_and_set,349 - 3. idle scale 1.00, brightness 0.50 * Now I can't prove this but it seems that it dims quickly when in reduced brightness mode like idle comes quicker. Maybe this is just paranoia. Regardless there should really be an option to set the idle timeout period to dim the screen and I can't find one. ** Attachment added: debug https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/392122/+attachment/2211037/+files/debug -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/392122 Title: dim display when idle only dims but doesn't restore the previous value when not idle anymore To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/392122/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
I think my change is all that will be needed to fix it, unfortunately I'm not sure how to build the dang thing so until I figure that out I can't test the patch. Regardless if someone can point me to an outline on how to build it or test it for me let me know. ** Patch added: 0001-Added-call-to-gpm_brightness_evaluate_and_set-into.patch https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/392122/+attachment/2211104/+files/0001-Added-call-to-gpm_brightness_evaluate_and_set-into.patch -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/392122 Title: dim display when idle only dims but doesn't restore the previous value when not idle anymore To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/392122/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
Also I'm not so sure I followed the style recommendations now that I think about it, my vim is setup for expandtabs and 2spaces=tab so it may require some changes if this actually fixes it. If I can get it to build to test I will update the patch if needed. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/392122 Title: dim display when idle only dims but doesn't restore the previous value when not idle anymore To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/392122/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
Confirming this on Macbook Air 3,2 with Ubuntu 11.4 64bit. Dim when idle turned on, will at random intervals dim but then only restores brightness afterwards to about 50%. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/392122 Title: dim display when idle only dims but doesn't restore the previous value when not idle anymore -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
Have you tried unchecking the reduce backlight brightness option in power management? I was seeing this problem under Ubuntu 11.04 on my 2nd-gen Core i7 laptop, that after dimming the brightness would always increase only to 50% regardless of what I had set the brightness to before. However when I uncheck the reduce backlight brightness box for on battery power (which automatically reduces backlight when you disconnect from the AC supply) the dimming works as expected and afterwards returns my brightness to whatever level it was before it dimmed. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/392122 Title: dim display when idle only dims but doesn't restore the previous value when not idle anymore -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
Same problem on 11.04 and MSI Wind -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/392122 Title: dim display when idle only dims but doesn't restore the previous value when not idle anymore -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
Can confirm this (the wrong restoration of backlight after dimming) still on 11.04 and eeePC 1005HAG -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu. https://bugs.launchpad.net/bugs/392122 Title: dim display when idle only dims but doesn't restore the previous value when not idle anymore -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
I am experiencing this issue as well. I discovered that the Power Manager Brightness Applet Cannot get laptop panel brightness, even though notify-osd correctly displays the brightness when I manually adjust it (using my laptop's acpi hotkeys). So I am wondering if Gnome Power Manager is attempting to get the current brightness from the same place as Power Manager Brightness Applet, and when it fails, it sets the un-idle brightness to the hard-coded value of 50% (from /apps/gnome- power-manager/backlight/brightness_dim_battery). Unfortunately it's very difficult to test this, because the idle dimming is not triggered every time after 10 seconds (gconf setting) as I would expect. I'm not sure what is going on here. It does seem almost random when it is triggered. For some inexplicable reason, they have removed the setting from G-P-M preferences to control what you want your brightness set to when idle. The gconf setting is not absolute, but rather a percentage of the full brightness setting--this I just think is counter-intuitive. In any case, Some of the problem may also have to do with rounding errors. My computer has 8 brightness levels: 12 24 36 48 60 72 84 100. I have brightness_ac set to 100. Then using the acpi hotkeys, I turn the brightness down 1 level to 84. I unplug my AC cable, and it drops to 48 (42 is halfway between 36 and 48 so it rounds up I guess?). Then, when I plug the cable back in, it gets reset to 72! I cannot explain this at all. It repeats this same pattern for every brightness level below 100, but if it is initially at 100 when I unplug it, it gets restored to 100 just fine. I'm not sure all of this is applicable to this bug, it seems like there are several things all going wrong at once here. And I imagine it's machine-specific as well, leading to quite a wonderful mess! -- dim display when idle only dims but doesn't restore the previous value when not idle anymore https://bugs.launchpad.net/bugs/392122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
I have similar problems.The problems started when I DISABLED dim when idle. Now, independently of whether I have dim when idle enabled or not, the screen dims every 1-2 minutes, and sometimes it does not dim when idle, but dims when I move the mouse I am on a Asus 1005HA. -- dim display when idle only dims but doesn't restore the previous value when not idle anymore https://bugs.launchpad.net/bugs/392122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 392122] Re: dim display when idle only dims but doesn't restore the previous value when not idle anymore
Still correct for Lucid with gnome-power-manager 2.30.0-0ubuntu1 -- dim display when idle only dims but doesn't restore the previous value when not idle anymore https://bugs.launchpad.net/bugs/392122 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs