[Pkg-xfce-devel] Bug#409971: Patch xfce4-battery-plugin for libacpi.c

Gennaro Del Campo gennaro.delcampo at gmail.com
Wed Jul 25 10:39:40 UTC 2007


Hi,
i discovered that the problem is that the file  /proc/acpi/info is not
present because is deprecated by
/sys/module/acpi/parameters/acpica_version.
To create /proc/acpi/info is needed to set CONFIG_ACPI_PROCFS (that is
deprecated) kernel config.

This is the code interested in libacpi.c:

193 if (!(acpi = fopen ("/proc/acpi/info", "r")))
194   {
195 #ifdef DEBUG
196           printf("DBG:no acpi: /proc/acpi/info not found!\n");
197 #endif
198     return 1;
199   }
200
201   /* yep, all good */
202   fclose (acpi);

In attachment there is a patch to resolve this problem without set
CONFIG_ACPI_PROCFS.

Ciao,
  IsMaEl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xfce4-battery-plugin-0.5.0-acpi.patch
Type: text/x-patch
Size: 739 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20070725/e8bb062e/attachment.bin 


More information about the Pkg-xfce-devel mailing list