0

I'm looking for a way to see all the devices (e.g. touchpad etc.) and to enable/disable them.

DK Bose
  • 42,548
  • 23
  • 127
  • 221
  • Please see vanadium's answer. We like questions that deal with one specific issue. – DK Bose Dec 29 '19 at 12:49
  • I am not sure if it fits your needs, but you can have a look at: https://help.ubuntu.com/community/HardInfo – FedKad Dec 29 '19 at 13:16
  • One convenient tool is inxi. You can install it using sudo apt install inxi. You can get a lot of information with it. See here. – DK Bose Dec 29 '19 at 13:50
  • Hello @DKBose, which option should I consider to disable touchscreen in inxi? – Gennaro Arguzzi Dec 29 '19 at 15:50
  • Hi @FedonKadifeli, is it possible to disable devices by using hardinfo? I tried it, but it shows me only the list of the devices. – Gennaro Arguzzi Dec 29 '19 at 15:51
  • 1
    @GennaroArguzzi that would be a good question to ask by posting a new question like "How do I disable my touchscreen in Ubuntu 19.10". inxi only provides information. It is not an interface for altering settings. By the way, I searched for "disable touchscreen in Ubuntu" and found this: https://www.tomordonez.com/disable-touchscreen-ubuntu.html. Does it help? See https://askubuntu.com/questions/198572/how-do-i-disable-the-touchscreen-drivers as well. – DK Bose Dec 29 '19 at 15:56
  • Perfect explanation @DKBose it's simple and fast to do. – Gennaro Arguzzi Dec 29 '19 at 16:07

2 Answers2

3

type xinput and see the device id

$ xinput

To disable the device, type this line

$ xinput --disable xx xx adalah id device

To enable device, type this line

$ xinput --enable xx

See:https://gist.github.com/edomaru/5f6997cff92203824e43

Tejas Lotlikar
  • 2,945
  • 5
  • 17
  • 26
1

Linux works different than Windows, and as such, a unified place to enable/disable devices is not available. This is also due to different mechanisms that drivers my use. Some drivers come directly with the kernel and can (or cannot) be disabled by blacklisting modules. Other drivers are working on Xorg and can be enabled/disabled by configuration files or installing/removing packages, etc.

If you have a specific need to disable a device, post here and specific answers for your device may be given.

vanadium
  • 88,010