Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wrong keyboard layout
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Waterdevil
Apprentice
Apprentice


Joined: 15 Aug 2017
Posts: 172
Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria

PostPosted: Tue Dec 03, 2019 9:49 am    Post subject: Wrong keyboard layout Reply with quote

Hello World,

once upon a time suddently my keyboard layout has changed. It is so long ago, that I don't know why.

for characters | \ @ and so on I have to press my left-alt-key.
Meta key (windows) to display application overview has no function any more.
Ctrl-v to paste something into firefox search input field doesn't work.

Where can I reset all this to default?

I have gnome desktop 3.30.

Code:
emerge --info
Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/gnome, gcc-9.2.0, glibc-2.29-r2, 5.1.15-gentoo x86_64)
=================================================================
System uname: Linux-5.1.15-gentoo-x86_64-Intel-R-_Xeon-R-_Gold_6138_CPU_@_2.00GHz-with-gentoo-2.6
KiB Mem:    65583164 total,  46483036 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Tue, 03 Dec 2019 02:00:01 +0000
Head commit of repository gentoo: bf88c02072d82282e20bc128c57682348f65dd8c
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
ccache version 3.7.4 [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.9::gentoo
dev-util/ccache:          3.7.4::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

gnome
    location: /var/lib/layman/gnome
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe         -march=skylake-avx512 -mmmx -mno-3dnow -msse -msse2 -msse3         -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul         -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mno-sgx -mbmi2         -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1         -mlzcnt -mrtm -mhle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx         -mfxsr -mxsave -mxsaveopt -mavx512f -mno-avx512er -mavx512cd         -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves         -mavx512dq -mavx512bw -mavx512vl -mno-avx512ifma -mno-avx512vbmi         -mno-avx5124fmaps -mno-avx5124vnniw -mclwb -mno-mwaitx -mno-clzero         -mpku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni         -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b         --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=28160 -mtune=skylake-avx512"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe         -march=skylake-avx512 -mmmx -mno-3dnow -msse -msse2 -msse3         -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul         -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi -mno-sgx -mbmi2         -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1         -mlzcnt -mrtm -mhle -mrdrnd -mf16c -mfsgsbase -mrdseed -mprfchw -madx         -mfxsr -mxsave -mxsaveopt -mavx512f -mno-avx512er -mavx512cd         -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mxsavec -mxsaves         -mavx512dq -mavx512bw -mavx512vl -mno-avx512ifma -mno-avx512vbmi         -mno-avx5124fmaps -mno-avx5124vnniw -mclwb -mno-mwaitx -mno-clzero         -mpku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni         -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b         --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=28160 -mtune=skylake-avx512"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j --load-average 36 --keep-going --quiet-build --quiet-fail -b                      --verbose-conflicts"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.evowise.com/gentoo/ http://gentoo.mirror.web4u.cz/ http://gentoo.wheel.sk/ https://mirrors.evowise.com/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j -l36"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="http://packages.gentooexperimental.org/packages/amd64-stable/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="# X \ a52 aac aacs acl acpi alsa amd64 apache2 bash-completion bdplus berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdr cli colord crypt crywrap css cups custom-cflags cxx dbus djvu dot dri dts dv dvb dvd dvdr eds efi elogind emboss encode equalizer eudev evo examples exif fam flac fontconfig fortran gdbm gif gimp git gnome gnome-keyring gnome-online-accounts gnuplot gphoto2 gpm gstreamer gtk handbook hddtemp iconv icu ieee1394 imap introspection ios ipod ipv6 javascript joystick jpeg jpeg2k kmod lame latex lcms ldap libnotify libsecret libtirpc lm_sensors mad matroska mime mng modules mozilla mp3 mp4 mpeg mplayer multilib mysql nautilus ncurses networkmanager nls nntp nptl nsplugin ocaml ogg opengl openmp pam pango pch pcre pdf perl php png policykit posix postscript ppds pulseaudio pygrub python qemu quicktime raw rdp readline rss samba scanner sdl seccomp snmp sound spell split-usr sqlite ssl startup-notification stream suid svg syslog tcpd text tiff tracker truetype udev udisks unicode upower usb vcd videos vnc vorbis wavpack wifi wmf wxwidgets x264 x265 xattr xcb xetex xine xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu efi-64 qemu" INPUT_DEVICES="synaptics evdev" KERNEL="linux" L10N="de en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nouveau fbdev" XFCE_PLUGINS="brightness clock trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


the only config I have for X:
Code:

cat nano /etc/X11/xorg.conf.d/10-enable-ctrl-alt-backspace.conf
Section "ServerFlags"
    Option "DontZap" "false"
EndSection

Section "InputClass"
    Identifier      "Keyboard Defaults"
    MatchIsKeyboard "yes"
    Option          "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

but this doesn't work!


Many thanks
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue Dec 03, 2019 10:40 am    Post subject: Reply with quote

Is your problem with console or with X?
Have you read https://wiki.gentoo.org/wiki/Keyboard_layout_switching?
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Tue Dec 03, 2019 12:36 pm    Post subject: Reply with quote

What happens if you specify a keyboard model and a keyboard layout?
Code:
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "de"
        Option "XkbModel" "pc105"
        Option "XkbVariant" "nodeadkeys"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Back to top
View user's profile Send private message
Waterdevil
Apprentice
Apprentice


Joined: 15 Aug 2017
Posts: 172
Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria

PostPosted: Tue Dec 03, 2019 10:07 pm    Post subject: Reply with quote

Quote:
Is your problem with console or with X?

I cannot switch with Ctrl-Alt-F1,... to console, but would like to have it.

Problem is in gnome-desktop, in all application windows like firefox, xfce4-terminal, libre-office.
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Wed Dec 04, 2019 6:15 am    Post subject: Reply with quote

Waterdevil wrote:
Problem is in gnome-desktop, in all application windows like firefox, xfce4-terminal, libre-office.

If you tried a simple wm like twm instead, does the problem persist?
Back to top
View user's profile Send private message
Waterdevil
Apprentice
Apprentice


Joined: 15 Aug 2017
Posts: 172
Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria

PostPosted: Sat Dec 07, 2019 9:18 pm    Post subject: Reply with quote

I tried with lightdm (can't get twm working), but problem persists.
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Fri Dec 13, 2019 7:23 am    Post subject: Reply with quote

Waterdevil wrote:
I tried with lightdm (can't get twm working), but problem persists.

You might want to temporarily disable all display manager and try startx
Back to top
View user's profile Send private message
alexander-n8hgeg5e
n00b
n00b


Joined: 02 Nov 2019
Posts: 58

PostPosted: Fri Dec 13, 2019 10:27 pm    Post subject: Reply with quote

Probably, some program is switching it at some time.
You can set layouts from building blocks with setxkbmap
If you want default us keymap for example "setxkbmap us"
There are two things i think, startx and xinit.
xinit is the more low level i think.
It runs what is in .xinitrc as your desktop prog and runs the xserver.
Maybe startx runs this file too , at some point.
Back to top
View user's profile Send private message
Waterdevil
Apprentice
Apprentice


Joined: 15 Aug 2017
Posts: 172
Location: LaniakeaHypercluster VirgoSupercluster MilkomedaGroup OrionArm Sector001 GouldBelt SolSystem Austria

PostPosted: Sun Dec 15, 2019 7:05 pm    Post subject: Reply with quote

I know setxkbmap, I tried it but it changes nothing.
_________________
_____________________
Aut semper aut numquam

Main-Sys: LianLi modded Big Cube 8000,X11DPG-QT,MEM:64G,LSI 9305,HDD:102TB(16x3T,8x6T,4x1T,1x0,5Tm.2,4x0,5TSSD),nVidia GTX1060,NIC:2x10GbSFP+,Fans:20,PSU:1200W+500W,UPS:APC1500VA,FibreChannel,Tandberg LTO-6
Back to top
View user's profile Send private message
alexander-n8hgeg5e
n00b
n00b


Joined: 02 Nov 2019
Posts: 58

PostPosted: Tue Dec 17, 2019 4:17 pm    Post subject: Reply with quote

Waterdevil wrote:
I know setxkbmap, I tried it but it changes nothing.


What do xev report?
Are you under X?
If yes, you can pull the active keymap with xkbcomp $DISPLAY filename.
You can hack it and loadit with xkbcomp filename $DISPLAY.
But save your work. Even the xserver can crash.
Maybe your xserver refuses to do that, no xkb extension , who knows...
Then you know where to search.
Back to top
View user's profile Send private message
sebB
l33t
l33t


Joined: 02 Mar 2011
Posts: 806
Location: S.O. France

PostPosted: Tue Dec 17, 2019 5:56 pm    Post subject: Reply with quote

Have you look in settings / country and language?

Then in périphériques / keyboard you have the "all reset' command for shortcuts.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum