Сенсорный экран снова активируется после пробуждения на Ubuntu 16.04 LTS

Я добавил команду запуска в программу запуска приложений, чтобы отключить мой сенсорный экран при каждом запуске, так как иногда возникают проблемы, которые серьезно испортили вход:

xinput disable "ELAN Touchscreen" (Я не использую идентификаторы устройств поскольку они меняются после каждой перезагрузки).

Однако после нескольких пробуждений сенсорный экран снова включается. В любом случае, чтобы остановить эту проблему?

0
задан 20 May 2017 в 19:10

6 ответов

Отредактируйте файл с помощью

sudo nano /usr/share/X11/xorg.conf.d/10-evdev.conf

Измените MatchIsTouchscreen с «on» на «off», чтобы он выглядел следующим образом:

Section "InputClass"
  Identifier "evdev touchscreen catchall"
  MatchIsTouchscreen "off"
  MatchDevicePath "/dev/input/event*"
  Driver "evdev"
  EndSection

Сохранить, Name и Exit nano [ ! d2]

«Сенсорный экран ELAN» отключен и больше не обнаружен в списке xinput.

0
ответ дан 22 May 2018 в 22:26

Отредактируйте файл с помощью

sudo nano /usr/share/X11/xorg.conf.d/10-evdev.conf

Измените MatchIsTouchscreen с «on» на «off», чтобы он выглядел следующим образом:

Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "off" MatchDevicePath "/dev/input/event*" Driver "evdev" EndSection

Сохранить, Name и Exit nano [ ! d2]

«Сенсорный экран ELAN» отключен и больше не обнаружен в списке xinput.

0
ответ дан 18 July 2018 в 13:00

Отредактируйте файл с помощью

sudo nano /usr/share/X11/xorg.conf.d/10-evdev.conf

Измените MatchIsTouchscreen с «on» на «off», чтобы он выглядел следующим образом:

Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "off" MatchDevicePath "/dev/input/event*" Driver "evdev" EndSection

Сохранить, Name и Exit nano [ ! d2]

«Сенсорный экран ELAN» отключен и больше не обнаружен в списке xinput.

0
ответ дан 24 July 2018 в 20:05

Когда ваша система «просыпается» (восстанавливается из Suspend или Hibernate), она делает это через «Управление питанием». Прочитайте man pm-action, в котором, в частности, сказано:

   /etc/pm/sleep.d, /usr/lib/pm-utils/sleep.d
       Programs in these directories (called hooks) are combined and
       executed in C sort order before suspend and hibernate with as
       argument 'suspend' or 'hibernate'. Afterwards they are called in
       reverse order with argument 'resume' and 'thaw' respectively. If
       both directories contain a similar named file, the one in
       /etc/pm/sleep.d will get preference. It is possible to disable a
       hook in the distribution directory by putting a non-executable file
       in /etc/pm/sleep.d, or by adding it to the HOOK_BLACKLIST
       configuration variable.

Вы можете поместить исполняемую копию своего скрипта (готового обработать параметр «suspend», «hibernate», «resume» или «оттепель», ) в /etc/pm/sleep.d

0
ответ дан 22 May 2018 в 22:26

Когда ваша система «просыпается» (восстанавливается из Suspend или Hibernate), она делает это через «Управление питанием». Прочитайте man pm-action, в котором, в частности, сказано:

/etc/pm/sleep.d, /usr/lib/pm-utils/sleep.d Programs in these directories (called hooks) are combined and executed in C sort order before suspend and hibernate with as argument 'suspend' or 'hibernate'. Afterwards they are called in reverse order with argument 'resume' and 'thaw' respectively. If both directories contain a similar named file, the one in /etc/pm/sleep.d will get preference. It is possible to disable a hook in the distribution directory by putting a non-executable file in /etc/pm/sleep.d, or by adding it to the HOOK_BLACKLIST configuration variable.

Вы можете поместить исполняемую копию своего скрипта (готового обработать параметр «suspend», «hibernate», «resume» или «оттепель», ) в /etc/pm/sleep.d

0
ответ дан 18 July 2018 в 13:00

Когда ваша система «просыпается» (восстанавливается из Suspend или Hibernate), она делает это через «Управление питанием». Прочитайте man pm-action, в котором, в частности, сказано:

/etc/pm/sleep.d, /usr/lib/pm-utils/sleep.d Programs in these directories (called hooks) are combined and executed in C sort order before suspend and hibernate with as argument 'suspend' or 'hibernate'. Afterwards they are called in reverse order with argument 'resume' and 'thaw' respectively. If both directories contain a similar named file, the one in /etc/pm/sleep.d will get preference. It is possible to disable a hook in the distribution directory by putting a non-executable file in /etc/pm/sleep.d, or by adding it to the HOOK_BLACKLIST configuration variable.

Вы можете поместить исполняемую копию своего скрипта (готового обработать параметр «suspend», «hibernate», «resume» или «оттепель», ) в /etc/pm/sleep.d

0
ответ дан 24 July 2018 в 20:05

Другие вопросы по тегам:

Похожие вопросы: