Проект

Общее

Профиль

Xinput » История » Версия 2

Андрей Волков, 2015-02-25 23:31

1 2 Андрей Волков
h1. Отключение устройств ввода в X
2 1 Андрей Волков
3
h2. Смотрим список устройств ввода
4
5
*xinput --list*
6
7
<pre>
8
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
9
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
10
⎜   ↳ Logitech USB Receiver                   	id=11	[slave  pointer  (2)]
11
⎜   ↳ Logitech USB Receiver                   	id=12	[slave  pointer  (2)]
12
⎜   ↳ PS/2 Logitech Wheel Mouse               	id=14	[slave  pointer  (2)]
13
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
14
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
15
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
16
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
17
    ↳ Video Bus                               	id=8	[slave  keyboard (3)]
18
    ↳ Power Button                            	id=9	[slave  keyboard (3)]
19
    ↳ WebCam SC-03FFL11739P                   	id=10	[slave  keyboard (3)]
20
    ↳ AT Translated Set 2 keyboard            	id=13	[slave  keyboard (3)]
21
</pre>
22
23
h2. Отключаем по id
24
25
Отключаем PS/2 Logitech Wheel Mouse
26
27
*xinput set-int-prop 14 "Device Enabled" 8 0*
28
29
h2. Включаем по id
30
31
Включаем PS/2 Logitech Wheel Mouse
32
33
*xinput set-int-prop 14 "Device Enabled" 8 1*