Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
 |
02-06-2005, 07:29 PM
|
#1
|
LQ Newbie
Registered: Jul 2004
Posts: 17
Rep:
|
Identifying port addresses in Red Hat
Hi,
Can any1 tell me how to identify various port addresses (parallel , serial, ps2 ports) in Red Hat?..Is there any similar feature like Window's Device Manager to do this?
Thanks
Bondfire
|
|
|
02-06-2005, 07:58 PM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,799
|
This might do it.
cat /proc/ioports
|
|
|
02-06-2005, 09:17 PM
|
#3
|
LQ Newbie
Registered: Jul 2004
Posts: 17
Original Poster
Rep:
|
Tnx for your reply...
Just 1 more question..how can i know which is address for the parallel port?
I get a whole list of addresses togther with names like dma,pic1,ide1,fpu......the ps2 port is ok since it correspoonds with "keyboard" and the serial port with "serial" but i don't know how to identify the parallel port.
Yr help pliz
Bondfire
|
|
|
02-06-2005, 09:47 PM
|
#4
|
Member
Registered: Nov 2004
Location: Toronto, Canada
Distribution: Debian, OpenBSD, SuSE, Ubuntu
Posts: 68
Rep:
|
parallel port
Your parallel port is probably lp0 or if you have two, lp0 and lp1. Linux often start counting at 0.
Cheers,
Scott
|
|
|
02-06-2005, 09:54 PM
|
#5
|
LQ Newbie
Registered: Jul 2004
Posts: 17
Original Poster
Rep:
|
Hi..
there is no lp0 or lp1...but i for sure have a parallel port...
Neways..i'll try 0x0378 for that is most frequently the address and see if it works
Thanks
Bondfire
|
|
|
02-06-2005, 10:07 PM
|
#6
|
Member
Registered: Nov 2004
Location: Toronto, Canada
Distribution: Debian, OpenBSD, SuSE, Ubuntu
Posts: 68
Rep:
|
just curious
What are you trying to do that you need to reference your parallel port?
lp0 is what my version of linux (FC3) uses to reference the parallel port for printing. May not be relevant ot you, though.
I would also look under /dev (e.g., ls /dev for a listing of installed and available devices.
Scott
|
|
|
02-06-2005, 10:10 PM
|
#7
|
LQ Newbie
Registered: Jul 2004
Posts: 17
Original Poster
Rep:
|
I'll be reading data from the ps2 port and writing data to the parallel port...but i've yet to see whether Kylix3 allows this or not
Bondfire
|
|
|
02-06-2005, 10:50 PM
|
#8
|
Member
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561
Rep:
|
Device assignment for the parallel ports depends on what type of device is connected to it. It's not like serial ports where ttyS0 is always COM1 no matter what's actually connected to it. Read Documentation/devices.txt in the kernel source tree for details on the various assignments.
|
|
|
02-07-2005, 02:04 PM
|
#9
|
LQ Newbie
Registered: Jul 2004
Posts: 17
Original Poster
Rep:
|
Thanks...i'll check that out.
By the way, any1 has any idea whether Kylix allows hardware access?
Bondfire
|
|
|
All times are GMT -5. The time now is 12:58 AM.
|
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
|
|