pop-os / pop

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

External monitor freezes when waking from sleep #2808

Open klzsh opened 1 year ago

klzsh commented 1 year ago

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

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

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Package 1:

system76-driver-nvidia: Installed: 20.04.75\~1676586102\~22.04\~77f249c Candidate: 20.04.75\~1676586102\~22.04\~77f249c Version table: *** 20.04.75\~1676586102\~22.04\~77f249c 1001 1001 http://apt.pop-os.org/release jammy/main amd64 Packages 1001 http://apt.pop-os.org/release jammy/main i386 Packages 100 /var/lib/dpkg/status

Package 2:

nvidia-driver-525: Installed: 525.85.05-1pop0\~1676919314\~22.04\~a968599 Candidate: 525.85.05-1pop0\~1676919314\~22.04\~a968599 Version table: *** 525.85.05-1pop0\~1676919314\~22.04\~a968599 1001 1001 http://apt.pop-os.org/release jammy/main amd64 Packages 100 /var/lib/dpkg/status 525.78.01-0ubuntu0.22.04.1 500 500 http://apt.pop-os.org/ubuntu jammy-security/restricted amd64 Packages 500 http://apt.pop-os.org/ubuntu jammy-updates/restricted amd64 Packages

Issue/Bug Description:

on NVIDIA driver 525 my external monitor connected to my NVIDIA GPU freezes after waking from sleep. Monitor is still detected by DE and xrandr but it does not display anything until I run the temporary fix.

Steps to reproduce (if you know):

Put a laptop to sleep with an external monitor connected via an HDMI port that is driven by an NVIDIA GPU. Then, once the laptop is put to sleep, wake it up after any length of time and the monitor will display a black screen and a mouse cursor in the spot it was when the computer was put to sleep (if mouse cursor was on said screen)

Expected behavior:

monitor turns on and shows KDE lock screen (time with user)

Other Notes:

I am using KDE, but this seems like a driver issue rather than a DE issue, as it affects the monitor being driven by the NVIDIA GPU. The monitor is still detected by KDE, and I can drag windows through it, and even place windows in the frozen space. I need to run the commands below for the monitor to regain functionality. If going through the settings app, I need to disable the monitor and re-enable it for it to work.

Temporary fix:

xrandr --output eDP-1 --primary&& xrandr --output HDMI-1-0 --off && xrandr --output HDMI-1-0 --left-of eDP-1 --primary --auto

boreus-jstuth commented 1 year ago

Hey, I got the same issues and now booted with an old kernel. Though I got the Problem with my Laptop Running two DisplayPort Monitors Through my Docking-Station on an AMD integrated GPU.

jwoertink commented 1 year ago

I wonder if this is related https://github.com/pop-os/pop/issues/1943 or possibly even https://github.com/pop-os/pop/issues/2617

herder commented 1 year ago

Also might be related to this? https://bugzilla.kernel.org/show_bug.cgi?id=217106

boreus-jstuth commented 1 year ago

For further troubleshooting. I figured out that when first unplugging my docking station and then lcoking my screen, the Monitors will function after plugging it in again and unlocking. Also I got one more go when I switch to my second usb-c Port, but as soon as I turn of my screen on that one I will have to restart my Laptop for the Monitors to work again.

GdMacmillan commented 1 year ago

I have the same issue, except my machine is a desktop where the only monitor is an external monitor. Here's my system- Distribution:

❯ cat /etc/os-release
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

system-76-driver-nvidia (appears to be uninstalled)

❯ apt policy system76-driver-nvidia
system76-driver-nvidia:
  Installed: (none)
  Candidate: 20.04.77~1679433146~22.04~5f1af34
  Version table:
     20.04.77~1679433146~22.04~5f1af34 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
       1001 http://apt.pop-os.org/release jammy/main i386 Packages

nvidia-driver-525

