summaryrefslogtreecommitdiff
path: root/src/i830_lvds.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-11-14 15:46:57 -0800
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-11-14 15:46:57 -0800
commitb7bc694c6b98dac17763426d905a22d3ae17a018 (patch)
treedde6de4b96fa5facbfcda01238e03d94597195f9 /src/i830_lvds.c
parent9ee96ed02aacd953ab58288fddf0fa60f60b668e (diff)
Fix kernel get_brightness function
We need to look at "actual_brightness" rather than "brightness". The former contains the brightness value the kernel driver has actually set, while the latter is merely what the user requested.
Diffstat (limited to 'src/i830_lvds.c')
-rw-r--r--src/i830_lvds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_lvds.c b/src/i830_lvds.c
index 694414a3..0942d1cb 100644
--- a/src/i830_lvds.c
+++ b/src/i830_lvds.c
@@ -293,7 +293,7 @@ i830_lvds_get_backlight_kernel(xf86OutputPtr output)
char path[BACKLIGHT_PATH_LEN], val[BACKLIGHT_VALUE_LEN];
int fd;
- sprintf(path, "%s/%s/brightness", BACKLIGHT_CLASS,
+ sprintf(path, "%s/%s/actual_brightness", BACKLIGHT_CLASS,
backlight_interfaces[backlight_index]);
fd = open(path, O_RDWR);
if (fd == -1) {