====== LENOVO Legion 5 17ACH6 ======
disable_aspm
82K0 (LENOVO_MT_82K0_BU_idea_FM_Legion 5 17ACH6)
AMD Ryzen 5 5600H
AMD Renoir Chipset
===== enter BIOS =====
- Fn + F12 - boot menu
- Fn + F2 - setup
- F9 (no Fn key) - Novo Menu
===== change to GRUB bootloader =====
''grub-install'' complains that system doesn't support EFI variables, but it installs correctly into EFI partition.
Solution is to use another tool, and add GRUB UEFI entry grub manually. From Windows:
bcdedit /set "{bootmgr}" path \EFI\debian\shimx64.efi
===== reboot to BIOS =====
Boot to Windows.
- ''Settings --> Update & Security -> Recovery -> Advanced Startup -> Restart Now''
- ''Troubleshoot -> Advanced Options -> UEFI Firmware Settings''
===== nvidia =====
To use 2 external monitors:
- BIOS
- select "Discrete graphics"
- disable Secure Boot (to use nvidia modules)
- Linux
- ''sudo apt install nvidia-tesla-470-driver''
===== mt7921e =====
* [[https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1849780.html|Bug#1008973: linux-image-amd64: Very slow wireless with MEDIATEK 7961]]
* [[https://bbs.archlinux.org/viewtopic.php?id=273641|[Solved] Kernel 5.16.3 broke wifi mt7921e, can I do sth about it?]]
* [[https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git/commit/drivers/net/wireless/mediatek /mt76/mt7921?id=01f7da40917923bf9d8fd8d5c9a6ed646004e47c|mt76: mt7921: reset wfsys during hw probe]]
==== WiFI disconnects ====
Sometimes network connectivity is blocked. WiFi is connected but no connection to outside. Reconnects helps. Nothing in kernel log.
04:00.0 Network controller: MEDIATEK Corp. MT7921 802.11ax PCI Express Wireless Network Adapter
Subsystem: Lenovo MT7921 802.11ax PCI Express Wireless Network Adapter
Flags: bus master, fast devsel, latency 0, IRQ 75, IOMMU group 12
Memory at fcf2000000 (64-bit, prefetchable) [size=1M]
Memory at fcf2100000 (64-bit, prefetchable) [size=16K]
Memory at fcf2104000 (64-bit, prefetchable) [size=4K]
Capabilities:
Kernel driver in use: mt7921e
Kernel modules: mt7921e
===== sensors =====
k10temp
===== watchdog =====
# dmesg
[ 0.197577] NMI watchdog: Enabled. Permanently consumes one hw-PMU counter.
[ 3.834143] sp5100-tco sp5100-tco: Using 0xfed80b00 for watchdog MMIO address
# ls -l /dev/watchdog*
crw------- 1 root root 10, 130 wrz 8 10:35 /dev/watchdog
crw------- 1 root root 245, 0 wrz 8 10:35 /dev/watchdog0
crw------- 1 root root 245, 1 wrz 8 10:35 /dev/watchdog1
# ls -l /sys/dev/char/10\:130/
lrwxrwxrwx 1 root root 0 wrz 9 10:37 device -> ../../../sp5100-tco