I'm looking for a way to see all the devices (e.g. touchpad etc.) and to enable/disable them.
2 Answers
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
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.
-
Hi @vanadium thank you so much for the clarification about the Linux's world. Dec 29, 2019 at 16:08
-
My pleasure - a simple answer, but sometimes that is OK to see things differently.– vanadiumDec 29, 2019 at 17:56
sudo apt install inxi
. You can get a lot of information with it. See here.