LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-24-2024, 11:00 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,305

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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.
 
Old 03-24-2024, 11:24 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Have you configured /etc/rc.d/rc.keymap ?


I customise mine a little here. I use this:
Code:
#!/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.

Last edited by GazL; 03-24-2024 at 11:27 AM.
 
3 members found this post helpful.
Old 03-24-2024, 11:57 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,305

Original Poster
Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Nope. ;redface:

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.
 
Old 03-24-2024, 12:23 PM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
There's a command called 'showkey" that will show you the keycodes/scancodes for the various buttons when you push them.

"dumpkeys" is useful too.
 
Old 03-24-2024, 12:30 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,305

Original Poster
Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Thanks. I actually just stuck a line in rc.local, because what you did sounded like work. The default is fine for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
no support for locale: en_Us.itf8 Stuck found some post but still Stuck!! Suec7832 Linux - Newbie 1 08-30-2011 08:13 AM
Simplified Chinese in Qt apps under en_US.UTF-8? milkycow Slackware 1 05-24-2007 11:05 PM
Help needed with font installation on Debian 3.1 with locale all set to en_US.UTF-8 PhantmShado Linux - Software 1 02-20-2006 03:50 PM
gtkrc.en_us not found paulr1984 Linux - Software 0 05-01-2005 10:15 PM
locale is en_US.UTF-8, but gnome turns out to chinese envirement donkey301 Debian 1 03-02-2005 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration