pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.45k stars 87 forks source link

HUAWEI Matebook X Pro 2020: Suspend causes the system to freeze #1486

Open v-sulimov opened 3 years ago

v-sulimov commented 3 years ago

Distribution (run cat /etc/os-release):

 NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

Issue/Bug Description: Today, I've received notification about low battery on my laptop which informs me that system goes to sleep shortly. This is totally fine, and expected behavior, but, instead of that, system just freezes with black screen. The lights on the keyboard were on, the fans were working and the system doesn't respond to any of key presses. However, I've managed to reboot it using the SysRq + REISUB combination.

Steps to reproduce (if you know): Put to sleep / wakeup system undefined amount of times. Sometimes system suspends successfully, sometimes freezes completely.

Expected behavior: Suspend works correctly all the time.

Other Notes:

Hardware: HUAWEI Matebook X Pro 2020 (i7 version with Nvidia MX250).

Last line of logs from journalctl

Jan 14 13:58:43 matebook-x-pro systemd[1]: Reached target Sleep.
Jan 14 13:58:43 matebook-x-pro systemd[1]: Starting Hybrid Suspend+Hibernate...
Jan 14 13:58:43 matebook-x-pro kernel: PM: Image not found (code -22)
Jan 14 13:58:43 matebook-x-pro systemd-sleep[9391]: Suspending system...
Jan 14 13:58:43 matebook-x-pro kernel: PM: hibernation: hibernation entry
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "47"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event2  - Power Button: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "50"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event4  - Video Bus: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "51"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event1  - Power Button: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "52"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event5  - Video Bus: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "53"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event6  - HD Camera: HD Camera: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "54"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event9  - HQTL2393:00 06CB:19AC: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "55"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event7  - SYNA2393:00 06CB:CD48 Mouse: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "56"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event8  - SYNA2393:00 06CB:CD48 Touchpad: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "57"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event16 - Huawei WMI hotkeys: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "58"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event3  - AT Translated Set 2 keyboard: device removed
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (**) Option "fd" "85"
Jan 14 13:58:43 matebook-x-pro /usr/lib/gdm3/gdm-x-session[1551]: (II) event17 - HUAWEI FreeBuds Studio (AVRCP): device removed

Before Pop_OS! I've used Ubuntu 20.04 on the same machine and never had a problem with suspend or hibernation. Something wrong on the Pop_OS side.

varomix commented 3 years ago

Same thing happens on my ThinkPad X1 sometimes, also the fans start going crazy, there some serious power issues with this kernel I think

v-sulimov commented 3 years ago

@varomix Do you have Nvidia GPU or Intel only? I wan't to exlude Nvidia from the list of the possible causes.

varomix commented 3 years ago

I have both as well, intel and Nvidia GTX 1650

varomix commented 3 years ago

So, I stop playing safe and updated to kernel 5.9.16 and that seems to be working so far, my other power/battery related issues seem to be fixed as well, the bad news is, NVidia has issues with kernel 5.9 :rofl: I need nvidia drivers version 455.45.01 to fix that not sure if I want to go that far but I'm tired of this power issues, I might.