为什么我的 XBox 360 控制器不能与 Ubuntu 18.04 兼容?

为什么我的 XBox 360 控制器不能与 Ubuntu 18.04 兼容?

我有一个游戏手柄 Tronsmart Mars G02,它通过 USB 发射器连接到我的笔记本电脑。

以前它在 Ubuntu 16.04 上运行没有任何问题。但我更换了硬盘并安装了 Ubuntu 18.04,现在我无法让游戏手柄工作。

以下是 dmesg 的一部分:

[ 2171.036631] usb 2-1.1: new full-speed USB device number 8 using ehci-pci
[ 2171.146376] usb 2-1.1: New USB device found, idVendor=2563, idProduct=0575
[ 2171.146380] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2171.146383] usb 2-1.1: Product: PS3/PC Gamepad
[ 2171.146386] usb 2-1.1: Manufacturer: SHANWAN
[ 2171.149335] input: SHANWAN PS3/PC Gamepad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:2563:0575.0004/input/input19
[ 2171.209186] hid-generic 0003:2563:0575.0004: input,hidraw2: USB HID v1.10 Gamepad [SHANWAN PS3/PC Gamepad] on usb-0000:00:1d.0-1.1/input0
[ 2182.292062] usb 2-1.1: USB disconnect, device number 8
[ 2182.568355] usb 2-1.1: new full-speed USB device number 9 using ehci-pci
[ 2182.679955] usb 2-1.1: New USB device found, idVendor=045e, idProduct=028e
[ 2182.679963] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2182.679968] usb 2-1.1: Product: Controller
[ 2182.679972] usb 2-1.1: Manufacturer: SHANWAN
[ 2182.681010] input: Microsoft X-Box 360 pad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/input/input20
[ 2184.362618] input: Microsoft X-Box 360 pad as /devices/virtual/input/input21

以下是 evtest 命令的项目列表:

sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0:  Lid Switch
/dev/input/event1:  Power Button
/dev/input/event2:  Power Button
/dev/input/event3:  AT Translated Set 2 keyboard
/dev/input/event4:  Video Bus
/dev/input/event5:  Video Bus
/dev/input/event6:  Logitech USB Receiver
/dev/input/event7:  Logitech USB Receiver
/dev/input/event8:  ETPS/2 Elantech Touchpad
/dev/input/event9:  HDA Intel PCH Mic
/dev/input/event10: HDA Intel PCH Headphone
/dev/input/event11: HDA Intel PCH HDMI/DP,pcm=3
/dev/input/event12: Microsoft X-Box 360 pad
/dev/input/event13: WebCam SC-0311139N
/dev/input/event14: Microsoft X-Box 360 pad
Select the device event number [0-14]: 

我尝试选择 12 和 14,但按下游戏手柄按钮时没有任何反应。

因此,看起来 ubuntu 可以看到我的游戏手柄,但无法识别任何按钮点击或摇杆移动。

关于检查什么或如何配置游戏手柄有什么想法吗?

答案1

你不一定要这么做,但显然这对 Reddit 上的某些人来说是有效的:

sudo modprobe -r xpad
sudo modprobe xpad

这基本上会删除 xbox 驱动程序并将其添加回来。

相关内容