Tôi không chắc tại sao khóa của họ không hoạt động cho máy tính xách tay của bạn. Nhưng tôi có thể đề xuất một sự thay thế chung.
Đặt mã sau vào một tệp, chẳng hạn như touchpad_toggle.sh
:
#!/bin/bash
STATUS=`gsettings get org.gnome.desktop.peripherals.touchpad send-events`
if [ "$STATUS" = "'enabled'" ]
then
gsettings set org.gnome.desktop.peripherals.touchpad send-events 'disabled'
else
gsettings set org.gnome.desktop.peripherals.touchpad send-events 'enabled'
fi
Cấp quyền cho tập tin thực thi:
chmod +x touchpad_toggle.sh
Thêm lối tắt bàn phím vào tệp từ Cài đặt → Thiết bị → Bàn phím .