You are not logged in.

#1 2006-04-22 06:20:12

nedson
Member
Registered: 2006-03-26
Posts: 26

adesklets system monitor is not starting

Hello! I have insalled adesklets and have several running on my machine...however, I can't seem to get system monitor running...I've looked on the adesklet website and in the forums and can't figure out what's going wrong...anyhow here is the message after i type ./SystemMonitor.py:

Do you want to (r)egister this desklet or to (t)est it? t
Now testing...
============================================================
If you do not see anything (or just an initial flicker
in the top left corner of your screen), try `--help',
and see the FAQ: `info adesklets'.
============================================================
Traceback (most recent call last):
  File "./SystemMonitor.py", line 1107, in ?
    EventHandler(dirname(__file__)).pause()
  File "./SystemMonitor.py", line 974, in __init__
    adesklets.Events_handler.__init__(self)
  File "/usr/lib/python2.4/site-packages/adesklets/events_handler.py", line 157,                         in __init__
    self.ready()
  File "./SystemMonitor.py", line 1004, in ready
    self.meters[-1].create((8,tmp_height), self.basedir, meter[1])
  File "./SystemMonitor.py", line 918, in create
    info = self.parseFile(self.info_file)
  File "./SystemMonitor.py", line 899, in parseFile
    acpi_file = open(file, "r")
IOError: [Errno 2] No such file or directory: '/proc/acpi/battery/BAT0/info'

Any ideas?  Thanks!

Offline

#2 2006-04-22 16:21:38

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: adesklets system monitor is not starting

You need to check why you don't have /proc/acpi/battery/BAT0/info. SystemMonitor is doing what it's meant to do, but you're asking it to process data that isn't there. Alternatively, you could do without the battery monitor, in which you need to remove/comment out the relevant section in config.txt.

Offline

#3 2006-04-22 17:17:52

nedson
Member
Registered: 2006-03-26
Posts: 26

Re: adesklets system monitor is not starting

Thanks for the reply...

I have tried editing the config file and removing the battery meter info...
However, I'm still getting some errors...

I just deleted out the battery meter info from SystemMonitor.py...

Yes, I know its an ugly hack --but it worked. big_smile

Offline

#4 2006-04-22 20:11:10

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: adesklets system monitor is not starting

Woo-hoo. big_smile

Next time pacman updates the package, that change will be overwritten. Seriously, read the README and edit the config file.

Offline

#5 2006-04-23 14:55:18

nedson
Member
Registered: 2006-03-26
Posts: 26

Re: adesklets system monitor is not starting

Yes you are correct...I of course read the README and edited the config file...however, I couldn't get it to display...the config file kept getting overwritten by the file the systemmonitor.py generates...not sure what i did wrong... :oops:


On updating...Yes...this is true...hadn't really thought that far down the road...when I update, things are not going to work...

I also hacked SystemMonitor.py so it displays my cpu temp using i2c not acpi...

So I guess when it updates I'll just hack it again (or not update)... big_smile

Thanks!

Offline

#6 2011-01-13 08:46:16

maribu8789
Member
Registered: 2011-01-13
Posts: 3

Re: adesklets system monitor is not starting

Hi there!

I had the same problem, too. You battery is maybe showed as BAT1, not BAT0. If you change BAT0 to BAT1 in your config.txt and the python script it will work fine!

Offline

#7 2011-01-13 20:34:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: adesklets system monitor is not starting

maribu8789, weclome to the forum. Please read the Forum Etiquette to familiarise yourself with the way things work around here.

In this case, you have resurrected a zombie thread from nearly five years ago which, as you will see from the etiquette, is not permitted.

Thread closed.

Offline

Board footer

Powered by FluxBB