มาปรับแต่ง touchpad กันเถอะ
Posted in:
ทำได้แล้วเลยเอามาบอกกล่าวกันต่อ ก่อนอื่นคิดว่าต้องลง xserver-xorg-input-synaptics ก่อนนะ แล้วเข้าไปแก้ที่ /etc/X11/xorg.conf นั่นแหละครับ ให้หาบรรทัด
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
Option "SHMConfig" "on" #เพิ่ม
Option "AccelFactor" "0.03" #เพิ่ม
Option "MinSpeed" "0.5" #เพิ่ม
EndSection
ผมใส่ไปเพียง 3 บรรทัดเท่านั้น อันแรกใส่ SHMConfig "on" เพื่อให้สามารถ config touchpad ได้ก่อน ทีนี้อีก 2 อันคือ AccelFactor กับ MinSpeed ผมไปเพิ่ม ให้มันลาก mouse ได้เร็วขึ้นเท่านั้นเอง ส่วนเรื่อง sensitive มันหายไปแล้วตั้งแต่ผมใส่ SHMConfig มันก็มีค่า default ให้เลย ซึ่งใช้การได้ดี
ถ้าต้องการดู option ทั้งหมด
~$ synclient -l
ถ้าต้องการ set เป็นครั้งๆ ไป
~$ synclient [var=value]
เช่น ~$ synclient AccelFactor=0.03
แต่วิธีนี้ค่าจะกลับมา default เมื่อ restartx เอาไว้ใช้ทดสอบเท่านั้น ถ้าให้ถาวรเลยต้องใส่ใน xorg.conf แบบที่ใส่ไว้ให้ดูด้านบน
ส่วน option อื่นๆ ก็ตามด้านล่างนี้แหละ หาทางเล่นต่อกันเองน้อ ผมก็ยังเข้าใจไม่ทั้งหมด
# switch on/off shared memory for configuration
Option "SHMConfig" "on"
# coordinates of the edges
Option "LeftEdge" "120"
Option "RightEdge" "855"
Option "TopEdge" "120"
Option "BottomEdge" "650"
# When finger pressure drops below this value,
# the driver counts it as a release.
Option "FingerLow" "14"
# When finger pressure drops below this value,
# the driver counts it as a release.
Option "FingerHigh" "15"
# max. time (in milliseconds) for detecting a tap
Option "MaxTapTime" "180"
# max. movement of the finger for detecting a tap
Option "MaxTapMove" "110"
# max. time (in milliseconds) for detecting a double tap
Option "MaxDoubleTapTime" "100" #
# the duration of the mouse click generated by tapping
Option "ClickTime" "130" #
# move distance of the finger for a scroll event
Option "VertScrollDelta" "100"
Option "HorizScrollDelta" "100"
# finger pressure at which minimum edge motion speed is set
Option "EdgeMotionMinZ" "30"
# finger pressure at which maximum edge motion speed is set
Option "EdgeMotionMaxZ" "100"
# slowest setting for edge motion speed
Option "EdgeMotionMinSpeed" "12"
# fastest setting for edge motion speed
Option "EdgeMotionMaxSpeed" "20"
# If on, edge motion is also used for normal movements,
# if off, egde motion is used only when dragging
Option "EdgeMotionUseAlways" "off"
# repeater device
Option "Repeater" "/dev/input/event1"
# min./max. speed factor
Option "MinSpeed" "0.35" #
Option "MaxSpeed" "1" #
# acceleration factor
Option "AccelFactor" "2.0" #
# If on, the up/down buttons generate button 4/5 events.
# If off, the up button generates a double click and
# the down button generates a button 2 event.
Option "UpDownScrolling" "on"
# max time (in milliseconds) for middle button emulation.
Option "EmulateMidButtonTime" "75"
# If on, the Touchpad is switched off
# (useful if an external mouse is connected)
Option "TouchpadOff" "off"
# switch on/off guest mouse (often a stick)
Option "GuestMouseOff" "off
# If off, a tap and drag gesture ends when you release the finger.
# If on, the gesture is active until you tap a second time.
Option "LockedDrags" "on"
# Which mouse button is reported on a top corner tap
# (RT right top, RB right bottom, LT left top, LB left bottom)
# 0=No action, 1=Left Button, 2=Middle Button, 3=Right Button
Option "RTCornerButton" "0"
Option "RBCornerButton" "0"
Option "LTCornerButton" "2"
Option "LBCornerButton" "2"
# Which mouse button is reported on a non-corner
# (one|two|three)-finger tap.
# 0=No action, 1=Left Button, 2=Middle Button, 3=Right Button
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
# If on, circular scrolling is used (see below)
Option "CircularScrolling" "off"
# Move angle (radians) of finger to generate a scroll event
Option "CircScrollDelta"
# Trigger region on the touchpad to start circular scrolling
# 0=All Edges, 1=Top Edge, 2=Top Right Corner, 3=Right Edge, 4=Bottom Right Corner,
# 5=Bottom Edge, 6=Bottom Left Corner, 7=Left Edge, 8=Top Left Corner
Option "CircScrollTrigger"
# Instead of being a rectangle, the edge is the ellipse
# enclosed by the Left/Right/Top/BottomEdge parameters.
# For circular touchpads.
Option "CircularPad" "off"
** สำหรับใครไม่ชอบพิมพ์ มีแบบ graphic ให้ด้วยคือ qsynaptics และ ksynaptics (อันนี้ดูเหมือนจะเปิดปิดได้อย่างเดียว) เป็นของฝั่ง kde เค้า (ไม่ได้เปิดประเด็นนะ 55) แต่จริงๆ พอเปิดออกมาดูก็มึนพอๆ กันแหละ ต่างกันแค่จะใช้ keyboard หรือ mouse จัดการเท่านั้นเอง เหอๆๆ
Help option เอามาจาก
http://ubuntuforums.org/archive/index.php/t-3994.html


Post new comment