From: "Денис Смирнов" <mithraen@freesource.info>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: [Comm] xinput игнорирует set-prop
Date: Fri, 24 Aug 2012 22:41:38 +0400
Message-ID: <20120824184138.GA26965@t60p.mithraen.ru> (raw)
[-- 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 --]
next reply other threads:[~2012-08-24 18:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 18:41 Денис Смирнов [this message]
2012-08-25 5:58 ` Dmitriy Kruglikov
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=20120824184138.GA26965@t60p.mithraen.ru \
--to=mithraen@freesource.info \
--cc=community@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 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