doomCpu

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

This program is designed to be a re-write of the Dock App called 'wmdl'. It changes the face of the Doom character by updating, every second, the cpu usage calculated by comparing /proc/stat cpu info. His face becomes more battered with more cpu usage on your system. Note: 'wmdl' was orignally written by Ben Cohen, buddog@aztec.asu.edu, and it can be downloaded either at rpmfind.net or by visiting http://web.cs.mun.ca/~gstarkes/wmaker/dockapps/
Last changelog:

15 years ago

version 0.7:
11/27/2005 - fixed the cpu load not being split correctly as another field was added with recent kernels to /proc/stat
- This should be future proof now for some time

PreacherDave

13 years ago

Ok, I haven't had this working for me with suse 10.0 OSS, here's the debug output I get

Traceback (most recent call last):
File "/home/david/bin/karamba/tmp/doomCpu.py", line 151, in widgetUpdated
cpuLoad()
File "/home/david/bin/karamba/tmp/doomCpu.py", line 53, in cpuLoad
(junk,user,nice,system,idle,junk2,junk3,junk4) = file('/proc/stat').readline().split()
ValueError: too many values to unpack

from uname -a
Linux [hostname_here] 2.6.13-15-default #1 Tue Sep 13 14:56:15 UTC 2005 i686 i686 i386 GNU/Linux

SuSE-release,
SUSE LINUX 10.0 (i586) OSS
VERSION = 10.0

KDE:
Qt: 3.3.4
KDE: 3.4.2 Level "b"

Python 2.4.1

I installed via the internet installation cd

Oh, and here's /proc/stat for me
cpu 100138 3970 13809 683839 25250 1704 1848 0
cpu0 100138 3970 13809 683839 25250 1704 1848 0
intr 3089667 2076272 2 0 605341 3 85224 0 4 2 12266 35083 32027 147366 0 96077 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 5463713
btime 1130006688
processes 31704
procs_running 2
procs_blocked 0

Hopefully that's enough (but not too much) info

Report

C

p0z3r

13 years ago

Sorry about that. It should be fixed now.

Report

draven007

14 years ago

I'm not sure why, but this widget isn't showing any pictures. It's createing the superkaramba frame, but it's just a transparent one. Any suggestions? Thanks!

Report

C

p0z3r

14 years ago

Try running superkaramba in a terminal and post the output if you see any errors.

Report

akincisor

15 years ago

As it is now, it updates every second or so. This means that short spikes in usage cause the face to change dramatically. Maybe averaging over a few seconds will give a smoother transition?

Report

C

p0z3r

15 years ago

Very good suggestion. I'll see if I can't add that in when I get time here shortly.

Report

Ayurvedi

15 years ago

I can't get this works with kernel 2.6.x, while it works on 2.4.x ...

Report

C

p0z3r

15 years ago

Sorry for the delay..
This cpu monitor actually cat's your /proc/stat file to get information. I'm not sure what would be different in respect to 2.4 vs. 2.6 kernels, but what you can do to help me is to change the debug variable to 1 and post the output or email me.

Report

goverd

15 years ago

Just edit the doomCpu.py file and substitute the line

(junk,user,nice,system,idle) = file('/proc/stat').readline().split()

for

(junk,user,nice,system,idle,junk2,junk3,junk4) = file('proc/stat').readline().split()

Report

C

p0z3r

15 years ago

Thanks for the info. It will be updated probably tomorrow with a new package.

Report

Lenz

15 years ago

I think the idea is very very funny, but unfortunately it doesn't work as it should on my machine! The face doesn't change... Has anyone a clue why?

Report

C

p0z3r

15 years ago

So, it doesn't move at all? Does the cpu% readout change? Have you tried right clicking and changing the Ignore nice'd processes option?
Maybe set 'debug = 1' in the doomCpu.py file and post the output or email me.
cheers,
-p0z3r

Report

18volt

15 years ago

This is one of the coolest karamba themes i have ever seen, I love doom ;)

Report

C

p0z3r

15 years ago

Glad you like it!

Report

Exdaix

15 years ago

If you click the second or third screenshot, then change the file extension from .jpg to .png they show up.

Report

C

p0z3r

15 years ago

Thanks, it's fixed now.. =c)

Report

Exdaix

15 years ago

LMAO

That is great. Keep it up.

Report

ChaosZ3RO

15 years ago

I love it =) (I'm the one that posted a couple screenshots of me using it). Now.. I know how to change the text color, but is there any way to change the color of the border around it? It just doesnt look too great with all the dark blue on my desktop.

Report

C

p0z3r

15 years ago

The border is the same as the one used in the wmdl doc app. I could change it, or even send you the images to do it as well.. or even better yet.. make a configuration option to select what color the border should be. Let me know.. and I'll do it.
cheers,
-p0z3r

Report

ChaosZ3RO

15 years ago

I'd love it if you made a configuration option =D!

Report

smokeyNOS

15 years ago

p0z3r you are the man! This is a tight app...keep up the good work sir! Awesome shit man!

Report

15 years ago

version 0.7:
11/27/2005 - fixed the cpu load not being split correctly as another field was added with recent kernels to /proc/stat
- This should be future proof now for some time

12345678910
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.7
updated Nov 27 2005
added Sep 12 2003
downloads today
0
page views today 1