❯ apt policy nvidia-driver-525
nvidia-driver-525:
  Installed: 525.89.02-1pop0~1678727544~22.04~ef1fd71
  Candidate: 525.89.02-1pop0~1678727544~22.04~ef1fd71
  Version table:
 *** 525.89.02-1pop0~1678727544~22.04~ef1fd71 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     525.85.05-0ubuntu0.22.04.1 500
        500 http://apt.pop-os.org/ubuntu jammy-updates/restricted amd64 Packages
     525.78.01-0ubuntu0.22.04.1 500
        500 http://apt.pop-os.org/ubuntu jammy-security/restricted amd64 Packages

Issue/Bug Description: Attempts to wake monitor up after putting the system to sleep fail. PC seems to wake up and the monitor turns on and shortly after displays no signal detected (or something along those lines) and goes back into power saving mode.

Attempted Fix: https://bbs.archlinux.org/viewtopic.php?pid=2044189#p2044189

Results: Same issue

jwoertink commented 1 year ago

Same. I have a desktop just with the external monitor. I guess I should add my info

❯ neofetch
             /////////////                jeremy@pop-os 
         /////////////////////            ------------- 
      ///////*767////////////////         OS: Pop!_OS 22.04 LTS x86_64 
    //////7676767676*//////////////       Host: Thelio Mira thelio-mira-r1 
   /////76767//7676767//////////////      Kernel: 6.2.0-76060200-generic 
  /////767676///*76767///////////////     Uptime: 2 days, 22 hours, 26 mins 
 ///////767676///76767.///7676*///////    Packages: 2770 (dpkg), 53 (flatpak), 12 (snap) 
/////////767676//76767///767676////////   Shell: bash 5.1.16 
//////////76767676767////76767/////////   Resolution: 1920x1080, 3840x2160 
///////////76767676//////7676//////////   DE: GNOME 42.5 
////////////,7676,///////767///////////   WM: Mutter 
/////////////*7676///////76////////////   WM Theme: Pop 
///////////////7676////////////////////   Theme: Adwaita-dark [GTK2/3] 
 ///////////////7676///767////////////    Icons: Pop [GTK2/3] 
  //////////////////////'////////////     Terminal: gnome-terminal 
   //////.7676767676767676767,//////      CPU: AMD Ryzen 5 5600X (12) @ 3.700GHz 
    /////767676767676767676767/////       GPU: NVIDIA GeForce RTX 3070 Ti 
      ///////////////////////////         Memory: 15018MiB / 64214MiB 
         /////////////////////
             /////////////                                        

❯ apt policy system76-driver-nvidia
system76-driver-nvidia:
  Installed: (none)
  Candidate: 20.04.77~1679433146~22.04~5f1af34
  Version table:
     20.04.77~1679433146~22.04~5f1af34 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
       1001 http://apt.pop-os.org/release jammy/main i386 Packages
❯ apt policy nvidia-driver-525
nvidia-driver-525:
  Installed: 525.89.02-1pop0~1678727544~22.04~ef1fd71
  Candidate: 525.89.02-1pop0~1678727544~22.04~ef1fd71
  Version table:
 *** 525.89.02-1pop0~1678727544~22.04~ef1fd71 1001
       1001 http://apt.pop-os.org/release jammy/main amd64 Packages
        100 /var/lib/dpkg/status
     525.89.02-0ubuntu0.22.04.1 500
        500 https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy/main amd64 Packages
     525.85.05-0ubuntu0.22.04.1 500
        500 http://apt.pop-os.org/ubuntu jammy-updates/restricted amd64 Packages
     525.78.01-0ubuntu0.22.04.1 500
        500 http://apt.pop-os.org/ubuntu jammy-security/restricted amd64 Packages
klzsh commented 1 year ago

Also might be related to this? https://bugzilla.kernel.org/show_bug.cgi?

this seems to be a different issue than the one that I am facing, as I have plugged both my external monitors directly into my laptop, and the one being driven by the HDMI port is the one that freezes. I am pretty sure my issue can be fixed with a dock, though

dscherrenburg commented 9 months ago

Unfortunately I'm running into the same problem. Has anyone found a long-term solution yet?