LINUX.ORG.RU

B350 - После ждущего режима экран не включается, просыпается только по клавиатуре

 , ,


0

1
systemctl suspend
Экран выключается, индикаторы и подсветка клавиатуры гаснут, кулеры останавливаются.

Жму кнопку включения
Кулеры начинают крутиться, индикатор питания загорается. Экран монитора и подсветка клавиатуры остаются выключенными, пока не нажму любую кнопку на клавиатуре.
$ inxi -SMC
System:    Host: ryzen Kernel: 5.4.0-135-generic x86_64 bits: 64 Desktop: KDE Plasma 5.12.6
           Distro: Ubuntu 18.04.1 LTS
Machine:   Device: desktop Mobo: Micro-Star model: B350 PC MATE (MS-7A34) v: 2.0 serial: N/A
           UEFI: American Megatrends v: A.E0 date: 05/02/2018
CPU:       Quad core AMD Ryzen 3 2200G with Radeon Vega Graphics (-MCP-) cache: 2048 KB
           clock speeds: max: 3500 MHz 1: 1437 MHz 2: 1570 MHz 3: 1459 MHz 4: 1424 MHz
$ cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-5.4.0-135-generic root=UUID=26c41bea-9dcb-4ebf-a4e3-02e2736f3f73 ro resume=UUID=9c936459-b9fa-4f90-9f9b-35b86bd2e584

Работать перестало после установки пакета linux-generic-hwe-18.04 до этого ядро было самосборное 5.4.44.

Если непосредственно echo "mem" > /sys/power/state, наблюдаемое поведение не меняется.

Обход: в BIOS в Advanced -> Wake Up Event Setup поменять Resume By USB Device с Disabled на Enabled, и будить комп нажатием любой клавиши на клавиатуре.

На ядре из исходников https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.228.tar.xz

make defconfig
fakeroot make-kpkg -j `nproc` --initrd --append-to-version=-damix kernel_image kernel_headers
подсветка клавиатуры включается сразу, а экран не включается никогда.

Еще есть ядро 4.19.25-041925-generic, на нём работает правильно.

cast dogbert Alexandr_7 Aceler

★★★

Последнее исправление: Dimez (всего исправлений: 6)

dmesg после ждущего режима на ядре 5.4.0-135-generic без использования обхода

