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/
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/