You can subscribe to this list here.
2004 |
Jan
(57) |
Feb
(71) |
Mar
(80) |
Apr
(40) |
May
(49) |
Jun
(20) |
Jul
(3) |
Aug
(9) |
Sep
(8) |
Oct
(2) |
Nov
|
Dec
(11) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(10) |
Feb
(25) |
Mar
(24) |
Apr
(26) |
May
(71) |
Jun
(35) |
Jul
(5) |
Aug
(3) |
Sep
(18) |
Oct
(4) |
Nov
(5) |
Dec
(2) |
2006 |
Jan
(50) |
Feb
(12) |
Mar
(7) |
Apr
(24) |
May
(1) |
Jun
(17) |
Jul
(51) |
Aug
(38) |
Sep
(38) |
Oct
(33) |
Nov
(8) |
Dec
(13) |
2007 |
Jan
(44) |
Feb
(25) |
Mar
(21) |
Apr
(68) |
May
(52) |
Jun
(24) |
Jul
(17) |
Aug
(12) |
Sep
(4) |
Oct
(14) |
Nov
(1) |
Dec
(3) |
2008 |
Jan
(9) |
Feb
(1) |
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(5) |
Oct
(5) |
Nov
(1) |
Dec
|
2009 |
Jan
(4) |
Feb
|
Mar
(2) |
Apr
(1) |
May
(21) |
Jun
(5) |
Jul
|
Aug
|
Sep
(4) |
Oct
(1) |
Nov
|
Dec
|
2010 |
Jan
(15) |
Feb
(36) |
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
(3) |
Aug
|
Sep
(2) |
Oct
|
Nov
(1) |
Dec
(3) |
2011 |
Jan
(22) |
Feb
(2) |
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(25) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2012 |
Jan
(14) |
Feb
(6) |
Mar
(20) |
Apr
(12) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(2) |
Dec
|
2013 |
Jan
|
Feb
(3) |
Mar
(2) |
Apr
(1) |
May
(9) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2014 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
|
Jun
(11) |
Jul
(1) |
Aug
(3) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Xavier V. <xav...@fr...> - 2004-04-04 11:03:05
|
Hello Alex and Barry ! Barry : In fact, the mysql plugin is work in progress and Michael didn't modify the configuration stuff to make it work, so if you have the mysql headers installed it will fail. Just do as Alex says for the moment Alex : > I never needed those sensors, so i never compiled it in the kernel. So i > get messages like: > [i2c_sensors] Impossible to open /sys/bus/i2c/devices/! Is /sys mounted? > [i2c_sensors] Impossible to open /proc/sys/dev/sensors/! Is i2c_proc > loaded ? > [i2c_sensors] No i2c sensors found via the i2c interface ! > [i2c_sensors] Try to specify the path to the sensors ! Yes. I think I've been a little too verbose with this plugin, don't care about these warnings. The claim is that by now all 'plugins' and drivers are hard linked into the lcd4linux executable, but there's no configure switch to choose which ones to compile. In the future (after 0.10.0), we'll try to make plugins dynamicaly loaded, and configure switches to select plugins just as it's possible for drivers, but wait a little. Michael : Maybe you should think about this configure switch for 0.10.0 ? I'll try to do it myself if I can. Bye ! ---- Xavier Vello <xav...@fr...> |
From: Alex L. <al...@no...> - 2004-04-04 06:16:40
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I bypassed it by commenting out the line AC_CHECK_HEADERS(mysql/mysql.h) in file 'configure' since i don't find any --no-mysql or similar options available with ./configure --help. I never needed those sensors, so i never compiled it in the kernel. So i get messages like: [i2c_sensors] Impossible to open /sys/bus/i2c/devices/! Is /sys mounted? [i2c_sensors] Impossible to open /proc/sys/dev/sensors/! Is i2c_proc loaded ? [i2c_sensors] No i2c sensors found via the i2c interface ! [i2c_sensors] Try to specify the path to the sensors ! when i'm starting lcd4linux. HOwever, i don't think it matters much. Best Regards, ~Alex Barry Gould said the following on 4/4/2004 12:08 AM: | Hi, I just checked out the CVS, as I'm interested in trying the new | support for more than one network graph, but I'm unable to get it to | compile. | | On RedHat 7.3 and 7.0, After running | ./configure --with-drivers=Curses,CrystalFontz | make | | I get: | gcc -D_GNU_SOURCE -Wall -g -O2 -o lcd4linux lcd4linux.o cfg.o debug.o | drv.o evaluator.o hash.o layout.o lock.o pid.o timer.o thread.o udelay.o | qprintf.o widget.o widget_text.o widget_bar.o widget_icon.o plugin.o | plugin_math.o plugin_string.o plugin_cfg.o plugin_uname.o | plugin_loadavg.o plugin_proc_stat.o plugin_cpuinfo.o plugin_meminfo.o | plugin_netdev.o plugin_ppp.o plugin_dvb.o plugin_apm.o | plugin_i2c_sensors.o plugin_imon.o plugin_exec.o plugin_xmms.o | plugin_seti.o drv_Crystalfontz.o drv_generic_text.o | drv_generic_serial.o -lncurses -lm | plugin.o: In function `plugin_init': | /tmp/lcd4linux/plugin.c:215: undefined reference to `plugin_init_mysql' | plugin.o: In function `plugin_exit': | /tmp/lcd4linux/plugin.c:238: undefined reference to `plugin_exit_mysql' | collect2: ld returned 1 exit status | make: *** [lcd4linux] Error 1 | | | How can I get this compiled? Is there an option to disable the mysql | plugin? | | Thanks, | Barry Gould | | | | ------------------------------------------------------- | This SF.Net email is sponsored by: IBM Linux Tutorials | Free Linux tutorial presented by Daniel Robbins, President and CEO of | GenToo technologies. Learn everything from fundamentals to system | administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click | _______________________________________________ | Lcd4linux-devel mailing list | Lcd...@li... | https://lists.sourceforge.net/lists/listinfo/lcd4linux-devel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAb6g9B7imX08NWxERAnMrAJsEiqVfjl/6x6NcOzmLjDRPoC2TOQCfRZoF T8SdnWRNyjc4rTp4Sh6iwqo= =nmkZ -----END PGP SIGNATURE----- |
From: Barry G. <mai...@pe...> - 2004-04-04 05:08:29
|
Hi, I just checked out the CVS, as I'm interested in trying the new support for more than one network graph, but I'm unable to get it to compile. On RedHat 7.3 and 7.0, After running ./configure --with-drivers=Curses,CrystalFontz make I get: gcc -D_GNU_SOURCE -Wall -g -O2 -o lcd4linux lcd4linux.o cfg.o debug.o drv.o evaluator.o hash.o layout.o lock.o pid.o timer.o thread.o udelay.o qprintf.o widget.o widget_text.o widget_bar.o widget_icon.o plugin.o plugin_math.o plugin_string.o plugin_cfg.o plugin_uname.o plugin_loadavg.o plugin_proc_stat.o plugin_cpuinfo.o plugin_meminfo.o plugin_netdev.o plugin_ppp.o plugin_dvb.o plugin_apm.o plugin_i2c_sensors.o plugin_imon.o plugin_exec.o plugin_xmms.o plugin_seti.o drv_Crystalfontz.o drv_generic_text.o drv_generic_serial.o -lncurses -lm plugin.o: In function `plugin_init': /tmp/lcd4linux/plugin.c:215: undefined reference to `plugin_init_mysql' plugin.o: In function `plugin_exit': /tmp/lcd4linux/plugin.c:238: undefined reference to `plugin_exit_mysql' collect2: ld returned 1 exit status make: *** [lcd4linux] Error 1 How can I get this compiled? Is there an option to disable the mysql plugin? Thanks, Barry Gould |
From: Xavier V. <xav...@fr...> - 2004-03-23 16:57:11
|
Hi all ! > >> Recently, I've installed lcd4linux version 0.9.11 on my Gentoo > >> Linux | system. I setup the config files and everything seems to > >> work. However, | the Hard Disk IO stats doesn't seems to move and i > >> checked it with | "lcd4linux -F -vvv" and it seems that the > >> /proc/stat no longer contains | the information it needs to get the > >> disk_io and disk_rblk. > > After looking over vmstat for a bit, it seems they've calculated the > > sums of the disk stats from /proc/diskstat. Maybe it's possible to > > read from that? (Just wondering if it's possible to have this work > > with Kernel 2.6.x) > Xavier, do you have time to take a look at this? Err... I may find time for this, but I don't promise you anything ! This WE I'll have to study as next week I have exams :/ But then I'm in holidays for 2 weeks :) BTW: this WE France will switch to 'summer time', we'll be at GMT+2, so please set cron to send the patches at 16h from Austria :) Bye ! |
From: Alex L. <al...@no...> - 2004-03-21 23:44:00
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Thanx for the reply Michael. Well, while i was waiting for this reply, I was looking at the procps's source in "vmstat.c" and "proc/sysinfo.c". It seems there isn't any centralized value for read/write io anymore and a sum has to be calculated from IDE devices (type 3) and SCSI devices (type 8) in the file. I guess umm... I'll wait for some generous soul to release a fix for this. Hehe.. and it's really nice to know someone's looking into this matter as well. =) Thanx lots, ~Alex | Hi Alex, | |>> Recently, I've installed lcd4linux version 0.9.11 on my Gentoo |>> Linux | system. I setup the config files and everything seems to |>> work. However, | the Hard Disk IO stats doesn't seems to move and i |>> checked it with | "lcd4linux -F -vvv" and it seems that the |>> /proc/stat no longer contains | the information it needs to get the |>> disk_io and disk_rblk. | |> After looking over vmstat for a bit, it seems they've calculated the |> sums of the disk stats from /proc/diskstat. Maybe it's possible to |> read from that? (Just wondering if it's possible to have this work |> with Kernel 2.6.x) | | Hmmm, this is bad news. | | I will look into this as soon as my kernel 2.6 is up and running (which | may take several weeks, because there are som mission-critical things | not working with 2.6) | | Our main kernel we're developing with is still 2.4. | | Xavier, do you have time to take a look at this? | | bye, Michael | | -- | Michael Reinelt Tel: +43 676 3079941 | Geisslergasse 4 Fax: +43 316 692343 | A-8045 Graz, Austria e-mail: re...@eu... | | | ------------------------------------------------------- | This SF.Net email is sponsored by: IBM Linux Tutorials | Free Linux tutorial presented by Daniel Robbins, President and CEO of | GenToo technologies. Learn everything from fundamentals to system | administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click | _______________________________________________ | Lcd4linux-devel mailing list | Lcd...@li... | https://lists.sourceforge.net/lists/listinfo/lcd4linux-devel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAXii2B7imX08NWxERAukyAKDbBCgLfl8jlZY6r6Yk4mPa3T7ohwCg1X22 xbCCO7ppVVxnz3z62tEdSXs= =LmmK -----END PGP SIGNATURE----- |
From: Michael R. <re...@eu...> - 2004-03-21 23:03:32
|
Hi Alex, >> Recently, I've installed lcd4linux version 0.9.11 on my Gentoo >> Linux | system. I setup the config files and everything seems to >> work. However, | the Hard Disk IO stats doesn't seems to move and i >> checked it with | "lcd4linux -F -vvv" and it seems that the >> /proc/stat no longer contains | the information it needs to get the >> disk_io and disk_rblk. > After looking over vmstat for a bit, it seems they've calculated the > sums of the disk stats from /proc/diskstat. Maybe it's possible to > read from that? (Just wondering if it's possible to have this work > with Kernel 2.6.x) Hmmm, this is bad news. I will look into this as soon as my kernel 2.6 is up and running (which may take several weeks, because there are som mission-critical things not working with 2.6) Our main kernel we're developing with is still 2.4. Xavier, do you have time to take a look at this? bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: Michael R. <re...@eu...> - 2004-03-21 23:00:56
|
Hi Javi, > All works fine with some minor changes in sample.conf. See patch.txt Checked in, thanks. >>The most imnportant thing would be a better autoconf makro which does >>not only check for mysql.h, but for libmyslq, too, and add this library >>to the CFLAGS or LFLAGS. > I don't know about using Automake and Autoconf, but googleing I've found that,hope that it helps: This is not very clean. The solution I'd prefer would be completely transparent to the user, which means it would sook at several places for the header and library, if found, modify CFLAGS and LFLAGS accordingly, and define a symbol HAVE_MYSQL or so. If it doesn't find either header or lib, do nothing but undefine HAVE_MYSQL. I posted a question to a MySQL Newsgroup, maybe someone has already worked this one out. I found a sample solution within the source of "motion", but this doesn't look very clean to me, too. bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: Javi <ja...@gs...> - 2004-03-21 13:15:06
|
Hi Michael, hi all. > Fine! Already checked in into CVS, but with some modifications: >... > - I prepared some SQL examples in the lcd4linux.conf.sample > I hope this works, because I cannot test it... All works fine with some minor changes in sample.conf. See patch.txt > The most imnportant thing would be a better autoconf makro which does > not only check for mysql.h, but for libmyslq, too, and add this library > to the CFLAGS or LFLAGS. I don't know about using Automake and Autoconf, but googleing I've found that,hope that it helps: (http://www.murrayc.com/learning/linux/using_libraries/using_libraries.shtml) Libraries with no macro and no script: There are still many libraries which do not use *-config scripts or macros to make your life easier. The best thing to do in this situation is to allow the user to tell the configure script where to find the library. You can do this with the AM_ARG_WITH() macro. This adds a command line argument to the configure script and complains if it isn't used. For instance: # Ask user for path to libmysqlclient stuff:. AC_ARG_WITH(mysql, [ --with-mysql=<path> prefix of MySQL installation. e.g. /usr/local or /usr], [MYSQL_PREFIX=$with_mysql], AC_MSG_ERROR([You must call configure with the --with-mysql option. This tells configure where to find the MySql C library and headers. e.g. --with-mysql=/usr/local or --with-mysql=/usr]) ) AC_SUBST(MYSQL_PREFIX) MYSQL_LIBS="-L${MYSQL_PREFIX}/lib/mysql -lmysqlclient" MYSQL_CFLAGS="-I${MYSQL_PREFIX}/include" AC_SUBST(MYSQL_LIBS) AC_SUBST(MYSQL_CFLAGS) Bye Javi |
From: Alex L. <al...@no...> - 2004-03-21 09:39:57
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, After looking over vmstat for a bit, it seems they've calculated the sums of the disk stats from /proc/diskstat. Maybe it's possible to read from that? (Just wondering if it's possible to have this work with Kernel 2.6.x) Best Regards, | Hi, | | Recently, I've installed lcd4linux version 0.9.11 on my Gentoo Linux | system. I setup the config files and everything seems to work. However, | the Hard Disk IO stats doesn't seems to move and i checked it with | "lcd4linux -F -vvv" and it seems that the /proc/stat no longer contains | the information it needs to get the disk_io and disk_rblk. | | Error: "parse(/proc/stat) failed: neither 'disk_io' nor 'disk_rblk' found" | | I cat /proc/stat on a 2.4.24 kernel system and I see the lines for | disk_io and disk_rblk. However, when i do it on all 4 of my systems | running Kernel 2.6.x, none of them have it. I'm just wondering if | there's any patch for this or is there something wrong with the Kernel | 2.6 or will this ever gonna work? | | Best Regards, | | | ------------------------------------------------------- | This SF.Net email is sponsored by: IBM Linux Tutorials | Free Linux tutorial presented by Daniel Robbins, President and CEO of | GenToo technologies. Learn everything from fundamentals to system | administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click | _______________________________________________ | Lcd4linux-devel mailing list | Lcd...@li... | https://lists.sourceforge.net/lists/listinfo/lcd4linux-devel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAXWLmB7imX08NWxERArVoAKCviMd/U7VS8RHoqbHfv4XHND+RpQCgw0mM Fcv6m9QsbmHgKgQrSMrB92c= =v56P -----END PGP SIGNATURE----- |
From: Martin H. <ma...@he...> - 2004-03-21 09:26:21
|
Hi Michael, > a user just asked how to get the IP address of (any) interface. So I > found out that we currently have no way to fetch the address anywhere. > > /proc/net/dev does not contain any IP addresses. > > plugin_ppp uses an ioctl() for PPP stats, but I found nothing about IP > addresses there. > > anyone knows how to (easily) found out such things like addresses, MAC, > netmask, ... all this things ifconfig reports? (I don't want to solve > this using an exec 'ifconfig') The IP-Address (as well as MAC address and other stuff reported by ifconfig) can be read by using ioctl calls (on a socket file-handle). To implement that, it would basically need the same code as what Xavier is working on at the moment for getting wireless stats (Xavier - I haven't forgotten you, I'll hopefully have some time to go over and test your new plugin today - I didn't have access to my wireless-testbox in the last few days). Shouldn't be too hard to implement, even if the individual IOCTL calls seem to not be documented terribly well. Martin -- You think that's tough? Try herding cats! |
From: Michael R. <re...@eu...> - 2004-03-21 09:14:28
|
Hi there, a user just asked how to get the IP address of (any) interface. So I found out that we currently have no way to fetch the address anywhere. /proc/net/dev does not contain any IP addresses. plugin_ppp uses an ioctl() for PPP stats, but I found nothing about IP addresses there. anyone knows how to (easily) found out such things like addresses, MAC, netmask, ... all this things ifconfig reports? (I don't want to solve this using an exec 'ifconfig') bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: Alex L. <al...@no...> - 2004-03-21 05:02:19
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Recently, I've installed lcd4linux version 0.9.11 on my Gentoo Linux system. I setup the config files and everything seems to work. However, the Hard Disk IO stats doesn't seems to move and i checked it with "lcd4linux -F -vvv" and it seems that the /proc/stat no longer contains the information it needs to get the disk_io and disk_rblk. Error: "parse(/proc/stat) failed: neither 'disk_io' nor 'disk_rblk' found" I cat /proc/stat on a 2.4.24 kernel system and I see the lines for disk_io and disk_rblk. However, when i do it on all 4 of my systems running Kernel 2.6.x, none of them have it. I'm just wondering if there's any patch for this or is there something wrong with the Kernel 2.6 or will this ever gonna work? Best Regards, -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAXSHZB7imX08NWxERAjPBAKDap6fpUhbNc/szmlmHY/yJPMSjQgCfUgQA mh/vGtSZ98agoHZy/b/VET4= =Lemn -----END PGP SIGNATURE----- |
From: Michael R. <re...@eu...> - 2004-03-20 23:25:32
|
Hi Javi, > I enclose an improved version of MySQL plugin. Fine! Already checked in into CVS, but with some modifications: - The config section is no longer called "MySQL", but "Plugin MySQL" (take a look at lcd4linux.conf.sample) - I put all section references into a global variable "Section" - I modified some of the config info/error messages to emit the correct section. - I prepared some SQL examples in the lcd4linux.conf.sample - I enclosed the MySQL-Exit function between #ifdef HAVE_MYSQL_H I hope this works, because I cannot test it... > TO DO list : > -Add a function to fetch data (not only the number of rows) from the database. > -MySQLquery() function should allow either one or two arguments, > if there is only one, use the database value from the config file, if there are two, > use the second one as the new database name. > -Add an argument to mySQLstatus funtion. > The argument will indicate what to return:Uptime, Threads, Questions,Slow queries, Flush tables,... > If uptime, return it Like: Days,hours,minutes The most imnportant thing would be a better autoconf makro which does not only check for mysql.h, but for libmyslq, too, and add this library to the CFLAGS or LFLAGS. Anybody out there who has experience with this? Anybody out there who uses programs which have a "soft dependency" to MySQL? Take a look into the configure.in and Makefile.am, maybe we can steal^H^H^H^H^Hadopt some code... bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: Javi <ja...@gs...> - 2004-03-20 18:20:20
|
Hi all. I enclose an improved version of MySQL plugin. New features: -Now MySQL plugin is configured through a MySQL section in lcd4linux.conf. (See sample lcd4linux.conf attached) -It uses persistent connections: connect on init and disconnect on exit. -Connection trackin: It checks whether the connection to the server is working. If it has gone down, an automatic reconnection is attempted. TO DO list : -Add a function to fetch data (not only the number of rows) from the database. -MySQLquery() function should allow either one or two arguments, if there is only one, use the database value from the config file, if there are two, use the second one as the new database name. -Add an argument to mySQLstatus funtion. The argument will indicate what to return:Uptime, Threads, Questions,Slow queries, Flush tables,... If uptime, return it Like: Days,hours,minutes Please send comments and feedback. Bye Javi. |
From: Xavier V. <xav...@fr...> - 2004-03-17 13:13:19
|
Helli Martin ! > > I use 2.6 since 2.6.2 and never had big > > problems with it (just one: vmware didn't worked, but I didn't use it) > Well, for me, vmware is one of the show-stoppers (I don't really want to > have to back to dual-booting or having another computer under my desk). > And please, lets not get into the "what do you need windows for? Linux > can do everything" discussion - lets just assume that there is a need > for me to run windows at home, even if I prefer Linux most of the time. In fact, the old version I had didn't support 2.6, but new versions do (hopefully) support 2.6 ! But as I didn't use it anymore, I didn't searched for an upgrade on *mule :) > >> or go ahead and code the wifi plugin for 2.6, and I'll code a 2.4 > >> plugin for the rest of us). > > Maybe it would be the best solution if ioctl are too complicated. Each > > would be quite easy to code (one based on plugin_netdev, the other based > > on i2c_sensors) while the ioctl one would be quite hard to code, IMHO > I don't really see why it would be terribly hard to code - but I haven't > had time to look at it in detail yet. I digged into wireless-tools source, and here is what to do : - open a socket : socket(AF_INEL, SOCK_DGRM, 0) - check if the interface has wireless extensions (SIOCGIWNAME ioctl) - get the statistics (SIOCGIWSTATS ioctl) - handle the iw_statistics struct, which contains itself structs, and parse the info. It is easier than I expected. > I'm not quite sure why it would imply more memory "problems" (I'm not > even sure what you're referring to actually - do you mean memory usage? > "memory problems" imply a bug to me). It's both a little more memory usage, but moreover, manipulating struct->struct->__u32 variables may get quite messy :/ I'll try to code a test. Bye ! -- Xavier VELLO <xav...@fr...> |
From: Michael R. <re...@eu...> - 2004-03-17 06:31:48
|
Hi Javi, > First, I think there is a problem with the Makefile. The configure > script detects I have MySQL and pluging_mysql.c is compiled, but when > compiling, it shows errors like: You are right. The check for mysql.h is just a quick-hack. Please patch the makefile as you already did, until I found someone who can write me a good autoconf macro for this... [Segfault with cfg_get()] I've read the code, looks like Xavier is right: including cfg.h should solve this issue. I tried to code lcd4linux in a way so it does not emit *any* warning at compiling. (except thwo or three which come from the fact that the code isn't finished at the moment). If you get such a warning, chances are good that there's a mistake in your code, and that you should correct it. bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: Michael R. <re...@eu...> - 2004-03-17 06:26:21
|
Hi Stolz, > Is the scroll feature ported to the CVS version? > If afirmative, how can I use it? No, it isn't. The concept is fundamental different: The NextGeneration uses two framebuffers (one for the layout, one for the display) which can be of different size. To scroll either horizontal or vertical, you just have to change the offset. But bthis is not implemented at the moment. Xavier, can you add this to our Todo-List? bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: Michael R. <re...@eu...> - 2004-03-17 06:24:06
|
Hi Javi, > Where should I add "cfg.h"? > I've added #include "cfg.h" into plugin_mysql.c, but I'm afraid it doesn't solve it :(. O, it will solve 'it', the question is what is 'it' :-) an '#include <cfg.h>' is necessary to use the cfg_get() function, ans should cure your segfault. It has nothing to do with the mysql stuff. bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: Javi <ja...@gs...> - 2004-03-16 21:24:04
|
> Hello Javi ! > > You forgot to include the "cfg.h" header :) > Include cfg.h, and all will go well ! Where should I add "cfg.h"? I've added #include "cfg.h" into plugin_mysql.c, but I'm afraid it doesn't solve it :(. make clean make distclean-hdr ./configure make ... gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/X11R6/include -D_GNU_SOURCE -Wall -g -O2 -c plugin_mysql.c ... undefined reference to `mysql_init' etc ... Thanks in advice. Javi |
From: Xavier V. <xav...@fr...> - 2004-03-16 20:26:45
|
Hello Javi ! The solution to the claim was very simple, read this : gcc -lmysqlclient -DHAVE_CONFIG_H -I. -I. -I. -I/opt/X11R6/include -D_GNU_SOU RCE -Wall -g -O2 -c plugin_mysql.c plugin_mysql.c: In function `plugin_init_mysql': plugin_mysql.c:143: warning: implicit declaration of function `cfg_get' plugin_mysql.c:143: warning: initialization makes pointer from integer without a cast plugin_mysql.c:143: warning: unused variable `server' You forgot to include the "cfg.h" header :) Include cfg.h, and all will go well ! Bye ! -- Xavier VELLO ( who made his good action of the week :D ) |
From: Javi <ja...@gs...> - 2004-03-16 15:18:47
|
Hi all. First, I think there is a problem with the Makefile. The configure script detects I have MySQL and pluging_mysql.c is compiled, but when compiling, it shows errors like: undefined reference to `mysql_init' undefined reference to `mysql_real_connect' etc It's because MySQL libraries are in the mysqlclient library. So while compiling a MySQL program, it is necessary to add the -lmysqlclient compiler option. I don't know how makefile is generated, but it should include the -lmysqlclient compiler option if MySQL is installed. I've patched manually the Makefile adding "CC = gcc -lmysqlclient" but it is not very elegant. Now I return to my "loved" Segmentation fault ;) remeber: > > The problem is wherever I use cfg_get() function I get "Segmentation > > fault" when running lcd4linux. > > Can you send me the code? I enclose the code and a sample lcd4linux.conf. In order to test MySQL pluging , just change the display settings to fit your display. I've also created a MySQL account on my server, so developers can test the pluging (Only select privileges). Server, login, password and db are listed in the sample lcd4linux.conf file. Here is gdb output: Program received signal SIGSEGV, Segmentation fault. 0x080642a4 in cfg_get () (gdb) bt #0 0x080642a4 in cfg_get () #1 0x080552a1 in plugin_init_mysql () at plugin_mysql.c:143 #2 0x08050bc6 in plugin_init () at plugin.c:209 #3 0x0804a7c9 in main (argc=3, argv=0x1) at lcd4linux.c:529 Bye Javi. |
From: Xavier V. <xav...@fr...> - 2004-03-15 17:49:32
|
Hi Michael, hi all ! > For the future, it would be better to put that stuff into a 'test' > subdir of sourceforge? Would be much easier to test... The problem is that I can't use scp with a gsm connection (think ssh :/ ). If you prefer, I can send you the tgz so you put them on the server > Now for my comments: > - I don't like the background I know, I don't like it too :/ I'll redesing a lot of the CSS soon. > - the overlapping frames look like an rendering error to me :-( Err... this is a feature. This is one thing I really like with CSS. Everything is calculated with pixel size and so on. IMHO I prefer a menu overlapping just a little the main div than separating them, it's more 'cosmetical'. > - If we don't go for the old "LCD"-style menu images, I'm not shure if > this very green background is good... In fact, I was thinking about using LCD-style text for the menus. There are three solutions : - generate the images once, but we'll have problems with dynamic menus (doc, ...) - write the images in the server, with a PHP script, it's something very doable, but maybe it would be slow. - create one image for each 'character' We can merge two types (eg: static images for top menu, then character images for dynamic ones). Bye ! -- Xavier VELLO <xav...@fr...> |
From: Xavier V. <xav...@fr...> - 2004-03-15 17:48:46
|
Hello Michael, hello Martin, hello list ! > Well, I'd favour this solution (using ioctl calls), but I would't rush > into replacing something that works (plugin_netdev). > At first glance, trying to handle wireless devices (which supply > additional data, which in turn is why there's need for a wifi-plugin to > begin with) together with traditional network devices could make the > code pretty ugly fast. That's why I like the sysfs solution, as it provides all the informations ioctl provides without getting hard to implement (open the file, copy a buffer, strtod and we are) but there's the backward compatibility problem. > Lets get the wireless stuff taken care of first, and then see how we can > merge traditional network devices and wireless devices. I'm downloaded the wireless-tools source and the source of my wifi card driver for 2.6, I'll try to experiment ioctl a bit, then we'll decide what to do > > We may in that case > > keep plugin_netdev and write rapidly a plugin_net_wireless which parses > > /proc/net/wireless (easilly writen too) so they can delay once more the > > migration to the best kernel ever released ( until 2.8 is out :D ) > I think everybody on this list has understood by now that you are a big > fan of 2.6 Yes, I am :) > - so, if you want to write a "2.6 only" plugin, feel free to do so. But > be assured - you won't make _me_ change to 2.6 any time soon ;-) I may > set up a test box some day to see if all the apps I need still work > under 2.6, but for now, I'm happy to have a system that simply works > (giving me time to work on other things - lcd4linux, for example - > instead of playing with my linux installation). Okay, I won't dictate you to migrate to 2.6. But just read the next 4 lines: 2.4 hasn't been really stable until several monthes, but 2.6 is already stable. Linus has understood the lesson with 2.4 and the 2.5 test phase has been longer than ever. I use 2.6 since 2.6.2 and never had big problems with it (just one: vmware didn't worked, but I didn't use it) > or go ahead and code the wifi plugin for 2.6, and I'll code a 2.4 > plugin for the rest of us). Maybe it would be the best solution if ioctl are too complicated. Each would be quite easy to code (one based on plugin_netdev, the other based on i2c_sensors) while the ioctl one would be quite hard to code, IMHO > > The best solution would be ioctl, but I don't know how to do this, and I > > don't know if it's worth the price to do this manner. If you know ioctl > > and wants to dig this way, just raise your hand :) > <Raises hand> > I'll take care of it. I can't say when (I unfortunately had to get some > "real" work done this weekend (as in, "stuff one gets paid for"), but > I'll try to put something together by next weekend. > </Raises hand> Err... does somebody know if ioctl are _really_ faster than reading procfs/sysfs ? I think ioctl imply (at least for this case) more memory problems and uggly code. Bye ! -- Xavier VELLO <xav...@fr...> |
From: Michael R. <re...@eu...> - 2004-03-15 04:48:22
|
Hi Xavier, > Here's a tar.bz2 of a static xhtml/css page which is a desing test for > the new website. All the explanations are writen in the page itself. For the future, it would be better to put that stuff into a 'test' subdir of sourceforge? Would be much easier to test... Now for my comments: - I don't like the background - the overlapping frames look like an rendering error to me :-( - If we don't go for the old "LCD"-style menu images, I'm not shure if this very green background is good... bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |
From: Michael R. <re...@eu...> - 2004-03-15 04:41:03
|
Hi there, I see no problem if the same information can be read from two different plugins. In fact, the plugin_ppp does exactly this: it returns CPS rate which is the same as the info from /proc/net/dev As you already have seen, plugin_netdev won't be obsolete because not all the information passed here is available via ioctl() as for the 2.4/2.6 discussion: lcd4linux should be as independant from the kernel as possible. There are some dependencies (e.g. the format of some files in /proc) but I always tried to autodetect the format and support as many formats=kernels as possible. I have a 2.6 up and running here, but some very important subsystems (e.g. USB or VMware) fail at the moment... Thats why I go with 2.4. The "main" kernel for lcd4linux is 2.4 , and probably will be for the next months. bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |