Debian

奇怪的老鼠行為。滑鼠太快

  • July 22, 2013

當我在桌面上緩慢移動滑鼠時,指針通常會在我移動滑鼠的相反方向上跳躍幾個像素(一個或兩個)。嘗試在 eclipse 中的一些分號周圍設置游標時非常糟糕。我想這是錯誤設置解析度的結果。我想這是因為滑鼠最初設置得非常快,即使我這樣做xset m 1/2 3了,滑鼠對我來說也只是快速和不精確。

它試圖像這樣配置 xorg.conf:

Section "InputDevice"
   Identifier  "Configured Mouse"
   Driver      "mouse"
   Option      "Device"    "/dev/mouse"
   Option      "Protocol"  "Auto"
   Option      "Name" "Logitech G3"
   Option      "Resolution" "2000"
EndSection

但沒有任何效果。

編輯 但我認識到的一件新事情是,在滑鼠設置中,我可以將滑塊滑動到最大或最小。滑鼠行為(靈敏度)不會改變。我在 /var/log/Xorg.0.log 中也發現了一些奇怪的東西:

[   257.409] (II) config/udev: Adding input device Logitech USB Gaming Mouse (/dev/input/event1)
[   257.409] (**) Logitech USB Gaming Mouse: Applying InputClass "evdev pointer catchall"
[   257.409] (II) Using input driver 'evdev' for 'Logitech USB Gaming Mouse'
[   257.409] (**) Logitech USB Gaming Mouse: always reports core events
[   257.409] (**) evdev: Logitech USB Gaming Mouse: Device: "/dev/input/event1"
[   257.409] (--) evdev: Logitech USB Gaming Mouse: Vendor 0x46d Product 0xc042
[   257.409] (--) evdev: Logitech USB Gaming Mouse: Found 20 mouse buttons
[   257.409] (--) evdev: Logitech USB Gaming Mouse: Found scroll wheel(s)
[   257.409] (--) evdev: Logitech USB Gaming Mouse: Found relative axes
[   257.409] (--) evdev: Logitech USB Gaming Mouse: Found x and y relative axes
[   257.409] (II) evdev: Logitech USB Gaming Mouse: Configuring as mouse
[   257.409] (II) evdev: Logitech USB Gaming Mouse: Adding scrollwheel support
[   257.409] (**) evdev: Logitech USB Gaming Mouse: YAxisMapping: buttons 4 and 5
[   257.409] (**) evdev: Logitech USB Gaming Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[   257.409] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.1/usb3/3-1/3-1:1.0/input/input1/event1"
[   257.409] (II) XINPUT: Adding extended input device "Logitech USB Gaming Mouse" (type: MOUSE, id 8)
[   257.409] (II) evdev: Logitech USB Gaming Mouse: initialized for relative axes.
[   257.409] (**) Logitech USB Gaming Mouse: (accel) keeping acceleration scheme 1
[   257.409] (**) Logitech USB Gaming Mouse: (accel) acceleration profile 0
[   257.409] (**) Logitech USB Gaming Mouse: (accel) acceleration factor: 2.000
[   257.409] (**) Logitech USB Gaming Mouse: (accel) acceleration threshold: 4
[   257.409] (II) config/udev: Adding input device Logitech USB Gaming Mouse (/dev/input/mouse0)
[   257.409] (II) No input driver specified, ignoring this device.
[   257.409] (II) This device may have been added with another device file.

我的問題仍然是:

如何在 Debian wheezy 中正確設置滑鼠?

好吧,這需要一段時間。但我有一個解決方案。同時我什至買了一隻新滑鼠。

當您的滑鼠具有高 dpi 時,您可以使用其標準 dpi 並以最小加速度(無論如何都會很快)按照以下步驟操作:

  1. 得到xinput

$ sudo apt-get install xinput 2. 列出您的輸入設備

xinput --list

你應該得到這樣的輸出:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer            id=4    [slave  pointer  (2)]
⎜   ↳ HID 1d57:0005                         id=8    [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)]
   ↳ Power Button                          id=7    [slave  keyboard (3)]
   ↳ AT Translated Set 2 keyboard          id=10   [slave  keyboard (3)]
  1. 我的情況是我的“HAMA uRAGE”是 HID 1d57:0005。記住它的id。
  2. 現在魔法來了。我希望能夠提高解析度,但 debian obv 不希望我這樣做。輸入:
xinput set-float-prop <id> 'Device Accel Constant Deceleration' <d>;

where 將替換為滑鼠的 id 和減速因子。你必須玩一點。像我這樣的。至少 X 不需要重新啟動來應用更改。問候

編輯:

使其永久編輯 X11 設置。

sudo nano /etc/X11/xorg.conf

添加:選項“ConstantDeceleration”“10”

例子:

Section "InputClass"
  Identifier "My mouse"
  MatchIsPointer "true"
  Option "ConstantDeceleration" "10"
EndSection 

但是,如果您經常更改您的系統並希望擁有某種可移植配置,請添加xinput到您的 .xinitrc。

我的是

xinput --set-prop "HID 1d57:0005" "Device Accel Constant Deceleration" 2

引用自:https://unix.stackexchange.com/questions/56045