You are not logged in.

#1 2010-12-14 10:05:02

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

[solved]ibamtray is not working

ibamtray is a cute battery monitor application. now it fails to start and the cl output is

No apm data available.
Traceback (most recent call last):
  File "/usr/bin/ibamtray", line 6, in <module>
    app.run ()
  File "/usr/lib/python2.7/site-packages/ibamtray.py", line 96, in run
    self.update_status ()
  File "/usr/lib/python2.7/site-packages/ibamtray.py", line 114, in update_status
    self.info.check ()
  File "/usr/lib/python2.7/site-packages/ibamtray.py", line 75, in check
    int (re.search (IBAM_SEARCH_PTRN, x).group (2)) for x in data]
AttributeError: 'NoneType' object has no attribute 'group'

I think apm could not read the data from /sys/class/power_supply/BAT0/ or /proc/acpi/battery/BAT0/state and causes this issue.

It is a bug in the source code of ibam  which did not check the battery naming (BAT0/BAT1 etc). For more details see this bug report

Last edited by kgas (2010-12-24 13:28:54)

Offline

Board footer

Powered by FluxBB