Почему левосторонняя сенсорная панель не может быть включена через настройки xorg?

Недавно я обнаружил, что libinput в Ubuntu 18.04 является дефектным в том смысле, что он может быть установлен только временно через xinput, но не через файлы xorg: Следующая команда может успешно установить свойство LeftHanded моей сенсорной панели:

peng@peng-tribbloid:~$ xinput set-prop 19 "libinput Left Handed Enabled" 1                                                          
peng@peng-tribbloid:~$ xinput list-props 19
Device 'ELAN1203:00 04F3:307A Touchpad':                                                                                                                                                      
        Device Enabled (168):   1                                                                                                                                                             
        Coordinate Transformation Matrix (170): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000                                                      
        libinput Tapping Enabled (320): 1                                                                                                                                                     
        libinput Tapping Enabled Default (321): 0                                                                                                                                             
        libinput Tapping Drag Enabled (322):    1                                                                                                                                             
        libinput Tapping Drag Enabled Default (323):    1                                                                                                                                     
        libinput Tapping Drag Lock Enabled (324):       0                                                                                                                                     
        libinput Tapping Drag Lock Enabled Default (325):       0
        libinput Tapping Button Mapping Enabled (326):  1, 0
        libinput Tapping Button Mapping Default (327):  1, 0
        libinput Natural Scrolling Enabled (302):       1
        libinput Natural Scrolling Enabled Default (303):       0
        libinput Disable While Typing Enabled (328):    1
        libinput Disable While Typing Enabled Default (329):    1
        libinput Scroll Methods Available (304):        1, 1, 0
        libinput Scroll Method Enabled (305):   1, 0, 0
        libinput Scroll Method Enabled Default (306):   1, 0, 0
        libinput Accel Speed (311):     0.205882
        libinput Accel Speed Default (312):     0.000000
        libinput Left Handed Enabled (316):     1
        libinput Left Handed Enabled Default (317):     0
        libinput Send Events Modes Available (287):     1, 1
        libinput Send Events Mode Enabled (288):        0, 0
        libinput Send Events Mode Enabled Default (289):        0, 0
        Device Node (290):      "/dev/input/event28"
        Device Product ID (291):        1267, 12410
        libinput Drag Lock Buttons (318):       6
        libinput Horizontal Scroll Enabled (319):       1

Но когда я включаю его в файле xorg (в /etc/X11/xorg.conf.d/30-touchpad.conf):

Section "InputClass"
    Identifier "touchpad"
    Driver "libinput"
    MatchIsTouchpad "on"

# see http://manpages.ubuntu.com/manpages/bionic/man4/libinput.4.html for details
    Option "TappingButtonMap" "lrm"
    Option "ButtonMapping" "6 3 1 4 5 6 7"
    Option "LeftHandedEnabled" "1"
    Option "libinput Left Handed Enabled" "1"

    Option "DragLockButtons" "6"
EndSection

После перезагрузки все остальное в файле устанавливается правильно, кроме LeftHandedness:

peng@peng-tribbloid:~$ xinput list-props 19
Device 'ELAN1203:00 04F3:307A Touchpad':                                                                                                                                                      
        Device Enabled (168):   1                                                                                                                                                             
        Coordinate Transformation Matrix (170): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000                                                      
        libinput Tapping Enabled (320): 1                                                                                                                                                     
        libinput Tapping Enabled Default (321): 0                                                                                                                                             
        libinput Tapping Drag Enabled (322):    1                                                                                                                                             
        libinput Tapping Drag Enabled Default (323):    1                                                                                                                                     
        libinput Tapping Drag Lock Enabled (324):       0                                                                                                                                     
        libinput Tapping Drag Lock Enabled Default (325):       0
        libinput Tapping Button Mapping Enabled (326):  1, 0
        libinput Tapping Button Mapping Default (327):  1, 0
        libinput Natural Scrolling Enabled (302):       1
        libinput Natural Scrolling Enabled Default (303):       0
        libinput Disable While Typing Enabled (328):    1
        libinput Disable While Typing Enabled Default (329):    1
        libinput Scroll Methods Available (304):        1, 1, 0
        libinput Scroll Method Enabled (305):   1, 0, 0
        libinput Scroll Method Enabled Default (306):   1, 0, 0
        libinput Accel Speed (311):     0.205882
        libinput Accel Speed Default (312):     0.000000
        libinput Left Handed Enabled (316):     0
        libinput Left Handed Enabled Default (317):     0
        libinput Send Events Modes Available (287):     1, 1
        libinput Send Events Mode Enabled (288):        0, 0
        libinput Send Events Mode Enabled Default (289):        0, 0
        Device Node (290):      "/dev/input/event28"
        Device Product ID (291):        1267, 12410
        libinput Drag Lock Buttons (318):       6
        libinput Horizontal Scroll Enabled (319):       1
peng@peng-tribbloid:~$ 

Почему левосторонняя настройка является таким исключением? Это ошибка в libinput?

0
задан 13 July 2019 в 05:24

0 ответов

Другие вопросы по тегам:

Похожие вопросы: