Lenovo AMD - no keyboard

Hi Guys,

i bought a new Lenovo V15 (Gen4) with an AMD Ryzen 5 and freshly installed Manjaro XFCE.

The keyboard and touchpad worked fine wile in UEFI and Grub but stopped doing so in the moment Manjaro boots, the external keyboard/mouse are working fine. I tried kernel 6.3.5 and 6.1.131, kernel 5.15.114 wont even boot.

And when i am tryind to poste the inxi output the forum software say:
An error occurred: Sorry, you can’t include links in your posts.

Any idea?

Posting links and images is not allowed until you get some reputation.

Images is frowned upon - it is generally useless and a waste of resources

Terminal output like inxi, logs etc must be code-fenced

~~~text
how to format your inxi output
~~~
how to format your inxi output

please use the code fence from the comment toolbar </>

Select the output and click the code fence button.

there is an issue while installation if external keyboards are connected. in this case the detection of keyboards can fire up problems afterwards because keyboards won’t get detected in the way they should. it’s a good advice to use only the laptop keyboard during installation and connect external devices after full installation.

Thanks for the advice. Here is my inxi output:

System:
Kernel: 6.3.5-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/boot/vmlinuz-6.3-x86_64
root=UUID=80345748-e340-433f-b7ee-a4a4ea3e44ba rw quiet splash apparmor=1
security=apparmor resume=UUID=4f242560-8060-4515-845e-636bb58105e4
udev.log_priority=3
Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm
v: 4.18.0 vt: 7 dm: LightDM v: 1.32.0 Distro: Manjaro Linux base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 82YU v: Lenovo V15 G4 AMN
serial: <superuser required> Chassis: type: 10 v: Lenovo V15 G4 AMN
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
UEFI: LENOVO v: L1CN26WW date: 02/09/2023
Battery:
ID-1: BAT0 charge: 38.8 Wh (100.0%) condition: 38.8/38.0 Wh (102.1%)
volts: 8.7 min: 7.7 model: Sunwoda L22D2PG2 type: Li-poly serial: <filter>
status: full cycles: 3
Device-1: hidpp_battery_0 model: Logitech Wireless KeyboarWir
serial: <filter> charge: 55% (should be ignored) rechargeable: yes
status: discharging
Memory:
System RAM: available: 5.62 GiB used: 1.89 GiB (33.7%)
RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
Info: model: AMD Ryzen 5 7520U with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 2 gen: 3 level: v3 note: check built: 2020-22
process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0xA0 (160) stepping: 0
microcode: 0x8A00006
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 2 MiB desc: 4x512 KiB L3: 4 MiB
desc: 1x4 MiB
Speed (MHz): avg: 1850 high: 2800 min/max: 900/6735 boost: enabled scaling:
driver: acpi-cpufreq governor: schedutil cores: 1: 2800 2: 2800 3: 900
4: 2800 5: 900 6: 900 7: 900 8: 2800 bogomips: 44730
Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs
irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a
rdtscp rep_good sep sev sev_es sha_ni skinit smap smca smep ssbd sse sse2
sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext
tsc tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall
wbnoinvd wdt x2apic xgetbv1 xsave xsavec xsaveerptr xsaveopt
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
protection
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
always-on, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: AMD Mendocino vendor: Lenovo driver: amdgpu v: kernel arch: RDNA-2
code: Navi-2x process: TSMC n7 (7nm) built: 2020-22 pcie: gen: 4
speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1,DP-2,HDMI-A-1
bus-ID: 04:00.0 chip-ID: 1002:1506 class-ID: 0300 temp: 42.0 C
Device-2: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 5-1:2 chip-ID: 04f2:b7ba
class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.8 compositor: xfwm v: 4.18.0 driver: X:
loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa dri: radeonsi
gpu: amdgpu display-ID: :0.0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93") monitors: <missing: xrandr>
Monitor-1: eDP-1 model: BOE Display 0x08d5 built: 2019 res: 1920x1080
dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
ratio: 16:9 modes: max: 1920x1080 min: 640x480
API: OpenGL Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
Device-1: AMD Rembrandt Radeon High Definition Audio vendor: Lenovo
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 04:00.1 chip-ID: 1002:1640 class-ID: 0403
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo
driver: snd_pci_acp6x v: kernel alternate: snd_pci_acp3x, snd_rn_pci_acp3x,
snd_pci_acp5x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
snd_sof_amd_renoir, snd_sof_amd_rembrandt pcie: gen: 4 speed: 16 GT/s
lanes: 16 bus-ID: 04:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 04:00.6
chip-ID: 1022:15e3 class-ID: 0403
API: ALSA v: k6.3.5-1-MANJARO status: kernel-api with: aoss
type: oss-emulator tools: alsactl,alsamixer,amixer
Server-1: JACK v: 1.9.22 status: off tools: N/A
Server-2: PipeWire v: 0.3.70 status: off tools: pw-cli
Server-3: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
type: plugin tools: pacat,pactl,pavucontrol
Network:
Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
vendor: Lenovo driver: rtw_8822ce v: N/A modules: rtw88_8822ce pcie: gen: 1
speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:c822
class-ID: 0280
IF: wlp2s0 state: up mac: <filter>
IP v4: <filter> type: dynamic noprefixroute scope: global
broadcast: <filter>
IP v6: <filter> type: dynamic noprefixroute scope: global
IP v6: <filter> type: noprefixroute scope: link
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp3s0 state: down mac: <filter>
WAN IP: <filter>
Bluetooth:
Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.0
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-2:2 chip-ID: 0bda:c123
class-ID: e001 serial: <filter>
Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Logical:
Message: No logical block device data found.
RAID:
Message: No RAID data found.
Drives:
Local Storage: total: 931.51 GiB used: 9.26 GiB (1.0%)
SMART Message: Required tool smartctl not installed. Check --recommends
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: 3B4QFXO7 temp: 31.9 C
scheme: GPT
Message: No optical or floppy data found.
Partition:
ID-1: / raw-size: 29 GiB size: 28.38 GiB (97.85%) used: 9.26 GiB (32.6%)
fs: ext4 dev: /dev/nvme0n1p1 maj-min: 259:1 label: manjaro
uuid: 80345748-e340-433f-b7ee-a4a4ea3e44ba
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p2 maj-min: 259:2
label: BOOT-EFI uuid: 273A-0C9E
ID-3: /data raw-size: 898.31 GiB size: 883.13 GiB (98.31%)
used: 2 MiB (0.0%) fs: ext4 dev: /dev/nvme0n1p4 maj-min: 259:4 label: data
uuid: 4746c89b-2eaa-4e38-94c9-a368ac1bf238
Swap:
Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 3.91 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p3 maj-min: 259:3 label: swap
uuid: 4f242560-8060-4515-845e-636bb58105e4
Unmounted:
Message: No unmounted partitions found.
USB:
Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 2 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Device-1: 1-2:2 info: Realtek Bluetooth Radio type: bluetooth driver: btusb
interfaces: 2 rev: 1.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
power: 500mA chip-ID: 0bda:c123 class-ID: e001 serial: <filter>
Hub-2: 2-0:1 info: super-speed hub ports: 1 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 3 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Device-1: 3-2:2 info: Logitech Unifying Receiver type: keyboard,mouse
driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0
speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 98mA
chip-ID: 046d:c534 class-ID: 0301
Hub-4: 4-0:1 info: super-speed hub ports: 2 rev: 3.1
speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
class-ID: 0900
Hub-5: 5-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
class-ID: 0900
Device-1: 5-1:2 info: Chicony Integrated Camera type: video
driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1
mode: 2.0 power: 500mA chip-ID: 04f2:b7ba class-ID: 0e02 serial: <filter>
Hub-6: 6-0:1 info: Linux Foundation 3.0 root hub ports: N/A rev: 3.0
speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 1d6b:0003
class-ID: 0900
Sensors:
System Temperatures: cpu: 45.8 C mobo: N/A gpu: amdgpu temp: 43.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 264 Uptime: 3m wakeups: 4 Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
pkgs: 1090 libs: 348 tools: pamac pm: flatpak pkgs: 0 Shell: Bash v: 5.1.16
running-in: xfce4-terminal inxi: 3.3.27

