Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB mouse must first be unplugged to be recognized. [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Tue Jan 06, 2015 8:41 pm    Post subject: USB mouse must first be unplugged to be recognized. [SOLVED] Reply with quote

Subject says it all. Just started recently not sure why. If I start my laptop with my USB mouse plugged in it isn't recognized. Same behavior if I suspend or sleep. I must unplug and re-plug it for it to be recognized.

$ dmesg |wgetpaste
Your paste can be seen here: https://bpaste.net/show/d2ab198e7dfc

I don't know if they are related but this started happening the exact same time the mouse started being problematic.

https://forums.gentoo.org/viewtopic-t-1006074-highlight-.html


Last edited by Budoka on Thu Feb 05, 2015 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message
Bloss
n00b
n00b


Joined: 05 Dec 2014
Posts: 20
Location: MI, USA

PostPosted: Wed Jan 07, 2015 2:58 am    Post subject: Reply with quote

can you print the output of lsusb before and after?
Also what version of udev are you using, and what are your use flags for xorg-drivers
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Wed Jan 07, 2015 3:04 pm    Post subject: Reply with quote

Bloss wrote:
can you print the output of lsusb before and after?
Also what version of udev are you using, and what are your use flags for xorg-drivers


Thanks.
lsusb before:
Quote:
# lsusb
Bus 002 Device 004: ID 8086:0189 Intel Corp.
Bus 002 Device 003: ID 0d62:a100 Darfon Electronics Corp. Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 2232:1018 Silicon Motion
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


lsusb after (unplug/replug):
Quote:
# lsusb
Bus 002 Device 004: ID 8086:0189 Intel Corp.
Bus 002 Device 005: ID 0d62:a100 Darfon Electronics Corp. Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 2232:1018 Silicon Motion
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


I am using eudev so can I escape systemd.
Quote:
# eix -I xorg-drivers
[I] x11-base/xorg-drivers
Available versions: 1.9 1.10 1.11 1.12 1.13 1.14 1.15 ~1.16 {INPUT_DEVICES="acecad aiptek elographics evdev fpit hyperpen joystick keyboard mouse mutouch penmount synaptics tslib vmmouse void wacom" VIDEO_CARDS="apm ark ast chips cirrus dummy epson fbdev fglrx freedreno geode glint i128 i740 impact intel mach64 mga modesetting neomagic newport nouveau nv nvidia omap omapfb qxl r128 radeon radeonsi rendition s3 s3virge savage siliconmotion sis sisusb sunbw2 suncg14 suncg3 suncg6 sunffb sunleo suntcx tdfx tga trident tseng v4l vesa via virtualbox vmware voodoo"}
Installed versions: 1.15(03:20:36 PM 08/06/2014)(INPUT_DEVICES="evdev keyboard mouse -acecad -aiptek -elographics -fpit -hyperpen -joystick -mutouch -penmount -synaptics -tslib -vmmouse -void -wacom" VIDEO_CARDS="fglrx intel -apm -ast -chips -cirrus -dummy -epson -fbdev -freedreno -geode -glint -i128 -i740 -mach64 -mga -modesetting -neomagic -nouveau -nv -nvidia -omap -omapfb -qxl -r128 -radeon -radeonsi -rendition -s3virge -savage -siliconmotion -sisusb -sunbw2 -suncg14 -suncg3 -suncg6 -sunffb -sunleo -suntcx -tdfx -tga -trident -tseng -v4l -vesa -via -virtualbox -vmware -voodoo")
Homepage: http://www.gentoo.org/
Description: Meta package containing deps on all xorg drivers


Quote:
# eix -I udev
[I] sys-fs/eudev
Available versions: *1.3 *1.5.3-r1 1.9-r2 1.10-r2 ~2.1.1 **9999 {doc gudev (+)hwdb introspection (+)keymap (+)kmod +modutils +openrc +rule-generator selinux static-libs test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 1.10-r2(09:28:18 AM 09/22/2014)(gudev hwdb introspection keymap kmod modutils openrc rule-generator static-libs -doc -selinux -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Homepage: https://github.com/gentoo/eudev
Description: Linux dynamic and persistent device naming support (aka userspace devfs)

[I] sys-fs/udev-init-scripts
Available versions: 26-r2^t ~27^t **9999^t
Installed versions: 26-r2^t(08:40:41 AM 05/11/2014)
Homepage: http://www.gentoo.org
Description: udev startup scripts for openrc

[I] virtual/libgudev
Available versions: 215-r1(0/0) {introspection static-libs systemd ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 215-r1(05:43:54 PM 08/10/2014)(introspection static-libs -systemd ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Description: Virtual for libgudev providers

[I] virtual/libudev
Available versions: 215-r1(0/1) {static-libs systemd ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 215-r1(05:43:39 PM 08/10/2014)(static-libs -systemd ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Description: Virtual for libudev providers

[I] virtual/udev
Available versions: 215 {systemd}
Installed versions: 215(10:27:58 AM 08/04/2014)(-systemd)
Description: Virtual to select between different udev daemon providers

Found 5 matches.
Back to top
View user's profile Send private message
Bloss
n00b
n00b


Joined: 05 Dec 2014
Posts: 20
Location: MI, USA

PostPosted: Wed Jan 07, 2015 3:51 pm    Post subject: Reply with quote

Did you try emerging gpm and seeing if it would detect the mouse in a framebuffer? If gpm can use it then it's an issue with xorg.
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Wed Jan 07, 2015 7:33 pm    Post subject: Reply with quote

Bloss wrote:
Did you try emerging gpm and seeing if it would detect the mouse in a framebuffer? If gpm can use it then it's an issue with xorg.


I'm sorry but can you clarify how you want me to test this? I already have gpm installed and the mouse is not active at console or in a terminal as well...unless I unplug it and re-plug it in. It is the same behavior. But I am not sure if that is what you mean by "framebuffer" thus my confusion.

Thanks.
Back to top
View user's profile Send private message
Bloss
n00b
n00b


Joined: 05 Dec 2014
Posts: 20
Location: MI, USA

PostPosted: Thu Jan 08, 2015 12:08 am    Post subject: Reply with quote

you can access your terminal via initial framebuffers via ctrl-alt-f1 through f6

and xorg is usually started on f7.

you start gpm by
Code:

/etc/init.d/gpm start


so you can select data to be copied and pasted.

but if gpm is reflecting the same behavior I would try updating eudev as I think that might be the culprit.
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Fri Jan 09, 2015 7:46 pm    Post subject: Reply with quote

Bloss wrote:
you can access your terminal via initial framebuffers via ctrl-alt-f1 through f6

and xorg is usually started on f7.

you start gpm by
Code:

/etc/init.d/gpm start


so you can select data to be copied and pasted.

but if gpm is reflecting the same behavior I would try updating eudev as I think that might be the culprit.


I have to be honest I am not clear what it is you are asking me to do. Am I doing this before logging into DE or after? As I indicated I already have GPM installed and it is running.

The mouse does not work in any window, terminal or otherwise, or in the DE at all unless I disconnect it and reconnect it. On any of my USB ports.

I updated eudev and it didn't fix anything. This is recent behavior so clearly something was changed on my system in an update.

Although not a huge problem it is ridiculous that I have to keep disconnecting and reconnecting my mouse to use it. Any other ideas??? I suspect you may be right about eudev but not sure how to troubleshoot it.

This person seems to be having the same issue but it is with a wireless mouse so not sure if the cause is the same. https://forums.gentoo.org/viewtopic-t-1007844-highlight-.html
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2554
Location: Near Toronto

PostPosted: Fri Jan 09, 2015 11:13 pm    Post subject: Reply with quote

do you have power management activated for your mouse
usb port?

I have to disable that or get the same symptoms you report ...
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
digifuzzy
n00b
n00b


Joined: 31 Oct 2014
Posts: 24

PostPosted: Sat Jan 10, 2015 2:07 am    Post subject: Reply with quote

I have seen a rare situation where a weak USB device can cause problems.
The only fix was to unplug and replug as you have done.
If its an older device (USB 1.0 days), this may be a hardware issue and can be confirmed by checking /var/log/messages and/or dmesg for USB errors.
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Sat Jan 10, 2015 2:18 am    Post subject: Reply with quote

digifuzzy wrote:
I have seen a rare situation where a weak USB device can cause problems.
The only fix was to unplug and replug as you have done.
If its an older device (USB 1.0 days), this may be a hardware issue and can be confirmed by checking /var/log/messages and/or dmesg for USB errors.


Thanks. That would kind of make sense and is entirely possible, but I am not sure that is going on with my mouse. Although an older mouse it is the only one I have used with Gentoo for a couple of years now without issue. So not sure why suddenly it would behave the way it is. That and in conjunction with some other problems that started occurring about the same time after n update leads me to believe it is something else that I can't figure out. Anyway here is my log and dmesg. Is there anything obvious?

Quote:
$ sudo cat /var/log/messages |grep -i mouse
Jan 10 04:33:39 TL_Samsung kernel: usb 3-1: Product: USB Optical Mouse
Jan 10 04:33:39 TL_Samsung kernel: input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1c.4/0000:04:00.0/usb3/3-1/3-1:1.0/0003:0D62:A100.0005/input/input17
Jan 10 04:33:39 TL_Samsung kernel: hid-generic 0003:0D62:A100.0005: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:04:00.0-1/input0
Jan 10 04:34:49 TL_Samsung kernel: usb 2-1.2: Product: USB Optical Mouse
Jan 10 04:34:49 TL_Samsung kernel: input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0006/input/input18
Jan 10 04:34:49 TL_Samsung kernel: hid-generic 0003:0D62:A100.0006: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
Jan 10 05:55:01 TL_Samsung kernel: usb 2-1.2: Product: USB Optical Mouse
Jan 10 05:55:01 TL_Samsung kernel: input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0007/input/input19
Jan 10 05:55:01 TL_Samsung kernel: hid-generic 0003:0D62:A100.0007: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
Jan 10 06:07:27 TL_Samsung kernel: usb 2-1.2: Product: USB Optical Mouse
Jan 10 06:07:27 TL_Samsung kernel: input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0008/input/input20
Jan 10 06:07:27 TL_Samsung kernel: hid-generic 0003:0D62:A100.0008: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
Jan 10 09:40:17 TL_Samsung kernel: usb 2-1.2: Product: USB Optical Mouse
Jan 10 09:40:17 TL_Samsung kernel: input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0009/input/input21
Jan 10 09:40:17 TL_Samsung kernel: hid-generic 0003:0D62:A100.0009: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0

$ dmesg |grep -i mouse
[28666.220708] usb 2-1.2: Product: USB Optical Mouse
[28666.225019] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0007/input/input19
[28666.225322] hid-generic 0003:0D62:A100.0007: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
[29412.767032] usb 2-1.2: Product: USB Optical Mouse
[29412.770941] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0008/input/input20
[29412.771550] hid-generic 0003:0D62:A100.0008: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
[42194.500877] usb 2-1.2: Product: USB Optical Mouse
[42194.505967] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0009/input/input21
[42194.506898] hid-generic 0003:0D62:A100.0009: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
Back to top
View user's profile Send private message
digifuzzy
n00b
n00b


Joined: 31 Oct 2014
Posts: 24

PostPosted: Sat Jan 10, 2015 2:23 am    Post subject: Reply with quote

This mouse wouldn't happen to be plugged into a hub would it?
How old is the hub?

In the dmesg log I see the optical mouse entered twice. One at usb 3-1 and then usb 2-1.2. Makes me wonder if there is udev issue here.
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Sat Jan 10, 2015 2:29 am    Post subject: Reply with quote

digifuzzy wrote:
This mouse wouldn't happen to be plugged into a hub would it?
How old is the hub?

In the dmesg log I see the optical mouse entered twice. One at usb 3-1 and then usb 2-1.2. Makes me wonder if there is udev issue here.


No hub as far as I know. Plugged directly into a USB port on laptop. Always the same.

The 3-1 and then 2-1,2 entry was me trying the other usb ports to see if the behavior was the same...it was. I have 3 usb ports. Two 2.1's and one 3.1. I suspect eudev as well but am out of my epth so don't know how to troubleshoot it. Thanks for helping me out everyone. Hope to solve this.

Quote:
$ sudo lspci |grep -i usb
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
04:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller

$ sudo lsusb
Bus 002 Device 010: ID 8086:0189 Intel Corp.
Bus 002 Device 013: ID 0d62:a100 Darfon Electronics Corp. Optical Mouse
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 2232:1018 Silicon Motion
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Back to top
View user's profile Send private message
digifuzzy
n00b
n00b


Joined: 31 Oct 2014
Posts: 24

PostPosted: Sat Jan 10, 2015 3:34 am    Post subject: Reply with quote

Other than ensuring you have evdev in the INPUT_DEVICE stanza in your make.conf and updating emerge, I'm kind of at a loss at what to suggest next.
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Sat Jan 10, 2015 3:43 am    Post subject: Reply with quote

digifuzzy wrote:
Other than ensuring you have evdev in the INPUT_DEVICE stanza in your make.conf and updating emerge, I'm kind of at a loss at what to suggest next.
I just checked. I don't see any INPUT_DEVICE input my make.conf. Should I add INPUT_DEVICE=evdev and see if that solves it?I also assume that is a type-o and is eudev?

Also, how do I "update emerge"?
Back to top
View user's profile Send private message
digifuzzy
n00b
n00b


Joined: 31 Oct 2014
Posts: 24

PostPosted: Sat Jan 10, 2015 4:13 am    Post subject: Reply with quote

See
1) Gentoo Wiki evdev
2) Updating emerge/portage
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Mon Jan 12, 2015 7:49 pm    Post subject: Reply with quote

digifuzzy wrote:
Seein
1) Gentoo Wiki evdev
2) Updating emerge/portage


Thanks. I am sorry for the confusion. I actually thought that was what you were indicating but sometimes have language issues. It was the "update emerge" that threw me me off.

Anyway, I made the changes to make.conf and did the update. No change. The behavior is the same.

To be certain it isn't a hardware or mouse issue I booted from both the RescueCD and another distro and the mouse doesn't behave as it does now in Gentoo. Also booted into Win7 partition and it is fine.

Any other ideas? It is really frustrating because this is just one of a number of quirky annoying things that ALL seem to have started after a world update.

I have to say I really love Gentoo but this has happened enough times that I am seriously considering dumping it. It is starting to affect productivity. I sometimes think I should just not update when my system is "stable" but then I see a host of threads on forum by those that didn't update for a long period of time and when they finally do have more breakage than if they just did so on a regular schedule.
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Mon Jan 12, 2015 8:07 pm    Post subject: Reply with quote

Budoka wrote:


To be certain it isn't a hardware or mouse issue I booted from both the RescueCD and another distro and the mouse doesn't behave as it does now in Gentoo. Also booted into Win7 partition and it is fine.

Any other ideas? It is really frustrating because this is just one of a number of quirky annoying things that ALL seem to have started after a world update.


Just as a data point about a month ago (this was on Arch Linux then) I had a weird problem where suddenly I had to plug and unplug my mouse to get it recognized (it would freeze) seemingly at random as you sort of are describing. Upon further investigation in one of the logs I found messages like this:

Code:

hub 2-1.5.1:1.0: port 2 disabled by hub (EMI?), re-enabling...


I noted that when using the kernel 3.17.x I had to physically unplug and then plug back in the mouse to get it to work. However, curiously with the lts kernel (either 3.16.x or 3.14.x, I forget which one) I did not have to do this and instead for about half a second the mouse would just be unresponsive for a while.

I found out eventually that in the LTS kernel the same error messages (although slightly different) were occuring and the difference was that in the lts kernel it was able to gracefully re-initialize without manual plugging and unplugging while in 3.17.x it would freeze without unplugging it.

Eventually I discovered the reason for this:

The mouse was faulty and there was a loose connection somewhere. Upon bumping it I could trigger the behaviour. The difference was that somehow the kernels handled this condition differently.

tl/dr: Don't be too sure that because it seems to work in another distro or kernel that it is not a hardware problem. Sometimes strange things occur.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44195
Location: 56N 3W

PostPosted: Mon Jan 12, 2015 8:15 pm    Post subject: Reply with quote

Budoka,

Pastebin your dmesg after power up, when the device is not working.
Unplug and replug it. Take care to use the same USB port, check it works, then post the new lines in dmesg.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Tue Jan 13, 2015 7:52 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Budoka,
Pastebin your dmesg after power up, when the device is not working.
Unplug and replug it. Take care to use the same USB port, check it works, then post the new lines in dmesg.


Thanks Neddy. Here they are. I diffed them as well.

After powerup: https://bpaste.net/show/dfaccddb1933

Unplug/replug: https://bpaste.net/show/08d9df8897a1

Quote:
# diff dmesgbroke.txt dmesgworks.txt
1,10d0
< [ 1.181379] sdb: sdb1
< [ 1.181870] sd 1:0:0:0: [sdb] Attached SCSI disk
< [ 1.197299] usb 2-1: New USB device found, idVendor=8087, idProduct=0024
< [ 1.197371] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
< [ 1.197865] hub 2-1:1.0: USB hub found
< [ 1.198047] hub 2-1:1.0: 6 ports detected
< [ 1.277264] usb 1-1.4: new high-speed USB device number 3 using ehci-pci
< [ 1.463907] tsc: Refined TSC clocksource calibration: 2195.013 MHz
< [ 1.497314] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
< [ 1.499157] ata3.00: ATAPI: MATSHITADVD-RAM UJ8A7AS, 1.00, max UDMA/100
384a375,382
> [ 2167.973409] usb 2-1.2: USB disconnect, device number 3
> [ 2171.234446] usb 2-1.2: new low-speed USB device number 5 using ehci-pci
> [ 2171.324012] usb 2-1.2: New USB device found, idVendor=0d62, idProduct=a100
> [ 2171.324015] usb 2-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
> [ 2171.324017] usb 2-1.2: Product: USB Optical Mouse
> [ 2171.324018] usb 2-1.2: Manufacturer: Darfon
> [ 2171.327788] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0002/input/input14
> [ 2171.328184] hid-generic 0003:0D62:A100.0002: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44195
Location: 56N 3W

PostPosted: Tue Jan 13, 2015 9:10 pm    Post subject: Reply with quote

Budoka,

Next time you build your kernel, maxe the dmesg buffer bigger. The first 2 sec of dmesg have been lost.
While thats interesting, its not important right now.

From the beginning.
Code:
[    1.197299] usb 2-1: New USB device found, idVendor=8087, idProduct=0024
[    1.197371] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.197865] hub 2-1:1.0: USB hub found
[    1.198047] hub 2-1:1.0: 6 ports detected
Your USB bus 2 has a hub conneced to it. This doesn't tell if its internal or external.
Some devices do not play nicely with hubs.
Then your mouse if found attached to the hub
Code:
[    1.864894] usb 2-1.2: New USB device found, idVendor=0d62, idProduct=a100
[    1.864965] usb 2-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[    1.865036] usb 2-1.2: Product: USB Optical Mouse
[    1.865102] usb 2-1.2: Manufacturer: Darfon
[    1.890327] input: PS/2 Logitech Wheel Mouse as /devices/platform/i8042/serio1/input/input8

Do you have a PS/2 mouse connected too or is that your USB mouse being wronly identified?
No USB driver claims the mouse, which is a bad sign, that comes along later.
Code:
[    2.758155] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0001/input/input9
[    2.758396] hid-generic 0003:0D62:A100.0001: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
[    2.758441] usbcore: registered new interface driver usbhid


After the replug
Code:
[ 2167.973409] usb 2-1.2: USB disconnect, device number 3
[ 2171.234446] usb 2-1.2: new low-speed USB device number 5 using ehci-pci
[ 2171.324012] usb 2-1.2: New USB device found, idVendor=0d62, idProduct=a100
[ 2171.324015] usb 2-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 2171.324017] usb 2-1.2: Product: USB Optical Mouse
[ 2171.324018] usb 2-1.2: Manufacturer: Darfon
[ 2171.327788] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0002/input/input14
[ 2171.328184] hid-generic 0003:0D62:A100.0002: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0


The first time round
Code:
new low-speed USB device number 5 using ehci-pci
is missing.
The
Code:
usbcore: registered new interface driver usbhid
is missing the second time as subhid is already loaded.

Where is the ehci support in your kernel, as a module or built in?

When the mouse is not working are ehci-pci and ehci-hcd loaded?
Look is lsmod before and after a replug.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7197

PostPosted: Wed Jan 14, 2015 1:10 am    Post subject: Reply with quote

I think NeddySeaggon got it :)

with usb hid build as module:
-> found usb device
-> udev found a mouse but no hid handling
-> loading hid handling
= mouse not working.

If you unplug the mouse, now that hid handling is loaded when you replug it, udev make the hid link, and mouse works.

force hid support loading prior to detecting usb devices / prior to udev loading (include it in kernel should made it)

Code:
[    2.758155] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0001/input/input9
[    2.758396] hid-generic 0003:0D62:A100.0001: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
[    2.758441] usbcore: registered new interface driver usbhid <- should comes before the mouse detection
[    2.758442] usbhid: USB HID core driver
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Wed Jan 14, 2015 3:33 am    Post subject: Reply with quote

NeddySeagoon wrote:
Budoka,

Next time you build your kernel, maxe the dmesg buffer bigger. The first 2 sec of dmesg have been lost.
While thats interesting, its not important right now.

From the beginning.
Code:
[    1.197299] usb 2-1: New USB device found, idVendor=8087, idProduct=0024
[    1.197371] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.197865] hub 2-1:1.0: USB hub found
[    1.198047] hub 2-1:1.0: 6 ports detected
Your USB bus 2 has a hub conneced to it. This doesn't tell if its internal or external.
Some devices do not play nicely with hubs.
Then your mouse if found attached to the hub
Code:
[    1.864894] usb 2-1.2: New USB device found, idVendor=0d62, idProduct=a100
[    1.864965] usb 2-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[    1.865036] usb 2-1.2: Product: USB Optical Mouse
[    1.865102] usb 2-1.2: Manufacturer: Darfon
[    1.890327] input: PS/2 Logitech Wheel Mouse as /devices/platform/i8042/serio1/input/input8

