screensaver events cause gnome-power-manager to switch to full brightness by itself sporadically

Bug #218894 reported by Philipp Rustemeier on 2008-04-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: gnome-power-manager

Hi, I'm on a Thinkpad R60e, using Hardy, and gpm is version 2.22.1-1ubuntu4.

My problem is that occasionally, my laptop will just turn the screen up to full brightness, most noticeably when I'm trying to play a movie or doing anything after a short period of inactivity. I've looked around a little, and I think I see the problem. This is gpm's log just after I pressed a key after leaving the computer alone for half a minute.

[gpm_screensaver_powersave_idle_changed] gpm-screensaver.c:102 (22:56:22): emitting powersave-idle-changed : (0)
[powersave_idle_changed_cb] gpm-idle.c:335 (22:56:22): Received GS powesave idle changed: 0
[gpm_idle_set_mode] gpm-idle.c:98 (22:56:22): Doing a state transition: 0
[gpm_backlight_notify_system_idle_changed] gpm-backlight.c:602 (22:56:22): we have just been idle for 24,336674s
[gpm_backlight_notify_system_idle_changed] gpm-backlight.c:633 (22:56:22): changing powersave idle status to 0
[gpm_brightness_lcd_get_hw] gpm-brightness-lcd.c:116 (22:56:22): GetBrightness returned level: 0
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:378 (22:56:22): 1. currently set brightness 0,000000
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:414 (22:56:22): 2. battery change by -0,000010, brightness 0,000000
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:451 (22:56:22): 3. idle change by 0,700000, brightness 0,700000
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:471 (22:56:22): 4. ambient scale 1,000000, brightness 0,700000
[gpm_brightness_lcd_get_hw] gpm-brightness-lcd.c:116 (22:56:22): GetBrightness returned level: 0
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:489 (22:56:22): emitting brightness-changed : 70
[gpm_brightness_lcd_dim_hw] gpm-brightness-lcd.c:267 (22:56:22): new_level_hw=3
[gpm_brightness_lcd_dim_hw_step] gpm-brightness-lcd.c:198 (22:56:22): new_level_hw=3, last_set_hw=0
[gpm_brightness_lcd_set_hw] gpm-brightness-lcd.c:155 (22:56:22): Setting 0 of 5
[gpm_brightness_lcd_set_hw] gpm-brightness-lcd.c:155 (22:56:22): Setting 1 of 5
[gpm_brightness_lcd_set_hw] gpm-brightness-lcd.c:155 (22:56:22): Setting 2 of 5
[gpm_brightness_lcd_set_hw] gpm-brightness-lcd.c:155 (22:56:22): Setting 3 of 5
[gpm_backlight_sync_policy] gpm-backlight.c:161 (22:56:22): choosing sensible default
[gpm_backlight_sync_policy] gpm-backlight.c:163 (22:56:22): laptop, so use GPM_DPMS_METHOD_OFF
[gpm_backlight_sync_policy] gpm-backlight.c:195 (22:56:22): BACKLIGHT parameters 0 0 300, method '4'
[x11_sync_server_dpms_settings] gpm-dpms.c:130 (22:56:22): Syncing DPMS settings enabled=1 timeouts=0 0 0
[idle_changed_cb] gpm-manager.c:869 (22:56:22): Idle state changed: NORMAL
[gpm_info_event_log] gpm-info.c:594 (22:56:22): Adding 4 to the event log

Apparently this is where something goes wrong:
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:451 (22:56:22): 3. idle change by 0,700000, brightness 0,700000

Disabling the screensaver doesn't help. Are there any workarounds until this is fixed? It's rather annoying, because I don't like reading at full brightness (and it's harder on the battery).

Thanks in advance!

On Thu, 2008-04-17 at 21:17 +0000, Philipp Rustemeier wrote:
> My problem is that occasionally, my laptop will just turn the screen up
> to full brightness, most noticeably when I'm trying to play a movie or
> doing anything after a short period of inactivity. I've looked around a
> little, and I think I see the problem. This is gpm's log just after I
> pressed a key after leaving the computer alone for half a minute.

Could you please include the log before this. GPM should have dimmed
the display when it thinks you are idle, and then renewed the setting
when you come back. That's the expected behavior.

