Sisyphus repositório
Última atualização: 19 outubro 2019 | SRPMs: 17506 | Visitas: 15290443
en ru br
ALT Linux repositórios
S:1.39-alt8
5.0: 1.23-alt1
4.1: 1.17-alt1.1
4.0: 1.14-alt1

Group :: Sistema/Kernel e hardware
RPM: pommed

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0001-Add-support-for-LCD-back-light-on-latest-kernels.patch
Download


From 2d70e55e934a04f910c34649b7b239430bccce49 Mon Sep 17 00:00:00 2001
From: "Ilya A. Volynets" <ilya@theilya.com>
Date: Sun, 4 Nov 2012 13:06:13 -0800
Subject: [PATCH] Add support for LCD back-light on latest kernels
---
 pommed/sysfs_backlight.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/pommed/sysfs_backlight.c b/pommed/sysfs_backlight.c
index d2cf9f7..eb03aa8 100644
--- a/pommed/sysfs_backlight.c
+++ b/pommed/sysfs_backlight.c
@@ -47,6 +47,7 @@ enum {
   SYSFS_DRIVER_NVIDIA,
   SYSFS_DRIVER_NOUVEAU,
   SYSFS_DRIVER_ACPI,
+  SYSFS_DRIVER_GMUX,
 #endif
   SYSFS_DRIVER_MAX
 };
@@ -70,6 +71,7 @@ static char *actual_brightness[] =
     "/sys/class/backlight/nvidia_backlight/actual_brightness",
     "/sys/class/backlight/nv_backlight/actual_brightness",
     "/sys/class/backlight/acpi_video0/actual_brightness",
+    "/sys/class/backlight/gmux_backlight/actual_brightness",
 #endif
   };
 
@@ -88,6 +90,7 @@ static char *brightness[] =
     "/sys/class/backlight/nvidia_backlight/brightness",
     "/sys/class/backlight/nv_backlight/brightness",
     "/sys/class/backlight/acpi_video0/brightness",
+    "/sys/class/backlight/gmux_backlight/brightness",
 #endif
   };
 
@@ -106,6 +109,7 @@ static char *max_brightness[] =
     "/sys/class/backlight/nvidia_backlight/max_brightness",
     "/sys/class/backlight/nv_backlight/max_brightness",
     "/sys/class/backlight/acpi_video0/max_brightness",
+    "/sys/class/backlight/gmux_backlight/max_brightness",
 #endif
   };
 
@@ -349,7 +353,7 @@ sysfs_backlight_probe(int driver)
 {
   if (access(brightness[driver], W_OK) != 0)
     {
-      logdebug("Failed to access brightness node: %s\n", strerror(errno));
+      logdebug("Failed to access brightness node '%s': %s\n", brightness[driver], strerror(errno));
       return -1;
     }
 
-- 
1.7.8.6
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009