Do you have a PS/2 mouse connected too or is that your USB mouse being wronly identified?
No USB driver claims the mouse, which is a bad sign, that comes along later.
Code:
[    2.758155] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0001/input/input9
[    2.758396] hid-generic 0003:0D62:A100.0001: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
[    2.758441] usbcore: registered new interface driver usbhid


After the replug
Code:
[ 2167.973409] usb 2-1.2: USB disconnect, device number 3
[ 2171.234446] usb 2-1.2: new low-speed USB device number 5 using ehci-pci
[ 2171.324012] usb 2-1.2: New USB device found, idVendor=0d62, idProduct=a100
[ 2171.324015] usb 2-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
[ 2171.324017] usb 2-1.2: Product: USB Optical Mouse
[ 2171.324018] usb 2-1.2: Manufacturer: Darfon
[ 2171.327788] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0002/input/input14
[ 2171.328184] hid-generic 0003:0D62:A100.0002: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0


The first time round
Code:
new low-speed USB device number 5 using ehci-pci
is missing.
The
Code:
usbcore: registered new interface driver usbhid
is missing the second time as subhid is already loaded.

Where is the ehci support in your kernel, as a module or built in?

When the mouse is not working are ehci-pci and ehci-hcd loaded?
Look is lsmod before and after a replug.


Thanks for the tip. I will definitely increase the buffer next compile but can you give me an idea where it is in the kernel config? I only see this when searching for DMESG.

Quote:
$ zgrep DMESG /proc/config.gz
# CONFIG_SECURITY_DMESG_RESTRICT is not set


The machine is a laptop so the hub must be internal. I need to do some homework on that though because not really sure what that means. I'm assuming since it is hardware there isn't much I can do about that? Or is there a way to get the hub to play nice?

There is no PS/2 mouse or device connected so it is being misidentified. How can I change it?


This is how my kernel is currently configured for EHCI. It looks like pci is compiled in the kernel and hcd is a module. Should they both be compiled in the kernel?

Quote:
$ zgrep EHCI /proc/config.gz
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
# CONFIG_USB_EHCI_TT_NEWSCHED is not set
CONFIG_USB_EHCI_PCI=y
CONFIG_USB_EHCI_HCD_PLATFORM=m


Thanks as always for the assistance and your patience.
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Wed Jan 14, 2015 3:35 am    Post subject: Reply with quote

krinn wrote:
I think NeddySeaggon got it :)

with usb hid build as module:
-> found usb device
-> udev found a mouse but no hid handling
-> loading hid handling
= mouse not working.

If you unplug the mouse, now that hid handling is loaded when you replug it, udev make the hid link, and mouse works.

