pop-os / pop

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

PC does not suspend properly. #2356

Open James-Joe opened 2 years ago

James-Joe commented 2 years ago
         /////////////               
     /////////////////////            ------------ 
  ///////*767////////////////         OS: Pop!_OS 22.04 LTS x86_64 
//////7676767676*//////////////       Host: B550M DS3H 

/////76767//7676767////////////// Kernel: 5.16.19-76051619-generic /////767676///76767/////////////// Uptime: 7 mins ///////767676///76767.///7676/////// Packages: 2325 (dpkg), 12 (flatpak) /////////767676//76767///767676//////// Shell: bash 5.1.16 //////////76767676767////76767///////// Resolution: 1920x1080 ///////////76767676//////7676////////// DE: GNOME 42.0 ////////////,7676,///////767/////////// WM: Mutter /////////////*7676///////76//////////// WM Theme: Pop ///////////////7676//////////////////// Theme: Pop-dark [GTK2/3] ///////////////7676///767//////////// Icons: Pop [GTK2/3] //////////////////////'//////////// Terminal: gnome-terminal //////.7676767676767676767,////// CPU: AMD Ryzen 5 5600X (12) @ 3.700GH /////767676767676767676767///// GPU: NVIDIA GeForce RTX 3060 Lite Has /////////////////////////// Memory: 2812MiB / 16005MiB ///////////////////// /////////////

Issue/Bug Description: Whenever I suspend my PC it does not fully suspend. Everything turns off, but the fan turns off briefly then starts back up again. I cannot wake up the computer using the mouse or keyboard. Power button not responsive. Have to turn power off at the mains.

