Disable touchscreen


Primeiramente gostaria de salientar que não sou o autor principal do conteúdo deste artigo. A minha intenção é de mostrar o que outros autores tem realizado (referenciando links para o conteúdo original) neste blog até como um guia pessoal para uso próprio e ainda compartilhar minhas anotações e pequenas modificações que realizo no conteúdo, desejando que possa ajudar mais alguém em algum lugar.
First and foremost, I take no credit for any of this post’s content. I am really just taking what others have done (which I have links to bellow) and am putting it on my blog for a personal reference and hopefully the small changes that I made to their guides will help someone somewhere.

link: https://ubuntuforums.org/showthread.php?t=2322662

To temporarly disable the touch screen you may:

xinput -disable "Atmel Atmel maXTouch Digitizer"

but first list your devices with:
xinput -list

But to permanently disable it edit this file:
sudo nano /usr/share/X11/xorg.conf.d/10-evdev.conf


and add this line to tuchscreen section:
Option "Ignore" "on"

But with Asus Laptop this also disable touch pad so you need to do another trick and change the driver to:
Driver "libinput"

and comment the original driver:
#Driver "evdev"

My file - /usr/share/X11/xorg.conf.d/10-evdev.conf - now looks like this:

#
# Catch-all evdev loader for udev-based systems
# We don't simply match on any device since that also adds accelerometers
# and other devices that we don't really want to use. The list below
# matches everything but joysticks.

Section "InputClass"
        Identifier "evdev pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
EndSection

Section "InputClass"
        Identifier "evdev tablet catchall"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        #Option "Ignore" "on"
EndSection

Section "InputClass"
        Identifier "evdev touchscreen catchall"
        MatchIsTouchscreen "on"
        MatchDevicePath "/dev/input/event*"
        #Driver "evdev"
        Driver "libinput"
        #Option "Ignore" "on"
EndSection


Since I would like to run remixos with my device disabled touchscreen, I need to do another procedure there.
ON android devices you need to change this file:

/system/etc/excluded-input-devices.xml



<?xml version="1.0" encoding="utf-8"?>
<!--
/**
 * Copyright (c) 2011, The Android-x86 Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-->
<devices>
    <device name="Power Button" />
    <device name="Atmel Atmel maXTouch Digitizer" />
</devices>


First, you need to identify the name of the input device used by the system:
  • Start root terminal by typing (Alt/F1), You will get a prompt with a #
  • Type getevent and press <ENTER>
  • You will see a long list of devices scroll by
  • Press the device you wish to deactivate (for example, I touched the touch pad) and note the event number (in my example it is 9)
  • Type Ctrl/c to stop and you will get a prompt with a #
  • Type getevent again and look at the list displayed; Look for the event number that matches your device (NOT THE DEVICE NUMBER!)
  • You will see under it the device name in quotes (for example "Atmel Atmel maXTouch Digitizer")
  • Use the input device again to check you've found the right event number (my touchpad, for example, was 9)
  • Press Ctrl/c again to stop
  • At the prompt #, press Alt/F7 to exit the terminal






Ċ
Ademar Arvati Filho,
28 de ago de 2016 07:29
ċ
excluded-input-devices.xml
(1k)
Ademar Arvati Filho,
28 de ago de 2016 11:00
Comments