通过 nx-server/player 登录时使用 xinput 调整滚动方向

通过 nx-server/player 登录时使用 xinput 调整滚动方向

我按照这些说明为我的普通 ubuntu (11.04) 桌面配置自然滚动,并且它们运行良好:

http://maketecheasier.com/reverse-mouse-scrolling-direction-in-ubuntu/2011/09/16

但即使我通过 nxserver 远程以同一用户身份登录,这些设置也不适用。因此,我尝试使用 xinput 手动调整滚动方向,如下所示:

 xinput list 
"pointer"   id=0    [XPointer]
"keyboard"  id=1    [XKeyboard]

进而:

 xinput get-button-map 0
X Error of failed request:  XI_BadDevice (invalid Device parameter)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  3 (X_OpenDevice)
  Device id in failed request: 0x0
  Serial number of failed request:  15
  Current serial number in output stream:  15

查看当前按钮映射,尝试使用以下命令更改映射:

 xinput set-button-map "pointer" 1 2 3 5 4 6 7 8 9 10 11 12 13 14 15 16
X Error of failed request:  XI_BadDevice (invalid Device parameter)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  3 (X_OpenDevice)
  Device id in failed request: 0x0
  Serial number of failed request:  15
  Current serial number in output stream:  15

导致同样的错误。有人知道该怎么做吗?

答案1

尝试一下xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16"对我有用的方法。

相关内容