Configurando várias configurações do mouse

2

Eu sou um usuário do thinkpad com a mão esquerda e acostumei-me a usar o trackpoint em sua configuração destra padrão. Quando eu uso meu mouse bluetooth, no entanto, eu gostaria que os botões tivessem um layout para a mão esquerda. Em 11.04 (Natty) eu posso configurá-lo manualmente usando xinput , mas eu gostaria de tê-lo aplicado automaticamente quando o mouse está conectado. Eu segui a documentação do xorg criando o /etc/X11/xorg.conf/99-ms500mouse.conf e colocando o seguinte nele:

Section "InputClass"
    Identifier "Microsoft Bluetooth Mouse 5000 button remap"
    MatchProduct "Microsoft Bluetooth Notebook Mouse 5000"
    MatchDevicePath "/dev/input/event*"
    Option "ButtonMapping"      "3 2 1 4 5 0 0 0 0 0 0 0"
EndSection

Isso parece funcionar inicialmente (o GDM parece estar usando-o corretamente), mas quando eu faço login e inicio minha sessão X, os botões são misteriosamente revertidos:

  

$ xinput get-button-map "Microsoft Bluetooth Notebook Mouse 5000"

     

1 2 3 4 5 6 7 8 9 10 11 12

O seguinte é meu /var/log/Xorg.0.log :

[   276.648] (II) config/udev: Adding input device Microsoft Bluetooth Notebook Mouse 5000 (/dev/input/mouse1)
[   276.648] (II) No input driver/identifier specified (ignoring)
[   276.649] (II) config/udev: Adding input device Microsoft Bluetooth Notebook Mouse 5000 (/dev/input/event14)
[   276.649] (**) Microsoft Bluetooth Notebook Mouse 5000: Applying InputClass "evdev pointer catchall"
[   276.649] (**) Microsoft Bluetooth Notebook Mouse 5000: Applying InputClass "Microsoft Bluetooth Mouse 5000 button remap"
[   276.649] (II) Using input driver 'evdev' for 'Microsoft Bluetooth Notebook Mouse 5000'
[   276.649] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[   276.649] (**) Microsoft Bluetooth Notebook Mouse 5000: always reports core events
[   276.649] (**) Microsoft Bluetooth Notebook Mouse 5000: Device: "/dev/input/event14"
[   276.670] (**) Microsoft Bluetooth Notebook Mouse 5000: ButtonMapping '3 2 1 4 5 0 0 0 0 0 0 0'
[   276.670] (--) Microsoft Bluetooth Notebook Mouse 5000: Found 8 mouse buttons
[   276.670] (--) Microsoft Bluetooth Notebook Mouse 5000: Found scroll wheel(s)
[   276.670] (--) Microsoft Bluetooth Notebook Mouse 5000: Found relative axes
[   276.670] (--) Microsoft Bluetooth Notebook Mouse 5000: Found x and y relative axes
[   276.670] (--) Microsoft Bluetooth Notebook Mouse 5000: Found absolute axes
[   276.670] (II) evdev-grail: failed to open grail, no gesture support
[   276.670] (II) Microsoft Bluetooth Notebook Mouse 5000: Configuring as mouse
[   276.670] (II) Microsoft Bluetooth Notebook Mouse 5000: Adding scrollwheel support
[   276.670] (**) Microsoft Bluetooth Notebook Mouse 5000: YAxisMapping: buttons 4 and 5
[   276.670] (**) Microsoft Bluetooth Notebook Mouse 5000: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[   276.670] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.1/usb4/4-2/4-2:1.0/bluetooth/hci0/hci0:11/input14/event14"
[   276.670] (II) XINPUT: Adding extended input device "Microsoft Bluetooth Notebook Mouse 5000" (type: MOUSE)
[   276.670] (II) Microsoft Bluetooth Notebook Mouse 5000: initialized for relative axes.
[   276.670] (WW) Microsoft Bluetooth Notebook Mouse 5000: ignoring absolute axes.
[   276.670] (**) Microsoft Bluetooth Notebook Mouse 5000: (accel) keeping acceleration scheme 1
[   276.670] (**) Microsoft Bluetooth Notebook Mouse 5000: (accel) acceleration profile 0
[   276.671] (**) Microsoft Bluetooth Notebook Mouse 5000: (accel) acceleration factor: 2.000
[   276.671] (**) Microsoft Bluetooth Notebook Mouse 5000: (accel) acceleration threshold: 4

Como você pode ver, parece aplicar o mapeamento de botões que eu quero (isto é, trocar os botões 3 e 1 e desabilitar todos os outros), mas uma vez que a sessão comece, isso se foi. Como posso ter certeza de que essas configurações estão certas?

Muito obrigado!

    
por Alaska 08.05.2011 / 06:18

1 resposta

2

Encontrou o problema. O gnome-settings-daemon está sobrescrevendo as configurações que eu dou ao mouse com as configurações de todo o sistema (que são definidas para destras). A única maneira de evitar esse comportamento é abrir o gconf-editor e encontrar a chave:

/apps/gnome_settings_daemon/plugins/mouse/active

E desmarque isso. Isso impedirá que ele sobrescreva as configurações especificadas em um xorg.conf (ou arquivo de fragmento em etc / X11 / xorg.conf.d /).

    
por Alaska 09.05.2011 / 04:18