Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strano problema con hotplug e mouse Logitech [RISOLTO+patch]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
mriya3
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2004
Posts: 124
Location: Switzerland

PostPosted: Tue Aug 03, 2004 10:57 pm    Post subject: Strano problema con hotplug e mouse Logitech [RISOLTO+patch] Reply with quote

Ciao,
ho uno strano problema con hotplug e un mouse USB della logitech.
Quando parte hotplug (/etc/init.d/hotplug start) mi mostra
Code:
(...)
* Starting usb hotplugging...
cat: /sys/bus/usb/devices/1-2.4/product:No such file or directory        [ ok ]


Ho guardato cosa c'è in /sys/bus/usb/devices/1-2.4/product per scoprire quale periferica usb da il problema ed è appunto il mouse USB della logitech (che però funziona sia con gpm che sotto X).

Nota: - il problema si manifesta sia quando il mouse è attaccato direttamente al PC sia quando lo attacco a un HUB.
- La mia scheda madre monta un chipset KT400; e usa USB 2.0
- Ho compilato nel kernel ehci_hcd, ohci_hcd e uhci_hcd


Qualche idea?
_________________
--
http://www.mriya3.tk | http://www.mriyasoftware.com
--
"Make everything as simple as possible, but not simpler."
-- Albert Einstein


Last edited by mriya3 on Tue Aug 03, 2004 11:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
mriya3
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2004
Posts: 124
Location: Switzerland

PostPosted: Tue Aug 03, 2004 11:03 pm    Post subject: Pare sia un problema con il mouse Reply with quote

Pare sia un problema del mouse Logitech...
l'ho attaccato anche all'altro computer (un portatile toshiba con USB 1.1) e ottengo lo stesso errore...
Boh ?! Proverò a cambiarlo...
_________________
--
http://www.mriya3.tk | http://www.mriyasoftware.com
--
"Make everything as simple as possible, but not simpler."
-- Albert Einstein
Back to top
View user's profile Send private message
mriya3
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jul 2004
Posts: 124
Location: Switzerland

PostPosted: Tue Aug 03, 2004 11:47 pm    Post subject: Soluzione Reply with quote

Basta una piccola modifica al file /etc/hotplug/usb.agent, in modo che non dia errore con le periferiche che non settano "product"...

Nota: Hotplug versione 20040401

Forse sono l'unico con questo problema... ma se dovesse ripetersi ecco una piccola patch per il file /etc/hotplug/usb.agent

Code:
--- usb.agent.orig      2004-07-02 01:00:26.000000000 +0200
+++ usb.agent   2004-08-04 01:33:33.059735744 +0200
@@ -371,9 +371,15 @@

     usb_convert_vars

+    # Workaround for buggy usb devices not reporting product label
+    # mriyA3 - Aug 4. 2004 - 01:30:18 CEST
     FOUND=false
     if [ -f $SYSFS/$DEVPATH/manufacturer ]; then
-       LABEL="USB `cat $SYSFS/$DEVPATH/manufacturer` `cat $SYSFS/$DEVPATH/product`"
+       if [ -f $SYSFS/$DEVPATH/product ]; then
+               LABEL="USB `cat $SYSFS/$DEVPATH/manufacturer` `cat $SYSFS/$DEVPATH/product`"
+       else
+               LABEL="USB `cat $SYSFS/$DEVPATH/manufacturer` `cat $SYSFS/$DEVPATH/idProduct`"
+       fi
     else
        LABEL="USB product $PRODUCT"
     fi

_________________
--
http://www.mriya3.tk | http://www.mriyasoftware.com
--
"Make everything as simple as possible, but not simpler."
-- Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum