Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2012, 10:51 PM
dohmniq dohmniq is offline
Junior Member
 
Join Date: Oct 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default auto-disable default mouse when USB mouse attached
My laptop touchpad is very sensitive to slight touches and I haven't yet discovered how to adjust the settings. I generally use a USB mouse anyway.

Something you could add to the "Keyboard and Mouse" preferences would be a "disable default mouse when USB mouse inserted" checkbox.

To implement this, I've edited my /etc/devd.conf:
(I added the lines containing /bin/sh commands)

Code:
attach 100 {
        device-name "ums[0-9]+";
        action "/etc/rc.d/moused quietstart $device-name";
        action "/bin/sh -c 'sig_reload=STOP /etc/rc.d/moused reload'";
};

detach 100 { 
        device-name "ums[0-9]+"; 
        action "/bin/sh -c 'sig_reload=CONT /etc/rc.d/moused reload'";
        action "/etc/rc.d/moused stop $device-name"; 
};
I found I couldn't just kill the default moused as booting with a USB mouse would cause X to take over /dev/psm0.

I also created /etc/rc.conf.d/moused with the following content:

Code:
extra_commands="reload"
sig_stop="KILL"
The KILL signal is needed otherwise shutdown/reboot hangs waiting for the STOP'd moused process to exit, having only been sent a TERM signal.

For PCBSD, I guess the /etc/devd.conf action changes could always be there and the checkbox would create/edit/delete /etc/rc.conf.d/moused based on the checkbox setting?

Maybe there's an xorg.conf way to do this but editing that might be more dangerous and I suspect the devd method would work in a text syscons context.
Reply With Quote
  #2  
Old 11-07-2012, 04:44 PM
David30 David30 is offline
Senior Member
 
Join Date: Jun 2012
Posts: 325
Thanks: 20
Thanked 30 Times in 29 Posts
Default
A GUI option for this would be great, along with basic options for touchpads - such as turning on/off "tap to click", "edge scrolling" etc., regardless of the desktop environment in use. I say that because LXDE does not have the same mouse options as GNOME.
Reply With Quote
  #3  
Old 01-15-2013, 05:22 AM
abelard abelard is offline
Junior Member
 
Join Date: Aug 2012
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default
Did you try Fn+F7? That toggles the touchpad on/off on most laptops.
Reply With Quote
  #4  
Old 01-18-2013, 08:49 PM
hammy_283 hammy_283 is offline
Junior Member
 
Join Date: Jan 2013
Location: Canada
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default
It is too bad that synpatiks is not on Appcafe. It is a GUI program with disabling touch when usb mouse is plugged in option. It is really handy in Linux.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:57 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.