Скроллінг середньою клавішею TrackPoint в ноутбуках IBM ThinkPad
From ArchWiki
В ОС Windows середня (синя) клавіша трекпойнта при натисненні дозволяє скролити вміст вікон.
Аналогічно його можна налаштувати в Linux.
Тестовано на IBM ThinkPad T21
Базується на http://www.cs.technion.ac.il/~gsasha/laptop/index.html
В мене TrackPoint в системі це /dev/input/mouse1. Зовнішня USB-миша підключається на /dev/input/mouse2
Налаштування xorg.conf для миші виглядають так:
Section "InputDevice" # TrackPoint section Identifier "Mouse0" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/input/mouse1" Option "ZAxisMapping" "4 5 6 7" Option "EmulateWheel" "True" Option "EmulateWheelButton" "2" EndSection Section "InputDevice" # USB-mouse section Identifier "Mouse1" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/input/mouse2" Option "ZAxisMapping" "4 5 6 7" Option "Emulate3Buttons" EndSection Section "ServerLayout" Identifier "Simple Layout" Screen "Screen 1" InputDevice "Mouse0" "CorePointer" InputDevice "Mouse1" "SendCoreEvents" InputDevice "Keyboard1" "CoreKeyboard" EndSection
Проблема в тому, що зовнішня миша, що підключається до порта PS/2 в системі на /dev/input/mouse0, так само, як і трекпоінт. Тому PS/2 миша не хоче скролити вміст коліщатком :(.