Интересные игры. Правильная настройка видеодрайвера. Активизация дополнительных кнопок мыши.
Установим две игры: sudo aptitude install freedroidrpg frozen-bubble. Говорят, что Freedroidrpg - это Diablo-клон. Frozen-bubble - известная аркада, расстреливаем цветными шарами, опускающийся потолок из них же:
Полезная статья для настройки драйвера. Узнаём видео-режимы, поддерживаемые монитором. Генерируем моделайны, пример: gtf 1152 864 75 и вписываем их в х-орг без частоты. Получается так:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "ServerFlags"
Option "Xinerama" "0"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-1"
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 75.0
ModeLine "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
ModeLine "800x600" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
ModeLine "800x600" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
ModeLine "1024x768" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
ModeLine "1280x960" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
ModeLine "1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 8600 GT"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "UseFBDev" "true"
Option "RenderAccel" "True"
Option "AllowGLXWithComposite" "True"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "UseDisplayDevice" "CRT-0"
Option "TwinView" "0"
Option "metamodes" "1152x864_70 +0+0; 1152x864_60 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Полезная статья для настройки мыши. Устанавливаем утилиту imwheel: sudo apt-get install imwheel. Её конфигурационные файлы лежат в каталоге /etc/X11/imwheel. Правка startup.conf у меня на работу мыши не повлияла, добавил приложение в автозагрузку вручную. Тест на всякий случай:
IMWHEEL_START=1
IMWHEEL_PARAMS='-k -b "8 9"'
Номера кнопок можно получить, вызвав в консоли xev. Их названия - с помощью команды imwheel --config. Файл imwheelrc получился такой:
"SMPlayer"
None, Thumb1, 9
None, Thumb2, 0
"Krusader"
None, Thumb1, Left
None, Thumb2, Right
"Konsole"
None, Thumb1, Home
None, Thumb2, End
".*"
None, Thumb1, Alt_L|Left
None, Thumb2, Alt_L|Right
