วันจันทร์ที่ 12 กรกฎาคม พ.ศ. 2553

การเซ็ต trackpoint ของ thinkpad ใน Ubuntu

โดยปกติแล้วใน windows จะมี software ชื่อ UltraNav สำหรับควบคุมการทำงานของ trackpoint ทำให้ผู้ใช้ thinkpad บน windows สามารถควบคุม trackpoint ได้ แต่ใน ubuntu ต้องทำการแก้ไขไฟล์บางไฟล์เล็กน้อย เพื่อให้สามารถใช้ความสามารถของ trackpoint อย่างเต็มที่ได้ มีขั้นตอนดังนี้

1. สร้างไฟล์ /usr/lib/X11/xorg.conf.d/20-thinkpad.conf โดยใช้คำสั่ง
sudo gedit /usr/lib/X11/xorg.conf.d/20-thinkpad.conf

2. เพิ่มข้อความดังนี้ลงไปในไฟล์
Section "InputClass"
    Identifier "Trackpoint Wheel Emulation"
    MatchProduct "TrackPoint"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "EmulateWheel" "true"
    Option "EmulateWheelButton" "2"
    Option "Emulate3Buttons" "false"
    Option "XAxisMapping" "6 7"
    Option "YAxisMapping" "4 5"
EndSection

3. save ไฟล์ และทำการ restart โดยใช้คำสั่ง
sudo /etc/init.d/gdm restart

4. จะสามารถใช้ trackpoint ร่วมกับปุ่มกลางของ touchpad ได้

reference:
http://psung.blogspot.com
http://thaipats.buddythai.com

ไม่มีความคิดเห็น:

แสดงความคิดเห็น