When I first installed FreeBSD, 12.1-RELEASE-p3 and X, I set it for Alt-Ctl-BS to zap X, but that didn't work, nor did Alt-Ctl-Fn get me back my other ttyvs with other users logged in or able to, just black screens; but the correct Fn would get me back to my X screen, where I could exit xterm, which would kill X and give me back my consoles, so it was only slightly inconvenient; I lived with it. The I upgraded to p10. Once I left the X screen with Alt-Ctl-Fn (hoping the problem might have been fixed) I couldn't even get it back, and had to reboot without an orderly shutdown; nasty, so I never tried that again, but xterm and other clients still worked and could be exited, so still not a huge problem. But I got a warning that the supported life of 12.1 was nearing its end and I should upgrade soon. So I did, to 12.2-RELEASE. Not knowing about the delayed build policy, I imagined that upgrading everything else to current couldn't hurt and might help, so I did, including X. All still from packages. And the roof caved in.
Once I start X (via startx or xinit), my keyboard goes crazy. The clients don't matter: The first time was the default twm and xterm, but I've tried it with only xterm (one window, upper left), and without xterm (just Firefox), and it's always the same. So I assume the problem must be in the server, the default xorg (via xorg.wrap). All of the other servers in Ports' x-servers look like just elaborations of xorg with extra features, rather than truly independent basic servers, and the one I tried to install failed with the polkit problem discussed below, so I haven't been able to escape xorg.
The mouse works fine, so I can exit via a close button (after doing nothing of value). But keypresses yield gibberish. It's not just that typing A produces B; many unshifted keys produce weird characters that have to be shown as \nnn, the sort that no sane keymap would assign to basic keys. I've run xmodmap and stty (via .xinitrc) and the results look perfectly normal. And typing the same key twice yields different results. It looks as if xorg is trying to manage the keyboard at a very low level and doing it so badly as to get frame or parity errors or something.
I suspect the problem might be that the evdev driver won't install, either as part of X or separately; it shows a message from pw and quits. Because it depends on polkit, which is trying to install a user named polkit, and pw reports that this user is mysteriously disappearing. The same thing happens when I run pw myself and try to create polkit as user #562, which polkit wants. Neither pw nor id can see this user at all. Yet when I look at passwd and master.passwd, the lines are there, looking normal.
I have no idea what is going on or what to do. Help!
Once I start X (via startx or xinit), my keyboard goes crazy. The clients don't matter: The first time was the default twm and xterm, but I've tried it with only xterm (one window, upper left), and without xterm (just Firefox), and it's always the same. So I assume the problem must be in the server, the default xorg (via xorg.wrap). All of the other servers in Ports' x-servers look like just elaborations of xorg with extra features, rather than truly independent basic servers, and the one I tried to install failed with the polkit problem discussed below, so I haven't been able to escape xorg.
The mouse works fine, so I can exit via a close button (after doing nothing of value). But keypresses yield gibberish. It's not just that typing A produces B; many unshifted keys produce weird characters that have to be shown as \nnn, the sort that no sane keymap would assign to basic keys. I've run xmodmap and stty (via .xinitrc) and the results look perfectly normal. And typing the same key twice yields different results. It looks as if xorg is trying to manage the keyboard at a very low level and doing it so badly as to get frame or parity errors or something.
I suspect the problem might be that the evdev driver won't install, either as part of X or separately; it shows a message from pw and quits. Because it depends on polkit, which is trying to install a user named polkit, and pw reports that this user is mysteriously disappearing. The same thing happens when I run pw myself and try to create polkit as user #562, which polkit wants. Neither pw nor id can see this user at all. Yet when I look at passwd and master.passwd, the lines are there, looking normal.
I have no idea what is going on or what to do. Help!
Last edited: