ALT Linux hardware support
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: hardware@lists.altlinux.org
Subject: Re: [Hardware] клавиатура с колёсиком
Date: Mon, 25 Oct 2010 21:53:31 +0400
Message-ID: <20101025175331.GA5974@atlas.home> (raw)
In-Reply-To: <AANLkTik-zhcf+3fQO_TQy49adKaUyh0HRvQCptfVqDot@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

On Mon, Oct 25, 2010 at 07:37:57PM +0700, Denis G. Samsonenko wrote:
> > Попробуйте добавить в параметры ядра atkbd.scroll=1 - для PS/2, в отличие
> > от USB, это приходится настраивать руками.
> 
> Не помогло. Плюс обнаружил, что на колесо можно нажимать. Нажатие в
> xev никак не ловится, а в dmesg выглядит так:
> 
> [  131.360310] atkbd.c: Unknown key released (translated set 2, code
> 0xa3 on isa0060/serio0).
> [  131.360318] atkbd.c: Use 'setkeycodes e023 <keycode>' to make it known.

С одной стороны, с этим проще - можно выбрать из списка KEY_* в
/usr/include/linux/input.h понравившийся код клавиши (пока только
однобайтовый), выполнить setkeycodes e023 <код>, после чего нажатие на
эту кнопку должно быть видно в xev (для большинства стандартных кодов
из этого диапазон там уже есть эквиваленты - KEY_MAIL == XF86Mail и
т.п.).  С другой стороны, установка чего-либо типа BTN_MIDDLE на
кнопки клавиатуры почему-то не работает - причём в Xorg.*.log видно
"AT Translated Set 2 keyboard: Found 2 mouse buttons", "Configuring as
mouse", но потом в xev тишина.

А вот с тем, что вращение колеса выдаёт те же коды, что и клавиши
курсора, уже вряд ли можно что-то поделать.  Возможно, для этой
клавиатуры нужна какая-то специфическая команда инициализации,
выдаваемая родным драйвером для Windows.  Хотя можно ещё попробовать
поиграться с параметрами i8042.direct=1 и atkbd.set=3 (в комбинации с
atkbd.scroll=1 или по отдельности).

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2010-10-25 17:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-24 14:18 Denis G. Samsonenko
2010-10-24 14:35 ` Хихин Руслан
2010-10-25  5:48   ` Denis G. Samsonenko
2010-10-25  6:02     ` Хихин Руслан
2010-10-25  6:59       ` Denis G. Samsonenko
2010-10-25  8:53         ` Sergey Vlasov
2010-10-25 12:37           ` Denis G. Samsonenko
2010-10-25 17:53             ` Sergey Vlasov [this message]
2010-10-25 18:09               ` Andrey Rahmatullin
2010-10-25 18:44                 ` Sergey Vlasov

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=20101025175331.GA5974@atlas.home \
    --to=vsu@altlinux.ru \
    --cc=hardware@lists.altlinux.org \
    /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 hardware support

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/hardware/0 hardware/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 hardware hardware/ http://lore.altlinux.org/hardware \
		hardware@altlinux.ru hardware@lists.altlinux.org hardware@lists.altlinux.ru hardware@lists.altlinux.com hardware@altlinux.org
	public-inbox-index hardware

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


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