ALT Linux hardware support
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: hardware@altlinux.ru
Subject: Re: [Hardware] Cordless Optical mouse
Date: Fri, 2 Jul 2004 17:34:19 +0400
Message-ID: <20040702133419.GB17160@master.mivlgu.local> (raw)
In-Reply-To: <004801c46034$ee85d290$0994010a@kompnomer1>

[-- Attachment #1: Type: text/plain, Size: 2457 bytes --]

On Fri, Jul 02, 2004 at 04:03:12PM +0300, Aleksandr wrote:
> вывод cat /proc/bus/usb/devices, когда работает:
> 
> T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
> D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
> P:  Vendor=046d ProdID=c505 Rev=17.00
> S:  Manufacturer=Logitech
> S:  Product=USB Receiver
> C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 98mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbkbd
> E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
> I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=hid
> E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
> 
> 
> вывод cat /proc/bus/usb/devices, когда не работает:
> 
> T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
> D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
> P:  Vendor=046d ProdID=c505 Rev=17.00
> S:  Manufacturer=Logitech
> S:  Product=USB Receiver
> C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 98mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=usbkbd
> E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
> I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbmouse
> E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms

Как я и думал - не работает драйвер usbmouse.  Однако писать alias
usbmouse null нельзя из-за древнего кода в /etc/init.d/usb,
переделывающего этот alias в usb-interface.  Также странно, что rmmod
usbmouse не исправляет ситуацию (обычно в этом случае устройство
передаётся драйверу hid и начинает работаеть); возможно, usbmouse успевает
сделать что-то нехорошее, либо есть какая-то проблема с устройствами,
имеющими несколько интерфейсов.

Можно сделать следующее:

1) Убедитесь, что установлен пакет hotplug.

2) Занесите в /etc/hotplug/blacklist строку:

usbmouse

Весьма вероятно, что туда же можно отправить и usbkbd - драйвер hid должен
обслуживать и клавиатуру.

3) Уберите из скрипта /etc/init.d/usb вот этот вызов detect_devices:

	mount_proc_usb
	sleep 2
	detect_devices
	if is_yes "$MOUSE"; then
		action "Loading USB mouse:" /sbin/modprobe usbmouse && /sbin/modprobe mousedev

В принципе можно убрать и sleep 2 рядом - он был нужен только для работы
detect_devices.

Хотя может возникнуть ещё одна проблема - слишком поздняя загрузка модуля
mousedev.  Для профилактики этого можно добавить в /etc/modules строку:

mousedev

В Сизифе сейчас этот старый скрипт /etc/init.d/usb просто выброшен, а все
функции загрузки драйверов USB-устройств переданы пакету hotplug.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-07-02 13:34 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-29 22:27 Aleksandr
2004-06-30  7:04 ` Pavel S. Khmelinsky
2004-06-30 11:38   ` Aleksandr
2004-06-30 11:53     ` Pavel S. Khmelinsky
2004-06-30 17:42       ` Aleksandr
2004-06-30 17:56     ` Vitaly Lipatov
2004-06-30 19:01       ` Aleksandr
2004-06-30 23:06       ` Aleksandr
2004-07-01  8:27 ` Sergey Vlasov
2004-07-01  9:00   ` Vitaly Lipatov
2004-07-01 11:11     ` Aleksandr
2004-07-01 11:33       ` Sergey Vlasov
2004-07-01 16:04         ` Vitaly Lipatov
2004-07-01 19:05         ` Aleksandr
2004-07-01 19:23           ` Aleksandr
2004-07-02  8:46             ` Sergey Vlasov
2004-07-02 12:39               ` Aleksandr
2004-07-02 13:03                 ` Aleksandr
2004-07-02 13:34                   ` Sergey Vlasov [this message]
2004-07-02 14:22                     ` Aleksandr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040702133419.GB17160@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=hardware@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux hardware support

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/hardware/0 hardware/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 hardware hardware/ http://lore.altlinux.org/hardware \
		hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
	public-inbox-index hardware

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.hardware


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git