Author Topic: A way to disable touchpad while my mouse is connected via usb? super(SOLVED)  (Read 2015 times)

Offline JimmyTango

  • Jr. Member
  • **
  • Posts: 31
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Is there a way to make my touchpad disable automatically when a usb mouse is connected?
or have a keybind or a macro preset for it?

I know I can disable and enable touchpad by going to input options and putting/taking off a tick on "disable touchpad", but that's a hassle if I'm doing it 5 times a day (I travel a lot).


Thanks!

Code: [Select]
System:    Host: merlin Kernel: 4.4.0-38-generic x86_64 (64 bit) Desktop: N/A
           Distro: Peppermint Seven
Machine:   System: HP (portable) product: HP Pavilion Notebook v: Type1ProductConfigId
           Mobo: HP model: 820B v: 82.24 Bios: Insyde v: F.06 date: 05/05/2016
CPU:       Dual core Intel Core i5-6200U (-HT-MCP-) cache: 3072 KB
           clock speeds: max: 2800 MHz 1: 784 MHz 2: 799 MHz 3: 799 MHz
           4: 799 MHz
Graphics:  Card: Intel Sky Lake Integrated Graphics
           Display Server: X.Org 1.18.3 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2)
           GLX Version: 3.0 Mesa 11.2.0
Audio:     Card Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-38-generic
Network:   Card-1: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
           driver: r8169
           IF: eno1 state: down mac: <filter>
           Card-2: Intel Wireless 3165 driver: iwlwifi
           IF: wlo1 state: up mac: <filter>
Drives:    HDD Total Size: 256.1GB (52.9% used)
           ID-1: /dev/sda model: SanDisk_SD8SNAT size: 256.1GB
Partition: ID-1: / size: 227G used: 119G (56%) fs: ext4 dev: /dev/sda2
           ID-2: swap-1 size: 8.47GB used: 0.00GB (0%) fs: swap dev: /dev/sda3
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 43.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 205 Uptime: 58 min Memory: 1805.0/7873.3MB
           Client: Shell (bash) inxi: 2.2.35
« Last Edit: October 02, 2016, 04:39:27 am by JimmyTango »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Is there a way to disable touchpad while my mouse is connected via usb?
« Reply #1 on: October 01, 2016, 12:10:44 pm »
To help us help you, ALL new requests for technical support should include basic system information.

If you haven't already done so, please open a terminal (Ctrl+Alt+T) and run the following command:
Code: [Select]
inxi -Fzthen copy what was returned in the terminal and post it back here.

This was an automated response but please don't ignore it, providing this information now is highly likely to save time for both you and any prospective respondents and aid in the diagnosis of your problem  .. Thanks in advance :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Is there a way to disable touchpad while my mouse is connected via usb?
« Reply #2 on: October 01, 2016, 05:26:29 pm »
Short of going into the Peppermint Control Center and manually disabling it NO

Well the truthful answer would be yes, theoretically it could be achieved by a custom udev rule and script .. but it aint straightforward ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5821
  • Karma: 1122
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Is there a way to disable touchpad while my mouse is connected via usb?
« Reply #3 on: October 01, 2016, 09:45:00 pm »
Haven't tried this, but doing a quick search ...

LINK:  http://www.thedevilonholiday.co.uk/ubuntu-15-04-disable-the-touchpad-when-a-usb-mouse-is-present/

Looks like it's still supported ...

LINK:  https://launchpad.net/~atareao/+archive/ubuntu/atareao?field.series_filter=xenial  (' touchpad-indicator')

Offline JimmyTango

  • Jr. Member
  • **
  • Posts: 31
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Is there a way to disable touchpad while my mouse is connected via usb?
« Reply #4 on: October 02, 2016, 03:54:38 am »
Code: [Select]
merlin@merlin ~ $ sudo add-apt-repository ppa:atareao/atareao
 Applications from atareao
 More info: https://launchpad.net/~atareao/+archive/ubuntu/atareao
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp0kzwa4q9/secring.gpg' created
gpg: keyring `/tmp/tmp0kzwa4q9/pubring.gpg' created
gpg: requesting key 36FD5529 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp0kzwa4q9/trustdb.gpg: trustdb created
gpg: key 36FD5529: public key "Launchpad PPA for atareao" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
merlin@merlin ~ $ sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
merlin@merlin ~ $ sudo apt-get install touchpad-indicator
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

 :(

I was trying to setup Wargus yesterday, but had to stop half-way, because I couldn't extract data from the War2 CD, perhaps it has to do with that. Now if I'm using "sudo dpkg --configure -a" it brings up the Wargus installation at the spot where I had to abandon it. I have a hint, I'm the one responsible for the mess...
« Last Edit: October 02, 2016, 04:10:45 am by JimmyTango »

Offline JimmyTango

  • Jr. Member
  • **
  • Posts: 31
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
Re: Is there a way to disable touchpad while my mouse is connected via usb?
« Reply #5 on: October 02, 2016, 04:38:24 am »
NEVER MIND! Sorted the Wargus issue and it worked like a charm.  THANK YOU THANK YOU THANK YOU!!!
 :) ;D ;D :D ;D :D :P ;D :D

So far, peppermint has been the best OS I've ever used. Needs a few more touches to make it PERFECT, but I'm only thwarted by my own ignorance :D I'm getting there, though.
« Last Edit: October 08, 2016, 07:35:08 am by JimmyTango »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Is there a way to disable touchpad while my mouse is connected via usb?
« Reply #6 on: October 02, 2016, 05:12:16 am »
So far, peppermint has been the best OS I've ever used. Needs a few more touches to make it PERFECT

Suggestions for improvement are ALWAYS welcome my mate :)
(as long as they fit our minimalist ethos of not choosing application software FOR the user)
« Last Edit: October 02, 2016, 05:14:13 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline JimmyTango

  • Jr. Member
  • **
  • Posts: 31
  • Karma: 2
  • New Forum User
    • View Profile
  • Peppermint version(s): 7
I always make honest attempts at searching through the forums and then the internet before I post for help, but couldn't find any mentions of this one somehow. Really sorry about that.

Online VinDSL

  • Administrator
  • Hero
  • *****
  • Posts: 5821
  • Karma: 1122
  • Team Peppermint
    • View Profile
  • Peppermint version(s): Developmental Builds
Thx for testing it !

I always carry a USB mouse in my laptop bag, but I seldom use it.  When I do use it, I place an I.D. badge or credit card on the touchpad -- a ghetto solution, for sure.

Think I'll give it a whirl, the next time I boot my 'road warrior' ...   ;)

Offline spence

  • Administrator
  • Hero
  • *****
  • Posts: 2947
  • Karma: 333
  • peppermint user since 2010
    • View Profile
  • Peppermint version(s): PMVII, PMVIII, PMIX, PMX Respins
Is there a way to make my touchpad disable automatically when a usb mouse is connected?
or have a keybind or a macro preset for it?

thank you, thank you... thank you very much for asking... ;)
and thanks to VinDSL for finding something I've been hunting but never had found...  :-*


spence
PeppermintOS 8,9 & 10 Respins currently installed  on:
'16 Antec Aria rebuild
PMX Respin on '18 Asus VivoBook


Do not despair, grasshopper...
    with patience all will be revealed...
       Through pain, enlightenment will come.