I tried using the following issue to solve my problem (https://github.com/pop-os/pop/issues/449) but to no avail.

My kernelstub: OS:..................Pop!_OS 22.04 Root partition:....../dev/nvme0n1p3 Root FS UUID:........0a2e464e-2fed-417b-bea7-29fd616135ab ESP Path:............/boot/efi ESP Partition:......./dev/nvme0n1p1 ESP Partition #:.....1 NVRAM entry #:.......-1 Boot Variable #:.....0000 Kernel Boot Options:.quiet loglevel=0 systemd.show_status=false splash mem_sleep_default=deep Kernel Image Path:.../boot/vmlinuz-5.16.19-76051619-generic Initrd Image Path:.../boot/initrd.img-5.16.19-76051619-generic Force-overwrite:.....False

kernelstub : INFO Configuration details:

ESP Location:................../boot/efi Management Mode:...............True Install Loader configuration:..True Configuration version:.........3

I recently update my OS to 22.04 and still the problem persists. Can anyone give any further help on this?

linuxgnuru commented 2 years ago

What hardware are you running?

James-Joe commented 2 years ago

What hardware are you running? CPU: AMD Ryzen 5 5600X (12) @ 3.700GH GPU: NVIDIA GeForce RTX 3060 Lite Has Power Supply: RPG Rampage 850W Semi-modular Motherboard: AMD Ryzen B550M DS3H

linuxgnuru commented 2 years ago

Do you have any bluetooth devices connected while you try to suspend?

James-Joe commented 2 years ago

Do you have any bluetooth devices connected while you try to suspend?

No. Keyboard and mouse are wired connections.

tnfru commented 2 years ago

I have the same problem. When suspending the fans turn on like crazy and my laptop is completely unresponsive beside to holding down the power button until it is powered off. I'm really worried about damages this can cause if it happens in a backpack.

NAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.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=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-os

Desperately looking for any kind of way to fix this.

qusqui21 commented 2 years ago

I have bluetooth headset which when connected, is causing computer to wake up from suspend. If i turn it off, then suspend works fine.

alex-fddz commented 2 years ago

Same exact issue here. Although I loved Pop, it's driving me crazy since as a student I constantly move between dorm, classrooms and library. Supposedly there is a workaround, not sure if with pm-suspend... Does anyone know about it or how to set it up? I'll do some research and come back later on if I find anything interesting... (running on an A10 laptop)

tnfru commented 2 years ago

It has become less frequent for me - just happens sometimes, no particular indicator.

qusqui21 commented 2 years ago

It has become less frequent for me - just happens sometimes, no particular indicator.

well i tested this issue, and like i said when headset is off or bluetooth disabled its not waking up. But its always waking when headset is on and paired i am hearing, xxx disconnected and after 10s xxx connected. after closing cover or clicking off on laptop which i set to action sleep.

thekevshow commented 2 years ago

I am having the same issue. Core i9 12000k, nvidia 3080 ti, GIGABYTE Z690 AORUS PRO. Simply seems to come back then just dies, no screen or anything, I don't think this is an nvidia driver issue either from testing there. Any thoughts, is this just confirmed the current kernel is having this issue? Super frustrating.

Also @alex-fddz pm-suspend did not work for me, idk if there is something I am suppose to do other than using it as per what I would suspect as default config.

tnfru commented 2 years ago

Suspsension does not work for me if bluetooth is enabled and any device is connected. Suspending is the same as lock then.

thekevshow commented 2 years ago

This is still an issue. Is there any plans to resolve this. Has nothing to do with bluetooth for me.

Lucas-Servi commented 1 year ago

This is still an issue. Even on the newest Kernel

OS: Pop!_OS 22.04 LTS x86_64 Host: ROG Zephyrus G14 GA401QC_GA401Q Kernel: 6.0.3-76060003-generic

lucashtc commented 1 year ago

I have fixed it. I basically disabled POP!_os powermanagement and let Linux do it itself.

Go into extensions and disable System76 Power extension

  1. systemctl stop system76-power
  2. systemctl disable system76-power
  3. Reboot
adrianloy commented 1 year ago

Still an issue for me too, on a new thinkpad. Disabling power extension did not help for me.

derekkddj commented 1 year ago

I have the same problemn with a Lenovo thinkpad T4

anji5h commented 1 year ago

I have fixed it. I basically disabled POP!_os powermanagement and let Linux do it itself.

Go into extensions and disable System76 Power extension

  1. systemctl stop system76-power
  2. systemctl disable system76-power
  3. Reboot

This worked for me.

usamasindhu commented 1 year ago

In my case fan turn on automatically duing sleep and this has to do something with power management which is fixed by stoping it. Thanks @lucashtc

mgudarzi commented 6 months ago

My issue was the Bluetooth. I fixed it by adding a custom script under /lib/systemd/system-sleep/.

I name it toggle-bluetooth.

make sure you give it run permission after -> sudo chmod +x /lib/systemd/system-sleep/toggle-bluetooth

`#!/bin/sh

case $1/$2 in pre/*)

Commands to run before entering sleep

echo "Disabling Bluetooth before suspend..."
rfkill block bluetooth
;;

post/*)

Commands to run after waking up from sleep

echo "Enabling Bluetooth after suspend..."
rfkill unblock Bluetooth
;;

esac `

ahfauth commented 4 months ago

@mgudarzi I think mine is also bluetooth related but your code didnt work. Does it need in the beginning and at the end? Thank you!

surrational commented 2 months ago

I have fixed it. I basically disabled POP!_os powermanagement and let Linux do it itself. Go into extensions and disable System76 Power extension

  1. systemctl stop system76-power
  2. systemctl disable system76-power
  3. Reboot

This worked for me.

Worked for me as well, surface laptop would not hibernate then get so hot it would be unresponsive.

derekkddj commented 2 months ago

This worked for me tooo

I have fixed it. I basically disabled POP!_os powermanagement and let Linux do it itself. Go into extensions and disable System76 Power extension

  1. systemctl stop system76-power
  2. systemctl disable system76-power
  3. Reboot

This worked for me.

Worked for me as well, surface laptop would not hibernate then get so hot it would be unresponsive.