How to switch off the touch screen permanently? - Spin 1 SP111-34N

VoytekIanNiznik
VoytekIanNiznik Member Posts: 4 New User
edited January 2022 in Swift and Spin Series
The touch screen got cracked how can I disable it permanently?
My laptop is Spin 1 SP111-34N

​//Edited the content to add model name.   ​

Best Answer

  • Leostat
    Leostat ACE Posts: 3,043 Pathfinder
    Answer ✓
    So ive just had a look in the service manual hoping it would be in there but no joy, if its not showing in lsusb , try lspci to see if there is a touchscreen or somehting like elan listed 

    If it still doesnt jump out, could you poist the output of lspci and lsusb and i can have a look :) also you can check the boot log to see if its listed in there

    [a@fedora ~]$ sudo dmesg | grep elan

Answers

  • Leostat
    Leostat ACE Posts: 3,043 Pathfinder
    If you head to device manager, there should be a thing under input devices (i think) which you can disable, generic touchscreen or the like.

    The only problem is pre boot it will still be on! I had the same with a old touchscreen laptop, whenever i need to go into the bios now i get a million phantom taps, but in windows its fine just disabled in device manager :)
  • VoytekIanNiznik
    VoytekIanNiznik Member Posts: 4 New User
    Thank you for your answer. I just forgot to mention I use Linux Mint and the only thing I can do is to use the command input disable every time I boot the system. I would be grateful if somebody could instruct me on how to do that in BIOS if it's possible.
  • Leostat
    Leostat ACE Posts: 3,043 Pathfinder
    Ahh aha, i auto assume windows :D! You cant in the bios but you can do it in mint as well, its just not as easy as it depends what "sort" of touchscreen it is, and there isnt a graphical way of doing it.

    If you open a terminal and type lsusb do you see it listed? You should get output like this:-*/


    [a@fedora ~]$ lsusb
    Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 004: ID 8087:0029 Intel Corp. AX200 Bluetooth
    Bus 003 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
    Bus 003 Device 002: ID 0c45:671f Microdia Integrated_Webcam_HD
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 003: ID 17e9:ff03 DisplayLink MB168B+
    Bus 002 Device 002: ID 05e3:0617 Genesys Logic, Inc. USB3.0 Hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 005: ID 046d:c22d Logitech, Inc. G510 Gaming Keyboard
    Bus 001 Device 004: ID 046d:c08b Logitech, Inc. G502 SE HERO Gaming Mouse
    Bus 001 Device 003: ID 046d:0892 Logitech, Inc. C920 HD Pro Webcam
    Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

    If you do, its as easy as blacklising it from loading by following this guide : https://unix.stackexchange.com/questions/63199/how-to-disable-usb-devices-based-on-vendor-id-in-linux-environment   You want the answer with 6 upvotes on how to blacklist a specific device:

    Create /etc/udev/rules.d/disable-usb-device.rules:

    ACTION=="add", ATTR{idVendor}=="0d8c", ATTR{idProduct}=="000c", RUN="/bin/sh -c 'echo 0 >/sys/\$devpath/authorized'"
    
    <br>

    this stops the driver loading when the system boots, and viaola, no more touchscreen, hopefully its s simple usb screen!
  • VoytekIanNiznik
    VoytekIanNiznik Member Posts: 4 New User
    Thank you for your answer. I just don't know how to create that file. This folder /etc/udev/rules.d/ won't allow me to create any file in it or even copy any file to it. How to overcome that issue?
  • Leostat
    Leostat ACE Posts: 3,043 Pathfinder
    So you need to do this as the 'root' user, the equivalent as administrator in windows. 

    Does the touchscreen show as a usb device? If so you can use  'sudo echo' to write into the file, if you drop me the usb I'd I can give you the command to run :) 

    It will be soemthing like 
    sudo echo "the above line " > /etc/udev/rules.d/disable-usb-device.rules

    I will check it on my box first just to make sure it doesnt bawk anything if it's wrong though! 
  • VoytekIanNiznik
    VoytekIanNiznik Member Posts: 4 New User
    edited January 2022
    Leostat said:
    Does the touchscreen show as a usb device?
    No, it does not. I used the command "sudo passwd root" and now I'm root user. What do I do next?
  • Leostat
    Leostat ACE Posts: 3,043 Pathfinder
    Answer ✓
    So ive just had a look in the service manual hoping it would be in there but no joy, if its not showing in lsusb , try lspci to see if there is a touchscreen or somehting like elan listed 

    If it still doesnt jump out, could you poist the output of lspci and lsusb and i can have a look :) also you can check the boot log to see if its listed in there

    [a@fedora ~]$ sudo dmesg | grep elan