看板 Linux 關於我們 聯絡資訊
之前有好心的人跟我說可以看 evdev 的 DragLockButtons , /etc/X11/xorg.conf.d/ 或是libinput 我看了這份文件 https://tinyurl.com/qooofev 還是不懂DragLockButtons的說明 它寫說如果只設一個值,代表"meta" locking button 設一對值,代表第一個值為lock button第二個值為logical button number 我想要設定滑鼠左鍵為DragLockButtons 我的設定文件似乎都是在/usr/share/X11/xorg.conf.d下 在/etc/X11下並沒有xorg.conf.d資料夾 但是我找不到"Log"Logitech USB Optical Mouse"的設定檔在哪 在目錄下用grep找也找不到 另外我從xinput list-props 9中沒看到ButtonMapping 所以參照下面這份文件試著用xinput set-prop來設定 也完全沒作用 https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse 請問該怎麼設才對? 謝謝 以下是我的Ubuntu xinput list畫面 root@sw-Veriton-M4610:~# xinput list Virtual core pointer id=2 [master pointer (3)] Virtual core XTEST pointer id=4 [slave pointer (2)] Logitech USB Optical Mouse id=9 [slave pointer (2)] ATEN UC-10KM V1.3.124 id=12 [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)] ATEN UC-10KM V1.3.124 id=10 [slave keyboard (3)] Chicony USB Keyboard id=11 [slave keyboard (3)] Chicony USB Keyboard id=13 [slave keyboard (3)] root@sw-Veriton-M4610:~# xinput list-props 9 Device 'Logitech USB Optical Mouse': Device Enabled (133): 1 Coordinate Transformation Matrix (135): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Accel Profile (260): 0 Device Accel Constant Deceleration (261): 1.000000 Device Accel Adaptive Deceleration (262): 1.000000 Device Accel Velocity Scaling (263): 10.000000 Device Product ID (250): 1133, 49271 Device Node (251): "/dev/input/event4" Evdev Axis Inversion (264): 0, 0 Evdev Axes Swap (266): 0 Axis Labels (267): "Rel X" (143), "Rel Y" (144), "Rel Vert Wheel" (259) Button Labels (268): "Button Left" (136), "Button Middle" (137), "Button Right" (138), "Button Wheel Up" (139), "Button Wheel Down" (140), "Button Horiz Wheel Left" (141), "Button Horiz Wheel Right" (142), "Button Side" (254), "Button Extra" (255), "Button Forward" (256), "Button Back" (257), "Button Task" (258), "Button Unknown" (253), "Button Unknown" (253), "Button Unknown" (253), "Button Unknown" (253) Evdev Scrolling Distance (269): 1, 1, 1 Evdev Middle Button Emulation (270): 0 Evdev Middle Button Timeout (271): 50 Evdev Third Button Emulation (272): 0 Evdev Third Button Emulation Timeout (273): 1000 Evdev Third Button Emulation Button (274): 3 Evdev Third Button Emulation Threshold (275): 20 Evdev Wheel Emulation (276): 0 Evdev Wheel Emulation Axes (277): 0, 0, 4, 5 Evdev Wheel Emulation Inertia (278): 10 Evdev Wheel Emulation Timeout (279): 200 Evdev Wheel Emulation Button (280): 4 Evdev Drag Lock Buttons (281): 0 我不曉得Drag Lock Buttons要怎麼設定才是正確的?也有試過其他數字 如果設定xinput set-prop 9 281 136 會顯示BadValue(integer parameter out of range for operation) root@sw-Veriton-M4610:~# xinput set-prop 9 281 2 2 (無作用) root@sw-Veriton-M4610:/usr/share/X11/xorg.conf.d# ls 10-amdgpu.conf 10-quirks.conf 11-evdev-trackpoint.conf 50-vmmouse.conf 51-synaptics-quirks.conf 10-evdev.conf 11-evdev-quirks.conf 50-synaptics.conf 50-wacom.conf ※ 引述《upufuxup (HelloRain)》之銘言: : Windows 的滑鼠設定裡,可以啟動"點選鎖定", : 讓使用者在反白或拖曳時,不須一直按著滑鼠, : 只要按一下滑鼠鍵,放開,再按一次滑鼠鍵即可 : 我想要在Ubuntu裡也啟用這個功能 : 我查了imwheel跟xmodmap的設定教學,可是都找不到怎麼設定"點選鎖定" : 請問有甚麼方法可以在Ubuntu上設定滑鼠"點選鎖定"? : 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.222.86.79 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1584332600.A.433.html ※ 編輯: upufuxup (61.222.86.79 臺灣), 03/16/2020 12:26:04 ※ 編輯: upufuxup (61.222.86.79 臺灣), 03/16/2020 12:32:58