Bug 253707 - x11-servers/xorg-server: Keyboard does not work under Hyper-V, but mouse does
Summary: x11-servers/xorg-server: Keyboard does not work under Hyper-V, but mouse does
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-x11 (Nobody)
Depends on:
Reported: 2021-02-19 23:53 UTC by Neel Chauhan
Modified: 2021-02-20 02:18 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (x11)

Xorg log (55.27 KB, text/plain)
2021-02-19 23:53 UTC, Neel Chauhan
no flags Details
libinput list-devices output (1.70 KB, text/plain)
2021-02-19 23:54 UTC, Neel Chauhan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neel Chauhan freebsd_committer 2021-02-19 23:53:59 UTC
Created attachment 222653 [details]
Xorg log

I'm trying to install FreeBSD in a Hyper-V VM, and have installed Xorg.

I can use the keyboard in the console, and the mouse in Xorg. However, I cannot use the keyboard in Xorg. This happens on 12.2-RELEASE and 13.0-BETA3.

Attached is the Xorg log and the "libinput list-devices" output.

Hyper-V is running on Windows 10 LTSC 2019 on a machine from work. Since this machine is heavily locked down and doesn't let me dual-boot or let me install third party apps, I can't use VirtualBox or anything else. I can create VMs with Hyper-V and sideload a FreeBSD ISO.

This locked-down system is the only way to log in when I go on-call in April/May. At the same time, my home systems which dual-boot Windows 10 and FreeBSD-CURRENT only have a Windows 10 Home license which lacks Hyper-V.
Comment 1 Neel Chauhan freebsd_committer 2021-02-19 23:54:19 UTC
Created attachment 222654 [details]
libinput list-devices output
Comment 2 Patricio Villar 2021-02-20 02:18:36 UTC
Hi, if I recall correctly, you need to do "sysctl kern.evdev.rcpt_mask=6" in order to fix your keyboard under Hyper-V.
Since 12.2-RELEASE, the current default is "kern.evdev.rcpt_mask=12".
Hope it solves your issues.