Create TOC

2021년 1월 13일

Debian/UltraNav Travel 터치 패드 설정

탭 클릭과 스크롤 방향을 자연스럽게 바꾸도록 설정한다.

xinput을 사용해서 UltrNav의 터치 패드 장치를 찾는다.

$ xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ UNIW0001:00 093A:0255 Mouse               id=12   [slave  pointer  (2)]
⎜   ↳ UNIW0001:00 093A:0255 Touchpad            id=13   [slave  pointer  (2)]
⎜   ↳ Synaptics Inc. Composite TouchPad / TrackPoint (Stick)    id=15   [slave  pointer  (2)]
⎜   ↳ 2.4G Mouse                                id=16   [slave  pointer  (2)]
⎜   ↳ Synaptics Inc. Composite TouchPad / TrackPoint    id=20   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Power Button                              id=8    [slave  keyboard (3)]
    ↳ Lid Switch                                id=9    [slave  keyboard (3)]
    ↳ Sleep Button                              id=10   [slave  keyboard (3)]
    ↳ HD Webcam: HD Webcam                      id=11   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=14   [slave  keyboard (3)]
    ↳ Lite-On Tech IBM USB Travel Keyboard with UltraNav Consumer Control       id=17   [slave  keyboard (3)]
    ↳ Lite-On Tech IBM USB Travel Keyboard with UltraNav        id=18   [slave  keyboard (3)]
    ↳ Lite-On Tech IBM USB Travel Keyboard with UltraNav System Control id=19   [slave  keyboard (3)]

찾은 장치에서 Tapping, Natural Scrolling 속성이 있는지 찾아본다.

$ xinput list-props "Synaptics Inc. Composite TouchPad / TrackPoint" | grep -i "Tapping Enabled"
        libinput Tapping Enabled (304): 0
        libinput Tapping Enabled Default (305): 0
$ xinput list-props "Synaptics Inc. Composite TouchPad / TrackPoint" | grep -i "Natural Scrolling Enabled"
        libinput Natural Scrolling Enabled (286):       0
        libinput Natural Scrolling Enabled Default (287):       0

xinput으로 속성을 바꾸고 원하는대로 동작하는지 확인한다.

$ xinput set-prop "Synaptics Inc. Composite TouchPad / TrackPoint" "libinput Tapping Enabled" 1
$ xinput set-prop "Synaptics Inc. Composite TouchPad / TrackPoint" "libinput Natural Scrolling Enabled" 1

다음에 X를 다시시작해도 적용하기 위해서 아래 내용으로 /etc/X11/xorg.conf.d/ultranav.conf 파일을 만든다.

Section "InputClass"
    Identifier "Synaptics Inc. Composite TouchPad / TrackPoint"
    MatchProduct "Synaptics Inc. Composite TouchPad / TrackPoint"
    MatchDriver "libinput"
    Option "Tapping" "on"
    Option "Natural Scrolling" "on"
EndSection