Привет.
Mandriva Linux 2008 Free
Не переключается мышь под левую руку. Меняю порядок кнопок для левшей в Центре Управления, меняет и сохраняет настройки, но клавиши мыши не меняются местами. Очень неудобно. Подскажите где подправить.
Мышь для левши
Модератор: Bizdelnick
-
sash-kan
- Администратор
- Сообщения: 13939
- Статус: oel ngati kameie
- ОС: GNU
Re: Мышь для левши
например. что-то типав клавиатурной секции xorg.conf.
в помощь:
$ man 4x mouse
http://www.google.com.ru/linux?hl=ru&q...se+swap+buttons
Код: Выделить всё
Option "ButtonMapping" "3 2 1 4 5"в помощь:
$ man 4x mouse
http://www.google.com.ru/linux?hl=ru&q...se+swap+buttons
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
при сбоях форума см.блог
-
Logot
- Сообщения: 58
- ОС: Linux Mandrake 9.1
Re: Мышь для левши
sash-kan писал(а): ↑26.01.2008 22:13например. что-то типав клавиатурной секции xorg.conf.Код: Выделить всё
Option "ButtonMapping" "3 2 1 4 5"
в помощь:
$ man 4x mouse
http://www.google.com.ru/linux?hl=ru&q...se+swap+buttons
подправил /etc/X11/xorg.conf, сейчас так:
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "ButtonMapping" "3 2 1 4 5"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
EndSection
на man 4x mouse
Ничего нет про mouse в разделе 4x руководства
на xmodmap -e "pointer = 3 2 1"
Warning: Only changing the first 3 of 8 buttons.
все эти действия не дали желаемого результата. Помогите, запарился уже.
-
sash-kan
- Администратор
- Сообщения: 13939
- Статус: oel ngati kameie
- ОС: GNU
Re: Мышь для левши
X-сервер после этого надо перезапустить (alt-ctrl-backspace).
посмотрите все man-ы про mouse последовательно:
$ man -a mouse
ну и, наверно, надо попробовать повырубать в «центре управления чего-то там» всякое управление работой X-сервера. и клавиатурной частью, и мышиной.
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
при сбоях форума см.блог
-
Logot
- Сообщения: 58
- ОС: Linux Mandrake 9.1
Re: Мышь для левши
sash-kan писал(а): ↑27.01.2008 00:17X-сервер после этого надо перезапустить (alt-ctrl-backspace).
посмотрите все man-ы про mouse последовательно:
$ man -a mouse
ну и, наверно, надо попробовать повырубать в «центре управления чего-то там» всякое управление работой X-сервера. и клавиатурной частью, и мышиной.
X-сервер само собой перезапускал.
man -a mouse выводит кучу информации, в которую я въехать не могу, а по поводу центра управления, то пробывал я всякие там опции менять, правда клавиатурные не пробывал, но сейчас посмотрел, то там только "Включить автоповтор клавиш" включена и NumLock при запуске стоит опция на "оставить без изменения" - особых настроек нет, да и причём здесь клавиатура к мыши?
вывожу man -a mouse
Код:
MOUSE(4) Linux Programmer's Manual MOUSE(4)
NAME
mouse - serial mouse interface
CONFIGURATION
Serial mice are connected to a serial RS232/V24 dialout line, see
ttyS(4) for a description.
DESCRIPTION
Introduction
The pinout of the usual 9 pin plug as used for serial mice is:
pin name used for
2 RX Data
3 TX -12 V, Imax = 10 mA
4 DTR +12 V, Imax = 10 mA
7 RTS +12 V, Imax = 10 mA
5 GND Ground
This is the specification, in fact 9 V suffices with most mice.
The mouse driver can recognize a mouse by dropping RTS to low and rais‐
ing it again. About 14 ms later the mouse will send 0x4D ('M') on the
data line. After a further 63 ms, a Microsoft-compatible 3-button
mouse will send 0x33 ('3').
The relative mouse movement is sent as dx (positive means right) and dy
(positive means down). Various mice can operate at different speeds.
To select speeds, cycle through the speeds 9600, 4800, 2400 and 1200
bit/s, each time writing the two characters from the table below and
waiting 0.1 seconds. The following table shows available speeds and
the strings that select them:
bit/s string
9600 *q
4800 *p
2400 *o
1200 *n
The first byte of a data packet can be used to synchronization pur‐
poses.
Microsoft protocol
The Microsoft protocol uses 1 start bit, 7 data bits, no parity and one
stop bit at the speed of 1200 bits/sec. Data is sent to RxD in 3-byte
packets. The dx and dy movements are sent as two's-complement, lb (rb)
are set when the left (right) button is pressed:
byte d6 d5 d4 d3 d2 d1 d0
1 1 lb rb dy7 dy6 dx7 dx6
2 0 dx5 dx4 dx3 dx2 dx1 dx0
3 0 dy5 dy4 dy3 dy2 dy1 dy0
3-button Microsoft protocol
Original Microsoft mice only have two buttons. However, there are some
three button mice which also use the Microsoft protocol. Pressing or
releasing the middle button is reported by sending a packet with zero
movement and no buttons pressed. (Thus, unlike for the other two but‐
tons, the status of the middle button is not reported in each packet.)
Logitech protoco
Logitech serial 3-button mice use a different extension of the
Microsoft protocol: when the middle button is up, the above 3-byte
packet is sent. When the middle button is down a 4-byte packet is
sent, where the 4th byte has value 0x20 (or at least has the 0x20 bit
set). In particular, a press of the middle button is reported as
0,0,0,0x20 when no other buttons are down.
Mousesystems protocol
The Mousesystems protocol uses 1 start bit, 8 data bits, no parity and
two stop bits at the speed of 1200 bits/sec. Data is sent to RxD in
5-byte packets. dx is sent as the sum of the two two's-complement val‐
ues, dy is send as negated sum of the two two's-complement values. lb
(mb, rb) are cleared when the left (middle, right) button is pressed:
byte d7 d6 d5 d4 d3 d2 d1 d0
1 1 0 0 0 0 lb mb rb
2 0 dxa6 dxa5 dxa4 dxa3 dxa2 dxa1 dxa0
3 0 dya6 dya5 dya4 dya3 dya2 dya1 dya0
4 0 dxb6 dxb5 dxb4 dxb3 dxb2 dxb1 dxb0
5 0 dyb6 dyb5 dyb4 dyb3 dyb2 dyb1 dyb0
Bytes 4 and 5 describe the change that occurred since bytes 2 and 3
were transmitted.
Sun protocol
The Sun protocol is the 3-byte version of the above 5-byte Mousesystems
protocol: the last two bytes are not sent.
MM protocol
The MM protocol uses 1 start bit, 8 data bits, odd parity and one stop
bit at the speed of 1200 bits/sec. Data is sent to RxD in 3-byte pack‐
ets. dx and dy are sent as single signed values, the sign bit indicat‐
ing a negative value. lb (mb, rb) are set when the left (middle,
right) button is pressed:
byte d7 d6 d5 d4 d3 d2 d1 d0
1 1 0 0 dxs dys lb mb rb
2 0 dx6 dx5 dx4 dx3 dx2 dx1 dx0
3 0 dy6 dy5 dy4 dy3 dy2 dy1 dy0
FILES
/dev/mouse
A commonly used symlink pointing to a mouse device.
SEE ALSO
ttyS(4),gpm(8)
Linux 1996-02-10 MOUSE(4)-
sash-kan
- Администратор
- Сообщения: 13939
- Статус: oel ngati kameie
- ОС: GNU
Re: Мышь для левши
запускаю xev. в его окошке щелкаю сначала левой, затем правой кнопкой. вижу события:сначала нажата и отпущена button 1, затем нажата и отпущена button 3.
выполняю
$ xmodmap -e "pointer = 3 2 1"
опять запускаю xev. опять щелкаю левой, затем правой кнопкой. вижу события:сначала нажата и отпущена button 3. затем нажата и отпущена button 1.
у Вас не так?
давайте тогда посмотрим на Ваш xorg.conf. может быть там собака порылась.
p.s. по поводу man.
«man 4 mouse» — это совсем не то же, что и «man 4x mouse». просмотреть man mouse во всех секциях я предлагал в предположении, что, может быть, в mandriva X-овый man mouse поместили в какую-то другую секцию, а не в 4x. но, скорее всего, этот man просто не установлен. наверно, он в mandriva лежит в каком-то пакете с названием типа xorg-manpages, xorg-doc или что-нибудь в этом духе.
какой-нибудь старенький man, конечно, найти не сложно (например, http://www.linuxmanpages.com/man4/mouse.4x.php ), но, боюсь, он может быть немножко не актуален в мелких подробностях.
Код: Выделить всё
ButtonPress event, serial 27, synthetic NO, window 0x1200001,
root 0x5b, subw 0x0, time 3132156309, (74,87), root:(730,109),
state 0x10, button 1, same_screen YES
ButtonRelease event, serial 27, synthetic NO, window 0x1200001,
root 0x5b, subw 0x0, time 3132156398, (74,87), root:(730,109),
state 0x110, button 1, same_screen YES
ButtonPress event, serial 27, synthetic NO, window 0x1200001,
root 0x5b, subw 0x0, time 3132157389, (74,87), root:(730,109),
state 0x10, button 3, same_screen YES
ButtonRelease event, serial 27, synthetic NO, window 0x1200001,
root 0x5b, subw 0x0, time 3132157577, (74,87), root:(730,109),
state 0x410, button 3, same_screen YESвыполняю
$ xmodmap -e "pointer = 3 2 1"
опять запускаю xev. опять щелкаю левой, затем правой кнопкой. вижу события:
Код: Выделить всё
ButtonPress event, serial 27, synthetic NO, window 0x1200001,
root 0x5b, subw 0x0, time 3132275109, (79,93), root:(735,115),
state 0x10, button 3, same_screen YES
ButtonRelease event, serial 27, synthetic NO, window 0x1200001,
root 0x5b, subw 0x0, time 3132275237, (79,93), root:(735,115),
state 0x410, button 3, same_screen YES
ButtonPress event, serial 27, synthetic NO, window 0x1200001,
root 0x5b, subw 0x0, time 3132276609, (79,93), root:(735,115),
state 0x10, button 1, same_screen YES
ButtonRelease event, serial 27, synthetic NO, window 0x1200001,
root 0x5b, subw 0x0, time 3132276696, (79,93), root:(735,115),
state 0x110, button 1, same_screen YESу Вас не так?
давайте тогда посмотрим на Ваш xorg.conf. может быть там собака порылась.
p.s. по поводу man.
«man 4 mouse» — это совсем не то же, что и «man 4x mouse». просмотреть man mouse во всех секциях я предлагал в предположении, что, может быть, в mandriva X-овый man mouse поместили в какую-то другую секцию, а не в 4x. но, скорее всего, этот man просто не установлен. наверно, он в mandriva лежит в каком-то пакете с названием типа xorg-manpages, xorg-doc или что-нибудь в этом духе.
какой-нибудь старенький man, конечно, найти не сложно (например, http://www.linuxmanpages.com/man4/mouse.4x.php ), но, боюсь, он может быть немножко не актуален в мелких подробностях.
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
при сбоях форума см.блог
-
Logot
- Сообщения: 58
- ОС: Linux Mandrake 9.1
Re: Мышь для левши
а где его взять-то, нет у меня его. Насколько я понял это программулина, которая выводит события X-сервера
Вот
Код:
# File generated by XFdrake (rev 230776)
Section "Extensions"
Option "Composite"
EndSection
# **********************************************************************
# Refer to the xorg.conf man page for details about the format of
# this file.
# **********************************************************************
Section "ServerFlags"
#DontZap # disable <Ctrl><Alt><BS> (server abort)
#DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
AllowMouseOpenFail # allows the server to start up even if the mouse does not work
EndSection
Section "Module"
Load "dbe" # Double-Buffering Extension
Load "v4l" # Video for Linux
Load "extmod"
Load "type1"
Load "freetype"
Load "glx" # 3D layer
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ru(winkeys)"
Option "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll,compose:rwin"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/mouse"
EndSection
Section "InputDevice"
Identifier "Mouse2"
Driver "evdev"
Option "bustype" "0x0011"
Option "product" "0x0006"
Option "vendor" "0x0002"
EndSection
Section "Monitor"
Identifier "monitor1"
VendorName "Plug'n Play"
ModelName "SyncMaster"
HorizSync 30-81
VertRefresh 56-75
# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630
# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
EndSection
Section "Device"
Identifier "device1"
VendorName "nVidia Corporation"
BoardName "NVIDIA GeForce FX - GeForce 8800"
Driver "nv"
Option "DPMS"
EndSection
Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24
Subsection "Display"
Depth 8
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection
Subsection "Display"
Depth 15
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection
Subsection "Display"
Depth 16
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection
Subsection "Display"
Depth 24
Modes "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "640x480" "480x360" "320x240"
EndSubsection
EndSection
Section "ServerLayout"
Identifier "layout1"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Mouse1" "CorePointer"
InputDevice "Mouse2" "SendCoreEvents"
Screen "screen1"
EndSection
Правда в секции "InputDevice" я прописывал:
Option "ButtonMapping" "3 2 1 4 5"
Сейчас этой записи в файле уже нет.
-
sash-kan
- Администратор
- Сообщения: 13939
- Статус: oel ngati kameie
- ОС: GNU
Re: Мышь для левши
в debian xev входит в пакет xbase-clients. ищите что-то подобное в своем дистрибутиве.
это у Вас там чего-то тридэшное установлено? тогда это — первый кандидат.
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
при сбоях форума см.блог
-
Logot
- Сообщения: 58
- ОС: Linux Mandrake 9.1
-
sash-kan
- Администратор
- Сообщения: 13939
- Статус: oel ngati kameie
- ОС: GNU
Re: Мышь для левши
у Вас там берил (или не знаю, как там нынче эти новомодные штучки называются) стоит? тогда он — первый кандидат на вмешательство в работу X-сервера. а вмешательство явно присутствует, потому что даже такая древняя и примитивная вещь, как «xmodmap … pointer …» не срабатывает.
кандидат номер два — desktop environement. как я понял, у Вас один из таких используется. шибко умные они стали в последнее время и лезут туда, куда их совсем не просят.
Писать безграмотно - значит посягать на время людей, к которым мы адресуемся, а потому совершенно недопустимо в правильно организованном обществе. © Щерба Л. В., 1957
при сбоях форума см.блог
при сбоях форума см.блог
-
Logot
- Сообщения: 58
- ОС: Linux Mandrake 9.1
Re: Мышь для левши
sash-kan писал(а): ↑28.01.2008 22:57у Вас там берил (или не знаю, как там нынче эти новомодные штучки называются) стоит? тогда он — первый кандидат на вмешательство в работу X-сервера. а вмешательство явно присутствует, потому что даже такая древняя и примитивная вещь, как «xmodmap … pointer …» не срабатывает.
Compiz Fusion (берил) скорее всего стоит, потому что о нём знает система, хотя это не факт, короче говоря я точно не знаю. Знаю лишь одно, что в настройке 3D эффектов трёхмерного стола у меня отмечено "Без эффектов трёхмерного рабочего стола", так как у меня пока не стоят драйвера на мою видеокарту (GeForce 6600), не ставил я пока их.
Может после установки драйверов что-то изменится