LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-09-2003, 01:16 PM   #1
xtrips
LQ Newbie
 
Registered: Mar 2003
Posts: 11

Rep: Reputation: 0
RH9 and Hotplug USB mouse


How would you set RH9 to use alternatively the builtin PS/2 mouse of my laptop or the USB external mouse I might plug-in ?

Everytime I boot to Linux, it remembers the last configuration and ask me if I want to set the USB mouse if plugged in or set the PS/2 mouse if removed.

Any idea ?

THX
 
Old 04-12-2003, 06:20 PM   #2
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
You will have to edit your /etc/X11/XF86Config file using vi, emacs, kate whichever editor you like. You will need to have these lines in your XF86Config file, then you will be able to use the USB mouse or touchpad:

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "DevInputMice" "AlwaysCore"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Then for your USB mouse:

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

Then for your Touchpad:

Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Then you will be able to use both at the same time or individually.

Good Luck
 
  


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
No usb mouse after hotplug loaded (acpi also has to do with it) Erik Plaggenmar Linux - Hardware 2 04-13-2005 11:40 AM
can't hotplug usb mouse bobwall Linux - Hardware 1 12-23-2004 02:54 PM
Unusual dmesg output on hotplug of Logitech USB mouse tisource Linux - Hardware 0 12-07-2004 07:05 PM
Want 2 use USB mouse in RH9.0 shiben Linux - Hardware 7 10-16-2003 08:24 AM
RH9 usb mouse/keyboard hotplug men$an Linux - Distributions 2 07-16-2003 01:09 PM


All times are GMT -5. The time now is 10:05 PM.

Main Menu
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