Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XF86 on a t30 laptop with external usb mouse
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dirtbag
Guru
Guru


Joined: 18 Feb 2003
Posts: 508
Location: NC

PostPosted: Sat Nov 08, 2003 3:39 am    Post subject: XF86 on a t30 laptop with external usb mouse Reply with quote

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
View user's profile Send private message
PaRaNo
n00b
n00b


Joined: 25 Oct 2003
Posts: 66
Location: Dans le sud

PostPosted: Sat Nov 08, 2003 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
dirtbag
Guru
Guru


Joined: 18 Feb 2003
Posts: 508
Location: NC

PostPosted: Sat Nov 08, 2003 7:57 pm    Post subject: cant find it Reply with quote

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
View user's profile Send private message
dirtbag
Guru
Guru


Joined: 18 Feb 2003
Posts: 508
Location: NC

PostPosted: Tue Nov 11, 2003 12:49 am    Post subject: resolved! Reply with quote

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..
:P
Back to top
View user's profile Send private message
imckee
n00b
n00b


Joined: 02 Jun 2003
Posts: 29
Location: Berkeley, CA

PostPosted: Mon Dec 15, 2003 6:17 am    Post subject: Reply with quote

Dirtbag, (:D)

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
View user's profile Send private message
marshall_j
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 98
Location: NZ

PostPosted: Tue Dec 16, 2003 11:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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