Logitech Marble 마우스 - Linux 스크롤 수정자 설정

Logitech Marble 마우스 - Linux 스크롤 수정자 설정

Linux에서 '뒤로' 버튼이 스크롤 수정자로 변경되도록 Logitech Marble 마우스를 어떻게 설정합니까? IE: '뒤로' 버튼을 누르고 있으면 이제 트랙볼 컨트롤이 스크롤됩니다.

답변1

저는 Arch 파생물(Antergos)을 사용하고 있으며 이 구성은마블 마우스 위키 페이지.

다음을 추가하십시오./usr/share/X11/xorg.conf.d/40-libinput.conf파일...

# Section added for scroll with Marble Mouse
Section "InputClass"
    Identifier      "Marble Mouse"
    MatchProduct    "Logitech USB Trackball"
    Driver          "libinput"
    Option          "ButtonMapping" "1 2 3 4 5 6 7 0 9"
    Option          "ScrollMethod" "button"
    Option          "ScrollButton" "8"
    Option          "MiddleEmulation" "on"
EndSection

스크롤을 시도할 때 가끔 실행되기 때문에 뒤로 버튼 작업이 비활성화되었습니다.

답변2

드라이버를 사용할 수도 있습니다 evdev. 그렇게 하려면 새 항목에 다음을 추가하세요./usr/share/X11/xorg.conf.d/50-marble-mouse.conf

Section "InputClass"
        Identifier  "Marble Mouse"
        MatchProduct "Logitech USB Trackball"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "ButtonMapping" "1 2 3 4 5 6 7 8 9"
        Option "EmulateWheel" "true"
        Option "EmulateWheelButton" "8"
        Option "ZAxisMapping" "4 5"
        Option  "XAxisMapping" "6 7"
        Option  "Emulate3Buttons" "true"
EndSection

위 구성은 Ubuntu 18.04에서는 작동하지만 ThinkPad R60에서 실행되는 Xubuntu 18.04에서는 작동하지 않습니다. 후자의 경우 Peter가 위에 게시한 구성을 사용해야 합니다 libinput.

답변3

다음 구성을 사용합니다(@PeterL과 유사하지만 뒤로 버튼을 비활성화하지 않음)

/etc/X11/xorg.conf.d/10-libinput.conf

섹션 "입력 클래스"
     식별자 "대리석 마우스"
     MatchProduct "로지텍 USB 트랙볼"
     드라이버 "libinput"
     옵션 "ScrollMethod" "버튼"
     옵션 "ScrollButton" "8"
     옵션 "AccelSpeed" "1"
     # 옵션 "TransformationMatrix" "2.4 0 0 0 2.4 0 0 0 1"
끝섹션

주석이 달린 TransformationMatrix를 사용하면 픽셀을 건너뛰고 더 빠르게 이동할 수 있지만 대신 아래와 같이 DPI를 변경하는 것을 선호합니다.

  • /etc/udev/hwdb.d/71-mouse-local.hwdb를 통해 사용자 정의 DPI 설정
# 로지텍 마블 마우스
#id 획득 방법: mouse-dpi-tool /dev/input/event4
마우스:usb:v046dpc408:이름:Logitech USB 트랙볼:
# 아래 공간을 유지하세요
 MOUSE_DPI=100@125

그런 다음 udevadm hwdb --update플러그 udevadm control --reload-rules && udevadm trigger를 뽑고 마우스를 연결합니다. 100의 DPI는 일부에게는 너무 민감할 수 있으므로 200@125로 대체할 수 있습니다.

관련 정보