
CPU Info (with lm_sensors)
Various KDE 1.-4. Improvements
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
Based on CPU Info 0.3 http://www.kde-look.org/content/show.php?content=33257
installation:
=============
run configure
./configure --prefix=$(kde-config --prefix)
build the sources
make
install the applet (with appropriate rights)
su -c 'make install'
finally add the applet to your KDE panel.
15 years ago
Added lm_sensors support.
15 years ago
Added lm_sensors support.
occce
14 years ago
a question, when using data from lm_sensors i dont get the degree+'C' characters, just like 37.0
could you fix this?
Report
kenws
14 years ago
Report
danone
15 years ago
nice to see your app evolving... Just a little bug: the tooltip function showing all the sensor values sometimes doesn't popup anymore. It seems as if it's happening after some uptime - it always worked after startup...
danone
Report
defries
15 years ago
Report
masonmouse
15 years ago
Report
defries
15 years ago
Report
defries
15 years ago
In file included from cpudata.cpp:28:
lmsensorssrc.h:25:29: error: sensors/sensors.h: Onbekend bestand of map
lmsensorssrc.h:36: error: ISO C++ forbids declaration of 'sensors_chip_name' with no type
lmsensorssrc.h:36: error: expected ';' before '*' token
lmsensorssrc.h:37: error: ISO C++ forbids declaration of 'sensors_feature_data' with no type
lmsensorssrc.h:37: error: expected ';' before '*' token
make[2]: *** [cpudata.lo] Fout 1
make[2]: Leaving directory `/home/XXX/Download/cpuinfo/src'
make[1]: *** [all-recursive] Fout 1
make[1]: Leaving directory `/home/XXX/Download/cpuinfo'
make: *** [all] Fout 2
Report
ectb
15 years ago
Also you can use original CPU Info which has no lm_sensors support and using other sources.
Report
zaventh
15 years ago
*** Creating acinclude.m4
*** Creating list of subdirectories
*** Creating configure.in
*** Creating aclocal.m4
*** Creating configure
*** Creating config.h template
*** Creating Makefile templates
Makefile.am:23: _SOURCES multiply defined in condition TRUE
_SOURCES (User, where = Makefile.am:23) =
{
TRUE => lmsensorssrc.h
}
Makefile.am:23: invalid unused variable name: `_SOURCES'
make[1]: *** [cvs] Error 1
make: *** [all] Error 2
Report
ectb
15 years ago
Report
forlorn
15 years ago
make all-recursive
make[1]: Entering directory `/home/forlorn/temp/cpuinfo'
Making all in doc
make[2]: Entering directory `/home/forlorn/temp/cpuinfo/doc'
make[3]: Entering directory `/home/forlorn/temp/cpuinfo/doc'
make[3]: Für das Ziel »all-am« ist nichts zu tun.
make[3]: Leaving directory `/home/forlorn/temp/cpuinfo/doc'
make[2]: Leaving directory `/home/forlorn/temp/cpuinfo/doc'
Making all in po
make[2]: Entering directory `/home/forlorn/temp/cpuinfo/po'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Leaving directory `/home/forlorn/temp/cpuinfo/po'
Making all in src
make[2]: Entering directory `/home/forlorn/temp/cpuinfo/src'
source='cpuinfo.cpp' object='cpuinfo.lo' libtool=yes \
depfile='.deps/cpuinfo.Plo' tmpdepfile='.deps/cpuinfo.TPlo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.4/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o cpuinfo.lo `test -f 'cpuinfo.cpp' || echo './'`cpuinfo.cpp
cpuinfo.cpp:30:19: prefs.h: No such file or directory
cpuinfo.cpp: In member function `virtual void CPUInfo::preferences()':
cpuinfo.cpp:186: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:189: error: no matching function for call to `KDialogBase::setMainWidget(Prefs*&)'
/usr/kde/3.4/include/kdialogbase.h:807: note: candidates are: void KDialogBase::setMainWidget(QWidget*)
cpuinfo.cpp:192: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:193: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:196: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:197: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:198: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:199: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:200: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:204: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:207: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:211: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:214: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:218: warning: comparison between signed and unsigned integer expressions
cpuinfo.cpp:221: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:227: warning: comparison between signed and unsigned integer expressions
cpuinfo.cpp:230: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp: In member function `void CPUInfo::savePreferences()':
cpuinfo.cpp:240: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:246: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:252: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:258: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:264: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:265: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:270: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:271: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:274: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp:275: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp: In member function `void CPUInfo::loadPreferences()':
cpuinfo.cpp:293: warning: comparison between signed and unsigned integer expressions
cpuinfo.cpp:296: warning: comparison between signed and unsigned integer expressions
cpuinfo.cpp: In member function `void CPUInfo::setTempDescription(int)':
cpuinfo.cpp:315: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp: In member function `void CPUInfo::setFreqDescription(int)':
cpuinfo.cpp:319: error: invalid use of undefined type `struct Prefs'
cpuinfo.h:44: error: forward declaration of `struct Prefs'
cpuinfo.cpp: In member function `void CPUInfo::setThermalSource(int)':
cpuinfo.cpp:323: warning: comparison between signed and unsigned integer expressions
cpuinfo.cpp: In member function `void CPUInfo::setFrequencySource(int)':
cpuinfo.cpp:329: warning: comparison between signed and unsigned integer expressions
cpuinfo.cpp: In member function `virtual void CPUInfo::maybeTip(const QPoint&)':
cpuinfo.cpp:340: warning: comparison between signed and unsigned integer expressions
cpuinfo.cpp:351: warning: comparison between signed and unsigned integer expressions
cpuinfo.cpp: At global scope:
cpuinfo.cpp:304: warning: unused parameter 'width'
cpuinfo.cpp:300: warning: unused parameter 'height'
make[2]: *** [cpuinfo.lo] Fehler 1
make[2]: Leaving directory `/home/forlorn/temp/cpuinfo/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/forlorn/temp/cpuinfo'
make: *** [all] Fehler 2
What's wrong?
Report
ectb
15 years ago
Be sure that archive was not damaged and was extracted correctly.
p.s. Sorry for my bad english :)
Report
LightBeam
15 years ago
The right sensors returns :
CPU Temp: +60.2°C (low = +0.0°C, high = +70.0°C)
but the applet uses this one:
CPU Temp: -88°C (low = +15°C, high = +45°C) sensor = diode
how to change in the source please ?
Report
ectb
15 years ago
Report
LightBeam
15 years ago
I need to read my "lm90-i2c-0-4c" sensors, not the "it87-isa-0290" that this applet uses...
Report
ectb
15 years ago
Report