Автор Тема: udevadm trigger  (Прочитано 2429 раз)

Оффлайн HardWay

  • Начинающий
  • *
  • Сообщений: 14
  • Choose your battles, babe
    • Email
udevadm trigger
« : 23.01.2014 19:18:28 »
Решил поднастроить мышь в линуксе для игры. Вот маленький гайд который прилагался к игре. Но проблема в том что нет команды udevadm trigger. И так как не силен в английском может кто-нибудь подробнее объяснить что нужно сделать. Ибо мышь в игре плавает.

SDL 1.2.x way of handling mouse input in X11 environment is hardly suitable for
any serious gaming. For optimal control and performance using Linux evdev
kernel interface for reading mouse input is recommended. Enable it by defining
CONFIG_DIRECT_INPUT option in `.config'.

By default, evdev device nodes have permissions that disallow normal uses to
read them. If you are the only physical user of computer, it is safe to change
default permissions of the mouse device node.

To do so, copy `doc/examples/92-direct-input.rules' into `etc/udev/rules.d/',
then run `udevadm trigger' as root. Change `plugdev' group name if needed
(depends on Linux distribution).

Код из doc/examples/92-direct-input.rules
ACTION=="remove", GOTO="permissions_end"
KERNEL=="event[0-9]*", ENV{.INPUT_CLASS}=="mouse", MODE="0660", GROUP="plugdev"
LABEL="permissions_end"