Hi,

thanks for the report. I've fixed this several weeks ago in upstream's SVN, so
the fix will be shipped with 2.91, which should be out since several weeks and
will come out very soon hopefully.

Cheers,

Bernd

Philipp Matthias Hahn wrote:
> Package: gpsd
> Version: 2.90.1~svn6819-1+b1
> Severity: normal
> 
> I have an Garmin GPSMap 60CSx, which I normally only use through libusb
> (QLandkarteGT). Today I installed gpsd, becauce agtl needs it. After
> loading the gamin_gps kernel module I only had /dev/ttyUSB0, but no
> /dev/gps0 and the gpsd.hotplug.wrapper was not called.
> 
> After some debugging I found /lib/udev/rules.d/60-gpsd.rules to be
> faulty:
>   ATTR{idVendor}=="091e", ATTR{idProduct}=="0003", SYMLINK+="gps%n", 
> RUN+="/lib/udev/gpsd.hotplug.wrapper"
> It uses "ATTR{}" to match the device, but
> '/devices/pci0000:00/0000:00:0b.0/usb2/2-3/2-3:1.0/ttyUSB0/tty/ttyUSB0'
> has no such attribute, thus doesn't match. After changing all "ATTR{}"
> entries to "ATTRS{}", it worked without problems. Please considere
> updating the rules with:
> 
>  sed -e 's/\<ATTR\>/ATTRS/g' 60-gpsd.rules
> 
> See /usr/share/doc/udev/writing_udev_rules/index.html if you need
> further information on writing udev rules.
> 
> ===== udevadm info --attribute-walk 
> --path=/devices/pci0000:00/0000:00:0b.0/usb2/2-3/2-3:1.0/ttyUSB0/tty/ttyUSB0
> 
> Udevadm info starts with the device specified by the devpath and then
> walks up the chain of parent devices. It prints for every device
> found, all possible attributes in the udev rules key format.
> A rule to match, can be composed by the attributes of the device
> and the attributes from one single parent device.
> 
>   looking at device 
> '/devices/pci0000:00/0000:00:0b.0/usb2/2-3/2-3:1.0/ttyUSB0/tty/ttyUSB0':
>     KERNEL=="ttyUSB0"
>     SUBSYSTEM=="tty"
>     DRIVER==""
> 
>   looking at parent device 
> '/devices/pci0000:00/0000:00:0b.0/usb2/2-3/2-3:1.0/ttyUSB0':
>     KERNELS=="ttyUSB0"
>     SUBSYSTEMS=="usb-serial"
>     DRIVERS=="garmin_gps"
>     ATTRS{port_number}=="0"
> 
>   looking at parent device 
> '/devices/pci0000:00/0000:00:0b.0/usb2/2-3/2-3:1.0':
>     KERNELS=="2-3:1.0"
>     SUBSYSTEMS=="usb"
>     DRIVERS=="garmin_gps"
>     ATTRS{bInterfaceNumber}=="00"
>     ATTRS{bAlternateSetting}==" 0"
>     ATTRS{bNumEndpoints}=="03"
>     ATTRS{bInterfaceClass}=="ff"
>     ATTRS{bInterfaceSubClass}=="ff"
>     ATTRS{bInterfaceProtocol}=="ff"
>     ATTRS{modalias}=="usb:v091Ep0003d0001dcFFdscFFdpFFicFFiscFFipFF"
>     ATTRS{supports_autosuspend}=="0"
> 
>   looking at parent device '/devices/pci0000:00/0000:00:0b.0/usb2/2-3':
>     KERNELS=="2-3"
>     SUBSYSTEMS=="usb"
>     DRIVERS=="usb"
>     ATTRS{configuration}==""
>     ATTRS{bNumInterfaces}==" 1"
>     ATTRS{bConfigurationValue}=="1"
>     ATTRS{bmAttributes}=="80"
>     ATTRS{bMaxPower}=="300mA"
>     ATTRS{urbnum}=="12"
>     ATTRS{idVendor}=="091e"
>     ATTRS{idProduct}=="0003"
>     ATTRS{bcdDevice}=="0001"
>     ATTRS{bDeviceClass}=="ff"
>     ATTRS{bDeviceSubClass}=="ff"
>     ATTRS{bDeviceProtocol}=="ff"
>     ATTRS{bNumConfigurations}=="1"
>     ATTRS{bMaxPacketSize0}=="64"
>     ATTRS{speed}=="12"
>     ATTRS{busnum}=="2"
>     ATTRS{devnum}=="9"
>     ATTRS{version}==" 1.10"
>     ATTRS{maxchild}=="0"
>     ATTRS{quirks}=="0x0"
>     ATTRS{authorized}=="1"
> 
>   looking at parent device '/devices/pci0000:00/0000:00:0b.0/usb2':
>     KERNELS=="usb2"
>     SUBSYSTEMS=="usb"
>     DRIVERS=="usb"
>     ATTRS{configuration}==""
>     ATTRS{bNumInterfaces}==" 1"
>     ATTRS{bConfigurationValue}=="1"
>     ATTRS{bmAttributes}=="e0"
>     ATTRS{bMaxPower}=="  0mA"
>     ATTRS{urbnum}=="116"
>     ATTRS{idVendor}=="1d6b"
>     ATTRS{idProduct}=="0001"
>     ATTRS{bcdDevice}=="0206"
>     ATTRS{bDeviceClass}=="09"
>     ATTRS{bDeviceSubClass}=="00"
>     ATTRS{bDeviceProtocol}=="00"
>     ATTRS{bNumConfigurations}=="1"
>     ATTRS{bMaxPacketSize0}=="64"
>     ATTRS{speed}=="12"
>     ATTRS{busnum}=="2"
>     ATTRS{devnum}=="1"
>     ATTRS{version}==" 1.10"
>     ATTRS{maxchild}=="8"
>     ATTRS{quirks}=="0x0"
>     ATTRS{authorized}=="1"
>     ATTRS{manufacturer}=="Linux 2.6.32.7 ohci_hcd"
>     ATTRS{product}=="OHCI Host Controller"
>     ATTRS{serial}=="0000:00:0b.0"
>     ATTRS{authorized_default}=="1"
> 
>   looking at parent device '/devices/pci0000:00/0000:00:0b.0':
>     KERNELS=="0000:00:0b.0"
>     SUBSYSTEMS=="pci"
>     DRIVERS=="ohci_hcd"
>     ATTRS{vendor}=="0x10de"
>     ATTRS{device}=="0x026d"
>     ATTRS{subsystem_vendor}=="0x1462"
>     ATTRS{subsystem_device}=="0x7350"
>     ATTRS{class}=="0x0c0310"
>     ATTRS{irq}=="23"
>     ATTRS{local_cpus}=="3"
>     ATTRS{local_cpulist}=="0-1"
>     ATTRS{modalias}=="pci:v000010DEd0000026Dsv00001462sd00007350bc0Csc03i10"
>     ATTRS{enable}=="1"
>     ATTRS{broken_parity_status}=="0"
>     ATTRS{msi_bus}==""
> 
>   looking at parent device '/devices/pci0000:00':
>     KERNELS=="pci0000:00"
>     SUBSYSTEMS==""
>     DRIVERS==""
> 
> 
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers unstable
>   APT policy: (990, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.32.7 (SMP w/2 CPU cores; PREEMPT)
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages gpsd depends on:
> ii  debconf [debconf-2.0 1.5.28              Debian configuration management 
> sy
> ii  libc6                2.10.2-5            Embedded GNU C Library: Shared 
> lib
> ii  libdbus-1-3          1.2.16-2            simple interprocess messaging 
> syst
> ii  libgps19             2.90.1~svn6819-1+b1 Global Positioning System - 
> librar
> ii  lsb-base             3.2-23              Linux Standard Base 3.2 init 
> scrip
> ii  netbase              4.40                Basic TCP/IP networking system
> ii  python               2.5.4-9             An interactive high-level 
> object-o
> 
> Versions of packages gpsd recommends:
> ii  udev                          150-2      /dev/ and hotplug management 
> daemo
> 
> Versions of packages gpsd suggests:
> ii  dbus                 1.2.16-2            simple interprocess messaging 
> syst
> ii  gpsd-clients         2.90.1~svn6819-1+b1 Global Positioning System - 
> client
> 
> -- debconf information:
> * gpsd/start_daemon: false
> * gpsd/device:
> * gpsd/socket: /var/run/gpsd.sock
> * gpsd/daemon_options:
> * gpsd/autodetection: true
> 
> 


-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprints: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79
                   ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to