removido
(usa Nenhuma)
Enviado em 05/02/2017 - 11:44h
Assumo que esteja usando Xorg, tenta usar xinput pra reativar pelo terminal
https://lxadm.com/Disable_/_enable_keyboard_and_mouse_in_Linux
Mostra lista de dispositivos com input, o id=$numero é a parte importante
xinput --list
Mostra informação do dispositivo troca o $id pelo numero do id= que voce pegou no comando acima pro dispositivo que quer ativar, ele mostra se o dispositivo esta ativado ou não
xinput --list-prop $id
Pra ativar o dispositivo, troca id pelo numero do id= que voce pegou no primeiro comando
xinput set-int-prop $id "Device Enabled" 8 1
=== EXEMPLO ===
Meus dispositivos
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SIGMACHIP USB Keyboard id=11 [slave pointer (2)]
⎜ ↳ Razer Razer DeathAdder id=9 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ SIGMACHIP USB Keyboard id=10 [slave keyboard (3)]
Informação do meu mouse que tem id 9
Device 'Razer Razer DeathAdder':
Device Enabled (132): 1
Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (262): 0
Device Accel Constant Deceleration (263): 1.000000
Device Accel Adaptive Deceleration (264): 1.000000
Device Accel Velocity Scaling (265): 10.000000
Device Product ID (252): 5426, 41
Device Node (253): "/dev/input/event3"
Evdev Axis Inversion (266): 0, 0
Evdev Axes Swap (268): 0
Axis Labels (269): "Rel X" (142), "Rel Y" (143), "Rel Vert Wheel" (261)
Button Labels (270): "Button Left" (135), "Button Middle" (136), "Button Right" (137), "Button Wheel Up" (138), "Button Wheel Down" (139), "Button Horiz Wheel Left" (140), "Button Horiz Wheel Right" (141), "Button Side" (256), "Button Extra" (257), "Button Forward" (258), "Button Back" (259), "Button Task" (260), "Button Unknown" (255), "Button Unknown" (255), "Button Unknown" (255), "Button Unknown" (255)
Evdev Scrolling Distance (271): 1, 1, 1
Evdev Middle Button Emulation (272): 0
Evdev Middle Button Timeout (273): 50
Evdev Middle Button Button (274): 2
Evdev Third Button Emulation (275): 0
Evdev Third Button Emulation Timeout (276): 1000
Evdev Third Button Emulation Button (277): 3
Evdev Third Button Emulation Threshold (278): 20
Evdev Wheel Emulation (279): 0
Evdev Wheel Emulation Axes (280): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (281): 10
Evdev Wheel Emulation Timeout (282): 200
Evdev Wheel Emulation Button (283): 4
Evdev Drag Lock Buttons (284): 0
Depois de rodar
xinput set-int-prop 9 "Device Enabled" 8 0
Device 'Razer Razer DeathAdder':
Device Enabled (132): 0
Coordinate Transformation Matrix (134): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (262): 0
Device Accel Constant Deceleration (263): 1.000000
Device Accel Adaptive Deceleration (264): 1.000000
Device Accel Velocity Scaling (265): 10.000000
Device Product ID (252): 5426, 41
Device Node (253): "/dev/input/event3"
Evdev Axis Inversion (266): 0, 0
Evdev Axes Swap (268): 0
Axis Labels (269): "Rel X" (142), "Rel Y" (143), "Rel Vert Wheel" (261)
Button Labels (270): "Button Left" (135), "Button Middle" (136), "Button Right" (137), "Button Wheel Up" (138), "Button Wheel Down" (139), "Button Horiz Wheel Left" (140), "Button Horiz Wheel Right" (141), "Button Side" (256), "Button Extra" (257), "Button Forward" (258), "Button Back" (259), "Button Task" (260), "Button Unknown" (255), "Button Unknown" (255), "Button Unknown" (255), "Button Unknown" (255)
Evdev Scrolling Distance (271): 1, 1, 1
Evdev Middle Button Emulation (272): 0
Evdev Middle Button Timeout (273): 50
Evdev Middle Button Button (274): 2
Evdev Third Button Emulation (275): 0
Evdev Third Button Emulation Timeout (276): 1000
Evdev Third Button Emulation Button (277): 3
Evdev Third Button Emulation Threshold (278): 20
Evdev Wheel Emulation (279): 0
Evdev Wheel Emulation Axes (280): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (281): 10
Evdev Wheel Emulation Timeout (282): 200
Evdev Wheel Emulation Button (283): 4
Evdev Drag Lock Buttons (284): 0