[Xfce4-commits] [xfce/xfce4-power-manager] 03/03: Read from actual_brightness instead of brightness
noreply at xfce.org
noreply at xfce.org
Sun Apr 14 21:36:16 CEST 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-power-manager.
commit 34fe4403faaf6fe0a9de14153e32d5d3c92b919a
Author: Kacper Piwiński <vfjpl1 at gmail.com>
Date: Sun Apr 14 16:34:46 2019 -0300
Read from actual_brightness instead of brightness
From https://www.kernel.org/doc/Documentation/ABI/stable/sysfs-class-backlight
What: /sys/class/backlight/<backlight>/brightness
Date: April 2005
KernelVersion: 2.6.12
Contact: Richard Purdie <rpurdie at rpsys.net>
Description:
Control the brightness for this <backlight>. Values
are between 0 and max_brightness. This file will also
show the brightness level stored in the driver, which
may not be the actual brightness (see actual_brightness).
Users: HAL
What: /sys/class/backlight/<backlight>/actual_brightness
Date: March 2006
KernelVersion: 2.6.17
Contact: Richard Purdie <rpurdie at rpsys.net>
Description:
Show the actual brightness by querying the hardware.
Users: HAL
---
src/xfpm-backlight-helper.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/xfpm-backlight-helper.c b/src/xfpm-backlight-helper.c
index 9b5aecc..6e96849 100644
--- a/src/xfpm-backlight-helper.c
+++ b/src/xfpm-backlight-helper.c
@@ -1,6 +1,7 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2010 Richard Hughes <richard at hughsie.com>
+ * Copyright (C) 2019 Kacper Piwiński
*
* Licensed under the GNU General Public License Version 2
*
@@ -612,7 +613,7 @@ main (gint argc, gchar *argv[])
/* get current brightness level */
if (get_brightness) {
- filename_file = g_build_filename (filename, "brightness", NULL);
+ filename_file = g_build_filename (filename, "actual_brightness", NULL);
ret = g_file_get_contents (filename_file, &contents, NULL, &error);
if (!ret) {
g_print ("Could not get the value of the backlight: %s\n", error->message);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list