Menu

#117 lxpanel battery plugin couldn't open status files

closed-duplicate
martyj19
None
5
2009-06-14
2009-06-14
Dongxu Li
No

in batt.c, searching proc and sysfs both fail.

#define AC_ADAPTER_STATE_FILE "/proc/acpi/ac_adapter/AC0/state"
#define AC_ADAPTER_STATE_SYSFS_FILE "/sys/class/power_supply/AC0/online"

while the only file exists in my box is:

/sys/class/power_supply/AC/online

I don't have either /proc/acpi/ac_adapter or /sys/class/power_supply/AC0/online.
------------------------------------------------
# uname -a
Linux localhost 2.6.30 #1 SMP PREEMPT Wed Jun 10 04:23:12 CDT 2009 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux
# ls /proc/acpi/
button event power_resource thermal_zone wakeup
embedded_controller ibm processor video
# ls /sys/class/power_supply/
AC BAT0

Discussion

  • Dongxu Li

    Dongxu Li - 2009-06-14

    /proc/config.gz, kernel config file

     
  • martyj19

    martyj19 - 2009-06-14

    Functional duplicate of 2378426. The battery plugin is being rewritten to use proper interfaces, and as I understand it is nearing completion. This was also discussed on the forum in the last several days.

     
  • martyj19

    martyj19 - 2009-06-14
    • assigned_to: nobody --> martyj19
    • status: open --> closed-duplicate
     

Log in to post a comment.