console output for Linux?
How does the Linux audience view console messages on the LCD screen? Ideally, I'd like to see the startup sequence, then switch the control of the display over to another service (lcd4linux or lcdproc) when the boot-up sequence is done.
Is it as simple as passing the "console=/dev/ttyS1" command to the kernel?
<font size=-1>[ This Message was edited by: wayn3 on 2002-07-11 10:19 ]</font>
Is it as simple as passing the "console=/dev/ttyS1" command to the kernel?
<font size=-1>[ This Message was edited by: wayn3 on 2002-07-11 10:19 ]</font>
You most definately could not just pass the serial device as a parameter, mostly because of the commands required to display text on the LCD screens. I'm trying to figure out a way for you to do this easily, with a minimum of fuss, but the only real possibility I see is creating a false device that intercepts console output and then manages the display of the text on the lcd. I've done this once before but it was set up after boot, so I'm not sure how you'd manage to get it set up prior to kernel messages and the like being displayed...
-
- GPO Room GUY
- Posts: 6
- Joined: Sun Aug 25, 2002 6:00 pm
It's a cool idea, but it has some issues in practice. The line length is too short for much of anything of interest, although it may be suitable to use for an intrusion detection system or something that throws messages infrequently.
The 'tail a log file' idea is the straightforward way, something like Seems to me like it would suffice. Actually grabbing the console is more difficult and perhaps less appropriate to what you want anyhow.
I'd think that between some appropriate entries in syslogd.conf and the tail trick, you should be able to control waht you send the the LCD very well.
(I'm not a Linux person as much as a FreeBSD person, but I wrote a 'mini-shell' that would just exec() programs based on keypresses using the MOPerl out of the downloads section. The idea occurred to me to write a proper termcap entry for an LCD, but I never did it. I think it's come up in this forum before as well.)
The 'tail a log file' idea is the straightforward way, something like
Code: Select all
tail -f /var/log/messages > /dev/ttys2 &
I'd think that between some appropriate entries in syslogd.conf and the tail trick, you should be able to control waht you send the the LCD very well.
(I'm not a Linux person as much as a FreeBSD person, but I wrote a 'mini-shell' that would just exec() programs based on keypresses using the MOPerl out of the downloads section. The idea occurred to me to write a proper termcap entry for an LCD, but I never did it. I think it's come up in this forum before as well.)
BLK202A-4BR-BK + LK202-25-WB-V + LK204-25-V + VK204-25-V + LK-202-24-USB + MX212
Its easy to write a program that is executed like this:
Which just grabs the uname -a string and puts it on the LCD. could be useful, might not be.
Shak
Code: Select all
tolcd uname -a
Shak
Don't know if that will be possible, but we have started looking into getting some one to write a Linux program for us. It's going to be closed source, I'm sure we will catch allot of flack for that one, but I belive it will be the best Linux LCD software when it's done.
Henry J.
President
Matrix Orbital
President
Matrix Orbital
Linux LCD prog
How's progress on the Linux app you mentioned?
I just bought a LCD screen and installed LCD4Linux which has so far failed to 'make' on my Redhat 8 so would be very interested.
Cheers
Jason
I just bought a LCD screen and installed LCD4Linux which has so far failed to 'make' on my Redhat 8 so would be very interested.
Cheers
Jason
I'm not going to rip you on it but why closed source? I would think you'd get alot more done faster if it were open. All we need is a port of LCDC to Linux,, i think thats about as gould as one could ever need or wantHenry wrote:Don't know if that will be possible, but we have started looking into getting some one to write a Linux program for us. It's going to be closed source, I'm sure we will catch allot of flack for that one, but I belive it will be the best Linux LCD software when it's done.
