I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Network Computers / GallantWeb Server
new Lcd Daemon
Quick lcd hack w/ source

New Messagenew Lcd Daemon (modified 1 times) dcarr
Profile
I wrote a basic lcd daemon in C++. Details and code available at webpages.charter.net/carrwill/gw500/lcd.html
Also, kudos to the soul who figured out the lcd control codes; I'll see what I can do with that input.
-David
GW500
Celly 633
128MB RH7.2 and lovin' it
02-16-2003 14:25:39

New MessageRE:new Lcd Daemon (modified 0 times) orbillius
Profile | Email
I am having trouble getting to your website. If you need, I can host this information for you.
02-16-2003 22:25:05

New MessageRE:new Lcd Daemon (modified 0 times) dcarr
Profile
...hmmm... I myself am having some problems with that link. [yet another reason my ISP sucks] If you have trouble with the download, shoot me an email at dc@dcarr.org and I'll attach the file to my reply (its only ~6k)
02-17-2003 13:41:47

New MessageRE:new Lcd Daemon (modified 0 times) catastrophe
Profile
I'm still new with hardware configuration with Linux and for the life of me I can't figure out how to install the lcd daemon. Anyone willing point me in the right direction? Thanks in advance.
03-07-2003 22:31:49

New MessageRE:new Lcd Daemon (modified 0 times) dcarr
Profile
Two things,
1. Uploaded a new version to my site that also displays system uptime
2. Added readme (below)

Basic yet complete lcd daemon:
Line 1: Displays CPU idle %, and alternating free Mem, Swap
Line 2: cycles through hostname, ip, time, uptime

Installation:
type make

copy the dc_lcd file (the daemon) somewhere and add it to an init script
ie: /etc/rc.d/rc.local
adding the line:
/path/to/daemon/dc_lcd &

procinfo, uptime, hostname, ifconfig, date must be in the daemon's PATH

lcdsetup (program from original gallantweb software must be in
/usr/gallantweb/sbin/lcdsetup

That should be it, email me at dc@dcarr.org if you have questions/comments.
-David

03-07-2003 23:31:25

New MessageRE:new Lcd Daemon (modified 0 times) catastrophe
Profile
Great job!! I got it working with your instructions pretty easy. I'm using RH 7.3 with a GW500-663 with 256mbSDR. One question, what units is the uptime suppose to be in?
03-09-2003 19:36:42

New MessageRE:new Lcd Daemon (modified 0 times) dcarr
Profile
Example:
Up: 12d 12:37
(up 12 days 12hrs 37min)

Up: 3:27
(up 3hrs 27min)
-DC

03-09-2003 22:23:21

New MessageRE:new Lcd Daemon (modified 0 times) darksine
Profile
Hey, thanks for the LCD Daemon, got it running and everything. When I run it it will scroll the information properly, however when I typed "make" it came up with a message like this:

*warning This file includes at least one deprecated or antiquated header, then it went on about how to use a more recent one.

That didn't happen with the last program you had, when I typed make, it just made the file. But it still runs. Now when I run it, as you said in your file, it runs fine, the LCD does display everything correctly, I am assuming the percentage in the top line of the lcd is the actual CPU usage? It comes up something like 85.9% for mine (celeron 633). But when I look back at my prompt the following is scrolling, timed about the same as the lcd change:

sh: line 1: procinfo: command not found

To run the program I type this: dc_lcd &

I have the daemon in my /usr/bin/ directory
and the lcdsetup in /usr/gallantweb/sbin/ directory.

Am I doing something wrong or is everyone getting this?

03-10-2003 20:52:55

New MessageRE:new Lcd Daemon (modified 0 times) dcarr
Profile
About the deprecated part:
Just ignore this message; I silenced it in the old makefile and forgot to do it this time around. It does not affect the actual program at all.

The percentage is the idle CPU % ie: what percentage of the time your CPU is doing nothing.

The only significant error you're having is the procinfo one:
procinfo is a command used by my daemon to get stats from the system. It is necessary for the program to work correctly. On your system it is either not in the PATH or is just not installed. To figure out if its on your system first try:
whereis procinfo

if this returns a path to the program ie: /usr/sbin/procinfo you need to add the preceding part to your PATH variable ie: the /usr/sbin part. One way to do this is to add a line like
PATH=/usr/sbin:$PATH
to one of your init scripts before dc_lcd is loaded (like the line before the dc_lcd line rc.local).

If whereis can't find procinfo use a find tool to search for procinfo on your computer and repeat the above steps.
If all this fails then you probably don't have the procinfo program at all. Most major distros have available in a package (rpm, deb, etc) or you can download it from ftp://ftp.cistron.nl/pub/people/svm

Let me know if you have any other problems or need a little more help,
-DC

03-11-2003 18:45:17

New MessageRE:new Lcd Daemon (modified 0 times) dcarr
Profile
darksine,
One more question, what distro/version are you running?
-DC
03-11-2003 18:47:11

New MessageRE:new Lcd Daemon (modified 0 times) catastrophe
Profile
DC: Thanks. I was just asking about the uptime because initially it didn't seem to display the right "single" digits. Not sure, I didn't really sit there watching. I could be imagining things. <shrug> Right now it's in hours:minutes and everything looks fine. Working great! It's funny to watch as the CPU Idle goes from 96% down to 0.0% when I do stuff sometimes. God I like this LCD stuff, I think I'm gonna get one for my other desktop. ;}
03-12-2003 18:14:28

New MessageRE:new Lcd Daemon (modified 0 times) darksine
Profile
DC: Thanks for your extensive information and help. I just installed procinfo and the lcd daemon runs quite well. I am getting everything displayed and it all works fine. I am currently running mandrake 9.0 with KDE 3.0, I will put this in the KDE startup script for the autologin user, so that it runs automatically. Thanks again.
03-16-2003 15:59:34

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3