[ 3813.872952] r8169 0000:1e:00.0 enp30s0: Link is Down
[ 3813.909288] PM: suspend entry (deep)
[ 3813.925344] Filesystems sync: 0.016 seconds
[ 3813.927247] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 3813.929486] OOM killer disabled.
[ 3813.929487] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 3813.930798] printk: Suspending console(s) (use no_console_suspend to debug)
[ 3813.934524] serial 00:05: disabled
[ 3813.935148] parport_pc 00:04: disabled
[ 3813.953981] sd 5:0:0:0: [sdb] Synchronizing SCSI cache
[ 3813.954024] sd 5:0:0:0: [sdb] Stopping disk
[ 3813.954062] sd 4:0:0:0: [sda] Synchronizing SCSI cache
[ 3813.954170] sd 4:0:0:0: [sda] Stopping disk
[ 3814.978183] ACPI: Preparing to enter system sleep state S3
[ 3815.306476] PM: Saving platform NVS memory
[ 3815.306535] Disabling non-boot CPUs ...
[ 3815.307348] IRQ 28: no longer affine to CPU1
[ 3815.307359] IRQ 39: no longer affine to CPU1
[ 3815.307366] IRQ 41: no longer affine to CPU1
[ 3815.307373] IRQ 44: no longer affine to CPU1
[ 3815.307382] IRQ 53: no longer affine to CPU1
[ 3815.308403] smpboot: CPU 1 is now offline
[ 3815.309541] IRQ 26: no longer affine to CPU2
[ 3815.309548] IRQ 36: no longer affine to CPU2
[ 3815.309554] IRQ 40: no longer affine to CPU2
[ 3815.309560] IRQ 46: no longer affine to CPU2
[ 3815.309566] IRQ 52: no longer affine to CPU2
[ 3815.310576] smpboot: CPU 2 is now offline
[ 3815.312385] smpboot: CPU 3 is now offline
[ 3815.313345] ACPI: Low-level resume complete
[ 3815.313380] PM: Restoring platform NVS memory
[ 3821.344582] Enabling non-boot CPUs ...
[ 3821.344643] x86: Booting SMP configuration:
[ 3821.344644] smpboot: Booting Node 0 Processor 1 APIC 0x1
[ 3821.344892] microcode: CPU1: patch_level=0x0810100b
[ 3821.347315] CPU1 is up
[ 3821.347339] smpboot: Booting Node 0 Processor 2 APIC 0x2
[ 3821.347813] microcode: CPU2: patch_level=0x0810100b
[ 3821.350225] CPU2 is up
[ 3821.350243] smpboot: Booting Node 0 Processor 3 APIC 0x3
[ 3821.350499] microcode: CPU3: patch_level=0x0810100b
[ 3821.352921] CPU3 is up
[ 3821.353304] ACPI: Waking up from system sleep state S3
[ 3821.414229] xhci_hcd 0000:15:00.0: xHC error in resume, USBSTS 0x401, Reinit
[ 3821.414232] usb usb1: root hub lost power or was reset
[ 3821.414234] usb usb2: root hub lost power or was reset
[ 3821.415538] parport_pc 00:04: activated
[ 3821.415984] [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
[ 3821.416045] [drm] PSP is resuming...
[ 3821.416319] serial 00:05: activated
[ 3821.435919] [drm] reserve 0x400000 from 0xf43f800000 for PSP TMR
[ 3821.436305] sd 4:0:0:0: [sda] Starting disk
[ 3821.436306] sd 5:0:0:0: [sdb] Starting disk
[ 3821.726541] ata2: SATA link down (SStatus 0 SControl 300)
[ 3821.726651] ata1: SATA link down (SStatus 0 SControl 300)
[ 3821.732069] ata9: SATA link down (SStatus 0 SControl 300)
[ 3821.765970] usb 1-3: reset full-speed USB device number 2 using xhci_hcd
[ 3821.889503] ata5: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 3821.889530] ata6: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 3821.890016] ata6.00: configured for UDMA/133
[ 3821.921208] ata5.00: configured for UDMA/133
[ 3822.121987] usb 1-8: reset high-speed USB device number 3 using xhci_hcd
[ 3822.428488] amdgpu: [powerplay] dpm has been enabled
[ 3822.493150] [drm] VCN decode and encode initialized successfully(under SPG Mode).
[ 3822.493173] amdgpu 0000:38:00.0: ring gfx uses VM inv eng 0 on hub 0
[ 3822.493174] amdgpu 0000:38:00.0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[ 3822.493175] amdgpu 0000:38:00.0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[ 3822.493176] amdgpu 0000:38:00.0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[ 3822.493176] amdgpu 0000:38:00.0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[ 3822.493177] amdgpu 0000:38:00.0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[ 3822.493178] amdgpu 0000:38:00.0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[ 3822.493179] amdgpu 0000:38:00.0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[ 3822.493180] amdgpu 0000:38:00.0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[ 3822.493181] amdgpu 0000:38:00.0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[ 3822.493181] amdgpu 0000:38:00.0: ring sdma0 uses VM inv eng 0 on hub 1
[ 3822.493183] amdgpu 0000:38:00.0: ring vcn_dec uses VM inv eng 1 on hub 1
[ 3822.493183] amdgpu 0000:38:00.0: ring vcn_enc0 uses VM inv eng 4 on hub 1
[ 3822.493184] amdgpu 0000:38:00.0: ring vcn_enc1 uses VM inv eng 5 on hub 1
[ 3822.493185] amdgpu 0000:38:00.0: ring vcn_jpeg uses VM inv eng 6 on hub 1
[ 3822.537751] usb 1-9: reset low-speed USB device number 4 using xhci_hcd
[ 3823.093972] usb 1-8.3: reset high-speed USB device number 5 using xhci_hcd
[ 3823.753961] usb 1-8.3.4: reset full-speed USB device number 6 using xhci_hcd
[ 3824.168359] acpi LNXPOWER:01: Turning OFF
[ 3824.168405] OOM killer enabled.
[ 3824.168406] Restarting tasks ... done.
[ 3824.172502] PM: suspend exit
[ 3824.223463] Generic FE-GE Realtek PHY r8169-0-1e00:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-0-1e00:00, irq=IGNORE)
[ 3824.294233] Bluetooth: hci0: BCM: chip id 63
[ 3824.297231] Bluetooth: hci0: BCM: features 0x07
[ 3824.315238] Bluetooth: hci0: ryzen
[ 3824.317234] Bluetooth: hci0: BCM20702A1 (001.002.014) build 1467
[ 3824.326496] r8169 0000:1e:00.0 enp30s0: Link is Down
[ 3825.774370] Bluetooth: hci0: BCM20702A1 (001.002.014) build 1467
[ 3825.792598] Bluetooth: hci0: Broadcom Bluetooth Device
[ 3825.912931] r8169 0000:1e:00.0 enp30s0: Link is Up - 100Mbps/Full - flow control off
[ 3825.912949] IPv6: ADDRCONF(NETDEV_CHANGE): enp30s0: link becomes ready

damix9 ★★★
() автор топика

Обновил BIOS до версии 7A34vAJ

$ inxi -M
Machine:   Device: desktop Mobo: Micro-Star model: B350 PC MATE (MS-7A34) v: 2.0 serial: N/A
           UEFI: American Megatrends v: A.J0 date: 01/23/2019
Ждущий режим работает.

damix9 ★★★
() автор топика