如何加载输入驱动程序

如何加载输入驱动程序

这是一次增长我知识的学术练习。我已经在虚拟机中通过备用安装安装了 Ubuntu 16.04。安装了 xinit、openbox 和 emulationstation。我一直在玩 .xinitrc、我的配置文件、bash_profile 和 openbox 自动启动配置,目前正在启动 xserver 并运行一些东西。所有东西都很酷!

如果我在 openbox 上运行 emulationstation,我就会有键盘输入。所以我猜 openbox 会在某个阶段加载输入驱动程序,这似乎是一个合理的要求。

如果我只是启动 xserver 并运行 emulationstation,就没有键盘输入。

编辑 :

我现在也尝试使用 PS4 控制器,但它也不起作用,但它可以在我的主机上工作。

当我将其插入主机时,dmesg显示:

[281291.183386] usb 2-1.3: new full-speed USB device number 10 using ehci-pci
[281291.293591] usb 2-1.3: New USB device found, idVendor=054c, idProduct=05c4
[281291.293595] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[281291.293598] usb 2-1.3: Product: Wireless Controller
[281291.293600] usb 2-1.3: Manufacturer: Sony Computer Entertainment
[281291.294936] sony 0003:054C:05C4.000F: Using modified Dualshock 4 report descriptor with gyroscope axes
[281291.306476] input: Sony Computer Entertainment Wireless Controller Touchpad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/0003:054C:05C4.000F/input/input36
[281291.363481] input: Sony Computer Entertainment Wireless Controller as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/0003:054C:05C4.000F/input/input35
[281291.363956] sony 0003:054C:05C4.000F: input,hidraw3: USB HID v81.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-0000:00:1d.0-1.3/input0

当我将其连接到我的虚拟机时,dmesg显示:

[281291.183386] usb 2-1.3: new full-speed USB device number 10 using ehci-pci
[281291.293591] usb 2-1.3: New USB device found, idVendor=054c, idProduct=05c4
[281291.293595] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[281291.293598] usb 2-1.3: Product: Wireless Controller
[281291.293600] usb 2-1.3: Manufacturer: Sony Computer Entertainment
[281291.294936] sony 0003:054C:05C4.000F: Using modified Dualshock 4 report descriptor with gyroscope axes
[281291.306476] input: Sony Computer Entertainment Wireless Controller Touchpad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/0003:054C:05C4.000F/input/input36
[281291.363481] input: Sony Computer Entertainment Wireless Controller as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/0003:054C:05C4.000F/input/input35
[281291.363956] sony 0003:054C:05C4.000F: input,hidraw3: USB HID v81.11 Gamepad [Sony Computer Entertainment Wireless Controller] on usb-0000:00:1d.0-1.3/input0

因此,我在虚拟机中的基本安装不会为控制器创建输入事件。

你知道我接下来要去哪里吗?

相关内容