LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-06-2021, 11:42 PM   #1
SporadicThought
LQ Newbie
 
Registered: Feb 2021
Location: Sacramento, CA
Distribution: Kali Linux, Manjaro
Posts: 2

Rep: Reputation: Disabled
Question Keyboard backspace behavior at boot-time decryption passphrase


Quote:
OS: Kali Linux 2020.4
System: Acer Predator 17 (G9-791) w/ German keyboard.

** firmware-linux_20201218-3_all.deb (Debian Sid [testing]) installed

Encrypted layout:
LVM on LUKS2: / /home swap
Non-encrypted: /boot /boot/efi
At the passphrase prompt, the backspace key adds a masked character to the passphrase entry box. Behavior should be deletion of previous character.

My attempted solution:
  • Default boot into Kali
    Code:
    # dpkg-reconfigure keyboard-configuration
    .
  • Code:
    Generic 105-key PC (intl.)
    English (US) - English (US, euro on 5)
    AltGr: Default for the keyboard layout
    Compose: No compose key
    Ctl+Atl+Backspace to terminate X = Yes
    On reboot, backspace behavior is as initially described.

  • Afterward:
  • Code:
    sudo nano /etc/initramfs-tools/initramfs.conf
    ,
  • modify,
    Code:
    KEYMAP=n
    ,
    to,
    Code:
    KEYMAP=y
    .
  • Code:
    $ sudo update-initramfs -uv
    .
    On reboot, backspace behavior is as initially described.

The backspace works as it should once the OS is operational.

Tips or suggestions on solving or troubleshooting the issue are appreciated.

Last edited by SporadicThought; 02-07-2021 at 03:35 AM. Reason: clarifications
 
Old 02-07-2021, 01:35 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
What key are you talking about.
After booting into GUI, launch
Code:
xev
and use the key in question - what does it say?

Are you sure the intiramfs takes over keyboard settings from dpkg-reconfigure? I think the console keymap mentioned in its man page is something else?
 
1 members found this post helpful.
Old 02-07-2021, 03:30 AM   #3
SporadicThought
LQ Newbie
 
Registered: Feb 2021
Location: Sacramento, CA
Distribution: Kali Linux, Manjaro
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
What key are you talking about.
After booting into GUI, launch
Code:
xev
and use the key in question - what does it say?
  • Code:
    $ xev
    
    KeyRelease event, serial 37, synthetic NO, window 0x5a00001,
        root 0x944, subw 0x0, time 1834238, (64,-12), root:(927,591),
        state 0x10, keycode 22 (keysym 0xff08, BackSpace), same_screen YES,
        XLookupString gives 1 bytes: (08) "
        XFilterEvent returns: False
Quote:
Are you sure the intiramfs takes over keyboard settings from dpkg-reconfigure? I think the console keymap mentioned in its man page is something else?
It didn't occur to me to look in the man for initramfs or keyboard-configuration. I will give that a try.

I'm hoping someone with applied experience will save me from making a mistake.

Thank you for the hint!
 
Old 02-09-2021, 12:44 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
OK, so it really is the backspace key.
Sorry, I had to make sure, maybe not everybody knows the difference between Backspace and Delete key.
I have never heard of a keyboard layout that uses this key differently.
Is everything else working normally? You can still enter that passphrase and start the system?
Is that a graphical password entering thingy, or console?
If you don't go to graphical login, but TUI only (console, tty etc.), or maybe recovery - does it show the same behaviour?
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Manjaro Linux: cryptsetup & kernel 3.7: keyboard unresponsive trying to enter passphrase grail Linux - Distributions 0 01-20-2013 12:45 PM
Python: Quirky behavior on backspace of Chinese input General Programming 0 03-15-2010 06:44 AM
GPG with out passphrase option for decryption vjayraghavan Linux - Newbie 1 07-01-2009 09:12 AM
Encrypt 2nd drive without 2nd boot time passphrase: How? gargamel Slackware - Installation 15 05-30-2009 02:50 PM
Hardware real time encryption/decryption in Linux... Akonbobot Linux - Security 2 11-24-2004 01:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:47 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