lenovo T440 Thinkpad Touchscreen

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

Bob M wrote: Thu Jan 27, 2022 5:02 pm Well we're up to here which I think is as you explained but I don't understand the "sudo nano" part.
That refers to the long post with the instructions. That is the part where you start creating the file. Here is that section and where you can start. Let us know if the editor does not close when you run the command to close it.
SMG wrote: Wed Jan 26, 2022 9:24 pmTo prevent typing mistakes:
  • You can click "SELECT ALL" to the right of CODE: in order to select everything.
  • Then do Control-C to copy what you selected.
  • Then in the terminal window select Edit > Paste.
Copy and paste the below, using the same three steps, to create the file and open it in the nano editor.

Code: Select all

sudo nano /etc/X11/xorg.conf.d/99-disabletouchscreen.conf
The nano editor is a file editor inside your terminal window. You should see the file name at the top of the editor.

Then copy and paste the below using the three steps listed above to prevent typing mistakes.

Code: Select all

Section "InputClass"
    Identifier "touchscreen catchall"
    MatchDriver "libinput"
    MatchIsTouchscreen "off"
EndSection
This puts the text inside the file.
Then Control-S to save the file with the changes.
Then Control-X to exit.
The editor closes.

You can then check to make sure the file is saved by copying the below and pasting it into the terminal window and pressing Enter.

Code: Select all

cat /etc/X11/xorg.conf.d/99-disabletouchscreen.conf
It should list the lines in the file.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

Re: lenovo T440 Thinkpad Touchscreen

Post by Bob M »

No luck so far.

Is there a clue as to what in going on amongst this?
Touchscreen6.png
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

Re: lenovo T440 Thinkpad Touchscreen

Post by Bob M »

Is this any help?
Touchscreen7.png
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

Bob M wrote: Thu Jan 27, 2022 6:21 pm Is this any help?

Touchscreen7.png
If you close the terminal with the process running, that causes problems. It is comparable to shutting down your computer by pressing the power button instead of using the shutdown command.

Too late now, but please do not close the terminal with a process running. We need to figure out what is running.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

Bob M wrote: Thu Jan 27, 2022 6:16 pmIs there a clue as to what in going on amongst this?

Touchscreen6.png
Yes, I think there is. Take a look at the last line. It should just say

Code: Select all

EndSection
But it looks like you tried to run the last command to check the file before you closed nano? The last line says

Code: Select all

EndSectioncat /etc/X11/xorg.conf.d/99-disabletouchscreen.conf
That last line is a combination of what should be in the file AND the next step which was supposed to be done after you saved the file, closed nano, and was back on the command line.

You're getting there. I know this is all new for you.

When I have Control-S as a command, it means to hold down the Control key and, while the Control key is still pressed, press the S key. Then you should get a message saying the file was saved and you can release both keys and do the next step to exit.
To exit, you hold down the Control key and while it is still pressed, press the X key. Then you can release both keys.
That should return you back to the command prompt. At that time is when you copy and paste the last line that starts with "cat /etc...".

Because you received the message saying "No such file or directory", you should just be able to start the process again.

Sorry if my directions were not clear on what I meant by the commands.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

Re: lenovo T440 Thinkpad Touchscreen

Post by Bob M »

Well I started again and got to the end full of hope but alas
touchscreen8.png
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

Bob M wrote: Thu Jan 27, 2022 9:12 pm Well I started again and got to the end full of hope but alas

touchscreen8.png
Nano did not open for you this time? You had it open in the prior screenshots.

Those lines you have showing on this screenshot starting with "Section "Input Class" are supposed to be in the file and not on the command line. You had them in the file on the prior screenshot. :?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

Re: lenovo T440 Thinkpad Touchscreen

Post by Bob M »

Just for the record I ran "xinput disable 10" and it worked immediately.
Unfortunately, after a reboot it was back to default but still number 10.
Character Building stuff this. :D
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

Bob M wrote: Thu Jan 27, 2022 11:24 pm Just for the record I ran "xinput disable 10" and it worked immediately.
Unfortunately, after a reboot it was back to default but still number 10.
Character Building stuff this. :D
:lol:

The only issue with adding turning off #10 to the start-up apps is the possibility the number changes and something else gets turned off. That could be some real character building. :P

Maybe I can come up with another way to create that file. Will let you know when I finally make it to Friday in this part of the globe.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

e andvo T440 Thinkpad Touchscreen

Post by Bob M »

All good SMG, your time and patience is appreciated.

It's 2120hrs Friday downunder and I'm turning in for the night. :D
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

We'll try a different method to create the file. This time you will use the terminal, but you will also use a text editor that opens in its own window (and not inside of the terminal). Maybe that will be easier. I made the print large size when you switch from the terminal to the editor and then when you switch back to the terminal so you know when to expect the change.

Let's check to see if there is any file in the directory. Run the following in a terminal.

Code: Select all

ls /etc/X11/xorg.conf.d
If it comes back with the prompt, then there is no file and you can continue. If it comes back with something, stop here and let me know what it says.

If it comes back with the prompt, run the following in a terminal to create the empty file.

Code: Select all

sudo touch /etc/X11/xorg.conf.d/99-disabletouchscreen.conf
It will come back with the prompt and you can check to see if the file was made by running the following in the terminal.

Code: Select all

ls /etc/X11/xorg.conf.d
That will list the file name. Stop here and let me know if the file name is not listed.

Now you want to add code to the file. To do that, please run the following in a terminal which will open the text editor in a completely new window. (Unless you already had the text editor open. In that case it will open the empty file in a new tab.)

Code: Select all

 xed admin:///etc/X11/xorg.conf.d/99-disabletouchscreen.conf

The text editor program will be launched in a new window at this point in time. The next set of instructions is done in the text editor.

You will have to enter your password and then you will see the empty file with the name 99-disabletouchscreen.conf in the tab.

Now you want to copy the following lines and paste them into that empty file which is in the completely new window (and not in the terminal).

Code: Select all

Section "InputClass"
    Identifier "touchscreen catchall"
    MatchDriver "libinput"
    MatchIsTouchscreen "off"
EndSection
When you paste those lines into the file, the name on the tab changes to *99-disabletouchscreen.conf.

That is all that will go in the file. You can now select File > Save. Once you save the file, the name in the tab changes back to 99-disabletouchscreen.conf (no asterick at the beginning this time).

You can now do File > Quit to close the text editing program. That will close the window.

You will now return to the the terminal window because your work with the text editor is done.

Ignore any warning and critical messages on the terminal which relate to the xed (text editor) program. (I had one warning and two critical. I do not know what your version might have. You might have none.)

Now go to the terminal window and check to see if the file and its contents are there by running the following.

Code: Select all

cat /etc/X11/xorg.conf.d/99-disabletouchscreen.conf
It should list the lines in the file. If so, the file has been successfully created and should take effect the next time you boot the computer.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

Re: lenovo T440 Thinkpad Touchscreen

Post by Bob M »

Response to first instruction.
Touchscreen9.png
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

Bob M wrote: Fri Jan 28, 2022 4:17 pm Response to first instruction.

Touchscreen9.png
What is the output, if any, to the following command.

Code: Select all

cat /etc/X11/xorg.conf.d/99-disabletouchscreen.conf
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

Re: lenovo T440 Thinkpad Touchscreen

Post by Bob M »

touchscreen10.png
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

You did it! You have the file.

Let's remove the other extraneous file. Run the following and then type in your password when it asks.

Code: Select all

sudo rm /etc/X11/xorg.conf.d/99-disabletouchscreen.conf.save
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

Re: lenovo T440 Thinkpad Touchscreen

Post by Bob M »

touchscreen12.png
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

That is what it should look like. You can verify it is gone by running the below.

Code: Select all

ls /etc/X11/xorg.conf.d
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

Re: lenovo T440 Thinkpad Touchscreen

Post by Bob M »

touchscreen13.png
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: lenovo T440 Thinkpad Touchscreen

Post by SMG »

Looks good. We'll find out the next time you reboot your computer if it works.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Bob M
Level 5
Level 5
Posts: 557
Joined: Sat Jan 28, 2017 9:54 pm
Location: New Zealand

Re: lenovo T440 Thinkpad Touchscreen

Post by Bob M »

:( :( :(

Re-booted and the Touchscreen is still alive and well.

Where too from here :?:
Locked

Return to “Graphics Cards & Monitors”