LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 09-04-2005, 02:44 AM   #1
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Rep: Reputation: 15
Getting USB mouse to work in X


Hi, I've recently started (trying) to use Slackware, using FVWM as my window manager. I'm running it on a laptop which of course has the builtin touch pad mouse. This works fine, but I also have a USB mouse which I prefer to use when I can, which does not work. I have KDE and Gnome installed as well, and have tried them. In KDE the USB mouse works, but not in Gnome. Now, my question is where do I start to get this to work under at least FVWM if not any window manager?

Another question, which I didn't feel warranted a new topic - why does my laptop's fan come on periodically simply running X and some apps (like Firefox and Gaim), but when I run WinXP it only comes on if I'm gaming?
 
Old 09-04-2005, 03:37 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
you can configure input devices globally in xorg.conf
 
Old 09-04-2005, 11:35 PM   #3
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
OK, I added this section to my xorg.conf file:
Code:
Section "InputDevice"
     Identifier "Mouse1"
     Driver "mouse"
     Option "Device" "/dev/input/mice"
     Option "Protocol" "IMPS/2"
     Option "ZAxisMapping" "4 5"
EndSection
and now I have USB with scrollwheel working. Great. But I can't get it and my touchpad to work at the same time. In messing with it, I found that whichever section had the identifier of "Mouse1" was the one that worked. I tried making the original section (PS/2, the touchpad) be Mouse0 and the USB be Mouse1. I tried making them Mouse1 and Mouse2. Nothing worked... any ideas?
 
Old 09-05-2005, 02:46 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
You can get nice drivers for the touchpad here: http://web.telia.com/~u89404340/touchpad/
Make a search for synaptics and/or touchpad here on the forum or in the web and you'll find a lot of documentation on how to do it.

Also, try being more specific with errors, saying "nothing worked" doesn't give any usefull hint
 
Old 09-05-2005, 02:57 PM   #5
wpyh
Member
 
Registered: Jun 2004
Location: Beijing
Distribution: Slackware 9.1 but FUBAR with packages I compile myself, and OpenBSD (not exactly a distro) on QEMU
Posts: 153

Rep: Reputation: 35
Well, my /etc/X11/xorg.conf has:

Code:
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Mouse2" "SendCoreEvents"
    InputDevice "Keyboard1" "CoreKeyboard"
 
Old 09-05-2005, 06:08 PM   #6
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
Aha! Silly me, I forgot to add Mouse2 to that section at the end. It works now, thanks.
 
Old 03-16-2006, 11:22 PM   #7
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Rep: Reputation: 15
I'm glad I found this thread since its exactly my problem too. I've recently installed slack 10.2 dual boot (thanks to guys who helped in that thread) but now I can't get startx to run my window manager (fluxbox). I get the error "xf86openserial: cannot open device /dev/input/mice". Here is what my core pointer input device section of xorg.conf looks like:

Identifier "Mouse1"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "ZAxisMapping" "4 5"

and this is between the input device section tags. I have a touchpad too that I'm sure will be another problem to get working but for now I'd just like to get my usb mouse to work.

I was thinking the kernel simply doesnt support the mouse since I am currently using the kernel from the installation cd. Is there a way to now for sure if its a kernel issue or simply an xorg.conf error?

Any help is appreciated.

- slacker
 
Old 03-17-2006, 07:20 AM   #8
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
a mouse is a mouse is a mouse. mouse problems are not kernel problems.

You need the mouse driver and the synaptics touchpad driver, and you have to have the right xorg.conf for both. Study the layout and put the entries for both in every place they need to go.

perhaps jnsg could be strong-armed into sending the relevant xorg.conf

In my case, I have "Load "synaptics"" at then end of the modules section, as well as the following:
Code:
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "IMPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5"
        Option      "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
        Identifier  "Synaptics Touchpad"
        Driver      "synaptics"
        Option      "Protocol" "auto-dev"
        Option      "Device" "/dev/psaux"
        Option      "ZAxisMapping" "4 5"
        Option      "HorizontalScrollDelta" "0"
EndSection
... then, right at the end, there is a section called "ServerLayout", this includes:

InputDevice "Mouse0" "SendCoreEvents"
InputDevice "Synaptics Touchpad" "CorePointer"

at the end of it's list.
 
Old 03-17-2006, 10:43 AM   #9
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Rep: Reputation: 15
I've setup the xorg.conf exactly as written above except I've commented out the synaptic section because I haven't downloaded and installed those drivers yet.

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

is there tho and I get the following error:

xf86OpenSerial: Cannot open device /dev/input/mice.
No such device.
Mouse0L cannot open input device
Preinit failed for input device "Mouse0"
No core pointer.

Looks like I'm still out of luck.

- slacker
 
Old 03-17-2006, 07:22 PM   #10
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
OK - this error message suggests that /dev/input/mice is either missing or being hogged by something else. Check - did you comment out the old InputDevice entry?

I note the old entry has the same /dev options line, (and you did report this error before.) Better check that /dev/input/mice exists:
Code:
 ls -ld /dev/input/mice
crw-rw----  1 root root 13, 63 Jan 25 03:26 /dev/input/mice
Alternatively, perhaps your system is storing the device somewhere else? /dev/input/hid or some other similie? Check what you have there.

Is Mouse0 added to the ServerLayout section at the end of the xorg.conf file?
 
Old 03-20-2006, 06:36 PM   #11
jnsg
Member
 
Registered: Jan 2005
Location: Kentucky, USA
Distribution: Slackware 13
Posts: 125

Original Poster
Rep: Reputation: 15
Here is my complete xorg.conf, if it helps any:
Code:
Section "Module"
	Load "dbe"
	SubSection "extmod"
		Option "omit xfree86-dga"
	EndSubSection
	Load "type1"
	Load "freetype"
	Load "glx"
	Load "synaptics"
EndSection

Section "Files"
	RgbPath "/usr/X11R6/lib/X11/rgb"
	FontPath "/usr/X11R6/lib/X11/fonts/local/"
	FontPath "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
	FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
	FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
	FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
	FontPath "/usr/X11R6/lib/X11/fonts/cyrillic/"
EndSection

Section "InputDevice"
	Identifier "keyboard"
	Driver "kbd"
EndSection

Section "InputDevice"
	Identifier "synaptics touchpad"
	Driver "synaptics"
	Option "Device" "/dev/psaux"
	Option "Protocol" "auto-dev"
	Option "SHMConfig" "on"
	Option "LeftEdge" "1700"
	Option "RightEdge" "5200"
	Option "TopEdge" "1700"
	Option "BottomEdge" "4200"
	Option "FingerLow" "25"
	Option "FingerHigh" "30"
	Option "MaxTapTime" "180"
	Option "MaxTapMove" "220"
	Option "MaxDoubleTapTime" "200"
	Option "VertScrollDelta" "100"
	Option "HorizScrollDelta" "100"
	Option "MinSpeed" "0.09"
	Option "MaxSpeed" "0.18"
	Option "AccelFactor" "0.0015"
	Option "CircularScrolling" "on"
	Option "CircScrollDelta" "0.3"
	Option "CircScrollTrigger" "8"
	Option "UpDownScrolling" "on"
	Option "UpDownRepeat" "on"
	Option "LeftRightScrolling" "on"
	Option "LeftRightRepeat" "on"
EndSection

Section "InputDevice"
	Identifier "usb"
	Driver "mouse"
	Option "Protocol" "IMPS/2"
	Option "Device" "/dev/input/mice"
	Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
	Identifier "monitor"
	HorizSync 31.5-50.0
	VertRefresh 40-90
EndSection

Section "Device"
	Identifier "vesa framebuffer"
	Driver "vesa"
EndSection

Section "Device"
	Identifier "intel 855gm"
	Driver "i810"
EndSection

Section "Screen"
	Identifier "screen"
#	Device "vesa framebuffer"
	Device "intel 855gm"
	Monitor "monitor"
	DefaultDepth 24
	Subsection "Display"
		Depth 8
		Modes "1024x768" "800x600" "640x480"
	EndSubsection
	Subsection "Display"
		Depth 16
		Modes "1024x768" "800x600" "640x480"
	EndSubsection
	Subsection "Display"
		Depth 24
		Modes "1024x768" "800x600" "640x480"
	EndSubsection
	Subsection "Display"
		Depth 32
		Modes "1024x768" "800x600" "640x480"
	EndSubsection
EndSection

Section "ServerLayout"
	Identifier "layout"
	Screen "screen"
	InputDevice "synaptics touchpad" "CorePointer"
	InputDevice "usb" "AlwaysCore"
	InputDevice "keyboard" "CoreKeyboard"
EndSection
I apologize for the lack of comments, but if I remember correctly, at some point I went on a config file cleaning spree and this file got minimalized and normalized.
 
Old 03-20-2006, 07:05 PM   #12
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Rep: Reputation: 15
Sorry for the lack of an update. I've been a bit stressed out lately what with the new problems I've had lately and work..and bills..and stuff. Ok onto the updates.

I've yet to get my USB mouse working regardless of the settings. I've tried ALL that were mentioned. I did get the touchpad working by downloading synaptic drivers. After that, the touchpad worked perfectly. And I didn't enable that god awful TAP-CLICK thing which I hate so much so it's even better. I'm begining to think I need to download some drivers for my USB mouse because whether I point to /dev/mouse or /dev/input/mice its the same result of no such device. The file there exists but apparently X doesn't like it.

My current problem is my wireless intel 2200 bg card. I've done research and there is a project providing drivers for this. These drivers aren't the most convenient either, I need to download a new ieee80211 stack and some other driver AND some firmware. And it requires the 2.6 kernel. I've downloaded 2.6.15 as well as 2.6.15.6 (no idea what the diff here is) and compiled and installed each in turn. Through LILO I can boot with either my working 2.4 kernel or the 2.6 kernel which VFS: Kernal panics constantly. This is my main source of stress.

2.6 refuses to boot. It cannot recognize my root partition. "vfs: mount cannot mount /dev/hda4 no such device or address" or something to that effect. I am 500% sure ext3 and jbd are compiled INTO the kernel not as modules. However I heard MAYBE the problem is I need a initrd anyway. So I modularized ext3 and used mkinitrd to create a boot rd to load ext3/jbd support before loading my root partition. Did this help? NO. Same exact problem with the exception that I get a nice little init rd complaining instead of kernel panic. But I get the kernel panic when I type exit at the prompt which comes up after it says "/dev/hda4 no such device or address" anyway so its the same problem. This only happens when I boot from the 2.6 kernel, 2.4 boots just fine and has no issues with ext3.

As you can see my problems just seem to multiply as my fixes lead to more problems. Anyway, thanks to all who tried to help. At least I got my 2.4 kernel to recognize my touchpad ;>

- slacker

Last edited by alphisb0t; 03-20-2006 at 07:08 PM.
 
Old 03-20-2006, 07:49 PM   #13
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,624

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
You can read my article about installing kernel from source or from binary package and also about activating WiFi, and also upgrading your Centrino Driver

Everything was placed in my writings section at my small home page
 
Old 03-21-2006, 02:41 AM   #14
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
I gather the intel 2200 bg driver will work with ndiswrapper.
However - learning about kernels is fun...
 
Old 03-21-2006, 11:28 PM   #15
alphisb0t
Member
 
Registered: Jun 2004
Distribution: gentoo 2008.desktop
Posts: 110

Rep: Reputation: 15
Thanks for the links. The kernel compiling resource is excellent, and I wish I had found it before I learned to do it. It would have saved me unending troubles. I'd just like to point out that I've done all those things mentioned and 2.6 refuses to boot.

If I could just get the 2.6 to boot I could install the ipw2200 drivers/firmware/ieee80211 stack that I've downloaded in preparation for it. I still cannot understand why the kernel panics tring to load my ext3 root partition. I've compiled the kernel with ext2/ext3/jbd/and various other filesystems and still nothing stops this problem.

I'd like to clear something up if possible since we're on the topic of kernels. When I downloaded the 2.6 kernel I had a choice between 2.6.15 and 2.6.15.x where x varied from 1 to 6. What is the difference?

Also on kernel.org when you click the 2.6 link you are referred to the 2.6.16 patch. I'm assuming patches work on the version 0 of the kernels as in 2.6.16.0?

Thanks again for all your suggestions.

- slacker
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't get the USB mouse to work emanresu Linux - Laptop and Netbook 6 11-19-2005 04:23 PM
USB Mouse work ... almost.. phoenix99 Linux - Hardware 1 11-29-2004 02:59 PM
trying to get usb mouse to work in x fatpigjoke Linux - General 2 09-08-2004 07:26 AM
USB thumb drive works great, but I still can't get my USB mouse to work. blk96gt Slackware 8 06-22-2004 02:52 AM
PS/2 mouse did not work after temp removal of USB mouse edwardp Linux - Hardware 1 09-06-2003 05:57 PM


All times are GMT -5. The time now is 01:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration