Fedora Linux Support Community & Resources Center
  #1  
Old 23rd October 2008, 04:21 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
no more /dev/ttyUSB1 ?

I need to find out the "path" to a device I have plugged in. I thought it used to be something like /dev/ttyUSB1, but I don't have anything like that.

here is the last bit of dmesg
Code:
usb 1-6.1.4: configuration #1 chosen from 1 choice
input: 3Dconnexion SpaceNavigator as /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6.1/1-6.1.4/1-6.1.4:1.0/input/input6
input,hidraw2: USB HID v1.10 Multi-Axis Controller [3Dconnexion SpaceNavigator] on usb-0000:00:1d.7-6.1.4
usb 1-6.1.4: New USB device found, idVendor=046d, idProduct=c626
usb 1-6.1.4: New USB device strings: Mfr=3, Product=1, SerialNumber=0
usb 1-6.1.4: Product: SpaceNavigator
usb 1-6.1.4: Manufacturer: 3Dconnexion
and here is lsusb
Code:
Bus 001 Device 010: ID 046d:c626 Logitech, Inc. 3DConnexion Space Navigator 3D Mouse
I don't see anything in those that gives me a path like /dev/something

How do I tell what the path is?

Thanks,
Dave
Reply With Quote
  #2  
Old 23rd October 2008, 04:52 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
you can check what the most recent device node created is using something like

Code:
ls -lrt /dev
Reply With Quote
  #3  
Old 23rd October 2008, 04:55 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
Set udev_log in /etc/udev/udev.conf, to see what udev does.

If you want to refer to the device, create a SYMLINK+="mynameforit" udev rule.
Reply With Quote
  #4  
Old 23rd October 2008, 04:56 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
here is ls -lrt before i plug it in
Code:
drwxrwxrwt  2 root   root           100 2008-10-23 11:22 shm
crw--w----  1 doriad tty         4,   1 2008-10-23 11:52 tty1
drwxr-xr-x  4 root   root           260 2008-10-23 11:52 input
crw-rw-rw-  1 root   tty         5,   2 2008-10-23 11:52 ptmx
and after I plug it in

Code:
drwxrwxrwt  2 root   root           100 2008-10-23 11:22 shm
crw-rw----  1 root   root      249,  26 2008-10-23 11:52 usbdev1.13_ep00
crw-rw----  1 root   root      250,   2 2008-10-23 11:52 hidraw2
crw-rw----  1 root   root      249,  27 2008-10-23 11:52 usbdev1.13_ep81
drwxr-xr-x  4 root   root           280 2008-10-23 11:52 input
crw--w----  1 doriad tty         4,   1 2008-10-23 11:52 tty1
crw-rw-rw-  1 root   tty         5,   2 2008-10-23 11:52 ptmx
so is it one of these guys
usbdev1.13_ep81

that I have to use?

Thanks,
Dave
Reply With Quote
  #5  
Old 23rd October 2008, 04:59 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
udev_log is set to "err" . so where would I look to see the log?
Reply With Quote
  #6  
Old 23rd October 2008, 05:04 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
looks like /dev/hidraw2 is the one you want. What is the device? Have you any software to use with it? Is it a joystick, try 'jstest /dev/hidraw2'
Reply With Quote
  #7  
Old 23rd October 2008, 05:06 PM
daviddoria Offline
Registered User
 
Join Date: Oct 2007
Posts: 884
it is called a "space navigator", its like a 3d-ish mouse - the goal is to use it in an openGL program I have, I haven't started doing anything yet, but I assumed that I'd need to know the path to the device once I do!

Does this still sound reasonable?

Dave
Reply With Quote
  #8  
Old 23rd October 2008, 05:10 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
You mean one of these

You probably need a driver

http://www.3dconnexion.com/support/downloads.php
Reply With Quote
  #9  
Old 23rd October 2008, 05:14 PM
brebs's Avatar
brebs Offline
Banned
 
Join Date: Apr 2008
Posts: 558
The log is /var/log/messages

Quote:
input: 3Dconnexion SpaceNavigator as /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6.1/1-6.1.4/1-6.1.4:1.0/input/input6
Is presumably also /dev/input/input6
Reply With Quote
  #10  
Old 23rd October 2008, 05:18 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
I think you'll just get raw events dumped to those device nodes, you'll need the actual driver to interpret the events. You can see raw events using hexdump eg

Code:
hexdump -Cv /dev/hidraw2
or 'hexdump -Cv /dev/input/input6' etc
Reply With Quote
Reply

Tags
or dev or ttyusb1

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


Current GMT-time: 06:38 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat