View previous topic :: View next topic |
Author |
Message |
dirtbag Guru


Joined: 18 Feb 2003 Posts: 508 Location: NC
|
Posted: Sat Nov 08, 2003 3:39 am Post subject: XF86 on a t30 laptop with external usb mouse |
|
|
I have gentoo working fine and dandy with my T30 with 4.3.0-r3. Right now, I switch back and forth between XF86Config-4 files to get either my touchpad mouse or my external usb mouse to work with X. Needless to say, this could work a lot better. Im assuming that I can use some hotplug script from /etc/hotplug/usb
to somehow enable the usb mouse when it gets plugged in
*WITHOUT* restarting X. Does anyone have the scripts/configs necessary to do this?
-DB |
|
Back to top |
|
 |
PaRaNo n00b


Joined: 25 Oct 2003 Posts: 66 Location: Dans le sud
|
Posted: Sat Nov 08, 2003 5:05 pm Post subject: |
|
|
Hi,
i think i've already read a solution for this,
in the french forum i think,
look for a user named kwenpc
i hope it will help you |
|
Back to top |
|
 |
dirtbag Guru


Joined: 18 Feb 2003 Posts: 508 Location: NC
|
Posted: Sat Nov 08, 2003 7:57 pm Post subject: cant find it |
|
|
I assume you meant user "kwenspc" . I looked all all the posts by that user and none of them seemed to have anything to do with hotplugging mice and XF86..
I dont remember much French from high school, but Im pretty sure I didnt see anything relevant.
-DB |
|
Back to top |
|
 |
dirtbag Guru


Joined: 18 Feb 2003 Posts: 508 Location: NC
|
Posted: Tue Nov 11, 2003 12:49 am Post subject: resolved! |
|
|
ok, so im an idiot.. You dont need any hotplug trickery to do this. just a correct XF86Config
like so..
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "TrackPoint"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "SendCoreEvents"
EndSection
Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
InputDevice "TrackPoint"
Screen "screen1"
EndSection
so now we know..
 |
|
Back to top |
|
 |
imckee n00b


Joined: 02 Jun 2003 Posts: 29 Location: Berkeley, CA
|
Posted: Mon Dec 15, 2003 6:17 am Post subject: |
|
|
Dirtbag, ( )
I'd like to be able to use either my synaptics touchpad or an external USB optical mouse, and I'd like to switch between the two simply by plugging/unplugging the external mouse. Is the above XF86Config sufficient for a setup like that? |
|
Back to top |
|
 |
marshall_j Tux's lil' helper


Joined: 22 Jan 2003 Posts: 98 Location: NZ
|
Posted: Tue Dec 16, 2003 11:09 pm Post subject: |
|
|
I'm pertty sure (laptop at home and me at work right now...) that the above example will only work if the mouse is plugged in when X is started.
If that is the case then just change the server layout to the following and it should work fine:
Code: |
Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "TrackPoint" "CorePointer"
InputDevice "Mouse0" "SendCoreEvents"
Screen "screen1"
EndSection
|
All that changes is setting the touchpad to the core pointer and having the mouse send the core events. This example should let you plug and unplug the USB mouse as you see fit. |
|
Back to top |
|
 |
|