From owner-freebsd-questions@freebsd.org Sun Jun 21 13:23:28 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B3D6D34F615 for ; Sun, 21 Jun 2020 13:23:28 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49qYC36RPxz3gxb for ; Sun, 21 Jun 2020 13:23:27 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.223.160.216]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPA (Nemesis) id 1MdeSt-1jDf7e1Eor-00ZjOe; Sun, 21 Jun 2020 15:23:19 +0200 Date: Sun, 21 Jun 2020 15:23:18 +0200 From: Polytropon To: Jacques Foucry Cc: freebsd-questions@freebsd.org Subject: Re: Xorg, lightdm, xfce & German Keyboard Message-Id: <20200621152318.9c5d95a5.freebsd@edvax.de> In-Reply-To: <20200621125625.GU16409@mithril> References: <636e8210-85df-6142-22c8-5393333494d3@chemie.uni-hamburg.de> <20200621101222.576d5977@archlinux> <92c75d0893dcbb9ba395b1e8352f02be25d45d7e.camel@riseup.net> <3e3de7a2-fe5a-ec9a-1755-dd1b3f383408@chemie.uni-hamburg.de> <20200621143043.d1fa826f.freebsd@edvax.de> <20200621125625.GU16409@mithril> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=U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B2GVmkEhS1qDeagf9VUT1fT/HtO73fvSCG0O//eMRzu2PiM/7hnJHv3Bu+fSg7MGJGx BGrgmOhE5jkAy0A057ax/y1lJKizrDRRj45mfmoLV27tgjcJ6g= X-Rspamd-Queue-Id: 49qYC36RPxz3gxb X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 212.227.17.24) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [2.08 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; NEURAL_HAM_SHORT(-0.33)[-0.326]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[94.223.160.216:received]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.41)[-0.409]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[text/plain]; AUTH_NA(1.00)[]; DMARC_NA(0.00)[edvax.de]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.42)[0.417]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[212.227.17.24:from]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.17.24:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jun 2020 13:23:28 -0000 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, ...