1
0
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:
root
2010-12-24 14:41:31 +01:00
parent 2c0b260120
commit 93da9b5ba4
3 changed files with 50 additions and 15 deletions

View 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");