2021-06-09 21:11:44 UTC
/etc/X11/xorg.conf.d when Xorg is started? I have tried to start Xorg
with the switch -configdir but that only seems to make it possible to
read configuration files from yet another directory, files in
/etc/X11/xorg.conf.d are still being read.
My problem is that I maintain several machines, some with the default
xorg.conf from Slackware and some with an xorg.conf adapted to the nVidia
binary driver. To push X configurations to all these machines files in
xorg.conf.d are used, one of those files is used to set swedish keyboard
Option "XkbLayout" "fi"
Option "XkbVariant" "nodeadkeys"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
Now some machines need to run an extra X server headless and any local
user need to be able to connect to that server. This is to run a
calculation application which should be a server application but has been
implemented as a graphical X application.
From rc.local I call a script which starts Xorg on :5 without using any
monitor and it was my intention to also not use any keyboard or mouse for
that X server. Unfortunately my 90-keyboard-layout.conf script somehow
causes the evdev driver to be loaded also for the X server on :5. The
result is that any mouse and keyboard input that is given by the user
sitting on :0 also is sent to :5 and that input might interfere on
applications running on :5. Needless to say this is also a security issue
as any local user could start an application running on :5 which logs
keyboard activity on :0.
Somehow I would need to start X with display :5 without keyboard or mouse
input. I use the switch -config when I start Xorg for :5 to point to a
special xorg.conf.headless, but I have not found any way to avoid