ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "George V. Kouryachy" <george@altlinux.org>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Кнопки Power
Date: Wed, 2 Jun 2010 13:46:29 +0400
Message-ID: <20100602094629.GA28393@imap.altlinux.org> (raw)
In-Reply-To: <20100529094921.GM5608@wrars-comp.wrarsdomain>

On Sat, May 29, 2010 at 03:49:21PM +0600, Andrey Rahmatullin wrote:
> On Fri, May 28, 2010 at 06:38:58PM +0400, George V. Kouryachy wrote:
>> 1. Кто при нажатии кнопки на корпусе посылает scancode в иксы?
> Думаю, xinput list|fgrep Button
Вот спасибо.
>> Можно ли это выключить? это, вообще-то, не дело.
> Я думаю, можно запретить обрабатывать сообщения от определённых input
> devices.
Ну, кнопку можно выключить так:
george@arnor:~> xinput list-props 6
Device 'Power Button':
        Device Enabled (115):   1
george@arnor:~> xinput set-prop 6 115 0

Наверное, и не надо ей давать что-то посылать X-ам, если я не пользуюсь
X-выми средствами shutdown-а.

Хотя по-хорошему её бы просто переназначить на какой-нибудь
принципиально другой кейкод... интересно, это вообще возможно?

>> 2. Кто при нажатии кнопки на клавиатуре посылает ACPI-сообщение? 
> Понятия не имею; у меня она шлёт 124/XF86Poweroff, но acpid, оказывается,
> теперь на это тоже реагирует. Не исключаю, что иксы тут вообще ни при чём.
Вот в этом месте я хотел бы разобраться:
acpi-событие происходит потому, что его генерит acpid, или оно
происходит ещё почему-нибудь, а acpid его только ловит?

Конечная цель -- сделать как раньше: по кнопке Power на корпусе
выключается компютер, по кнопке Power на клавиатуре приходит кейкод
XF86Poweroff, но больше ничего.

Пока что кейкоды приходится подсовывать другие.

-- 
			George V. Kouryachy (aka Fr. Br. George)
			mailto:george at altlinux_org


  reply	other threads:[~2010-06-02  9:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-28 14:38 George V. Kouryachy
2010-05-29  9:49 ` Andrey Rahmatullin
2010-06-02  9:46   ` George V. Kouryachy [this message]
2010-06-02 10:39     ` Andrey Rahmatullin
2010-06-02 14:23       ` Sergey Vlasov
2010-06-03  7:05 ` Sergei Epiphanov
2010-06-21 13:32   ` Michael Shigorin
2010-06-22  6:19     ` Sergei Epiphanov
2010-06-23  8:59     ` Sergei Epiphanov

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=20100602094629.GA28393@imap.altlinux.org \
    --to=george@altlinux.org \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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