Date: Wed, 18 Sep 2013 22:37:38 +0200 From: Matthieu Volat <mazhe@alkumuna.eu> Cc: ports@freebsd.org, x11@freebsd.org Subject: Re: [CFT] Update of xorg libraries and MESA Message-ID: <20130918223738.7867330d@alkumuna.eu> In-Reply-To: <20130917224303.5ca86c49@alkumuna.eu> References: <522DC3EB.4060607@freebsd.org> <522DE093.9080504@freebsd.org> <5236C259.3020100@gmail.com> <20130916090354.GW33103@ithaqua.etoilebsd.net> <5236F136.5030905@gmail.com> <3DE81815-D203-44BF-A1C0-BF9921EF57BC@alkumuna.eu> <523894AF.90608@gmail.com> <20130917224303.5ca86c49@alkumuna.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/CaP4JtKU/jf.4PREx5=Oj.l Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 17 Sep 2013 22:43:03 +0200 Matthieu Volat <mazhe@alkumuna.eu> wrote: > On Tue, 17 Sep 2013 20:43:11 +0300 > Vitaly Magerya <vmagerya@gmail.com> wrote: >=20 > > On 09/17/2013 10:29, Matthieu Volat wrote: > > > Just as a side note : I tested the devd backend and mouse & keyboard = were detected. > > > But what would be the best way to set the keyboard layout now? > >=20 > > You should add something like this to your xorg.conf: > >=20 > > Section "InputClass" > > Identifier "All The Keyboards" > > MatchDevicePath "/dev/*kbd*" > > Option "XkbLayout" "us,ru" > > <-- any other kbd(4) options here --> > > EndSection > >=20 > > (Warning: not tested). > >=20 > > This should work with any backend, be it HAL or DEVD; see "INPUTCLASS" > > section of xorg.conf man page for details on how it works. >=20 > Thanks, I was not aware of this section type which seems to be definitive= ly the way to go. >=20 > It is indeed working with hal based configuration (after removing the bit= s from hal config), but not so much with the devd backend. >=20 > First of all, with a quite bare configuration file (no ServerFlags option= s), I do have the following messages in log file: > [ 8342.054] (=3D=3D) Not automatically adding devices > [ 8342.054] (=3D=3D) Not automatically enabling devices >=20 > Strangely, keyboard and mouse are added, with default settings, > ignoring InputClass settings. If I force AutoAddDevices and > AutoEnableDevices, these messages are switched to confirm devices will be= searched and enabled... Except that I don't have keyboard/mouse in this ca= se. >=20 > If it can help, here's my xorg.conf : > https://gist.github.com/mazhe/6600263 >=20 Ok, I've had a few hours to poke around: it seems that calling the config_devd_init/fini functions is not done in config/config.c, is it by design? If I put it, I begin to have some function if ServerFlags AutoAddDevices and AutoEnableDevices: [ 2961.464] (II) config/devd: Adding input device Keyboard (/dev/atkbd0) [ 2961.464] (II) No input driver specified, ignoring this device. [ 2961.464] (II) This device may have been added with another device file. [ 2961.464] (II) config/devd: Adding input device Mouse (/dev/psm0) [ 2961.464] (II) No input driver specified, ignoring this device. [ 2961.464] (II) This device may have been added with another device file. This is were InputClass section should came in handy, I suppose, but I'm no= t sure this is the keyboard xserver should be using (reports unavailable wh= en I try to set a driver) and I remember fighting against HAL to use /dev/s= ysmouse (moused is enabled) in favor of /dev/psm0 for the mouse device. Also, despite even adding init/fini function to config/config.c, xserver st= ill don't acknowledge I am using a hotpplugin backend : [ 4066.978] (WW) Hotplugging requested but the server was compiled without a config backend. No input devices were configured, the server will start without any input devices. I'll try to poke around later, but I may not have time for this for a few d= ays. --=20 Matthieu Volat <mazhe@alkumuna.eu> --Sig_/CaP4JtKU/jf.4PREx5=Oj.l Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iEYEARECAAYFAlI6DyAACgkQ+ENDeYKZi35NTgCfa3N0rktwgyLqGtkgq3JWQiEy uJUAn1rXuMVw1zbVDRb0c2mX22z25Oiu =hfvf -----END PGP SIGNATURE----- --Sig_/CaP4JtKU/jf.4PREx5=Oj.l--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130918223738.7867330d>