Sample Header Ad - 728x90

Why is keyboard and mouse unable to be hotplugged in FreeBSD jail?

1 vote
1 answer
144 views
I have an entire system with xorg-x11 running in a jail. My only issue is that I am unable to add or remove a keyboard or mouse while X is running. If I restart X, the newly connected keyboard or mouse works just fine. I don't want to restart X. If I run my system on bare metal, it works as expected. It only occurs when I run it from a jail. I see the devices are created as I plug or unplug them: /dev/input/event* /dev/usb/* /dev/ukbd* /dev/kbd* /dev/ums* /dev/ugen* I have dbus running, but for whatever reason, Xorg doesn't appear to be seeing them. If I tail /var/log/Xorg.0.log, I don't see any messages indicating a keyboard or mouse being added or removed as I plug or unplug it. EDIT #1: My devfs rules for this jail are: add path 'dri*' unhide add path 'drm*' unhide add path 'dsp*' unhide add path 'mixer*' unhide add path 'speaker*' mode 0660 group operator unhide # USB drives add path 'da*' unhide EDIT #1: To answer the questions from the answer: 1. My devfs rules match the jail devfs rule id. 2. The Xorg.0.log shows no events when I unplug and reply the keyboard and mouse. Conversely, the host system shows the keyboard and mouse being unplugged and replugged. 3. The host system is a minimal install, it has management packages and video drivers, that's it. It does not have a complete Xorg install. EDIT #2: 1. I Installed inputplug and ran: DISPLAY=:0 inputplug -d --debug -c echo and it did not print any output while I plugged in a keyboard and unplugged it. 2. Again, dmesg on the base / host system shows the keyboard being plugged and unplugged. 3. The jail showed the device under /dev/ukbd1 matching the host. 4. The jail showed also showed the newly added device under /dev/input/event7. 5. xinput list isn't showing any difference in before and after. Hmm, I cannot create any file in /dev as root within the jail. This is a stretch, but is it that the jail itself does not have permissions to create any devices nodes it needs and is instead relying on the host to create them?
Asked by John Doe (123 rep)
Mar 19, 2024, 03:00 PM
Last activity: Apr 8, 2024, 10:52 PM