ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] xinput игнорирует set-prop
@ 2012-08-24 18:41 Денис Смирнов
  2012-08-25  5:58 ` Dmitriy Kruglikov
  0 siblings, 1 reply; 2+ messages in thread
From: Денис Смирнов @ 2012-08-24 18:41 UTC (permalink / raw)
  To: ALT Linux Community general discussions

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

Мне удобно когда touchpad всегда выключен, и включается только по желанию.

Простейший скрипт:

xinput list | grep -i touchpad \
    | sed 's/^.*id=\([[:digit:]]*\).*$/\1/' \
    | xargs -i xinput set-prop "{}" "Device Enabled" 0

прекрасно выключает touchpad. Если последний '0' заменить на '1' -- он его
включает.

Но, после suspend/resume touchpad всегда включен.

В /etc/pm/sleep.d добавил скрипт выключения touchpad (добавив туда export
DISPLAY и XAUTHORITY) -- не работает.

Проверяю этот скрипт из под пользователя (изнутри X-сеcсии) -- все работает.

Проверяю этот скрипт из под рута (sudo изнутри сессии) -- все работает.

Переключаюсь в голую консоль, запускаю этот скрипт из под рута -- xinput
list все выводит, но xinput set-prop молча отрабатывает, а touchpad --
продолжает работать

Что я делаю не так?

-- 
С уважением, Денис

http://mithraen.ru/
----------------------------------------------------------------------------

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Comm] xinput игнорирует set-prop
  2012-08-24 18:41 [Comm] xinput игнорирует set-prop Денис Смирнов
@ 2012-08-25  5:58 ` Dmitriy Kruglikov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitriy Kruglikov @ 2012-08-25  5:58 UTC (permalink / raw)
  To: ALT Linux Community general discussions

24 августа 2012 г., 21:41 пользователь Денис Смирнов
<mithraen@freesource.info> написал:
> Мне удобно когда touchpad всегда выключен, и включается только по желанию.
Добавлю и свои "5" ...

У меня на Fn+F9 настроено переключение...
Так вот, сразу после старта ноута это не работает.
После /etc/init.d/acpid restart - работает...

Хотя события нажатий видимы действие вызывается.




-- 
Best regards,
 Dmitriy Kruglikov.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-25  5:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-24 18:41 [Comm] xinput игнорирует set-prop Денис Смирнов
2012-08-25  5:58 ` Dmitriy Kruglikov

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