Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mouse stopped working after update
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 11:41 am    Post subject: Mouse stopped working after update Reply with quote

About 3 or 4 days ago I did an update and my mouse stopped working.
/
I already did:

1. emerge -v $(qlist -IC x11-drivers)
2. emerge xorg-server
3. emerge nvidia-drivers
4. Created a new xorg.conf file using nvidia-xconf
5. Changed the kernel (3.3.8 to 3.4.9 to 3.5.7 to 3.6.8)
6. revdep-rebuild
7. Added INPUT_DEVICES="mouse keyboard evdev" to make.conf and re-emerged stuff
7. Unplug and plug the mouse back

cat /dev/input/mice and cat /dev/input/mouse0 don't print anything while I move the mouse around.
cat /dev/input/mouse1 says the device is busy.

I am using a Microsoft Wireless Mouse 2000 (which doesn't work) but if I plug a regular USB (non-wireless) mouse, it works.

Here are my files:

xorg.conf: http://bpaste.net/show/60864
Xorg.0.log: http://bpaste.net/show/60865
kernel .config for 3.6.8: http://bpaste.net/show/60866

I am pretty much out of ideas at this point.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 12:44 pm    Post subject: Re: Mouse stopped working after update Reply with quote

nszeek wrote:
About 3 or 4 days ago I did an update and my mouse stopped working.
/
[...]
I am using a Microsoft Wireless Mouse 2000 (which doesn't work) but if I plug a regular USB (non-wireless) mouse, it works.
[...]
I am pretty much out of ideas at this point.


To be honest, as the "normal" usb mouse works but the wireless one doesn't, I would be suspicious of the wireless mouse. I had a similar problem with a wireless mouse when the receiver had wandered off across the desk, and ended up out of range! I would check that, but also try the mouse on another computer to see if it works there. If it does, then plug it back into your gentoo system, and post the output of
Code:
dmesg
.
Back to top
View user's profile Send private message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 1:21 pm    Post subject: Reply with quote

It does work on the same machine if I boot into the windows partition.

Here's the output of dmesg after (unplug and plug it back up): http://bpaste.net/show/60885
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 2:57 pm    Post subject: Reply with quote

I would change the INPUT_DEVICES to "evdev"and re-emerge xorg etc. I believe the evdev driver supercedes the mouse and keyboard drivers.

From your paste, it looks like it is trying to attach a keyboard handler (kbd) to the mouse?

I'll have a deeper look when I get home this evening.

edit - did you try:
Code:
emerge -1av $(qlist -I -C x11-drivers/)
to recompile the drivers?
Back to top
View user's profile Send private message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 3:17 pm    Post subject: Re: Mouse stopped working after update Reply with quote

nszeek wrote:
About 3 or 4 days ago I did an update and my mouse stopped working.
/
I already did:

1. emerge -v $(qlist -IC x11-drivers)


I already did that, yes. However, it was pointed out that since I use the proprietary nvidia-drivers, I wouldn't have to.

Just changed INPUT_DEVICES="evdev" and emerge xorg-server nvidia-drivers $(qlist -IC x11-drivers) now and it didn't work.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 3:56 pm    Post subject: Reply with quote

Is xf86-input-keyboard and xf86-input-mouse still installed? If so,
Code:
emerge -avC xf86-input-keyboard xf86-input-mouse


I would try again without out the xorg.conf file (move it somewhere else - you don't have to delete it if you don't want to) - generally xorg should be able to run without it. On my laptop, I have no xorg.xonf, but I do have a directory /etc/11/xorg.conf.d/ which has one file with the keyboard configuration changes listed. The system will run without it. Out of interest, could you post the contents of the xorg.conf file?

It would also be interesting to see the contents of /var/log/xorg.0.log
Back to top
View user's profile Send private message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 4:01 pm    Post subject: Reply with quote

Both xf86-input-keyboard and xf86-input-mouse (and xf86-input-evdev) are covered by the $(qlist -IC x11-drivers/). The Xorg.0.log file can be found in my first post but here's a fresh version: http://bpaste.net/show/60901.

... and here is the xorg.conf: http://bpaste.net/show/60900.

(edit): xf86-input-keyboard (the third one) should be xf86-input-evdev ... fixed now.

UPDATE (edit): without xorg.conf, X doesn't start.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5618

PostPosted: Wed Nov 28, 2012 4:33 pm    Post subject: Reply with quote

I can't say much, as I don't have a wireless mouse, but that an usb mouse works should hint you, that the problem most likely doesn't lie on xserver side.
That it doesn't work without that xorg.conf isn't surprising either - while only one entry really matters, it's an essential one ('Driver "nvidia"').

PS: move those dots out of the links.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 5:04 pm    Post subject: Reply with quote

nszeek wrote:
Both xf86-input-keyboard and xf86-input-mouse (and xf86-input-evdev) are covered by the $(qlist -IC x11-drivers/). The Xorg.0.log file can be found in my first post but here's a fresh version: http://bpaste.net/show/60901.


The problem is that they will be reinstalled if they are there - I want to remove them. After changing INPUT_DEVICES, you need to re-emerge xorg and then run
Code:
emerge --depclean

which should ensure they are removed (or you can run the emerge -avC command in my last post to isolate these particular files).

Quote:


... and here is the xorg.conf: http://bpaste.net/show/60900.


(edit): xf86-input-keyboard (the third one) should be xf86-input-evdev ... fixed now.

UPDATE (edit): without xorg.conf, X doesn't start.


You could comment out the mouse section and try again (letting xorg configure the mouse automatically).

I agree with voidmage's comment about the problem probably not being on the xserver side. I suspect udev is not assigning the mouse correctly when it is "found", which is why I want to get rid of the keyboard and mouse xf86 input drivers. I suspect the next possibility is to make a udev rule and manage the driver allocation for the mouse.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 5:13 pm    Post subject: Reply with quote

Just seen this on line 43 of your xorg.0.log:
Code:
[    76.233] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.


I am now reasonably convinced we need to remove the keyboard and mouse input drivers!
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5618

PostPosted: Wed Nov 28, 2012 5:16 pm    Post subject: Reply with quote

paulj wrote:
Just seen this on line 43 of your xorg.0.log:
Code:
[    76.233] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.


I am now reasonably convinced we need to remove the keyboard and mouse input drivers!


That line is meaningless and xserver already does the hotplug detection - it's on by default.

Start looking into the wireless side - probably bluez, but - as I already mentioned - don't have a wireless mouse, so just guessing.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 5:19 pm    Post subject: Reply with quote

If you see the earlier dmesg log, it looks like it is seeing it, but allocating kbd as the driver. It is not as if the device is not visible at all.
Back to top
View user's profile Send private message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 5:23 pm    Post subject: Reply with quote

@VoidMage, Do you mean inside the kernel ?

@paulj, I also have a wireless keyboard (fro Microsoft too). This might be causing the confusion you're talking about.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 5:26 pm    Post subject: Reply with quote

Line 250 in your log:
Code:
[    77.951] (II) No input driver specified, ignoring this device.
[    77.951] (II) This device may have been added with another device file.

It is seeing your mouse, but choosing to ignore it. I am confident you don't need to configure bluez or anything else for the wireless interface. Basically the mouse wireless interface is independent of the operating system - all the encoding/decoding is carried out by the dongle you plug in, and as far as the computer is concerned it has a cable!

Please try to use just evdev, and remove the mouse and keyboard drivers - I am pretty confident we are close to solving the problem.

edit: You can see that the keyboard is using evdev as a driver
Back to top
View user's profile Send private message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 5:30 pm    Post subject: Reply with quote

Alright then, I will give it a try. Give me some minutes.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5618

PostPosted: Wed Nov 28, 2012 5:33 pm    Post subject: Reply with quote

While kernel may play a role, it's not very likely.

But on topic of your kernel, CONFIG_DEVTMPFS, CONFIG_SND_HRTIMER and CONFIG_FANOTIFY should probably be on.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5618

PostPosted: Wed Nov 28, 2012 5:37 pm    Post subject: Reply with quote

paulj wrote:
Line 250 in your log:
Code:
[    77.951] (II) No input driver specified, ignoring this device.
[    77.951] (II) This device may have been added with another device file.

It is seeing your mouse, but choosing to ignore it. I am confident you don't need to configure bluez or anything else for the wireless interface.

Honestly, that line is nothing rare in xorg logs and doesn't indicate any problem.
Quote:
Basically the mouse wireless interface is independent of the operating system - all the encoding/decoding is carried out by the dongle you plug in, and as far as the computer is concerned it has a cable!

While I don't have such mouse, I wouldn't be betting on that - I've seen a few posts/bugs proving otherwise.
Back to top
View user's profile Send private message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 5:38 pm    Post subject: Reply with quote

emerge -avC xf86-input-mouse xf86-input-keyboard didn't work. I also removed the mouse entry in xorg.conf.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5618

PostPosted: Wed Nov 28, 2012 5:40 pm    Post subject: Reply with quote

On the other hand:
Code:
78.120] (EE) evdev: Microsoft Microsoft® 2.4GHz Transceiver v6.0: Unable to open evdev device "/dev/input/event2".

does look suspicious.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 5:42 pm    Post subject: Reply with quote

nszeek wrote:
emerge -avC xf86-input-mouse xf86-input-keyboard didn't work. I also removed the mouse entry in xorg.conf.


What do you mean didn't work? Did it remove the packages? You may need to reboot to clear them from memory?
Back to top
View user's profile Send private message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 5:45 pm    Post subject: Reply with quote

Yeah, I did reboot:

1. emerge -avC xf86-input-mouse xf86-input-keyboard
2. edited xorg.conf so it doesn't have an entry for the mouse
3. reboot
4. didn't work
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 5:54 pm    Post subject: Reply with quote

Ok. I am working on my laptop here, but my system at home has an nvidia card and a wireless mouse. When I get home I will post the setup details for comparison. Perhaps we can sort something out from there.
Back to top
View user's profile Send private message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 5:56 pm    Post subject: Reply with quote

paulj wrote:
Ok. I am working on my laptop here, but my system at home has an nvidia card and a wireless mouse. When I get home I will post the setup details for comparison. Perhaps we can sort something out from there.


Sure thing. Thanks.
Back to top
View user's profile Send private message
nszeek
n00b
n00b


Joined: 16 Jan 2006
Posts: 54

PostPosted: Wed Nov 28, 2012 6:18 pm    Post subject: Reply with quote

So, it's kind of working now ... here's what I did:

1. Unplugged the USB keyboard
2. Unplugged the USB mouse
3. Plugged the USB mouse (now it works)
4. Plugged the USB keyboard (works too)

I haven't rebooted to check if I have to do that every time because I was running an update while I did that. I will reboot as soon as it finishes and post what happened here.

P.S.: Before anyone says anything, unplugging and plugging the mouse didn't solve the problem (I tried it before). I had to plug the mouse while the keyboard was NOT plugged in.
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 342
Location: Wales, UK

PostPosted: Wed Nov 28, 2012 7:18 pm    Post subject: Reply with quote

Ok, home now, so here is my setup:

No /etc/X11/xorg.conf. All configuration files are in /usr/share/X11/xorg.conf.d/

The first file manages the evdev configuration:

10-evdev.conf
Code:

# Catch-all evdev loader for udev-based systems
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection


I haven't actually modified this file, and to be honest I can't remember where it came from!

This allows me to put the keyboard variants in and get back the ctrl-alt-bksp command to kill Xorg!

15-keyboard.conf:
Code:
Section "InputClass"
       Identifier "keyboard-all"
       Driver "evdev"
       Option "XkbLayout" "gb"
       Option "XkbVariant" ",qwerty"
       Option "XkbOptions" "grp:alt_shift_toggle,grp:switch,compose:rwin,terminate:ctrl_alt_bksp"

       MatchIsKeyboard "on"
EndSection


This is where the nvidia card is set

20-graphics.conf
Code:
Section "Device"
        Identifier  "Card0"
        Driver      "nvidia"
        VendorName  "nVidia Corporation"
        BoardName   "G92 [GeForce GTS 250]"
        BusID       "PCI:2:0:0"
EndSection


and finally where the extensions are set:

25-extensions.conf
Code:
Section "Extensions"
        Option "Composite" "Enable"
EndSection


make.conf:
Code:
INPUT_DEVICES="evdev"


Interestingly, the output of
Code:
qlist -I -C x11-drivers/
is
Code:
x11-drivers/nvidia-drivers
x11-drivers/xf86-input-evdev
x11-drivers/xf86-input-keyboard
x11-drivers/xf86-input-mouse
x11-drivers/xf86-video-fbdev
x11-drivers/xf86-video-nv
x11-drivers/xf86-video-vesa


Which kind of destroys the logic in my earlier post about keyboard and mouse. I don't know why all these are installed at the moment, as they are not used, apart from evdev.

xorg.0.log can be found at http://bpaste.net/show/60926

dmesg: http://bpaste.net/show/60929/ Line 1036 for the mouse message.

I don't have any specific udev rules relating to the mouse.

In terms of what you have found with unplugging the keyboard and mouse - are these devices both plugged in and turned on when you normally start the computer?
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
Goto page 1, 2  Next
Page 1 of 2

 
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