Linux touchpad Control

Source: Internet
Author: User
Article Title: linux touchpad control. Linux is a technology channel of the IT lab in China. Some basic categories, such as desktop applications, Linux system management, kernel research, embedded systems, and open-source systems, have encountered a problem today, saying that the touchpad can be opened by executing the synclient touchpadoff = 0 command separately, but write the corresponding rc. the locale file cannot be executed. However, you can modify the/etc/X11/xorg. conf file. I did not understand what they meant, so I learned in detail.
 
Summary: Let's take a look at the synclient command?
 
[Root @ xmpan ~] # Which synclient/usr/bin/synclient [root @ xmpan ~] # Rpm-qf/usr/bin/synclient xorg-x11-drv-synaptics-0.15.2-1.i386 at the same time man synclient, see the result: "commandline utitlity to query and modify Synaptics driver options ."
 
The description is also written as follows: "This program lets you change your Synaptics TouchPad driver for XOrg/XFree86 server parameters while X is running if you enabled SHMConfig" on "in your XOrg/XFree86 configuration. WARNING: This is not secure if you are in an untrusted multiuser environment. all local users can change the parameters at any time. "For more information, see: Enable the SHMConfig option. The synclient tool controls the touchpad through shared memory.
 
Instance: To disable EdgeMotionSpeed: synclient EdgeMotionSpeed = 0 touchpad monitoring activity: synclient-m 100. For details, see Xorg (1), syndaemon (1), synaptics (4)
 
Now I understand that synclient is related to xserver. The command writes that rc. locale cannot be executed ~ Next, I checked the synaptics package on my system, including the following: [root @ xmpan ~] # Rpm-ql xorg-x11-drv-synaptics-0.15.2-1.i386/usr/bin/synclient/usr/bin/syndaemon/usr/lib/xorg/modules/input/synaptics_drv.so/usr/share/doc/xorg-x11-drv-synaptics-0.15.2/usr/ share/doc/xorg-x11-drv-synaptics-0.15.2/COPYING/usr/share/doc/xorg-x11-drv-synaptics-0.15.2/README/usr/share/hal/fdi/policy/20 thirdparty/10-synaptics.fdi/usr/share/man/man1 /synclient.1.gz/usr/share/man/man1/syndaemon. 1. gz/usr/share/man/man4/synaptics.4.gz has synclient and syndaemon commands and documents. After a man clicks synaptics, he knows that he is a touch-based driver, allows you to adjust the settings of the touchpad to improve its performance, including sensitivity adjustment, human/Double eavesdropping settings, and many unique features. There are also many corresponding parameters, which can be achieved by modifying the corresponding parameters in Section "InputDevice" in the xorg file of the system. Since there are too many parameters, we will not study them here. If you are interested, you can take a look at this module or the FAQ in the README document released by this software package. the following describes how to control the touchpad of a notebook: Many notebook touchpad are designed improperly, and the touchpad is easily encountered, affecting normal editing. Can I enable the touchpad when necessary and disable it when not needed? The answer is yes.
 
First, modify the xorg. conf file [root @ xmpan ~]. # Vi/etc/X11/xorg. conf find the synaptic section and add two things. The first is the shared memory control, and the other is the initialization of the touchpad status.
 
Section "InputDevice"
 
Identifier "Synaptics Touchpad"
 
Driver "synaptics"
 
Option "SendCoreEvents" "true"
 
Option "Device" "/dev/psaux"
 
Option "Protocol" "auto-dev"
 
Option "HorizScrollDelta" "0" # enable shared memory control Option "SHMConfig" "on"
 
# The touchpad is initialized to disable Option "TouchpadOff" "1" # the touchpad is initialized to enable Option "TouchpadOff" 0 "EndSection to save xorg. conf restart X start X and use the tool synclient to control the touchpad through the shared memory # Close the touchpad synclient touchpadoff = 1 # Open the touchpad synclient touchpadoff = 0 command too long can be in $ HOME /. bashrc creates two alias (if the Code does not work, enter it again. It is estimated that the code is incorrect)
 
Alias synoff = 'synclient touchpadoff = 1' alias synon = 'synclient touchpadoff = 0' update alias again. ~ /. Bashrc now we can open and close the touchpad through simple synon and synoff.
 
In fact, the "Speed" of the touchpad can also be solved by modifying xorg. conf? Q. If Option "MinSpeed" "0.3" Option "MaxSpeed" "0.75", you can adjust the value based on your needs. The greater the value, the faster the speed.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.