View previous topic :: View next topic |
Author |
Message |
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Thu Dec 31, 2009 11:59 pm Post subject: no usb mouse in X |
|
|
my mouse isn't working. what might be wrong? cat /dev/input/mice doesn't say anything. I don't use hald. I have auto add blah disabled in xorg.conf. here's my mouse section:
Section "InputDevice"
Identifier "USB Mouse"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "SendCoreEvents" "true"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "7"
EndSection
[off-topic slightly] also does anyone know if I can like... emerge -C hal? because I don't really know if I am using it for anything... it's not in any rcs, and it's never running. I can't remember why it's pulled in at all... and what about dbus? what does it actually do for me? |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Fri Jan 01, 2010 12:23 am Post subject: Re: no usb mouse in X |
|
|
indietrash wrote: | [off-topic slightly] also does anyone know if I can like... emerge -C hal? because I don't really know if I am using it for anything... it's not in any rcs, and it's never running. I can't remember why it's pulled in at all... and what about dbus? what does it actually do for me? |
If you set -hal in /etc/make.conf USE clause, recompile everything that depends on hal (equery d hal) then you might be able to remove hal from your system. But first check with emerge -p --depclean, then without -p and run revdep-rebuild afterwards. If hal is really unneeded it'll be removed automagically. _________________ Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739! |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 1:00 am Post subject: |
|
|
I'm putting -hal in make.conf and doing emerge [whatever needs re-compiling], emerge -aDN world, then emerge --depclean, then revdep-rebuild. should do the trick. thanks. let me know if you have any answers on the "more important" question!
Last edited by indietrash on Fri Jan 01, 2010 1:29 am; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jan 01, 2010 1:06 am Post subject: |
|
|
See Xorg log for clues, try option "auto" instead of "IMPS/2". |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 1:57 am Post subject: |
|
|
I'm moving the HAL issues to another thread. I'll change the mouse thing to auto and see what happens. |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 3:29 pm Post subject: |
|
|
still no luck. X log: Your paste can be seen here: http://dpaste.com/139871/
it sets sendcorevents to true and everything seems right, but no mouse.
nothing happens when I unplug/plug in (hot plug) the mouse. not log-wise anyway. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jan 01, 2010 3:56 pm Post subject: |
|
|
Hmmm, lets keep things simple, here's my working conf.
Code: | Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
...
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection |
|
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 4:32 pm Post subject: |
|
|
that's pretty much exactly what I have, save for buttons 7, and sendcoreevents because my mouse isn't the corepointer. |
|
Back to top |
|
|
Sysa Apprentice
Joined: 16 Mar 2005 Posts: 161 Location: Europe
|
Posted: Fri Jan 01, 2010 4:38 pm Post subject: Re: no usb mouse in X |
|
|
indietrash wrote: | my mouse isn't working. what might be wrong? cat /dev/input/mice doesn't say anything.
|
Did you change something? Did it work before?
Also be sure that you have USB support built in kernel (not module). _________________ RedHat -> SuSE -> Debian -> Gentoo |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 4:44 pm Post subject: |
|
|
it worked on my last installation of Gentoo but that's ages ago. I know the mouse should work because it works on my gf's computer. USB support is built in. I don't use modules. |
|
Back to top |
|
|
Sysa Apprentice
Joined: 16 Mar 2005 Posts: 161 Location: Europe
|
Posted: Fri Jan 01, 2010 5:17 pm Post subject: |
|
|
indietrash wrote: | it worked on my last installation of Gentoo but that's ages ago. I know the mouse should work because it works on my gf's computer. USB support is built in. I don't use modules. |
OK, try
Code: | emerge -1 $(qlist -IC x11-dr) |
_________________ RedHat -> SuSE -> Debian -> Gentoo |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jan 01, 2010 5:22 pm Post subject: |
|
|
I have no experience with Synaptics, maybe your USB mouse is not picked up correctly because of it? What devices you have in /dev/input ? Maybe you need to define your mouse better for Xorg so it can use correct dev entry? |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 8:16 pm Post subject: |
|
|
Jaglover wrote: | I have no experience with Synaptics, maybe your USB mouse is not picked up correctly because of it? What devices you have in /dev/input ? Maybe you need to define your mouse better for Xorg so it can use correct dev entry? |
Synaptics is for my touchpad, and has nothing to do with the mouse. I have:
by-id/ by-path/ event0 event1 event2 event3 event4 event5 event6 event7 mice mouse0 mouse1
in /dev/input
Sysa wrote: | indietrash wrote: | it worked on my last installation of Gentoo but that's ages ago. I know the mouse should work because it works on my gf's computer. USB support is built in. I don't use modules. |
OK, try
Code: | emerge -1 $(qlist -IC x11-dr) |
|
that just tries to rebuild my input and video card drivers, like so:
Calculating dependencies... done!
[ebuild R ] x11-drivers/nvidia-drivers-185.18.36
[ebuild R ] x11-drivers/xf86-input-keyboard-1.4.0
[ebuild R ] x11-drivers/xf86-input-mouse-1.5.0
[ebuild R ] x11-drivers/xf86-input-synaptics-1.2.0
no. just... no.
I have tried it that way, and all I accomplished was a keyboard without the fn button and still no mouse. I hate this "automatic" direction, or should I say the "let's install lots of useless dæmons and applications to detect stuff instead of simply putting it there directly like any normal person would" direction Linux-based operating systems and their components are taking.
never again. emerge -C hal forever. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jan 01, 2010 8:19 pm Post subject: |
|
|
Quote: | Synaptics is for my touchpad, and has nothing to do with the mouse. |
Both are input devices, aren't they?
I suspect that mouse0 is synaptic and mouse1 is your mouse. What if you put mouse1 instead of mice in your xorg.conf ?
Option "Device" "/dev/input/mouse1" |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 8:40 pm Post subject: |
|
|
Jaglover wrote: | Quote: | Synaptics is for my touchpad, and has nothing to do with the mouse. |
Both are input devices, aren't they?
I suspect that mouse0 is synaptic and mouse1 is your mouse. What if you put mouse1 instead of mice in your xorg.conf ?
Option "Device" "/dev/input/mouse1" |
touchpad is mouse2. it's in xorg.conf correctly... but uh, as you'll no doubt notice mouse2 isn't in that list above. it seems that at random boots, the mouse2 is missing from /dev/input. some kernels ago this would cause the touchpad to not function and thus forcing me to reboot. cat /dev/input/mouse1 or *0 doesn't give any response from the touchpad, indicating that these aren't the touchpad at all.
traditionally a ps/2 mouse should be on /dev/input/mice afaik. but my mouse doesn't yield any output from cat /dev/input/mice, nor from *mouse0 or *1. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jan 01, 2010 8:47 pm Post subject: |
|
|
Anyway, the picture would be clearer without synaptics. Can you remove it from xorg.conf and see what happens. Something is screwy here, why multiple mouse devices if you have just one? I mean mouse0 and *1. I have just *0 with one mouse. |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 9:07 pm Post subject: |
|
|
I didn't really see the point of this, but I did it anyway. what that essentially did was make my touchpad ignore my Synpatics settings, like expected. so uh I couldn't scroll and so forth. still no mouse though. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jan 01, 2010 9:12 pm Post subject: |
|
|
cat /proc/bus/input/devices
Is your mouse there? |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 10:09 pm Post subject: |
|
|
don't think so. http://dpaste.com/139971/
I tried unplugging then plugging it in again to no avail. it stayed the same. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jan 01, 2010 10:42 pm Post subject: |
|
|
So it is not supported by kernel, time for make menuconfig. Did it work with install CD? |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Fri Jan 01, 2010 11:00 pm Post subject: |
|
|
... the install CD? I've never used anything but the minimal CD. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Fri Jan 01, 2010 11:03 pm Post subject: |
|
|
Doesn't minimal load console mouse driver? Another thing to check is if USB is configured correctly in BIOS. Where this PS/2 mouse comes from?
Code: | I: Bus=0011 Vendor=0002 Product=0008 Version=0000
N: Name="PS/2 Mouse"
P: Phys=isa0060/serio1/input1
S: Sysfs=/devices/platform/i8042/serio1/input/input6
U: Uniq=
H: Handlers=mouse0 event6
B: EV=7
B: KEY=70000 0 0 0 0
B: REL=3
I: Bus=0011 Vendor=0002 Product=0008 Version=7321
N: Name="AlpsPS/2 ALPS GlidePoint"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input7
U: Uniq=
H: Handlers=mouse1 event7
B: EV=f
B: KEY=420 70000 0 0 0 0
B: REL=3
B: ABS=1000003 |
According to this some mouse is mouse0 and synaptic mouse1. Both are handled also by evdev. Do you need evdev?
Right now it seems there is a bogus mouse device, Xorg is trying to use it. |
|
Back to top |
|
|
indietrash Guru
Joined: 17 Sep 2008 Posts: 353 Location: Norway
|
Posted: Sat Jan 02, 2010 2:04 pm Post subject: |
|
|
idk. I don't use that. I use the keyboard when I'm in vt, lol. I have no configurations in BIOS. mouse works in Windows 7.
are you saying I should try emerging x11-drivers/xf86-input-evdev and set driver to evdev instead of mouse? |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sat Jan 02, 2010 7:10 pm Post subject: |
|
|
Works in Windows, good. This eliminates possible CMOS corruption.
I'd say it's down to kernel configuration then. Booting with install CD and looking at output of lsmod and /proc/bus/input/devices may give useful clues. |
|
Back to top |
|
|
|