Skip to contentSkip to conversation

Can I have a serial display output and a kbd PS/2 input?

DISCUSSION Frank Torres 6 participants 7 messages Aug 10, 2001 – Aug 15, 2001

lore
Share & tools
lore
#0 lore raw

Sorry to be insistent in this point, but perhaps requesting the problem this way someone figures out what I am trying to do.
The display is already configured and sending getty line from inittab waits for an input from serial so it doesn't work.
Any other ideas? This is my last try.

Thanks in advance
Frank again.

#1 lore raw

In article <001b01c12194$a34a3370$66011ec0@frank>,

Quoted 5 lines · Frank Torres

Sorry to be insistent in this point, but perhaps requesting the problem this way someone figures out what I am trying to do.
The display is already configured and sending getty line from inittab waits for an input from serial so it doesn't work.
Any other ideas? This is my last try.

If you want /dev/console to behave so that it sends output to the serial device yet takes input from the PC keyboard, no, that cannot be done. Right now /dev/console can be associated with only one device for both input and output at the same time.

Output from kernel printk's does go to all console devices though.

Mike.

Signature · 2 lines
"dselect has a user interface which scares small children"
	-- Theodore Tso, on debian-devel
#2 lore raw
Quoted 8 lines · Miquel van Smoorenburg

In article <001b01c12194$a34a3370$66011ec0@frank>,

Quoted 5 lines · Frank Torres

Sorry to be insistent in this point, but perhaps requesting the problem this way someone figures out what I am trying to do.
The display is already configured and sending getty line from inittab waits for an input from serial so it doesn't work.
Any other ideas? This is my last try.

Quoted 6 lines

If you want /dev/console to behave so that it sends output to the serial device yet takes input from the PC keyboard, no, that cannot be done. Right now /dev/console can be associated with only one device for both input and output at the same time.

Output from kernel printk's does go to all console devices though.

Well, as a sleightly more expensive solution, you could build a Sun keyboard to serial adapter. Somewhere on the SuSE webpage there is instructions on how to do this. IIRC, the keyboard only uses the RxD pin on the serial port so you would be free to use the TxD pin for your serial LCD.

The schematic can be had here:
http://www.suse.cz/development/input/adapters

good luck, and hope this is of some use to you.

Kelsey Hudson [email protected]
Software Engineer
Compendium Technologies, Inc (619) 725-0771
---------------------------------------------------------------------------

#3 lore raw

Just to say thanks all folks. I was insisting on the same point you explained to me. In spite of that I needed confirmation; any. It would be interesting anyway to develop a console which could have the input and the output from/to diferent devices.
Now I'll have to make one of the consoles to login automatically (I'm trying the qlogin program) and then my next step will be to develop a small set of functions to give aplications programmers an easy way to control some devices like this display. So far I've been writing some modules with the archiknown vi, but know I'll have to write a lot of code. Any IDE suggested? I downloaded the RHIDE. Is it good? I haven't tested it yet.

Thanks all again.
Frank

----- Original Message -----
From: "Dr. Kelsey Hudson" <[email protected]>
To: <[email protected]>
Sent: Friday, August 10, 2001 11:22 PM
Subject: Re: Can I have a serial display output and a kbd PS/2 input?

Quoted 5 lines · Miquel van Smoorenburg
Quoted 4 lines

In article <001b01c12194$a34a3370$66011ec0@frank>,

Quoted 1 line · Frank Torres

Sorry to be insistent in this point, but perhaps requesting the problem

this

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

way someone figures out what I am trying to do.
The display is already configured and sending getty line from inittab

waits

Quoted 18 lines
Quoted 9 lines
Quoted 2 lines

for an input from serial so it doesn't work.
Any other ideas? This is my last try.

If you want /dev/console to behave so that it sends output to the serial device yet takes input from the PC keyboard, no, that cannot be done. Right now /dev/console can be associated with only one device for both input and output at the same time.

Output from kernel printk's does go to all console devices though.

Well, as a sleightly more expensive solution, you could build a Sun keyboard to serial adapter. Somewhere on the SuSE webpage there is instructions on how to do this. IIRC, the keyboard only uses the RxD pin on the serial port so you would be free to use the TxD pin for your serial LCD.

The schematic can be had here:
http://www.suse.cz/development/input/adapters

#4 lore raw
In reply to Miquel van Smoorenburg
Quoted 23 lines · Dr. Kelsey Hudson
Quoted 8 lines · Miquel van Smoorenburg

In article <001b01c12194$a34a3370$66011ec0@frank>,

Quoted 5 lines · Frank Torres

Sorry to be insistent in this point, but perhaps requesting the problem this way someone figures out what I am trying to do.
The display is already configured and sending getty line from inittab waits for an input from serial so it doesn't work.
Any other ideas? This is my last try.

Quoted 6 lines

If you want /dev/console to behave so that it sends output to the serial device yet takes input from the PC keyboard, no, that cannot be done. Right now /dev/console can be associated with only one device for both input and output at the same time.

Output from kernel printk's does go to all console devices though.

Well, as a sleightly more expensive solution, you could build a Sun keyboard to serial adapter. Somewhere on the SuSE webpage there is instructions on how to do this. IIRC, the keyboard only uses the RxD pin on the serial port so you would be free to use the TxD pin for your serial LCD.

Quoted 4 lines

The schematic can be had here:
http://www.suse.cz/development/input/adapters

good luck, and hope this is of some use to you.

Yes, but this won't work either, because the keyboard doesn't send ASCII.

Signature · 2 lines
Vojtech Pavlik
SuSE Labs
#5 lore raw
In reply to Frank Torres

On Fri, 2001-08-10 14:04:37 +0200, Frank Torres <[email protected]> wrote in message <001b01c12194$a34a3370$66011ec0@frank>:

Quoted 5 lines

Sorry to be insistent in this point, but perhaps requesting the problem this way someone figures out what I am trying to do.
The display is already configured and sending getty line from inittab waits for an input from serial so it doesn't work.
Any other ideas? This is my last try.

I think something like "console=ttyS1 console=tty0" should do.

This (as boot parameters) means: "output to all defined consoles and input from tty0" as your keyboard is connected to tty0.

MfG, JBG

#6 lore raw
In reply to Frank Torres
Quoted 4 lines · Jan-Benedict Glaw

I think something like "console=ttyS1 console=tty0" should do.

This (as boot parameters) means: "output to all defined consoles and input from tty0" as your keyboard is connected to tty0.

No, you're missing his point.

He wants a getty (not only kernel console) to take input from the keyboard, and output through a serial port, which can't be done presently.

--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html