Bug 4940 - не работает gpm и irda на usb
: не работает gpm и irda на usb
Status: CLOSED FIXED
: Sisyphus
(All bugs in Sisyphus/hotplug)
: unstable
: all Linux
: P2 enhancement
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2004-08-04 21:55 by
Modified: 2005-10-31 23:08 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-08-04 21:55:04
кусок /var/log/messages

Aug  4 21:09:46 shrek kernel: usb.c: registered new driver usbdevfs
Aug  4 21:09:46 shrek kernel: usb.c: registered new driver hub
Aug  4 21:09:46 shrek kernel: usb-uhci.c: $Revision: 1.275 $ time 22:12:47 Jun
28 2004
Aug  4 21:09:46 shrek kernel: usb-uhci.c: High bandwidth mode enabled
Aug  4 21:09:46 shrek kernel: usb-uhci.c: USB UHCI at I/O 0xe300, IRQ 16
Aug  4 21:09:46 shrek kernel: usb-uhci.c: Detected 2 ports
Aug  4 21:09:46 shrek kernel: usb.c: new USB bus registered, assigned bus number 1
Aug  4 21:09:46 shrek kernel: hub.c: USB hub found
Aug  4 21:09:46 shrek kernel: hub.c: 2 ports detected
Aug  4 21:09:46 shrek kernel: usb-uhci.c: USB UHCI at I/O 0xe000, IRQ 19
Aug  4 21:09:46 shrek kernel: usb-uhci.c: Detected 2 ports
Aug  4 21:09:46 shrek kernel: usb.c: new USB bus registered, assigned bus number 2
Aug  4 21:09:46 shrek kernel: hub.c: USB hub found
Aug  4 21:09:46 shrek kernel: hub.c: 2 ports detected
Aug  4 21:09:46 shrek kernel: usb-uhci.c: USB UHCI at I/O 0xe100, IRQ 18
Aug  4 21:09:46 shrek kernel: usb-uhci.c: Detected 2 ports
Aug  4 21:09:46 shrek kernel: usb.c: new USB bus registered, assigned bus number 3
Aug  4 21:09:46 shrek kernel: hub.c: USB hub found
Aug  4 21:09:46 shrek kernel: hub.c: 2 ports detected
Aug  4 21:09:46 shrek kernel: usb-uhci.c: USB UHCI at I/O 0xe200, IRQ 16
Aug  4 21:09:46 shrek kernel: usb-uhci.c: Detected 2 ports
Aug  4 21:09:46 shrek kernel: usb.c: new USB bus registered, assigned bus number 4
Aug  4 21:09:46 shrek kernel: hub.c: USB hub found
Aug  4 21:09:46 shrek kernel: hub.c: 2 ports detected
Aug  4 21:09:46 shrek kernel: usb-uhci.c: v1.275:USB Universal Host Controller
Interface driver
Aug  4 21:09:46 shrek kernel: ehci_hcd 00:1d.7: Intel Corp. 82801EB USB2
Aug  4 21:09:46 shrek kernel: ehci_hcd 00:1d.7: irq 23, pci mem f9174000
Aug  4 21:09:46 shrek kernel: usb.c: new USB bus registered, assigned bus number 5
Aug  4 21:09:46 shrek kernel: ehci_hcd 00:1d.7: enabled 64bit PCI DMA
Aug  4 21:09:46 shrek kernel: PCI: cache line size of 128 is not supported by
device 00:1d.7
Aug  4 21:09:46 shrek kernel: ehci_hcd 00:1d.7: USB 2.0 enabled, EHCI 1.00,
driver 2003-Dec-29/2.4
Aug  4 21:09:46 shrek kernel: hub.c: USB hub found
Aug  4 21:09:46 shrek kernel: hub.c: 8 ports detected
Aug  4 21:09:47 shrek kernel: usb.c: registered new driver irda-usb
Aug  4 21:09:47 shrek kernel: USB IrDA support registered
Aug  4 21:09:47 shrek kernel: usb.c: registered new driver hiddev
Aug  4 21:09:47 shrek kernel: usb.c: registered new driver hid
Aug  4 21:09:47 shrek kernel: hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik
<vojtech@suse.cz>
Aug  4 21:09:47 shrek kernel: hid-core.c: USB HID support drivers
Aug  4 21:09:47 shrek kernel: mice: PS/2 mouse device common for all mice
Aug  4 21:09:47 shrek hotplug: Hotplug (usb.rc) start: succeeded
...
Aug  4 21:09:47 shrek gpm[1327]: Started gpm successfully. Entered daemon mode.
Aug  4 21:09:47 shrek gpm: gpm startup succeeded
Aug  4 21:09:47 shrek kernel: hub.c: connect-debounce failed, port 1 disabled
Aug  4 21:09:47 shrek gpm[1327]: Could not open /dev/usbmouse.
...
Aug  4 21:09:48 shrek irattach: executing: '/sbin/modprobe irda0'
Aug  4 21:09:48 shrek irattach: + modprobe: Can't locate module irda0
Aug  4 21:09:48 shrek irattach: Trying to load module irda0 exited with status 255
Aug  4 21:09:48 shrek irattach: executing: 'echo shrek > /proc/sys/net/irda/devname'
Aug  4 21:09:48 shrek irda: irattach startup succeeded
Aug  4 21:09:48 shrek irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Aug  4 21:09:48 shrek irattach: Starting device irda0
Aug  4 21:09:48 shrek irattach: ioctl(SIOCGIFFLAGS): No such device
Aug  4 21:09:48 shrek irattach: Stopping device irda0
Aug  4 21:09:48 shrek irattach: ioctl(SIOCGIFFLAGS): No such device
Aug  4 21:09:48 shrek irattach: exiting ...
...
Aug  4 21:09:48 shrek kernel: hub.c: new USB device 00:1d.0-1, assigned address 2
Aug  4 21:09:49 shrek kernel: input: USB HID v1.10 Mouse [B16_b_02 USB-PS/2
Optical Mouse] on usb1:2.0

