After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744277 - power: Use the backlight helper on Linux unconditionally
power: Use the backlight helper on Linux unconditionally
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: power
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2015-02-10 16:06 UTC by Rui Matos
Modified: 2015-02-16 17:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
power: Use the backlight helper on Linux unconditionally (6.67 KB, patch)
2015-02-10 16:06 UTC, Rui Matos
needs-work Details | Review
power: Use the backlight helper on Linux unconditionally (7.17 KB, patch)
2015-02-16 16:32 UTC, Rui Matos
committed Details | Review

Description Rui Matos 2015-02-10 16:06:33 UTC
This makes us use the same code paths on both X11 and Wayland
sessions.
Comment 1 Rui Matos 2015-02-10 16:06:37 UTC
Created attachment 296520 [details] [review]
power: Use the backlight helper on Linux unconditionally
Comment 2 Bastien Nocera 2015-02-16 15:11:04 UTC
Review of attachment 296520 [details] [review]:

::: plugins/power/gpm-common.c
@@ +562,3 @@
         }
+        return -1;
+#endif

#else ?

@@ +582,3 @@
         }
+        return value;
+#endif

#else again?

@@ +626,3 @@
         }
+        return ret;
+#endif

Ditto.

@@ +677,3 @@
         }
+        return percentage_value;
+#endif

Ditto.

@@ +732,3 @@
         }
+        return percentage_value;
+#endif

Ditto.

@@ +762,3 @@
                 return gnome_rr_output_set_backlight (output, value, error);
+        return ret;
+#endif

Ditto.
Comment 3 Rui Matos 2015-02-16 16:32:02 UTC
Created attachment 296947 [details] [review]
power: Use the backlight helper on Linux unconditionally

--
Switched to #else ... #endif
Comment 4 Bastien Nocera 2015-02-16 16:37:38 UTC
Review of attachment 296947 [details] [review]:

Fine by me.
Comment 5 Rui Matos 2015-02-16 17:08:51 UTC
Attachment 296947 [details] pushed as dbd3b13 - power: Use the backlight helper on Linux unconditionally