Bug 1060119

Summary: Keyboard layout not saved to system
Product: [openSUSE] openSUSE Tumbleweed Reporter: Thorsten Kukuk <kukuk>
Component: InstallationAssignee: E-mail List <yast2-maintainers>
Status: RESOLVED WORKSFORME QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: a.nolting
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Thorsten Kukuk 2017-09-24 07:27:05 UTC
If I select during installation a german keyboard, the keyboard layout in the installed system is later still US.
Comment 1 Alexander Nolting 2018-03-19 17:18:54 UTC
While I was exploring the Bug https://bugzilla.opensuse.org/show_bug.cgi?id=1055834 I figured out that Yast does not handle the German keyboard settings properly.

I'm working on a Asus ROG Gaming Laptop with an external keyboard from Corsair K95 RGB. I need constantly grave and other accents so I would like to configure German (Deadkeys) using Yast Keyboard module. This setting is only working in KDE an console for the actual session. After a reboot the layout is back to German nodeadkeys.

I investigated this issue and found that even if I manually setting up the system using localectl followed by a mkinitrd the settings are not saved.

This is what /etc/sysconfig/keyboard looks like:

## Path:        Hardware/Keyboard
## Description: Keyboard settings for the text console
## Type:        integer
## Default:
## ServiceRestart: kbdsettings
#
# Keyboard delay time in ms (250, 500, 750, 1000)
KBD_DELAY=""

## Type:	string(2.0,2.1,2.3,2.5,2.7,3.0,3.3,3.7,4.0,4.3,4.6,5.0,5.5,6.0,6.7,7.5,8.0,8.6,9.2,10.0,10.9,12.0,13.3,15.0,16.0,17.1,18.5,20.0,21.8,24.0,26.7,30.0)
## Default:
#
# Keyboard repeat rate (2.0 - 30.0)
KBD_RATE=""

## Type:        list(bios,yes,no)
## Default:     bios
#
# NumLock on? ("yes" or "no" or empty or "bios" for BIOS setting)
# This setting may interfere with GNOME /desktop/gnome/peripherals/keyboard/remember_numlock_state GConf key.
KBD_NUMLOCK="bios"

## Type:        yesno
## Default:     no
#
# ScrollLock on? ("yes" or "no")
KBD_SCRLOCK="no"

## Type:        yesno
## Default:     no
#
# CapsLock on? ("yes" or "no")
KBD_CAPSLOCK="no"

## Type:        yesno
## Default:     no
#
# Disable CAPS LOCK and make it a normal Shift key?
# (Ctrl Caps Lock will still toggle Caps Lock functionality)
# Note that you need to tweak the xkb maps or use xmodmap
# if you want to do the same under X-Windows. In ~/.Xmodmap:
# keycode 0x42 = Shift_L Shift_L
#
KBD_DISABLE_CAPS_LOCK="no"

## Type:        string
## Default:
#
# ttys for the above settings 
# Example: "tty1 tty2"
# "" for tty's 1-6
#
KBD_TTY=""

# The YaST-internal identifier of the attached keyboard.
#
YAST_KEYBOARD="german-deadkey,pc104"


This is what I setup manually:

localectl --no-convert set-locale de-latin1
localectl --no-convert set-x11-keymap de-latin1 pc104 de terminate:ctrl_alt_bksp
mkinitrd
Comment 2 Steffen Winterfeldt 2018-03-29 12:54:55 UTC
I tested tw-20180326 and could not see any issues.

BTW, I thought the reference for keymap data is now /etc/vconsole.conf, not sysconfig/keyboard.
Comment 3 Alexander Nolting 2018-03-30 00:46:07 UTC
Hi Steffen, I opened another bug report for my issue (see my comment) as this is not really my issue.
Regards Alex