Bug 130167 - fail to create a usb link
Summary: fail to create a usb link
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Hotplug (show other bugs)
Version: Final
Hardware: i686 SuSE Linux 10.0
: P5 - None : Normal
Target Milestone: ---
Assignee: Kay Sievers
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-22 20:23 UTC by Noel Carneiro
Modified: 2006-02-08 19:09 UTC (History)
1 user (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
output of lshal (99.05 KB, text/plain)
2005-10-25 10:33 UTC, Danny Al-Gaaf
Details
output of "dmesg | egrep usb" (1.79 KB, text/plain)
2005-10-26 05:16 UTC, Noel Carneiro
Details
output of "lshal" (138.13 KB, text/plain)
2005-10-26 05:18 UTC, Noel Carneiro
Details
output of "tail -f /var/log/messages" before sync (977 bytes, text/plain)
2005-10-26 05:20 UTC, Noel Carneiro
Details
output of "tail -f /var/log/messages" after (2.19 KB, text/plain)
2005-10-26 05:21 UTC, Noel Carneiro
Details
hw info (48.78 KB, application/x-gunzip)
2005-10-26 05:28 UTC, Noel Carneiro
Details
output of "dmesg | egrep usb" (1.79 KB, text/plain)
2005-10-27 03:11 UTC, Noel Carneiro
Details
output of "tail -f /var/log/messages" before sync (962 bytes, text/plain)
2005-10-27 03:13 UTC, Noel Carneiro
Details
output of "tail -f /var/log/messages" after sync (2.17 KB, text/plain)
2005-10-27 03:15 UTC, Noel Carneiro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Noel Carneiro 2005-10-22 20:23:29 UTC
Hi,

every time I have to sync my Handspring Visor (or to any palm device for that
matter - just have a look in the discussion forums!), I had to log as root
(through su) and create a link to /dev/ttyUSB1 (ln -s /dev/ttyUSB1 /dev/pilot)
even though /dev/ttyUSB1 does not exist; and this happens EVERY TIME. The  link
vanishes after each session so, every session I have do create the same link.

This didn't happen with Suse 9.3, since there was a /dev/ttyUSB1. What happened
with Suse 10? Why there is no /dev/ttyUSB1?

This is very, very annoying!!
Comment 1 Danny Al-Gaaf 2005-10-24 14:14:16 UTC
please attach output of lshal.
Comment 2 Noel Carneiro 2005-10-25 04:16:18 UTC
I sent the output directly to "Danny Kukawka <dkukawka@novell.com>" due to the limit in the number of characters.
Comment 3 Olaf Hering 2005-10-25 05:43:06 UTC
attach the 'hwinfo | gzip -v9 > hwinfo.txt.gz' when the link is gone.
You may want to look at the dmesg output for usb related errors.
Comment 4 Danny Al-Gaaf 2005-10-25 09:26:45 UTC
Not a problem with HAL, maybe with udev.
Comment 5 Hannes Reinecke 2005-10-25 09:43:19 UTC
Danny, care to share your knowledge with us?
Comment 6 Danny Al-Gaaf 2005-10-25 10:33:54 UTC
Created attachment 55311 [details]
output of lshal
Comment 7 Noel Carneiro 2005-10-26 05:16:44 UTC
Created attachment 55498 [details]
output of "dmesg | egrep usb"
Comment 8 Noel Carneiro 2005-10-26 05:18:38 UTC
Created attachment 55499 [details]
output of "lshal"

just an correction. The first one I sent was done with 9.3 system; this one is with the 10.0 system.
Comment 9 Noel Carneiro 2005-10-26 05:20:04 UTC
Created attachment 55500 [details]
output of "tail -f /var/log/messages" before sync

This is the output of "tail -f /var/log/messages" before sync button is pressed.
Comment 10 Noel Carneiro 2005-10-26 05:21:00 UTC
Created attachment 55501 [details]
output of  "tail -f /var/log/messages" after

This is the output of  "tail -f /var/log/messages" after the sync buttom is pressed.
Comment 11 Noel Carneiro 2005-10-26 05:28:44 UTC
Created attachment 55502 [details]
hw info

hwinfo | gzip -v9 > hwinfo.txt.gz
Comment 12 Hannes Reinecke 2005-10-26 06:56:11 UTC
If I interpret this correctly is just the link /dev/ttyUSB1 -> /dev/pilot missing, correct?
As we're using dynamic device node generation via udev with 10.0, there are several options to fix this:

- Edit the configuration of the affected programs to _not_ use /dev/pilot but  
  rather /dev/ttyUSB1.
- Create the link statically; add the following line to /etc/udev/static_devices.txt:

pilot l /dev/ttyUSB1

- Add a udev rule to create the symlink automatically once ttyUSB1 is created.
E.g.

SUBSYSTEM=="usb", KERNEL=="ttyUSB1", ACTION=="add", SYMLINK+="pilot"

Comment 13 Olaf Hering 2005-10-26 09:21:28 UTC
/dev/pilot was hardcoded in old usb or tty agent.
Comment 14 Hannes Reinecke 2005-10-26 09:58:46 UTC
Kay, should we add it per default?
Comment 15 Petr Ostadal 2005-10-26 10:08:21 UTC
to Comment #12:
affected programs dont'use use only usb devices, but also ttySx, ircomx and so on, therefore we can't change configuration to use /dev/ttyUSB1 instead /dev/pilot.
Comment 16 Kay Sievers 2005-10-26 12:39:38 UTC
Care to add this line:
  BUS=="usb", KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", SYMLINK+="pilot"

to:
  /etc/udev/rules.d/50-udev.rules

and see if that creates the link for the device?
Comment 17 Noel Carneiro 2005-10-27 03:11:44 UTC
Created attachment 55658 [details]
output of "dmesg | egrep usb"

after modified "/etc/udev/rules.d/50-udev.rules", did "dmesg | egrep usb". Nothing changed.
Comment 18 Noel Carneiro 2005-10-27 03:13:48 UTC
Created attachment 55659 [details]
output of "tail -f /var/log/messages" before sync

after modified "/etc/udev/rules.d/50-udev.rules", did "tail -f /var/log/messages" and then, pressed the sync button. Nothing changed.
Comment 19 Noel Carneiro 2005-10-27 03:15:03 UTC
Created attachment 55660 [details]
output of "tail -f /var/log/messages" after sync

after modified "/etc/udev/rules.d/50-udev.rules", issued "tail -f /var/log/messages", pressed the sync button. Nothing changed.
Comment 20 Kay Sievers 2006-02-08 19:09:45 UTC
Sorry, I have no idea how to debug that. I'm closing the bug.