Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu 18.04 disable / turn on the trackpad through the command

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

It is often encountered under Ubuntu that the trackpad cannot be closed with keyboard shortcuts, which occurs after the blogger's computer installs Ubuntu18.04.

Solution:

First check

It is often encountered under Ubuntu that the trackpad cannot be closed with keyboard shortcuts, which occurs after the blogger's computer installs Ubuntu18.04.

Solution:

First check the id of the input device. Enter: xinput on the command line. As shown in the figure, the id=17 of the blogger's TouchPad varies from id to computer.

Once you know the id=17, you can turn off / open the trackpad with the command

Close command: xinput-- disable 17

Open command: xinput-- enable 17

It's too troublesome to type like this each time. To simplify, write two shell files, one to turn off TouchPad, named off17, and one to open TouchPad, named on17.

Then put these two files into the modify permission, and then move to the / usr/bin/ directory

Command line input: chmod aquix off17

Sudo mv off17 / usr/bin/

So you can type off17 on the command line to close the trackpad.

same,

Command line input: chmod aquix on17

Sudo mv on17 / usr/bin/

You can open the trackpad by typing on17.

Enter the id of the device, enter xinput on the command line, as shown in the figure, the id=17 of the blogger's TouchPad, and the id varies from computer to computer

Once you know the id=17, you can turn off / open the trackpad with the command

Close command: xinput-- disable 17

Open command: xinput-- enable 17

It's too troublesome to type like this each time. To simplify, write two shell files, one to turn off TouchPad, named off17, and one to open TouchPad, named on17.

Then put these two files into the modify permission, and then move to the / usr/bin/ directory

Command line input: chmod aquix off17

Sudo mv off17 / usr/bin/

So you can type off17 on the command line to close the trackpad.

same,

Command line input: chmod aquix on17

Sudo mv on17 / usr/bin/

You can open the trackpad by typing on17.

Summary

The above is the editor introduced to you Ubuntu 18.04 through the command to disable / open the trackpad, I hope to help you, if you have any questions, please leave me a message, the editor will reply to you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report