You are not logged in.
I have this little issue with trying to disable Synaptics Touchpad on my laptop while my USB mouse is connected. Here's how it goes.
First I've followed the description from this wiki page. Then I restarted my system and found out that my touchpad was still working while my mouse was connected. I had to disable it manually. Now when my OS is up and I unplug my mouse from an USB port the touchpad starts to work. It also stops when I plug-in the mouse. So why is it on juster after I boot-in into my system?
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
*bump
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
My guess would be that udev is loaded before hal/xorg, hence the synclient command does not work as the touchpad is not configured yet. Maybe you can add script to retrigger the mouse after X starts.
udevadm trigger --subsystem-match=input --attr-match=ID-CLASS=mouse
not sure if it would work
Offline
Hello fulloffur
Thanks for your effort. Unfortunately I'm not very familiar with scripts so I don't know what to do with the one you provided. Can you tell me where to put it and so on. I would like to give it a try
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
That depends how you start your session. I'm using gnome now. So I just add the command to the session startup. ( System > Preferences > Sessions ), though the touchpad will still be on in gdm.
What are you using?
Offline
I'm on KDE3mod right now to which I log-in using KDM.
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
I'm not really familiar with kde, but I think kde autostarts .desktop files found in ~/.kde/Autostart
So I guess you need to .desktop file, say touchpad.desktop, to ~/.kde/Autostart. Add the following to the file
[Desktop Entry]
Type=Application
Terminal=false
Exec=udevadm trigger --subsystem-match=input --attr-match=ID-CLASS=mouse
Name=Touchpad
this won't affect kdm though.
hope this works for you.
Last edited by fulloffur (2009-01-31 12:42:37)
Offline
After trying it myself, the udevadm command doesn't work. So forget what I said. sorry.
Offline
"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."
MSI Raider GE78HX 13VI-032PL
Offline
I have the same issue. But I found a way to solve this.
Firstly, create a script file touchpad.sh
#!/bin/bash
lsusb | grep [Mm]ouse -q
if [ $? -eq 0 ]; then
synclient TouchpadOff=1
else
synclient TouchpadOff=0
fi
Put it in directory you like and make it executable. I put it in my home directory.
chmod +x ~/touchpad.sh
Finally, make it run at start-up. I use xinit so i put this line to my .xinitrc
/home/superbo/touchpad.sh
If you use KDE, I think you can add the following file to kde Autostart folder
[Desktop Entry]
Type=Application
Terminal=false
Exec=/home/superbo/touchpad.sh
Name=Touchpad
Last edited by SuperBo (2012-10-26 00:41:13)
Offline