mirror of
https://github.com/gryf/gryf-overlay.git
synced 2026-03-30 09:53:32 +02:00
Fixed detecting for ACPI in wmpower
This commit is contained in:
12
x11-plugins/wmpower/files/wmacpi_acpi_detect.patch
Normal file
12
x11-plugins/wmpower/files/wmacpi_acpi_detect.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- wmpower-0.4.3_orig/src/power_management/acpi/libacpi.c 2005-09-06 12:09:10.000000000 +0200
|
||||
+++ wmpower-0.4.3/src/power_management/acpi/libacpi.c 2010-12-24 14:31:01.000000000 +0100
|
||||
@@ -77,9 +77,6 @@
|
||||
struct dirent *batt;
|
||||
char *name;
|
||||
|
||||
- /* do proc entries for acpi exist? */
|
||||
- if (access("/proc/acpi/info", R_OK) != 0) return 0;
|
||||
-
|
||||
/* now enumerate batteries */
|
||||
batt_count = 0;
|
||||
battdir = opendir ("/proc/acpi/battery");
|
||||
Reference in New Issue
Block a user