LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-20-2005, 12:58 PM   #1
steve_f60
Member
 
Registered: Jul 2004
Posts: 43

Rep: Reputation: 15
Setting Baud Rate on Comm2 Question


I am trying to change the default baud rate on Comm2 port ( we have a printer hooked up to it)

If I enter stty 19200 -F /dev/ttyS1 I can change the baud rate for that session. As soon as I reboot the box it reverts back to 9600. I have tried to " modify both the setserial & setup232 files in /etc/inte.d/boot.d with no success. I can run each of these manually from a command prompt with my changes & they change the baud rate with no problem.

Since I really don't need to run this with a daemon, there is really no need to run it in boot.d. I tried to add the following line to the .xinitrc for the user :

/usr/local/bin/set_tty which contains the above mentioned stty 19200 command.

It runs as the logging on user & changes the baud rate but on reboot it reverts back to 9600.....

Any ideas as to what I am missing?

Thanks,

Steve
 
Old 06-21-2005, 11:45 AM   #2
rstewart
Member
 
Registered: Feb 2005
Location: Sunnyvale, CA
Distribution: Ubuntu
Posts: 205

Rep: Reputation: 38
Why not add the command to your rc.local file?
 
Old 06-21-2005, 01:30 PM   #3
steve_f60
Member
 
Registered: Jul 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Tried that but doesnt seem to work.

Steve
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting refresh rate in XF86Config pengy666 Linux - Hardware 1 05-20-2005 01:18 PM
Setting Refresh Rate wellington Linux - Hardware 3 03-19-2005 01:36 AM
Reading Baud Rate of Serial Port zaheer031 Programming 1 09-27-2004 12:47 PM
How do I change ttyS port baud rate? joe_dejesus Linux - General 1 09-27-2001 09:50 PM
rs232 at non-standard baud rate possible? scgadgets Programming 1 09-14-2001 08:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration