Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Logitech USB mouse not detected at first when login
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
samidarko
n00b
n00b


Joined: 10 Aug 2014
Posts: 27

PostPosted: Fri Apr 01, 2016 8:21 am    Post subject: [SOLVED] Logitech USB mouse not detected at first when login Reply with quote

Hi,

I'm using a Thinkpad W530 running Gentoo + SLIM + Awesome. Every time after I log in into Awesome I need to unplug and plug again my USB mouse (tried different ones)

When I logout and login again I don't have the problem, the mouse is working. Issue only occur after first sign in.


Xorg.0.log:
https://bpaste.net/show/53fc14c894f7

I found this in the log but not sure how to interpret it :

Code:

327 [    10.950] (II) No input driver specified, ignoring this device.
328 [    10.950] (II) This device may have been added with another device file.


.config:
https://bpaste.net/show/7f195f65565f

I tried to figure it out by myself but I can't make sense of it. I thought maybe usb power saving option? I looked in my kernel config but it seems ok to me. Any hint welcome.

Thanks by advance.


Last edited by samidarko on Mon Jul 03, 2017 8:16 am; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Fri Apr 01, 2016 9:35 am    Post subject: Reply with quote

Could you please unplug that mouse, start udevadmin, then plug-in that mouse again?
Code:
$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[16366.617470] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4 (usb)
KERNEL[16366.617943] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0 (usb)
KERNEL[16366.622946] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0/0003:046D:C404.0009 (hid)
KERNEL[16366.623007] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0/0003:046D:C404.0009/input/input27 (input)
KERNEL[16366.623624] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0/0003:046D:C404.0009/input/input27/mouse1 (input)
KERNEL[16366.623907] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0/0003:046D:C404.0009/input/input27/event12 (input)
UDEV  [16366.633497] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4 (usb)
UDEV  [16366.644532] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0 (usb)
UDEV  [16366.645514] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0/0003:046D:C404.0009 (hid)
UDEV  [16366.647409] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0/0003:046D:C404.0009/input/input27 (input)
UDEV  [16366.649443] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0/0003:046D:C404.0009/input/input27/mouse1 (input)
UDEV  [16366.765411] add      /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.4/1-3.4:1.0/0003:046D:C404.0009/input/input27/event12 (input)
Back to top
View user's profile Send private message
samidarko
n00b
n00b


Joined: 10 Aug 2014
Posts: 27

PostPosted: Mon Apr 04, 2016 2:24 am    Post subject: Reply with quote

Sorry I couldn' t reply before :)

Code:

➜  ~ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[293.685333] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2 (usb)
KERNEL[293.685611] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0 (usb)
KERNEL[293.687257] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005 (hid)
KERNEL[293.687438] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005/input/input15 (input)
KERNEL[293.687486] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005/input/input15/mouse1 (input)
KERNEL[293.687553] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005/input/input15/event9 (input)
KERNEL[293.687598] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005/hidraw/hidraw2 (hidraw)
UDEV  [293.692412] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2 (usb)
UDEV  [293.696995] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0 (usb)
UDEV  [293.698757] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005 (hid)
UDEV  [293.702236] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005/input/input15 (input)
UDEV  [293.709484] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005/hidraw/hidraw2 (hidraw)
UDEV  [293.710391] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005/input/input15/mouse1 (input)
UDEV  [293.842596] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/0003:046D:C077.0005/input/input15/event9 (input)
Back to top
View user's profile Send private message
skiwarz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2014
Posts: 128

PostPosted: Mon Apr 04, 2016 4:32 am    Post subject: Reply with quote

Browse through
Code:
/usr/portage/x11-drivers
and see if one of those packages applies to your mouse. These drivers should have been pulled in automatically, but just the other day I had to emerge them myself. I got a similar error message to you for a different device.
Back to top
View user's profile Send private message
samidarko
n00b
n00b


Joined: 10 Aug 2014
Posts: 27

PostPosted: Mon Apr 04, 2016 6:29 am    Post subject: Reply with quote

Hi @skiwarz,

I'm not sure to get you. Was your device working? Because mine works after I unplug/plug it. Thanks
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2583

PostPosted: Mon Apr 04, 2016 7:04 am    Post subject: Re: Logitech USB mouse not detected at first when login Reply with quote

samidarko wrote:
When I logout and login again I don't have the problem, the mouse is working. Issue only occur after first sign in.

In oder to find out if the problem comes from mouse/usb/udev or from SLIM/Awesome, you could try with fluxbox using startx instead of SLIM.
Back to top
View user's profile Send private message
samidarko
n00b
n00b


Joined: 10 Aug 2014
Posts: 27

PostPosted: Tue Apr 12, 2016 2:04 am    Post subject: Reply with quote

i made a test (not sure it's totally relevant):

- I disabled xdm on startup (rc-update del xdm default)
- started startx manually after reboot

=> same, I had to unplug and plug again my mouse
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 553
Location: France

PostPosted: Tue Apr 12, 2016 8:54 am    Post subject: Reply with quote

Do you have USB 2.0 ports on your computer ? Maybe the USB 3.0 driver is the problem.
Back to top
View user's profile Send private message
samidarko
n00b
n00b


Joined: 10 Aug 2014
Posts: 27

PostPosted: Sat Apr 16, 2016 7:38 am    Post subject: Reply with quote

I have both USB 2.0 and 3.0, I tried to plug the mouse on each of them and I always end with the same results. I think it might be related to usb power saving. I'll update the thread if I can fix it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Apr 16, 2016 9:32 am    Post subject: Reply with quote

samidarko,

Set up so that your system starts at the console.
Code:
emerge gpm
which is the console mouse driver and add gpm to the default runlevel so it starts at boot.

Reboot. If the console mouse works, your kernel is good and the problem is Xorg or window manager related.
If the console mouse doesn't work, test with another pointer before you conclude that its a kernel issue.
_________________
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
samidarko
n00b
n00b


Joined: 10 Aug 2014
Posts: 27

PostPosted: Mon Jul 03, 2017 8:14 am    Post subject: Reply with quote

I solved this issue by editing the following configuration file:

/etc/laptop-mode/conf.d/runtime-pm.conf

I edited AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST setting where "XXXX:XXXX" is my device id:

Code:
AUTOSUSPEND_RUNTIME_DEVID_BLACKLIST="XXXX:XXXX"


You can find the device id by using the following command:

Code:
> lsusb
...
Bus 001 Device 003: ID XXXX:XXXX Logitech, Inc. M105 Optical Mouse
...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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