Created attachment 219321 [details]
config and logs
12.2-RELEASE, GENERIC and custom kernel, stock X, Dell Latitude E6410.
After changing the Driver "modesetting" to "vesa" in the Device section of the Xorg -configure autogenerated config, I was able to get X to start. The mouse worked normally. However, when I tried to use the keyboard, I got totally random, apparently unreproducible trash. To make my keyboard work, I had to add
Option "AutoAddDevices" "False"
to the ServerFlags section.
The working config, the log of the failure, and the log of the success are attached.
Don't configure input devices, there is no need.
Per my previous BUG REPORT, X would not start unless it was given a configuration. To make it start, I tried the autogenerated config. Same failure. Then I made a one line change to the Device section. X started.
But I got garbage instead of keyboard input. Only when I configured X to not auto-add devices did I get a working X. Since then, I took the auto-generated configure and removed *everything* except the Device section (because X wouldn't start without it). I still got garbage.
So this is a real bug and this ticket should be re-opened.
Can you provide output from xinput --list-devices from a working system as well as a non-working system? Do you have any special options when building xorg, if you are building locally.
btw, as I stated in your other PR, your graphics driver isn't loaded properly, since you are using the vesa driver. It would have been nice if you mentioned that in the other PR.
For the record, I have sevarl computers running FreeBSD 12.1, 12.2 and current without seeing any of these issues. Granted, none of them are the same model as yours.
Can you also give a list of installed packages? Are you using latest or quarterly packages?
The input sections are quite broken. You should, on FreeBSD 12.2, be able to use input devices with libinput. Do you have xf86-input-libinput installed?
Can you also verify that moused is not running, and that sysctl kern.evdev.rcpt_mask is set to 12 (this is the default).
"when I tried to use the keyboard, I got totally random, apparently unreproducible trash."
Stumble on this in too, using XDM.
But try this;
Identifier "libinput keyboard catchall"
Option "XkbRules" "evdev"
It did make it work for me.