Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 21986 ideas, 135057 comments, 2615221 votes
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas
Idea #554: Disable touchpad when a mouse is plugged in.

Written by pornstar the 29 Feb 08 at 02:45. Category: System. Related project: Nothing/Others. Status: New
Rationale
I would like to have a setting where I can have the touchpad automatically disabled when I plug a mouse into my laptop. Then have it automatically enabled when I unplug my mouse.

176
votes
up equal down
Solution #1: Auto-generated solution of idea #554
Written by pornstar the 29 Feb 08 at 02:45.
Ubuntu Brainstorm was updated in January 2009. Since the idea #554 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!
16
votes
up equal down
Solution #2: Create option in Mouse Preferences to disable touchpad when external mouse used
Written by rava_sd the 25 Oct 10 at 15:52.
In Mouse Preferences there is already a folder called 'Touchpad' and it has options like "Disable touchpad while typing". Why not add another option there saying "Disable touchpad when using an external mouse" or something similar?

Propose your solution

Attachments


Duplicates


Comments
johnpro wrote on the 29 Feb 08 at 03:01
I have both a touchpad and trackpoint mouse on my laptop and I use both interchangeably. Possibally just make this an option.

pornstar wrote on the 29 Feb 08 at 03:08
Like I said in the description, I just want a setting where I can have the option. I certainly don't want it to be the default.

Grayfell wrote on the 29 Feb 08 at 03:37
I would love this as an option. I only use my touchpad when I have no other choice, am I in the minority on this?

pornstar wrote on the 29 Feb 08 at 04:04
Grayfell, I'm obviously in the same boat as you. I think I should have emphasized that I just wanted it to be an option for people like us, not the default action.

cheesehead (Brainstorm admin) wrote on the 1 Mar 08 at 04:27
Ready to implement - just write a script to disable your touchpad.

System -> Preferences -> Removable Drives and Media -> Input Devices -> Automatically run a program when a USB mouse is detected

pornstar wrote on the 1 Mar 08 at 14:03
Thanks for the tip cheesehead. I could definitely disable the touchpad this way, but I don't have a way to enable it again automatically when I unplug all the mice from my system.

DonQuichote wrote on the 1 Mar 08 at 21:50
It could be that your BIOS supports it (possibly for PS/2 mice only). It does for my laptop.

rgarrett wrote on the 4 Mar 08 at 20:59
I would prefer to have this as an option as well. My laptop does not have a bios option for disabling the on board trackpad mouse. This is frustrating because whenever I type, I accidentally touch the pad and skip to another location in the document.
In MS Windoze the ability to disable the onboard mouse is included, so I know that Linux can have the same ability. Unfortunately, every fix that I have looked up on the internet has failed in real life.

davidakablaz wrote on the 13 May 08 at 07:02
I wanted to post the same topic (to disable touchpad when mouse is plugged in and enable it when it's not) but I checked first if there were any similar topics first ^^

djoker wrote on the 24 May 08 at 14:21
i have the same problem like you dudes. its really frustrating and fraught to write something with touchpad on ...

saivann (Brainstorm moderator) wrote on the 5 Mar 09 at 04:03
This could be done through some sort of udev rule. For an example, here is a (imperfect) way to do this :

Create a /etc/udev/rules.d/01-touchpad.rules file and add this to that file :

ACTION=="remove", SUBSYSTEM=="hid", RUN+="/sbin/modprobe psmouse"
ACTION=="add", SUBSYSTEM=="hid", RUN+="/sbin/rmmod psmouse"

This trick will actually work with any pointing device connected on the computer, not only USB mouses.

Another way to disable the touchpad (rather then unloading psmouse module) could be to pass some xinput arguments automatically when a usb mouse is connected-disconnected.

Here is two xinput commands that disable all touchpads in jaunty, followed by the commands that enable them again :

xinput set-int-prop "AlpsPS/2 ALPS GlidePoint" "Device Enabled" 8 0
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 0

xinput set-int-prop "AlpsPS/2 ALPS GlidePoint" "Device Enabled" 8 1
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 1

I'm pretty sure that something could be done to implement this feature. It's just a matter to do a neat work.

braksator wrote on the 18 Jun 09 at 04:46
I'm new to ubuntu, and so I don't understand much of the discussion in this thread.

But I need this feature as it is pretty much a deal breaker for ubuntu as an everyday OS.

It is far too difficult to use a computer where the mouse keeps randomly jumping and clicking on things and scrolling away.

Yes I know perhaps the manufacturer of the computer is to blame, or whoever put thumbs on the insides of my hand, but I'm looking to you guys to fix this.

Total number of times this problem happened during writing this message: FOUR (4).



crss wrote on the 6 Oct 09 at 11:34
This command will be shorter when synaptics is used:
synclient touchpadoff=1

crss wrote on the 6 Oct 09 at 11:40
synclient needs a DISPLAY variable being set.

rava_sd wrote on the 25 Oct 10 at 15:46
I think we should go back to the beginning and ask ourselves, how can we make this an option in the mouse settings. Surely, not the default option, but an option nevertheless. And another question is, how can we make this thread (and idea) achieve that.

I don't want quick fixes through which I type things I have no clue off in terminal, disable my touchpad and then work for hours trying to find how I turn it on again when I need it. I just want a nice option in the mouse settings. Simple, safe and beautiful.

xdunlapx wrote on the 30 Apr 11 at 05:09
I agree that this should be an option. I'm sick of manually disabling my touchpad by command every time i log in or reboot. It's frustrating. Why has this never been addressed sooner? It's sad, to be honest.

enieffak wrote on the 19 Jun 11 at 21:15
Still no solution? Woah, really no wonder Ubuntu struggles to attract more private users...

jdimstrnate wrote on the 10 Oct 11 at 17:59
saivann has the right idea. I just created a file in the specified directory he indicated and it worked right away for me.

Im not sure why there is still a problem....


Post your comment