pop-os / pop

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

Screens won't stay off after blanking #2629

Open moriartynz opened 1 year ago

moriartynz 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): No package I can identify as such. Settings -> Power -> Power Saving Options

Issue/Bug Description: On a dual monitor setup, both monitors dim after the idle period (unexpected as dimming was disabled in settings) and then DPMS kicks in (as expected) to turn off the monitors. Almost immediately after that, at least the primary monitor turns back on, stays blank and cycles through its inputs. It then goes back to sleep (off) and then constantly repeats through the same cycle. When a key is pressed, the secondary monitor turns on immediately and shows content previously on the primary monitor. The primary monitor takes a while (up to a minute to cycle through) to come back on and then some (not all) of the moved content on the secondary monitor is again automatically moved to the primary monitor.

Steps to reproduce (if you know):

  1. On a dual monitor setup, navigate to Settings -> Power -> Power Saving Options
  2. Turn off Dim Screen
  3. Set Screen Blank to 1 minute
  4. Wait until the 1 minute elapses
  5. Observe that it initially works with both screens turning off, but then at least the primary monitor turns on, cycles through the the input modes, turns off again, only to turn on seconds later and cycle again repeatedly.

Expected behavior: The screens should stay off until the user interacts with the computer.

Other Notes:

  1. The journal for the time around the issue is attached as journal.log
  2. I have an NVIDIA card. I have experienced this issue when testing in all of modes: integrated graphics, hybrid and dedicated NVIDIA.

journal.log

mika314 commented 1 year ago

I found some applications may inhibit the screen from blanking out. Some of my personal projects are based on SDL2. I also found that some tabs in Chrome can do it, e.g. open a tab with YouTube.