> Disabling the screensaver doesn't help. Are there any workarounds until
> this is fixed? It's rather annoying, because I don't like reading at
> full brightness (and it's harder on the battery).

You can turn off idle dimming by deselecting "Dim when idle" in
System->Preferences->Power Management.

Philipp Rustemeier (12foo) wrote :
Download full text (8.9 KiB)

Hi,

I lost the old log, but here's a new one. I can definitely reproduce it.

[gpm_screensaver_powersave_idle_changed] gpm-screensaver.c:102 (11:09:26): emitting powersave-idle-changed : (1)
[powersave_idle_changed_cb] gpm-idle.c:335 (11:09:26): Received GS powesave idle changed: 1
[gpm_idle_set_mode] gpm-idle.c:98 (11:09:26): Doing a state transition: 1
[gpm_backlight_notify_system_idle_changed] gpm-backlight.c:630 (11:09:26): we were active for 67,170069s
[gpm_backlight_notify_system_idle_changed] gpm-backlight.c:633 (11:09:26): changing powersave idle status to 1
[gpm_brightness_lcd_get_hw] gpm-brightness-lcd.c:116 (11:09:26): GetBrightness returned level: 0
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:378 (11:09:26): 1. currently set brightness 0,000000
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:414 (11:09:26): 2. battery change by -0,000010, brightness 0,000000
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:451 (11:09:26): 3. idle change by 0,000000, brightness 0,000000
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:471 (11:09:26): 4. ambient scale 1,000000, brightness 0,000000
[gpm_brightness_lcd_get_hw] gpm-brightness-lcd.c:116 (11:09:26): GetBrightness returned level: 0
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:479 (11:09:26): values are the same, no action
[gpm_info_event_log] gpm-info.c:594 (11:09:26): Adding 2 to the event log
[gpm_screensaver_powersave_idle_changed] gpm-screensaver.c:102 (11:09:34): emitting powersave-idle-changed : (0)
[powersave_idle_changed_cb] gpm-idle.c:335 (11:09:34): Received GS powesave idle changed: 0
[gpm_idle_set_mode] gpm-idle.c:98 (11:09:34): Doing a state transition: 0
[gpm_backlight_notify_system_idle_changed] gpm-backlight.c:602 (11:09:34): we have just been idle for 8,270927s
[gpm_backlight_notify_system_idle_changed] gpm-backlight.c:613 (11:09:34): increasing idle dim time to 60s
[gpm_backlight_notify_system_idle_changed] gpm-backlight.c:633 (11:09:34): changing powersave idle status to 0
[gpm_brightness_lcd_get_hw] gpm-brightness-lcd.c:116 (11:09:34): GetBrightness returned level: 0
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:378 (11:09:34): 1. currently set brightness 0,000000
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:414 (11:09:34): 2. battery change by -1,834213, brightness 0,000000
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:451 (11:09:34): 3. idle change by 0,700000, brightness 0,700000
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:471 (11:09:34): 4. ambient scale 1,000000, brightness 0,700000
[gpm_brightness_lcd_get_hw] gpm-brightness-lcd.c:116 (11:09:34): GetBrightness returned level: 0
[gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:489 (11:09:34): emitting brightness-changed : 70
[gpm_brightness_lcd_dim_hw] gpm-brightness-lcd.c:267 (11:09:34): new_level_hw=3
[gpm_brightness_lcd_dim_hw_step] gpm-brightness-lcd.c:198 (11:09:34): new_level_hw=3, last_set_hw=0
[gpm_brightness_lcd_set_hw] gpm-brightness-lcd.c:155 (11:09:34): Setting 0 of 5
[gpm_brightness_lcd_set_hw] gpm-brightness-lcd.c:155 (11:09:34): Setting ...

Read more...

Philipp Rustemeier (12foo) wrote :

Also, since it's basically working like expected, the real problem seems to be that GPM just restores to full brightness instead of the former level. Should I change the bug description or something? Sorry, I'm new to Launchpad.

Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue that you reported is one that should be reproducible with the live environment of the Desktop CD of the development release - Intrepid Ibex. It would help us greatly if you could test with it so we can work on getting it fixed in the next release of Ubuntu. You can find out more about the development release at http://www.ubuntu.com/testing/ . Thanks again and we appreciate your help.

Changed in gnome-power-manager:
status: New → Incomplete
Philipp Rustemeier (12foo) wrote :

I just tested it with the 8.10 Live CD, and it looks like it's fixed! Works for me, in any case. Thanks!

Philipp Rustemeier (12foo) wrote :

Works for me! Changing this to 'committed' because it'll be fixed when 8.10 is out. If this is wrong, please correct me - I'm not too familiar with Launchpad.

Changed in gnome-power-manager:
status: Incomplete → Fix Committed
Przemek K. (azrael) on 2009-12-14
Changed in gnome-power-manager (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers