Click to See Complete Forum and Search --> : Different dock vs. undock configurations


wswartz
12-05-2003, 10:00 AM
Is there a way to sense when my laptop is docked vs. undocked? Specifically, my issue is with my mouse. When docked, I have a wheel mouse that I would like to get to work. When undocked, I have to contend with the joystick/touchpad which is considered by linux to be a generic two button PS/2 mouse. I've tried to use the wheel mouse driver with the joystick/touchpad with ugly results. To add one more thing to the mix, every time I undock, Fedoa runs Kadzu and wants to deinstall my local printer. So as part of this project, I need to figure out a way to tell Kadzu to ignore my printer coming and going.

What I'm thinking is a script that notices when I'm docked then copies over a new X11 config file that has the wheel mouse setup on it. Is this possible? I'm not a programmer but it seems like it should work if you can come up with a way to sense docked vs. undocked.

To throw another variable in the mix... I'm thinking about getting an external USB mouse for when I'm undocked. The only connector I have to use when undocked is USB. This would make the script a bit more complicated. Possibilities would be:

- docked, PS/2 wheel mouse
- undocked, PS/2 mouse (using joystick/touchpad)
- undocked, USB mouse

Thoughts?

W/

hard candy
12-05-2003, 10:48 AM
You can have several mice configured in the XF86config file- it should be able to use the one being activated. On my computer I have usb, ps/2, and touchpad entries. I can switch between them. I'm not where I can post my xf86config file. And there should be a file in /etc controlling kudzu behavior.

wswartz
12-10-2003, 12:58 AM
Thanks for the reply. Maybe you could cut & paste just the section from your X11 config to show the mouse setup?

Thanks again.
W.