Xorg, lightdm, xfce & German Keyboard

Polytropon freebsd at edvax.de
Sun Jun 21 13:23:28 UTC 2020


On Sun, 21 Jun 2020 14:56:25 +0200, Jacques Foucry wrote:
> Le dimanche 21 juin 2020 à 14:30:43 (+0200), Polytropon à écrit:
> > On Sun, 21 Jun 2020 10:59:16 +0200, Christian Schmidt wrote:
> > > Good "morning" Ralf, ;-))
> > > 
> > > On 6/21/20 10:24 AM, Ralf Mardorf wrote:
> > > > I still didn't read/understand correctly.
> > > > 
> > > > I apologize again!
> > > 
> > > No, I have to apologize: I should have mentioned that I already defined
> > > 
> > > Section "InputClass"
> > >          Identifier "system-keyboard"
> > >          MatchIsKeyboard "on"
> > >          Option "XkbLayout" "de"
> > >          Option "XkbModel" "pc105"
> > >          Option "XkbVariant" "nodeadkeys"
> > > EndSection
> > > 
> > > in /usr/local/etc/X11/xorg.conf.d/keyboard.conf. KB layout in general 
> > > works as expected - except from umlauts.
> > 
> > I recently had the same problem after upgrading X - the keyboard
> > settings for the german language in a /usr/local/etc/X11/xorg.conf.d/
> > file did no longer work (nor did the keyboard work at all); I had
> > to set them in a per-user manner using setxkbmap in ~/.xsession,
> > as you already correctly did, with the exception that display managers
> > don't read ~/.xinitrc, they use ~/.xsession (problem already solved).
> 
> 
> Hum… that strange for me to.
> 
> I made a symlink lsn -s .xinitrc .xsession but many commands are not executed:
> 
> xrandr --output DP2-1 --mode 2560x1440
> xrandr --output DP2-1 --primary
> xrandr --output eDP1 --off
> setxkbmap -model logitech_base -layout us -variant altgr-intl -option terminate:ctrl_alt_bksp,misc:typo,compose:lwin
> if [ -f ~/.Xmodmap ]; then
>   xmodmap ~/.Xmodmap
> fi
> 
> exec i3
> 
> 
> The keybaord iѕ ok but the xrandr commandせ are not executed.
> 
> If I launch `sh .xinitrc` after login it works.
> 
> I suppose they are not in the right file, but which is the good one?

"Selective execution" is not a feature of X initialization
procedures. ;-)

Could it be that there's a $PATH issue? Or permisison issue?

I'm using the "cargo cult" method of the "cascaded approach"
which has been working so far. All commands are in ~/.xinitrc,
and my ~/.xsession looks like this:

In ~/.xsession:

	#!/bin/csh
	source ~/.cshrc
	exec ~/.xinitrc

In ~/.xinitrc:

	#!/bin/sh
	[ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc
	numlockx
	xsetroot -solid rgb:3b/4c/7a
	xset b 100 1000 15 &
	xset r rate 250 30 &
	xset s off &
	xset -dpms &
	exec wmaker

Note that I'm using the C shell as my default dialog shell
(and login shell).

All commands in .xinitrc will be executed after xdm login.
In the past, there were calls do xrandr, which I removed
because it works now by settings in a partial xorg.conf
file. :-)

By the way, the "cargo cult" also includes that both files
~/.xinitrc and ~/.xsession are +x attributes (executable).






-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list