force hid support loading prior to detecting usb devices / prior to udev loading (include it in kernel should made it)

Code:
[    2.758155] input: Darfon USB Optical Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:0D62:A100.0001/input/input9
[    2.758396] hid-generic 0003:0D62:A100.0001: input,hidraw0: USB HID v1.10 Mouse [Darfon USB Optical Mouse] on usb-0000:00:1d.0-1.2/input0
[    2.758441] usbcore: registered new interface driver usbhid <- should comes before the mouse detection
[    2.758442] usbhid: USB HID core driver


krinn, Thanks for the input. This is my HID stuff in the kernel. SHould I change it?

Quote:
$ zgrep HID /proc/config.gz
CONFIG_BT_HIDP=y
# HID support
CONFIG_HID=y
# CONFIG_HID_BATTERY_STRENGTH is not set
CONFIG_HIDRAW=y
# CONFIG_UHID is not set
CONFIG_HID_GENERIC=y
# Special HID drivers
# CONFIG_HID_A4TECH is not set
# CONFIG_HID_ACRUX is not set
# CONFIG_HID_APPLE is not set
# CONFIG_HID_APPLEIR is not set
# CONFIG_HID_AUREAL is not set
# CONFIG_HID_BELKIN is not set
# CONFIG_HID_CHERRY is not set
# CONFIG_HID_CHICONY is not set
# CONFIG_HID_PRODIKEYS is not set
# CONFIG_HID_CYPRESS is not set
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELECOM is not set
# CONFIG_HID_ELO is not set
# CONFIG_HID_EZKEY is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_GT683R is not set
# CONFIG_HID_HUION is not set
# CONFIG_HID_KEYTOUCH is not set
# CONFIG_HID_KYE is not set
# CONFIG_HID_UCLOGIC is not set
# CONFIG_HID_WALTOP is not set
CONFIG_HID_GYRATION=m
# CONFIG_HID_ICADE is not set
# CONFIG_HID_TWINHAN is not set
# CONFIG_HID_KENSINGTON is not set
# CONFIG_HID_LCPOWER is not set
# CONFIG_HID_LENOVO is not set
# CONFIG_HID_LOGITECH is not set
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MICROSOFT is not set
# CONFIG_HID_MONTEREY is not set
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_NTRIG is not set
# CONFIG_HID_ORTEK is not set
CONFIG_HID_PANTHERLORD=m
CONFIG_HID_PETALYNX=m
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_ROCCAT is not set
# CONFIG_HID_SAITEK is not set
CONFIG_HID_SAMSUNG=m
CONFIG_HID_SONY=m
# CONFIG_HID_SPEEDLINK is not set
# CONFIG_HID_STEELSERIES is not set
CONFIG_HID_SUNPLUS=m
# CONFIG_HID_RMI is not set
# CONFIG_HID_GREENASIA is not set
# CONFIG_HID_SMARTJOYPLUS is not set
# CONFIG_HID_TIVO is not set
# CONFIG_HID_TOPSEED is not set
# CONFIG_HID_THINGM is not set
# CONFIG_HID_THRUSTMASTER is not set
# CONFIG_HID_WACOM is not set
# CONFIG_HID_WIIMOTE is not set
# CONFIG_HID_XINMO is not set
# CONFIG_HID_ZEROPLUS is not set
# CONFIG_HID_ZYDACRON is not set
# CONFIG_HID_SENSOR_HUB is not set
# USB HID support
CONFIG_USB_HID=m
# CONFIG_HID_PID is not set
CONFIG_USB_HIDDEV=y
# USB HID Boot Protocol drivers
# I2C HID support
# CONFIG_I2C_HID is not set
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM)
# HID Sensor RTC drivers
# CONFIG_RTC_DRV_HID_SENSOR_TIME is not set
Back to top
View user's profile Send private message
Budoka
l33t
l33t


Joined: 03 Jun 2012
Posts: 693
Location: Tokyo, Japan

PostPosted: Wed Jan 14, 2015 3:56 am    Post subject: Reply with quote

Neddy et al,

Here is my lsmod when mouse isn't functional and after unplug/re-plug. I don't see any difference but I might be missing it.

Before: https://bpaste.net/show/479cb2d90bc5

After: https://bpaste.net/show/518d9ddc2f96
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44195
Location: 56N 3W

PostPosted: Wed Jan 14, 2015 7:04 pm    Post subject: Reply with quote

Budoka,

usbhid is listed at line 86. There are no entries for your USB root hub drivers, so we can conclude that they are built into the kernel.
The plugging/unpluggitg your mouse didi not load any new modules the last loaded module is at the top of the output.

Post your lspci and pastebin your kernel .config file. I have one or two more ideas left but they are bit of a long shot.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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