I cant see any sign of the touchpad. Xinput is the same:

 xinput
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ Logitech Wireless Mouse                 	id=9	[slave  pointer  (2)]
⎜   ↳ Logitech Wireless Keyboard PID:4023     	id=10	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Video Bus                               	id=6	[slave  keyboard (3)]
    ↳ Power Button                            	id=7	[slave  keyboard (3)]
    ↳ Ideapad extra buttons                   	id=8	[slave  keyboard (3)]
    ↳ Logitech Wireless Keyboard PID:4023     	id=11	[slave  keyboard (3)]

I booted from the Manjaro live medium and there was no keyboard. So I had to plug in the external one and hoped the problem will fix itself with updates and the newest kernel. funnily some function keys are working. i tried to play with the settings for function keys and the Amd security chip, but no change.

I played a bit around… I assume that the keyboard is controlled by the i8042 controller.
dmesg| grep i8042 shows me the following

[    0.552101] i8042: PNP: PS/2 Controller [PNP0303:KBC0] at 0x60,0x64 irq 1
[    0.552107] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[    0.553236] serio: i8042 KBD port at 0x60,0x64 irq 1

After i put i8042.nopnp in GRUB_CMDLINE_LINUX_DEFAULT the output of dmesg| grep i8042 changed to

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64 root=UUID=80345748-e340-433f-b7ee-a4a4ea3e44ba rw i8042.nopnp quiet splash apparmor=1 security=apparmor resume=UUID=4f242560-8060-4515-845e-636bb58105e4 udev.log_priority=3
[    0.021494] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64 root=UUID=80345748-e340-433f-b7ee-a4a4ea3e44ba rw i8042.nopnp quiet splash apparmor=1 security=apparmor resume=UUID=4f242560-8060-4515-845e-636bb58105e4 udev.log_priority=3
[    0.616789] i8042: PNP detection disabled
[    0.889057] serio: i8042 KBD port at 0x60,0x64 irq 1
[    1.302432] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2

But still no keyboard/touchpad. Is there someway to push the hardware detection?

Not the same devices, but all lenovo…

Thanks a lot for your help.

I tried all kind of i8042 Kernel parameters in GRUB_CMDLINE_LINUX_DEFAULTbut - no success.

And then i followed your 2nd link leading me to your 3rd link and installed the patch before i saw your advice not to do it… but nothing changed so far.