如何删除幽灵角色设备?

如何删除幽灵角色设备?

亲爱的,

我安装了 Xbox One 控制器的驱动程序。不幸的是,在此过程中也安装了许多“幽灵设备”。

我想删除这些设备。我尝试从 /dev/input 中删除,但文件是在重启后创建的。下面是输入文件夹中有关设备的 ls -l。

crw-rw-r--+ 1 root input 13,  0 mai 17 10:35 js0
crw-rw-r--+ 1 root input 13,  1 mai 17 10:35 js1
crw-rw-r--+ 1 root input 13,  2 mai 17 10:35 js2
crw-rw-r--+ 1 root input 13,  3 mai 17 10:35 js3

hwinfo | grep -i xbox 的输出

      I: Bus=0003 Vendor=045e Product=0719 Version=0100
  N: Name="Xbox 360 Wireless Receiver"
  P: Phys=
  S: Sysfs=/devices/virtual/input/input32
  U: Uniq=
  H: Handlers=event21 js0 
  B: PROP=0
  B: EV=b
  B: KEY=f 0 0 0 0 0 0 7fdb000000000000 0 0 0 0
  B: ABS=1b

  I: Bus=0003 Vendor=045e Product=0719 Version=0100
  N: Name="Xbox 360 Wireless Receiver"
  P: Phys=
  S: Sysfs=/devices/virtual/input/input33
  U: Uniq=
  H: Handlers=event22 js1 
  B: PROP=0
  B: EV=b
  B: KEY=f 0 0 0 0 0 0 7fdb000000000000 0 0 0 0
  B: ABS=1b

  I: Bus=0003 Vendor=045e Product=0719 Version=0100
  N: Name="Xbox 360 Wireless Receiver"
  P: Phys=
  S: Sysfs=/devices/virtual/input/input34
  U: Uniq=
  H: Handlers=event23 js2 
  B: PROP=0
  B: EV=b
  B: KEY=f 0 0 0 0 0 0 7fdb000000000000 0 0 0 0
  B: ABS=1b

  I: Bus=0003 Vendor=045e Product=0719 Version=0100
  N: Name="Xbox 360 Wireless Receiver"
  P: Phys=
  S: Sysfs=/devices/virtual/input/input35
  U: Uniq=
  H: Handlers=event24 js3 
  B: PROP=0
  B: EV=b
  B: KEY=f 0 0 0 0 0 0 7fdb000000000000 0 0 0 0
  B: ABS=1b

  I: Bus=0011 Vendor=0002 Product=0001 Version=0000
  N: Name="PS/2 Generic Mouse"
--
  mouse buttons = 0
  mouse wheels = 0
  is_mouse = 0
  is_joystick = 0
unknown non-USB input device
bus = 3, name = Xbox 360 Wireless Receiver
  handlers = event21 js0
  key = 000000000000000f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007fdb0000000000000000000000000000000000000000000000000000000000000000000000000000
  abs = 000000000000001b
  mouse buttons = 0
  mouse wheels = 0
  is_mouse = 0
  is_joystick = 1
bus = 3, name = Xbox 360 Wireless Receiver
  handlers = event22 js1
  key = 000000000000000f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007fdb0000000000000000000000000000000000000000000000000000000000000000000000000000
  abs = 000000000000001b
  mouse buttons = 0
  mouse wheels = 0
  is_mouse = 0
  is_joystick = 1
bus = 3, name = Xbox 360 Wireless Receiver
  handlers = event23 js2
  key = 000000000000000f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007fdb0000000000000000000000000000000000000000000000000000000000000000000000000000
  abs = 000000000000001b
  mouse buttons = 0
  mouse wheels = 0
  is_mouse = 0
  is_joystick = 1
bus = 3, name = Xbox 360 Wireless Receiver
  handlers = event24 js3
  key = 000000000000000f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007fdb0000000000000000000000000000000000000000000000000000000000000000000000000000
  abs = 000000000000001b
  mouse buttons = 0
  mouse wheels = 0
  is_mouse = 0
  is_joystick = 1
