Hi John, I modified the code in order to make ksysguard write (again) the logs on a file. I used the package kdebase-workspace_4.6.5.orig.tar, compiled with CMake. What I have changed is: 1) I implemented the method virtual void timerEvent ( QTimerEvent * event ); in the class LogSensor, in this way void LogSensor::timerEvent ( QTimerEvent * event ) { timerTick(); }
to call the timerTick() method every time the timerEvent() is called, caused by the behavior of the QObject superclass. 2) in the source file SensorLogger.cpp I modified the constructor of the SensorLogger Class this way: SensorLogger::SensorLogger( QWidget *parent, const QString& title, SharedSettings *workSheetSettings ) : KSGRD::SensorDisplay( parent, title, workSheetSettings ) { ... ... // mView->setContextMenuPolicy( Qt::CustomContextMenu ); mView->setContextMenuPolicy( Qt::DefaultContextMenu ); giving as argument Qt::DefaultContextMenu instead of Qt::CustomContextMenu after this, right clicking on the sensorlogger line was possible again to select the option "Start Logging" and make ksysguard start to write in the selected logfile. at the link http://www.fileden.com/files/2009/2/22/2333221/ksysguard_modified_by_lazzarotto.tar.gz you can access the source directory with my modifications, please check if it works fine also in your computer (if you can). Now I can use ksysguard to set up some automatic control on my servers/systems and to plot/analyse logged data with external programs, just as I did to plot the attached image "laptop_temperature.jpg" created using the temperature sensor of my laptop, read and logged by ksysguard. I'm going to use this version for my applications, tell me if I can do something more for the maintaining of this app. bye Francesco. >In data martedì 11 ottobre 2011 14:48:56, John Tapsell ha scritto: > Good to hear! > > If you have ubuntu, the fastest way to get developing is to do something > like: > > sudo apt-get install project-neon-utils project-neon-kdelibs > > git clone kde:kde-workspace.git > > neon-env > > cd kde-workspace > > neonmake > > > > or something like that, off the top of my head. The code is in the > folder ksysguard/gui/ > > John > > > On 11 October 2011 13:39, Francesco Lazzarotto > > <francesco.lazzaro...@iasf-roma.inaf.it> wrote: > > Hello John, > > thank you very much for your answer, now I'm going to download the source > > code for ksysguard, and compiling it, to check if also the version > > compiled from source have the same bug. I reported yet what I'm > > experiencing with ksysguard adding a post on the related bug item at > > bugs.kde.org > > https://bugs.kde.org/show_bug.cgi?id=223094 > > If it's really a bug I believe that the sensor logging feature is not > > used very much, so not many people are complaining for this problem ... > > As soon I will have some more news about this problem I will report it > > to you. Thank you again, > > Francesco. > > > >> In data martedì 11 ottobre 2011 14:19:14, John Tapsell ha scritto: > >> Hi Francesco, > >> > >> I'm the maintainer of the ksysguard app. I haven't looked at the > >> sensor logging code for years - I wouldn't be surprised at all if it > >> has stopped working (bit rot). You're welcome to hire me to fix it, > >> file a bug report on kde.bugs.org, or fix it yourselves if you can. I > >> welcome patches. > >> > >> > >> > >> Sorry for the bugs, > >> > >> John Tapsell > >> > >> On 11 October 2011 13:13, Francesco Lazzarotto > >> > >> <francesco.lazzaro...@iasf-roma.inaf.it> wrote: > >> > Hi everybody, please apologise me if this is not the suitable mailing > >> > list, but I haven't found a more specific list ... i'd like to ask for > >> > some help in troubleshooting a ksysguard app. feature, to use it in my > >> > work at our lab data-centre, to monitor some server resources. > >> > I'm using ksysguard on kde 4.4.x and 4.6.y, and all seems to go fine, > >> > except for the SensorLogger function ... I'm trying to make ksysguard > >> > write sensor values on a text log file, as provided by the specific > >> > sensor type and following the user manual instructions. > >> > But I can't succeed in starting the file logging right clicking on the > >> > sensor pad, because when I right click I can't get this option, and > >> > the red cross icon remains at the beginning of the file loggin line > >> > ... please can you help me? Do you know how to start loggin in any > >> > other way? Have I a bug in my ksysguard version?? > >> > Thank you very much for your answer. -- Francesco Lazzarotto, PhD. Istituto di Astrofisica Spaziale e Fisica Cosmica (IASF) - INAF. [National Institute for Space Astrophysics] http://www.iasf-roma.inaf.it/indexen.htm c/o Consiglio Nazionale delle Ricerche (CNR) Area di Ricerca di Tor Vergata, via Fosso del Cavaliere, 100. 00133 - Roma tel +39 06 49934430 fax +39 06 45488188 mobile +39 335 7126078 email 1: francesco.lazzaro...@iasf-roma.inaf.it email 2: flazzarot...@alice.it http://www.linkedin.com/in/francescolazzarotto
<<attachment: laptop_temperature.jpg>>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<