service gpm restart

Aug  4 21:12:08 shrek gpm: gpm shutdown succeeded
Aug  4 21:12:08 shrek gpm: gpm startup succeeded
Aug  4 21:12:08 shrek gpm[2145]: Removing stale pid file /var/run/gpm.pid
Aug  4 21:12:08 shrek gpm[2145]: Started gpm successfully. Entered daemon mode.
Aug  4 21:12:09 shrek gpm[2145]: imps2: Auto-detected intellimouse PS/2

service irda restart

Aug  4 21:12:17 shrek irda: irattach shutdown succeeded
Aug  4 21:12:17 shrek irattach: executing: '/sbin/modprobe irda0'
Aug  4 21:12:17 shrek irattach: + modprobe: Can't locate module irda0
Aug  4 21:12:17 shrek irattach: Trying to load module irda0 exited with status 255
Aug  4 21:12:17 shrek irda: irattach startup succeeded
Aug  4 21:12:17 shrek irattach: executing: 'echo shrek > /proc/sys/net/irda/devname'
Aug  4 21:12:17 shrek irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Aug  4 21:12:17 shrek irattach: Starting device irda0
------- Comment #1 From 2004-08-04 22:11:49 -------
помогло следующее:

--- usb.rc.old  2004-07-19 14:25:00 +0400
+++ usb.rc      2004-08-04 22:05:00 +0400
@@ -225,6 +225,7 @@
 case "$1" in
   start)
        maybe_start_usb
+       sleep 5
         ;;
   stop)
        maybe_stop_usb
------- Comment #2 From 2004-09-07 14:18:58 -------
Это не выход, к сожалению. sleep 5, sleep 10, sleep 15 и т.д. >/dev/null. Нужно
что-то более правильное.
------- Comment #3 From 2004-11-29 00:30:57 -------
Действительно из-за этого race отключается мышь? 
Я тут поймал это на Athlon64 3000+ - слишком быстрая машина? 
Есть ли workaround для Master2.4 и намерения исправлять? 
------- Comment #4 From 2004-11-29 09:54:47 -------
workaround - sleep 5

Намерение исправлять есть в master 3.0 - там по другому будет работать эта
подсистема. В Master 2.4, к сожалению, это не исправимо.
------- Comment #5 From 2005-06-20 19:26:09 -------
Все переписано ;-)
Теперь должно работать (ядро 2.6 + hotplug)

Можно проверить в installer-*.iso