Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-02-2010, 09:19 PM
|
#1
|
Member
Registered: Jul 2009
Posts: 46
Rep:
|
How can I make the baud rate be configured automatically?
Hi,
The /etc/inittab file is configured as the following.
Code:
# vi /etc/inittab
/sbin/getty -l /bin/login /dev/ttyS0 9600 vt100
It always makes the baud rate 9600.
How can I make the baud rate be configured automatically according to the terminal's baud rate? Can I?
|
|
|
11-02-2010, 10:52 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
|
The majority of dumb terminals don't have any protocol for automatic baud rate negotiation.
Last edited by neonsignal; 11-02-2010 at 10:53 PM.
|
|
|
11-02-2010, 11:18 PM
|
#3
|
Member
Registered: Jul 2009
Posts: 46
Original Poster
Rep:
|
Oh, sorry!
Oh, sorry!
Not according to the terminal's baud rate, but according to the baud rate which is configured in the bootloader automatically.
Then, is it possible?
Last edited by corone; 11-02-2010 at 11:20 PM.
|
|
|
11-03-2010, 12:24 AM
|
#4
|
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
|
Quote:
Originally Posted by corone
Not according to the terminal's baud rate, but according to the baud rate which is configured in the bootloader automatically.
|
It is possible, though perhaps not trivial. For example, you could write a wrapper program in C to replace getty in the /etc/inittab. The wrapper would grab the baud rate from the bootloader configuration, and then invoke the normal getty using execve.
|
|
|
11-03-2010, 03:51 AM
|
#5
|
Member
Registered: Jul 2009
Posts: 46
Original Poster
Rep:
|
Thank you for your answer.
What I wanted to know was how to grab the baud rate from the bootloader configuration.
|
|
|
11-03-2010, 06:39 AM
|
#6
|
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
|
Quote:
Originally Posted by corone
What I wanted to know was how to grab the baud rate from the bootloader configuration.
|
Which bootloader are you using? grub2?
|
|
|
11-03-2010, 01:47 PM
|
#7
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
|
first of all, what kind of terminal are you using?
I have a WYSE 150 running on /dev/ttyS0 on my machine at 19200. The WYSE terminal's firmware provides a nice menu based configuration for setting the baud rate in it's nvram.
Some older terminals have DIP switches for setting their baud rates.
In short, it is either going to be trial and error to match the entry in /etc/inittab with the baud rate of your device, or a trip to the manual of the terminal if you have it.
|
|
|
All times are GMT -5. The time now is 07:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|