bus = 17, name = PS/2 Generic Mouse
  handlers = mouse3 event25
  key = 00000000000700000000000000000000000000000000000000000000000000000000000000000000
  rel = 0000000000000003
--
  P: /devices/virtual/input/input32
  L: 0
  E: DEVPATH=/devices/virtual/input/input32
  E: SUBSYSTEM=input
  E: PRODUCT=3/45e/719/100
  E: NAME="Xbox 360 Wireless Receiver"
  E: PROP=0
  E: EV=b
  E: KEY=f 0 0 0 0 0 0 7fdb000000000000 0 0 0 0
  E: ABS=1b
  E: MODALIAS=input:b0003v045Ep0719e0100-e0,1,3,k130,131,133,134,136,137,138,139,13A,13B,13C,13D,13E,2C0,2C1,2C2,2C3,ra0,1,3,4,mlsfw
  E: USEC_INITIALIZED=6132401
  E: ID_INPUT=1
  E: ID_INPUT_JOYSTICK=1
  E: ID_SERIAL=noserial
  E: TAGS=:seat:

--
  P: /devices/virtual/input/input33
  L: 0
  E: DEVPATH=/devices/virtual/input/input33
  E: SUBSYSTEM=input
  E: PRODUCT=3/45e/719/100
  E: NAME="Xbox 360 Wireless Receiver"
  E: PROP=0
  E: EV=b
  E: KEY=f 0 0 0 0 0 0 7fdb000000000000 0 0 0 0
  E: ABS=1b
  E: MODALIAS=input:b0003v045Ep0719e0100-e0,1,3,k130,131,133,134,136,137,138,139,13A,13B,13C,13D,13E,2C0,2C1,2C2,2C3,ra0,1,3,4,mlsfw
  E: USEC_INITIALIZED=6082508
  E: ID_INPUT=1
  E: ID_INPUT_JOYSTICK=1
  E: ID_SERIAL=noserial
  E: TAGS=:seat:

--
  P: /devices/virtual/input/input34
  L: 0
  E: DEVPATH=/devices/virtual/input/input34
  E: SUBSYSTEM=input
  E: PRODUCT=3/45e/719/100
  E: NAME="Xbox 360 Wireless Receiver"
  E: PROP=0
  E: EV=b
  E: KEY=f 0 0 0 0 0 0 7fdb000000000000 0 0 0 0
  E: ABS=1b
  E: MODALIAS=input:b0003v045Ep0719e0100-e0,1,3,k130,131,133,134,136,137,138,139,13A,13B,13C,13D,13E,2C0,2C1,2C2,2C3,ra0,1,3,4,mlsfw
  E: USEC_INITIALIZED=6084124
  E: ID_INPUT=1
  E: ID_INPUT_JOYSTICK=1
  E: ID_SERIAL=noserial
  E: TAGS=:seat:

--
  P: /devices/virtual/input/input35
  L: 0
  E: DEVPATH=/devices/virtual/input/input35
  E: SUBSYSTEM=input
  E: PRODUCT=3/45e/719/100
  E: NAME="Xbox 360 Wireless Receiver"
  E: PROP=0
  E: EV=b
  E: KEY=f 0 0 0 0 0 0 7fdb000000000000 0 0 0 0
  E: ABS=1b
  E: MODALIAS=input:b0003v045Ep0719e0100-e0,1,3,k130,131,133,134,136,137,138,139,13A,13B,13C,13D,13E,2C0,2C1,2C2,2C3,ra0,1,3,4,mlsfw
  E: USEC_INITIALIZED=6086508
  E: ID_INPUT=1
  E: ID_INPUT_JOYSTICK=1
  E: ID_SERIAL=noserial
  E: TAGS=:seat:

有谁可以帮忙吗?

环境

Description:    Ubuntu 20.04 LTS
Release:        20.04
Codename:       focal

Linux 5.4.0-29-generic #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

相关内容