Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Linux

วิธีแก้ไข Touchpad ไม่ทำงานใน Linux

Linux ใช้งานง่ายขึ้นมาก แต่บนแลปท็อป (โดยเฉพาะรุ่นใหม่) Touchpad ยังคงเป็นปัญหา บางครั้งต้อง troubleshooting แบบลึกถึงระดับ kernel/driver

ตรวจสอบเบื้องต้น

หากต่อเมาส์ภายนอก ให้ตรวจใน System Settings ว่าปิด "Disable touchpad when mouse is connected" ไว้หรือไม่

ตรวจสอบว่าระบบจดจำ Touchpad หรือไม่

cat /proc/bus/input/devices

หรือกรองเฉพาะ touchpad:

cat /proc/bus/input/devices | grep -i touchpad

ควรเห็นข้อมูลแบบนี้ (ตัวอย่าง Synaptics):

I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio2/input0
S: Sysfs=/devices/platform/i8042/serio2/input/input8
H: Handlers=mouse2 event8

หากไม่เห็นข้อมูลคล้ายกัน → อาจเป็น kernel bug หรือฮาร์ดแวร์ไม่ได้รับการจดจำ

หากเห็นข้อมูล → รัน xinput list หากแสดง touchpad แสดงว่าใกล้แก้ไขได้แล้ว (ติดตั้ง driver หรือ config)

หาและติดตั้ง Driver ที่เหมาะสม

จาก xinput ดู vendor (Synaptics, ALPS, Elantech) ติดตั้งแพ็กเกจ driver:

# Ubuntu/Debian
sudo apt install xserver-xorg-input-libinput xserver-xorg-input-evdev xserver-xorg-input-mouse

บางกรณีต้องการ driver เฉพาะ:

sudo apt install xserver-xorg-input-synaptics

การตรวจสอบเพิ่มเติม

เข้า Settings → Mouse & Touchpad:

  • บาง distro รวม Mouse และ Touchpad เป็นเมนูเดียว
  • หากมีเมนู Touchpad แยก ให้ Enable และตั้ง Scroll speed / Mouse speed ให้พอสมควร

ตรวจสอบ BIOS: บางแลปท็อปปิด touchpad ได้ใน BIOS (restart แล้วกดปุ่มเข้าตาม廠牌)

ตรวจสอบปุ่มลัด (Fn + Function key): หลายรุ่นมีปุ่มปิด touchpad แบบฮาร์ดแวร์

หากยังไม่ทำงาน

ลองใช้ Linux distro ใหม่กว่า (kernel ใหม่ = รองรับฮาร์ดแวร์ดีกว่า) หากใช้ distro ล่าสุดแล้วยังไม่ได้ → อาจต้องใช้เมาส์ไร้สายแทน

อ่านเพิ่ม: เมาส์เกมมิ่งสำหรับ Linux และ auto-cpufreq ประหยัดแบตเตอรี่แลปท็อป