Linux 板


LINE

我是直接写一个新文件丢到 xorg.conf.d 下, 如果 /etc/X11/xorg.conf.d 不存在的话, 就试试看放 /usr/share/X11/xorg.conf.d 有没效, 不然就自己建立 /etc/X11/xorg.conf.d 。 像这是我的: ``` Section "InputClass" Identifier "effecient touch pad" MatchProduct "Touchpad" Driver "libinput" # below property in man-page libinput(4) Option "TappingDrag" "True" Option "Tapping" "True" Option "AccelProfile" "adaptive" Option "AccelSpeed" "1.0" EndSection ``` Identifier 似乎是自己取一个不和其它 section 重复的名字即可。 然後会依 MatchProduct 寻找对应的装置。 例如我的 xinput list 的输出: ``` Virtual core pointer id=2 [master pointer (3)] Virtual core XTEST pointer id=4 [slave pointer (2)] ETPS/2 Elantech Touchpad id=12 [slave pointer (2)] ETPS/2 Elantech TrackPoint id=13 [slave pointer (2)] UFO-MSW-BT730 id=15 [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)] Sleep Button id=9 [slave keyboard (3)] Integrated Camera: Integrated C id=10 [slave keyboard (3)] AT Translated Set 2 keyboard id=11 [slave keyboard (3)] ThinkPad Extra Buttons id=14 [slave keyboard (3)] ``` 其中 id 12 的名字里有 TouchPad, 所以该 section 内的设定就会在 id 12 装置上生效。 修改设定档後,要重启 xserver 才会生效。 如果是 gdm : systemctl restart gdm lightdm : systemctl restart lightdm 可能要登出 x window , 用 ctrl-alt-f2 切到 tty 下操作比较好。 至於直接用 xinput set-prop 设定, 我也不确定。 ※ 引述《upufuxup (HelloRain)》之铭言: : 之前有好心的人跟我说可以看 : 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上设定滑鼠"点选锁定"? : : 谢谢 -- sent from mySQL. --



※ 发信站: 梦之大地 (ccns.cc), 来自: 140.116.249.140
※ 文章网址: telnet://ccns.cc/
1F:推 foo: 这作者……02/30 22:66
2F:推 void: 奇文共赏!!02/30 28:19
--



※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 140.113.127.95 (台湾)
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Linux/M.1584335906.A.C8B.html ※ 编辑: Gold740716 (140.113.127.95 台湾), 03/16/2020 13:20:28
3F:推 DreamBBS: 真。站签请用 https://i.imgur.com/1VwZTrB.png 谢谢! 03/16 23:12
ID 正确 ※ 编辑: Gold740716 (140.113.127.95 台湾), 03/17/2020 00:37:51 连 ip 都正确,我都不晓得该说什麽了。 【 查询网友 】 《ID昵称》DreamBBS (telnet://ccns.cc )《经济状况》赤贫 《登入次数》65 次 (同天内只计一次) 《有效文章》2 篇 (退:0) 《目前动态》不在站上 《私人信箱》最近无新信件 《上次上站》03/16/2020 23:09:14 Mon 《上次故乡》140.116.249.140 《 五子棋 》 0 胜 0 败 0 和 《象棋战绩》 0 胜 0 败 0 和 ~ $ host ccns.cc ccns.cc has address 140.116.249.140 ※ 编辑: Gold740716 (140.113.127.95 台湾), 03/17/2020 00:42:30
4F:推 brli7848: 先拜为敬 03/17 16:04







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:iOS站内搜寻

TOP