Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Altgr as Compose key in console [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 513
Location: Wales, UK

PostPosted: Thu Nov 10, 2022 9:28 pm    Post subject: Altgr as Compose key in console [Solved] Reply with quote

I have been working through the problem of getting the AltGr key set up as compose in the virtual terminal console, but so far I have failed to get a result. Here is what I have tried:
  • I have made a custom keymap with the following contents
    Code:
    include "uk.map"

    keycode 100 = Compose

  • I have set /etc/conf.d/keymap to load this keymap:
    Code:
    # Use keymap to specify the default console keymap.  There is a complete tree
    # of keymaps in /usr/share/keymaps to choose from.
    #keymap="uk"
    keymap="tristan"
    # Should we first load the 'windowkeys' console keymap?  Most x86 users will
    # say "yes" here.  Note that non-x86 users should leave it as "no".
    # Loading this keymap will enable VT switching (like ALT+Left/Right)
    # using the special windows keys on the linux console.
    windowkeys="YES"

    # The maps to load for extended keyboards.  Most users will leave this as is.
    extended_keymaps=""
    # extended_keymaps="keypad euro2"

    # Tell dumpkeys(1) to interpret character action codes to be
    # from the specified character set.
    # This only matters if you set unicode="yes" in /etc/rc.conf.
    # For a list of valid sets, run `dumpkeys --help`
    dumpkeys_charset=""

    # Some fonts map AltGr-E to the currency symbol instead of the Euro.
    # To fix this, set to "yes"
    fix_euro="NO"

  • Confirmed that /etc/init.d/keymaps is enabled at boot level and is running.

I restart /etc/init.d/keymaps service (I am using OpenRC), but the compose key still doesn't work on AltGr. The default compose key, the PrintScrn button, works as expected so I know this isn't a console font issue. Rebooting the machine also doesn't make any difference. "showkey" confirms that the keycode for the AltGr key is 100. I have taken the line defining the change from the /usr/share/keymaps/i384/include/compose.inc file, so I believe I have the correct syntax.

I don't get any error messages in the system logs, and haven't observed any when watching the system booting up.

Have any of you come across this issue, and if so, how did you resolve it?
Can you think of anything else I should try?

I have everything working as expected in X sessions, but occasionally I am doing things in one of the virtual terminals, and would like to get this working properly.

EDIT: As is often the case after I have taken the trouble to write a message on the forum - I have fixed it!
I had to void the Compose definition applied to the PrintScrn key before it would work with the AltGr key:
Code:
include "uk.map"

keycode  99 = VoidSymbol
keycode 100 = Compose

Not documented anywhere, so I will look to update the wiki page.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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