Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 491  / 3 Years ago, thu, june 10, 2021, 5:43:36

I am trying to change a value in this read only file (usr/share/X11/xorg.conf.d/40-libinput.conf) in order to switch a touch screen off.


I have have found this question explaining how to disable these touch screen drivers instructing me how to do this using nano. My problem is that I have never used nano before and am not understanding how to change the "on" in line 42 to "off".


enter image description here


enter image description here


Please can you show me how to use nano so that the "on" in line 42 becomes an "off" ?


I know that in order to open the editor I can use:


sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf


but from here I am lost on how to use nano to perform the task.


More From » drivers

 Answers
7

  • in a terminal window, execute the command you have already demonstrated in your question

    • now you have the file opened in nano



  • navigate within the text content with the arrow keys

    • place the cursor behind the part you want to modify

    • use the backspace key to delete characters

    • type what you want instead



  • type Ctrl+x

    • at the bottom of the window a sort of "confirmation dialog" will appear

      • it will contain the file name (where to save)

      • and prompts for either y (yes, save indeed), or n (this would close nano without modifying the file (hint taken from @matigo's answer))

      • so if all is well then hit that y.

      • but wait, here comes the part with the confirming the filename to save to (seen in @PJ Singh's answer): so hit an Enter too





  • Nano will close and you are back to the terminal window. You are done.


[#1947] Saturday, June 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
splenueak

Total Points: 448
Total Questions: 118
Total Answers: 110

Location: Vanuatu
Member since Mon, Oct 3, 2022
2 Years ago
splenueak questions
;