ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: [Comm] Re: Asks about mouse
Date: Thu, 29 May 2003 19:27:08 +0400
Message-ID: <20030529192708.42e82f6d.vsu@altlinux.ru> (raw)
In-Reply-To: <20030529103452.1b752387.leutin-lists@rambler.ru>

On Thu, 29 May 2003 10:34:52 +0600
Леутин Александр <leutin-lists@rambler.ru> wrote:

> * Sergey Vlasov <vsu@altlinux.ru> Wed, 28 May 2003 15:30:49 +0400
> 
> > > > > Я стал счастливым обладателем Logietch iFeel MouseMan. Подключил
> > > > > по USB, сказал, MOUSE=yes в /etc/sysconfig/usb, написАл в
> > > > > XF86Config-4/dev/usbmouse вместо /dev/mouse.
> > > > Это зря. Должно быть Device "/dev/input/mice", Option "Protocol"
> > > > "IMPS/2" (ядро эмулирует этот протокол).
> > > Спасибо, поставил. Результат пока тот же -- работает, но
> > >  боковая кнопка == колесо.
> > 
> > А проверка через xev что показывает?
> 
> ButtonRelease event, serial 28, synthetic NO, window 0x1400001,
>     root 0x7a, subw 0x0, time 1862647770, (129,3), root:(194,426),
>     state 0x210, button 2, same_screen YES
> 
> Это одинаково для колеса и бок. кнопки. В XF86Config-4 --
> /dev/input/mice, IMPS/2
>  
> > Ещё попробуйте протокол "ExplorerPS/2".
> 
> Тогда в xev на боковую кнопку вообще никакой реакции.

$#@$#@$%$$#%$#!!!!!!!!

Опять полез в исходники XFree86 :-((((

Драйвер mouse в X написан криво. Он не даёт возможности переопределить
кнопки до обработки ZAxisMapping, в результате дополнительные кнопки
получают номера 4 и 5 (для ExplorerPS/2), а затем драйвер вытирает все
кнопки, которые были назначены в ZAxisMapping. Попробуйте ради
эксперимента убрать ZAxisMapping - боковая кнопка, скорее всего,
появится под номером 4. Свинство в том, что колесо с кнопок 4 и 5
убирать нельзя, поскольку все программы ожидают его именно там.

> > А хрен его знает. Для переключения на hid можно установить hotplug,
> > поставить MOUSE="no" в /etc/sysconfig/usb, а потом добавить usbmouse в
> > /etc/hotplug/blacklist.
> 
> А Вы не знаете, hid поймет, что у моей мыши 6 кнопок?

Судя по тому, что при включении ExplorerPS/2 произошли изменения -
понимает. Только от этого не легче :-(

> > > > Кроме того, кнопки с номерами больше 5 в X поддерживаются не
> > > > полностью.
> > > То есть? Я слышал, что больше 7 кнопок не поддерживается без
> > > перекомпиляции. Что значит "не полностью"?
> <skipped>
> > Т.е. для последующих кнопок просто не предусмотрены биты, в результате
> > некоторые операции с ними не работают.
> Я далёк от программирования. Не могли бы Вы сказать чуточку
> поконкретнее, какие операции будут работать, а какие -- нет? Где я смогу
> использовать эту кнопку? Слышал, что люди подключают по 2 колеса -- это
> ведь больше 7 кнопок...

Это как раз 7 и есть. Что конкретно не работает - точно не знаю;
например, в FVWM FAQ написано "some functionality is not available
with buttons 6 and higher" (и при этом fvwm ещё надо скомпилировать
соответствующим образом - по умолчанию он поддерживает только 5).


  reply	other threads:[~2003-05-29 15:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-26 19:05 [Comm] " Леутин Александр
2003-05-27 10:33 ` [Comm] " Sergey Vlasov
2003-05-28  2:20   ` Леутин Александр
2003-05-28 11:30     ` Sergey Vlasov
2003-05-29  4:34       ` Леутин Александр
2003-05-29 15:27         ` Sergey Vlasov [this message]
2003-05-29 17:01 ` [Comm] " Maxim Tyurin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030529192708.42e82f6d.vsu@altlinux.ru \
    --to=vsu@altlinux.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git