A couple of days ago when i booted my Lenovo X270 Thinkpad I noticed many of the keys had changed (#now sift-3 rater than the laelled key extree right). Also my attemt to disable capslock no longer worked.
using yast2 I said I had an English UK keyboard and some stuff returned to @normal@ but it did not survive a rebot.
I am sure i never fiddled with that area; I have been regulatly running zypper up
I do not run gnome or kde, but fvwm with xterm and emacs mainly. No desktop in the common meaning.
Any suggestions as how to recover a keyboard that corresponds to the labels on the keys?
Just out of curiosity, just doublechecking that you know that you are supposed to use the Alternatives sub-system (command update-alternatives) to set your WM as well as selecting fvwm2 if necessary from the logon screen?
I cannot see how any of this relates. I have been running this scheme for decades and it suddenly changed the keyboard to US (I think). The two questions are why did it happen and how to restore what was the case.
The logon screen is standard xdm and all I need are my user name and my password.
Yes I checked and it was EnglishUK. I think the culprit might be iceWM which seems to have been installed/updated recently and changed alternatives/default-xsession.desktop but we may see when I reboot tomorrow
Just booted this computer and the provem persists.
owever There is a little more information;
1: I used yast to configure the keyboard as UK. The first artempt changed nothing. – still got \ for # key. Tried again with yast2 but this time it changed it.
2: Now when Ido things I get messages ****
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is en_US.UTF-8,LANG=en_GB.UTF-8
svn: warning: please check that your locale name is correct
Updating ‘.’:
I have not knowing changed anything to do with locales. Where should I find the configuration and what should it say?
Just booted this computer and the provem persists.
owever There is a little more information;
1: I used yast to configure the keyboard as UK. The first artempt changed nothing. – still got \ for # key. Tried again with yast2 but this time it changed it.
2: Now when Ido things I get messages ****
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LC_CTYPE is en_US.UTF-8,LANG=en_GB.UTF-8
svn: warning: please check that your locale name is correct
Updating ‘.’:
I have not knowing changed anything to do with locales. Where should I find the configuration and what should it say?
I do not use bash normally, always csh but I looked at those files and did not see any reference to locales.
Not sure what a good setting is – I just want the keys on the keyboard to correspond to the character on the screen.
For “csh”, the files are “.cshrc” and “.login” in your home directory. And the system-wide files are “/etc/csh.cshrc” and “/etc/csh.login”. The system-wide shell startup files also source some files from “/etc/profile.d”. Possibly “/etc/profile.d/lang.csh” is the one causing problems for you.
> grep -iE 'RC_|LC_' /etc/sysconfig/language
# Local users will get RC_LANG as their default language, i.e. the
# environment variable $LANG . $LANG is the default of all $LC_*-variables,
# as long as $LC_ALL is not set, which overrides all $LC_-variables.
RC_LANG=""
RC_LC_ALL=""
RC_LC_MESSAGES=""
RC_LC_CTYPE=""
RC_LC_COLLATE=""
RC_LC_TIME=""
RC_LC_NUMERIC=""
RC_LC_MONETARY=""
RC_LC_PAPER=""
# Value "ctype" means that root uses just LC_CTYPE.
>
You can check that YaST is using a language appropriate for your location – “/etc/sysconfig/yast2”:
## Type: string
## Default: ""
#
# List of installed language supports, use by YaST2
#
INSTALLED_LANGUAGES="de_DE"
Not really relevant but, have you checked the contents of “/etc/vconsole.conf”?For this part of the planet and, because of a 140 dpi monitor – the font used isn’t the standard openSUSE one – it looks like this:
If you suspect a csh setting is the culprit,
Instead of inspecting all the files, you can simply do a “force re-install” to re-install default files (is different than a regular install which doesn’t over-write existing configuration files).
Or, maybe this is actually what caused your problem… Perhaps an update or system recovery installed default files which might contain US keyboard settings.
In any case,
If you’re installed on BTRFS, you can simply roll back to before you noticed problems, and that should fix your problem if the problem is in your root partition (It’s likely you will then have to do a system update to re-install patches and other updates). If the problem is in a User file, ie in /home a rollback won’t change anything.
The current state is no complaints about locale but after every reboot the keyboard changes to what looks like US ormn. If I run (as root) “yast2 keyboard” and clibk on the already selete English(IUK) thenthe test give # for key on extreme right up 3 lines up sp I accept and then it is OK until the next boot.
I suppose I csn live with this but it is irritating.
Then, the problem you’re experiencing is the “KEYMAP=” parameter of ‘/etc/vconsole.conf’ …
“KEYMAP= defaults to “us” if not set.
” – the man page …
If the parameter “KEYMAP=” is set to the value “gb” – this issue should be resolved …
[HR][/HR]Using the command “localectl list-keymaps”, the following keymaps are listed for keyboards as used by the population of the West European Islands:
[QUOTE=dcurtisfra;2974498]Then, the problem you’re experiencing is the “KEYMAP=” parameter of ‘/etc/vconsole.conf’ …
“KEYMAP= defaults to “us” if not set.
” – the man page …
If the parameter “KEYMAP=” is set to the value “gb” – this issue should be resolved …
[HR][/HR]Using the command “localectl list-keymaps”, the following keymaps are listed for keyboards as used by the population of the West European Islands:/QUOTE
Well /etc/vcondole.con says
There is a “uk” keymap mentioned by “localectl list-keymaps” but, no matching file in /usr/share/kbd/keymaps/xkb/ …
Meaning, within localectl “uk” is an alias for “gb” …
I took a look on the Leap 15.1 and Leap 15.0 DVDs – there ain’t no “uk” keymap file in /usr/share/kbd/keymaps/xkb/ …
[HR][/HR]You may care to take a look at this ArchLinux thread: <https://bbs.archlinux.org/viewtopic.php?id=130360>.