Using this instrumentation patch for debugging:

--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -51,6 +51,14 @@
 int
 gsd_power_backlight_abs_to_percentage (int min, int max, int value)
 {
+        g_log (G_LOG_DOMAIN,
+           G_LOG_LEVEL_CRITICAL,
+           "file %s: line %d (%s): min is %u, max is %u, value is %u",
+           __FILE__,
+           __LINE__,
+           G_STRFUNC,
+           min, max, value);
+
         g_return_val_if_fail (max > min, -1);
         g_return_val_if_fail (value >= min, -1);
         g_return_val_if_fail (value <= max, -1);

Before sleep:

17:34:05 gsd-power: file ../plugins/power/gpm-common.c: line 58 
(gsd_power_backlight_abs_to_percentage): min is 0, max is 2, value is 0
17:34:05 gsd-power: file ../plugins/power/gpm-common.c: line 58 
(gsd_power_backlight_abs_to_percentage): min is 2, max is 255, value is 12
17:34:05 gsd-power: file ../plugins/power/gpm-common.c: line 58 
(gsd_power_backlight_abs_to_percentage): min is 2, max is 255, value is 12

After sleep:

17:35:29 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max > 
min' failed
17:35:29 gsd-power: file ../plugins/power/gpm-common.c: line 58 
(gsd_power_backlight_abs_to_percentage): min is 4294967295, max is 4294967295, 
value is 4294967295
17:35:29 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max > 
min' failed
17:35:29 gsd-power: file ../plugins/power/gpm-common.c: line 58 
(gsd_power_backlight_abs_to_percentage): min is 4294967295, max is 4294967295, 
value is 4294967295
17:35:29 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max > 
min' failed
17:35:29 gsd-power: file ../plugins/power/gpm-common.c: line 58 
(gsd_power_backlight_abs_to_percentage): min is 4294967295, max is 4294967295, 
value is 4294967295
17:35:29 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max > 
min' failed
17:35:29 gsd-power: file ../plugins/power/gpm-common.c: line 58 
(gsd_power_backlight_abs_to_percentage): min is 4294967295, max is 4294967295, 
value is 4294967295
17:35:28 gsd-power: gsd_power_backlight_abs_to_percentage: assertion 'max > 
min' failed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2081294

Title:
  gsd_power_backlight_abs_to_percentage: assertion 'max > min' failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-settings-daemon/+bug/2081294/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to