Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
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.
I just bought an actiontec 56k/v.92 external serial modem to use with my Debian system. I thought it would be pretty straight forward to use.. just plug it in and go. Unfortunately that's not the case.. I can't seem to get it to be recognized.
The end goal is to use hylafax with it so I went to the hylafax page and got this command to test with (as root):
cu -l /dev/ttyS0
That results in this error:
cu: open (/dev/ttyS0): Permission denied
cu: /dev/ttyS0: Line in use
I also tried changing that ttyS0 to ttyS1 and S2 and S3 with similar results. Anybody have a suggestion on how to proceed?
The first thing to do is to make sure the serial port is functional. There are a couple ways to do that.
The most fundamental is to check the BIOS settings and make sure the thing is switched on. While you're there it might be wise to check on the IRQ and I/O port as they will indicate which tty you should look at when you get back into the OS. It will be on IRQ 3 or 4 normally, if it's on IRQ 3 you'll be looking for /dev/ttyS1 or /dev/ttyS3, if it's on IRQ 4 look for /dev/ttyS0 or /dev/ttyS2. The I/O port numbers specify which, but I don't recall the correlation at the moment.
In any case, when you are back to linux, get logged in as root. Once you're there it should be pretty easy to figure out which tty to use: just do 'cat /dev/ttyS0' or whichever tty you think is appropriate. If the serial port is not on that tty, you'll get an I/O error. If it is on that port, IIRC, you get nothing at all, which in this case is a good thing. Just ctrl-C to get back to the shell.
Once you have got this far, cu should definitely work.
If you have already got this far before posting, I'm not sure what to tell you except that your cu binary could potentially be broken, or your serial port could be. You might try using minicom, just make a soft link /dev/modem to whichever is the appropriate /dev/ttyS?
Ok, I tried the chown suggestion and that worked! Now when I type cu -l /dev/ttyS0 it tells me I am connected. I was also able to query the modem to find it supports 0, 1, 2. Thanks for the help!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.