Xfce Forum

Sub domains
 

You are not logged in.

#1 2007-07-15 09:10:44

jacobbe
Member
From: Italy
Registered: 2006-06-04
Posts: 10

Battery Monitor broked with 2.6.22

After upgrading to 2.6.22 the Battery monitor stop working.
Here a screenshot.

panelat7.th.png

Offline

#2 2007-08-29 12:29:04

jacobbe
Member
From: Italy
Registered: 2006-06-04
Posts: 10

Re: Battery Monitor broked with 2.6.22

Here is a patch:

diff -urN xfce4-battery-plugin-0.5.0/panel-plugin/libacpi.c xfce4-battery-plugin
-0.5.0-new/panel-plugin/libacpi.c
--- xfce4-battery-plugin-0.5.0/panel-plugin/libacpi.c   2007-01-17 18:56:51.0000
00000 +0100
+++ xfce4-battery-plugin-0.5.0-new/panel-plugin/libacpi.c       2007-07-25 12:03
:41.000000000 +0200
@@ -190,10 +190,12 @@
 #ifdef __linux__
   FILE *acpi;
 
-  if (!(acpi = fopen ("/proc/acpi/info", "r")))
+  if (!(acpi = fopen ("/proc/acpi/info", "r")) &&
+       !(acpi = fopen ("/sys/module/acpi/parameters/acpica_version", "r")))
   {
 #ifdef DEBUG
-         printf("DBG:no acpi: /proc/acpi/info not found!\n");
+         printf("DBG:no acpi: /proc/acpi/info or "
+                       "/sys/module/acpi/parameters/acpica_version not found!\n
");
 #endif
     return 1;
   }

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 516.05 KiB (Peak: 517.33 KiB) ]