[SOLVED] Keyboard on ~Current: Agetty consoles stuck on en_US.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Keyboard on ~Current: Agetty consoles stuck on en_US.
After the cleanest of clean installs, I'm trying to restore some semblance of normality to my setup. I'm running on ~Current of 2024-03-22 and Willysr's Mate in X.
The en_US keyboard defaults EVERYWHERE are a bugbear for the rest of the world. At the moment, I'm defaulting to runlevel 4 and have a modified to an Irish keyboard set up with things like a € sign, math symbols Gaelic accents etc. that I maintain myself. I'm using en_IE@euro locale.
But if I hit Ctrl_Alt_F2, and go to runlevel 3 consoles, I seem to have some US key mapping installed.There's no keyboard module that I can find; Neither is there a setting in /etc/profile, /etc/profile.d/, rc.local. Anything that I can find now is configured en_IE@euro. But the keyboard still does Shift_2 = @, I’ve no euro sign. Where 'apostrophe & @' should be (Right of ‘;&:’ key, which is right of ‘l&L’) my consoles give me ” How do I purge my consoles of en_US settings? I have done a couple of complete reboots to purge any stored values, and can't find anything else to change.
#!/bin/sh
# Stop the kernel complaining about unknown keys for the
# brightness up/down keys on a HP Pavilion laptop.
# (Ensure the keycode (239) is mapped to VoidSymbol in
# the mapfile.
/usr/bin/setkeycodes e02b 239
# Load the console keyboard map.
if [ -x /usr/bin/loadkeys -a -f /etc/keymap.map ]; then
/usr/bin/loadkeys /etc/keymap.map
fi
Then in /etc/keymap.map, I have:
Code:
#!/usr/bin/loadkeys
#
# This file will be processed by loadkeys, invoked by
# /etc/rc.d/rc.keymap during system initialisation.
#
# Include the standard British layout qwerty PC keymap:
include "/usr/share/kbd/keymaps/i386/qwerty/uk.map"
# Add the European currency 'euro' symbol to AltGr-4:
altgr keycode 5 = euro
# Add the cent symbol to AltGr-c:
altgr keycode 46 = cent
# Make Ctrl-/ send Control_underscore (for emacs undo key):
control keycode 53 = Control_underscore
# Make control-shift-minus send control_underscore (also emacs):
#control keycode 12 = minus
control shift keycode 12 = Control_underscore
# My HP Pavilion laptop generates an additional scancodes when
# the brightness up/down keys are pressed.
keycode 239 = VoidSymbol
# Prevent the backlight brightness up/down function keys generating
# characters (acpi will handle them):
#keycode 224 = VoidSymbol
#keycode 225 = VoidSymbol
# Prevent the mute, volumedown, volumeup function keys generating
# characters (acpi will handle them):
# keycode 113 = VoidSymbol
# keycode 114 = VoidSymbol
# keycode 115 = VoidSymbol
I prefer doing it this way: using the include and then my own modifications in /etc/keymap.map.
BTW, if you compile your own kernel you can embed your chosen keymap into it as a default. I do that on my crux install, but on Slackware I use Pat's kernels.
Thanks for the rapid reply. It actually works. You might try the 'ie' map because it's nearly identical and of course, has the *€ sign (AltGr_4), seeing as that's our currency.
What I'd like to know is how you got the keycode nymbers for the keys you were reassigning?
Last edited by business_kid; 03-24-2024 at 12:00 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.