No mouse or keyboard with Xorg
Vlad D. Markov
dvoich at aim.com
Sun Mar 1 16:47:20 UTC 2020
On Sun, 1 Mar 2020 06:28:53 +0100
Polytropon <freebsd at edvax.de> wrote:
> On Fri, 28 Feb 2020 10:00:00 -0500, Vlad D. Markov via freebsd-questions wrote:
> > On Thu, 27 Feb 2020 14:57:13 -0500
> > Schmitt <acupuncture at cgocable.ca> wrote:
> >
> > >
> > >
> > > Le 27/02/2020 à 15:04, Vlad D.Markov via freebsd-questions a écrit :
> > > > I use startx to start Xorg. The window manager (fluxbox) comes up and
> > > > looks good BUT I have no mouse. The cursor is stuck in the middle of the
> > > > screen.
> > > >
> > > > This started happening immediately after I updated xorg-server. Before the
> > > > update I had no issues.
> > > >
> > > > uname:
> > > > FreeBSD happy 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64
> > > >
> > > > Xorg Version:
> > > > X.Org X Server 1.20.7
> > > > X Protocol Version 11, Revision 0
> > > > Build Operating System: FreeBSD 12.1-RELEASE-p2 amd64
> > > > Current Operating System: FreeBSD happy 12.1-RELEASE-p2 FreeBSD
> > > > 12.1-RELEASE-p2 GENERIC amd64
> > > > Build Date: 21 February 2020 05:05:56PM
> > > >
> > > > Current version of pixman: 0.38.4
> > > > Before reporting problems, check http://wiki.x.org
> > > > to make sure that you have the latest version.
> > > >
> > > > The log where the problem is reported:
> > > >
> > > > [ 186.068] (II) config/devd: probing input devices...
> > > > [ 186.068] (II) config/devd: EVDEV_SUPPORT is enabled, ignoring device
> > > > atkbd0
> > > > [ 186.068] (II) config/devd: detected event input: System keyboard
> > > > multiplexer
> > > > , bustype=0006, vendor=0000, product=0000, version=0000
> > > > [ 186.068] (II) config/devd: adding input device /dev/input/event0
> > > > [ 186.068] (**) System keyboard multiplexer: Applying InputClass "Evdev
> > > > keyboa
> > > > rd"
> > > > [ 186.068] (II) No input driver specified, ignoring this device.
> > > > [ 186.068] (II) This device may have been added with another device file.
> > > > [ 186.068] (EE) config/devd: error 1 adding device /dev/input/event0
> > > > [ 186.068] (II) config/devd: detected event input: System mouse,
> > > > bustype=0006,
> > > > vendor=0000, product=0000, version=0000
> > > > [ 186.068] (II) config/devd: adding input device /dev/input/event1
> > > > [ 186.069] (II) No input driver specified, ignoring this device.
> > > > [ 186.069] (II) This device may have been added with another device file.
> > > > [ 186.069] (EE) config/devd: error 1 adding device /dev/input/event1
> > > > [ 186.069] (II) config/devd: detected event input: AT keyboard,
> > > > bustype=0011, vendor=0001, product=0001, version=0000
> > > > [ 186.069] (II) config/devd: adding input device /dev/input/event2
> > > > [ 186.069] (**) AT keyboard: Applying InputClass "Evdev keyboard"
> > > > [ 186.069] (II) No input driver specified, ignoring this device.
> > > > [ 186.069] (II) This device may have been added with another device file.
> > > > [ 186.069] (EE) config/devd: error 1 adding device /dev/input/event2
> > > > [ 186.069] (II) config/devd: detected event input: Generic PS/2 mouse,
> > > > bustype=0011, vendor=0002, product=0001, version=0000
> > > > [ 186.069] (II) config/devd: adding input device /dev/input/event3
> > > > [ 186.069] (II) No input driver specified, ignoring this device.
> > > > [ 186.069] (II) This device may have been added with another device file.
> > > > [ 186.069] (EE) config/devd: error 1 adding device /dev/input/event3
> > > > [ 186.069] (II) config/devd: EVDEV_SUPPORT is enabled, ignoring device
> > > > kbdmux0
> > > > [ 186.069] (II) config/devd: EVDEV_SUPPORT is enabled, ignoring device psm0
> > > > [ 186.069] (II) config/devd: EVDEV_SUPPORT is enabled, ignoring device
> > > > sysmouse
> > > > [ 187.528] (II) intel(0): EDID vendor "LPL", prod id 307
> > > > [ 187.528] (II) intel(0): Printing DDC gathered Modelines:
> > > > [ 187.528] (II) intel(0): Modeline "1280x800"x0.0 69.30 1280 1328 1360
> > > > 1405 800 803 809 822 -hsync -vsync (49.3 kHz eP)
> > > > [ 251.161] (II) config/devd: terminating backend...
> > > > [ 251.692] (II) Server terminated successfully (0). Closing log file.
> > > >
> > > > Thanks,
> > > >
> > > > Vlad
> > > > _______________________________________________
> > > > freebsd-questions at freebsd.org mailing list
> > > > https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> > > >
> > >
> > > Have you checked this?
> > >
> > > https://forums.freebsd.org/threads/new-xorg-switch-from-devd-to-udev.74144/#post-453355
> >
> > That URL had the answers to fix my problem. All is well now.
>
> It would be nice to summarize the reason of the problem and
> the currently working solution for further reference in the
> mailing list (instead of just referencing external sources
> that might disappear). ;-)
>
> X.org as of February 2020 now requires UDEV (as known from
> Linux) to discover input devices, this is the default now;
> FreeBSD's devd can still be selected when building from source.
>
> ====> Backend to use for input device configuration:
> you can only select none or one of them
> DEVD=off: Use devd for autoconfiguration of input devices
> UDEV=on: Use udev via libudev-devd for autoconfiguration
> of input devices
>
> Involved parts to be updated or (re-)installed are xorg-server,
> libinput, xf86-input-libinput, and libudev-devd.
>
> Further information can be found in xorg-server's pkg-message.
>
> Especially the new pitfalls for dealing with PS/2 keyboards
> and mice, or stuff that you might need as a partial configuration
> file into /usr/local/etc/X11/xorg.conf.d/, or possible additions
> to /etc/sysctl.conf (values explained in /sys/dev/evdev/evdev.h),
> or yet another way to set your keyboard layout, and a few other
> Linuxisms are discussed in the forum thread mentioned above.
>
> Please correct and advise if I didn't understand it correctly!
>
> Vlad: As there seem to be more than one solution and suggestions,
> which one worked _for you_? It's always nice to see a _verified_
> solution on the mailing list where a real person can confirm
> that a specific (!) set of actions solved the problem. :-)
>
>
>
> --
I followed theses instructions which led to success:
I had the same problems on my T430. What I did to make input devices work again: reinstall x11-servers/xorg-server with UDEV option ON, (re)installed x11/libinput and x11-drivers/xf86-input-libinput and then created a file:
/usr/local/etc/X11/xorg.conf.d/99-myinput.conf
Code:
Section "InputClass"
Identifier "libinput keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "XkbRules" "evdev"
EndSection
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "MiddleEmulation" "on"
Option "DisableWhileTyping" "off"
EndSection
Also I added in /etc/sysctl.conf the following line: kern.evdev.rcpt_mask=12. Now everything it's working again.
Vlad
More information about the freebsd-questions
mailing list