You are not logged in.

#1 2017-12-17 02:42:28

Olorin
Member
From: USA
Registered: 2014-12-17
Posts: 23

usb keyboard does not work for entering decryption passphrase at boot

I have a T420 thinkpad that I use as a desktop with monitors and usb keyboard hooked up. I am running vanilla 4.14 kernel. My HDD from a recent install is LUKS encrypted - just followed the wiki. When I boot and get to the screen to enter my decryption passphrase, my usb keyboard does not work (no input is detected). My laptop keyboard works fine. Then when the OS loads my usb keyboard works fine. My problem is very similar to this forum post and some others. The difference is, I have the keyboard hook in front of encrypt (and autodetect), I have tried putting everything that post has in modules in modules (i915 ext2 ext4 ehci_pci usb_common xhci_hcd uhci_hcd ehci_hcd ohci_hcd usbhid usbcore hid_generic), and I am not regenerating the wrong image by accident like that post as I have been using mkinitcpio -P each time. The usb keyboard uses the usbhid driver. With the keyboard hook in an early position and all of those modules loaded, that the problem still persists is baffling.

It may be worth noting that while the usb keyboard works fine in the OS, it also does not work at the grub menu for choosing an image or in the BIOS. (As a preemption, the BIOS does not, for some reason, and never has had a USB Legacy Support switch.)

I would greatly appreciate any thoughts on avenues I might explore to get this settled!

Offline

#2 2017-12-17 03:36:00

frostschutz
Member
Registered: 2013-11-15
Posts: 1,417

Re: usb keyboard does not work for entering decryption passphrase at boot

It should work if you really have the required modules loaded. If it works without autodetect, that should be it...

Show lsmod when it works? vs. lsmod in the initramfs shell.

Offline

#3 2017-12-17 05:50:19

Olorin
Member
From: USA
Registered: 2014-12-17
Posts: 23

Re: usb keyboard does not work for entering decryption passphrase at boot

Well, so the laptop's keyboard always works in all contexts, but the usb keyboard always works once the OS is loaded, and never works at the decryption passphrase screen or the grub menu that follows, regardless of whether the autodetect hook is used or not. When I am in the OS with everything loaded and the usb keyboard working, my lsmod looks like this:

Module                  Size  Used by
fuse                  118784  3
ccm                    20480  6
usblp                  24576  0
nls_iso8859_1          16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    77824  1 vfat
joydev                 24576  0
mousedev               24576  0
arc4                   16384  2
rmi_smbus              16384  0
intel_rapl             24576  0
rmi_core               86016  1 rmi_smbus
iwlmvm                348160  0
videobuf2_vmalloc      16384  1 rmi_core
videobuf2_memops       16384  1 videobuf2_vmalloc
x86_pkg_temp_thermal    16384  0
videobuf2_v4l2         28672  1 rmi_core
videobuf2_core         45056  2 videobuf2_v4l2,rmi_core
videodev              204800  3 videobuf2_core,videobuf2_v4l2,rmi_core
media                  45056  1 videodev
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             225280  0
snd_hda_codec_realtek   102400  1
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     57344  1
mac80211              901120  1 iwlmvm
kvm                   696320  1 kvm_intel
snd_hda_intel          45056  4
mei_wdt                16384  0
snd_hda_codec         151552  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           90112  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
irqbypass              16384  1 kvm
iwlwifi               299008  1 iwlmvm
snd_hwdep              16384  1 snd_hda_codec
iTCO_wdt               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
wmi_bmof               16384  0
thinkpad_acpi          98304  1
snd_pcm               114688  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
intel_cstate           16384  0
intel_rapl_perf        16384  0
cfg80211              733184  3 iwlmvm,iwlwifi,mac80211
nvram                  16384  1 thinkpad_acpi
rfkill                 28672  5 thinkpad_acpi,cfg80211
input_leds             16384  0
led_class              16384  3 iwlmvm,input_leds,thinkpad_acpi
snd_timer              36864  1 snd_pcm
psmouse               167936  0
pcspkr                 16384  0
snd                    90112  17 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,thinkpad_acpi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
soundcore              16384  1 snd
battery                20480  0
ac                     16384  0
tpm_tis                16384  0
tpm_tis_core           20480  1 tpm_tis
tpm                    65536  2 tpm_tis,tpm_tis_core
i2c_i801               28672  0
e1000e                278528  0
ptp                    20480  1 e1000e
mei_me                 45056  1
thermal                20480  0
mei                   114688  3 mei_me,mei_wdt
pps_core               20480  1 ptp
shpchp                 40960  0
evdev                  20480  18
lpc_ich                28672  0
intel_pch_thermal      16384  0
mac_hid                16384  0
wmi                    28672  1 wmi_bmof
sch_fq_codel           20480  6
crypto_user            16384  0
ip_tables              28672  0
x_tables               45056  1 ip_tables
algif_skcipher         16384  0
af_alg                 28672  1 algif_skcipher
dm_crypt               40960  2
dm_mod                143360  5 dm_crypt
sd_mod                 61440  4
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
crc32c_intel           24576  0
ghash_clmulni_intel    16384  0
pcbc                   16384  0
serio_raw              16384  0
atkbd                  32768  0
libps2                 16384  2 atkbd,psmouse
aesni_intel           188416  8
ahci                   40960  3
libahci                40960  1 ahci
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
cryptd                 28672  5 crypto_simd,ghash_clmulni_intel,aesni_intel
libata                274432  2 ahci,libahci
scsi_mod              204800  2 sd_mod,libata
xhci_pci               16384  0
i8042                  32768  0
serio                  28672  8 serio_raw,atkbd,psmouse,rmi_core,i8042
hid_generic            16384  0
usbhid                 57344  0
hid                   126976  2 hid_generic,usbhid
ohci_hcd               57344  0
uhci_hcd               49152  0
xhci_hcd              241664  1 xhci_pci
ehci_pci               16384  0
ehci_hcd               94208  1 ehci_pci
usbcore               282624  8 usbhid,ehci_hcd,uhci_hcd,usblp,xhci_pci,ohci_hcd,xhci_hcd,ehci_pci
usb_common             16384  1 usbcore
ext4                  720896  1
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  122880  1 ext4
fscrypto               32768  1 ext4
i915                 1880064  28
video                  45056  2 thinkpad_acpi,i915
button                 16384  1 i915
intel_gtt              24576  1 i915
i2c_algo_bit           16384  1 i915
drm_kms_helper        192512  1 i915
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
drm                   434176  6 i915,drm_kms_helper
agpgart                49152  2 intel_gtt,drm

I am not sure about lsmod from initramfs shell - I haven't been dropped to an initramfs shell during any of this.

Offline

Board footer

Powered by FluxBB