linuxmint / linuxmint/cinnamon

Monitors turn back on after screensaver activates

Open
#13,082 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

BUG
Dominant language
JavaScript
Stars
5.6k
Forks
915
Avg merge
5d 22h
Merged PRs (30d)
3

Description

Distribution

Mint 22.2 (has been going on since Mint 21)

Package version

Cinnamon 6.4.8

Graphics hardware in use

NVIDIA GeForce RTX 4060 Ti

Frequency

Always

Bug description

[!NOTE]
This is a copy of my original issue I filed in linuxmint/linuxmint #673 that has not been triaged or commented on. I was hoping an upgrade to 22.2 would fix this issue but it the issue persists.

After several weeks of trying to debug this via the Linux Mint forums, I think there is enough information to submit a formal bug report.

When I lock the desktop, the lock screen appears. After a few seconds, the monitors turn off and then go into standby mode. However, within 10-15 seconds, the monitors come back on, presenting me with the lock screen.

The behavior I expect is that the monitors continue to stay in standby mode until input from my keyboard or my mouse.

I suspect that there is a user process that "interrupts" the standby mode and forces the monitors to turn back on. I discovered this by accident when I had to reboot the computer due to the lock screen improperly showing me a Virtual Box window on one screen while the password prompt was shown on another screen. (This is a separate issue and likely deserves it's own bug report but I haven't had time to reproduce it.)

After I rebooted, I was not logged in. The screens remained off and in standby mode. When I logged in, the issue continued.

Logging off the user also kept the screen off after some idle time.

I created a brand new user with zero customizations and saw that locking the screen behaved the same way: turning off the screen, going to standby for a few seconds, before turning back on.

I initially suspected a driver issue but I'm pretty sure the drivers don't change between login and the user session.

System Reports output

System:
  Kernel: 6.5.0-35-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33
    wm: muffin vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: Micro-Star product: US Desktop Aegis RS v: 2.0
    serial: <superuser required>
  Mobo: Micro-Star model: PRO B760-VC WIFI (MS-7D98) v: 2.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: B.D3 date: 03/24/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech M720 Triathlon Multi-Device Mouse serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: Discharging
CPU:
  Info: 16-core (8-mt/8-st) model: 13th Gen Intel Core i7-13700F bits: 64 type: MST AMCP
    smt: enabled arch: N/A rev: 1 cache: L1: 1.4 MiB L2: 24 MiB L3: 30 MiB
  Speed (MHz): avg: 1982 high: 5100 min/max: 800/5100:5200:4100 cores: 1: 5100 2: 800 3: 800
    4: 800 5: 5100 6: 800 7: 800 8: 800 9: 4782 10: 800 11: 5100 12: 800 13: 5100 14: 800 15: 5100
    16: 800 17: 3701 18: 800 19: 800 20: 800 21: 800 22: 800 23: 800 24: 800 bogomips: 101376
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA vendor: Micro-Star MSI driver: nvidia v: 545.29.06 pcie: speed: 2.5 GT/s
    lanes: 8 ports: active: none off: DP-3,HDMI-A-1 empty: DP-1,DP-2 bus-ID: 01:00.0
    chip-ID: 10de:2805 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x286mm (40.0x11.3") s-diag: 1055mm (41.6")
  Monitor-1: DP-4 pos: right res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7")
    diag: 604mm (23.8")
  Monitor-2: HDMI-0 pos: primary,left res: 1920x1080 hz: 60 dpi: 93 size: 527x296mm (20.7x11.7")
    diag: 604mm (23.8")
  OpenGL: renderer: NVIDIA GeForce RTX 4060 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 545.29.06
    direct render: Yes
Audio:
  Device-1: Intel vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
    chip-ID: 8086:7a50 class-ID: 0403
  Device-2: NVIDIA vendor: Micro-Star MSI driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 8 bus-ID: 01:00.1 chip-ID: 10de:22bd class-ID: 0403
  Sound Server-1: ALSA v: k6.5.0-35-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel driver: iwlwifi v: kernel port: N/A bus-ID: 00:14.3 chip-ID: 8086:7a70
    class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169 v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: 3000 bus-ID: 04:00.0 chip-ID: 10ec:8125 class-ID: 0200
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: br-159cfaceb031 state: up speed: 10000 Mbps duplex: unknown mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
  IF-ID-3: veth275c916 state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-4: veth3c9c01a state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-5: veth4c142d6 state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-6: veth77ed9c6 state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-7: vethcc9b20a state: up speed: 10000 Mbps duplex: full mac: <filter>
  IF-ID-8: vethe1f949b state: up speed: 10000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-14:7 chip-ID: 8087:0033 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: up address: <filter>
RAID:
  Device-1: raptor type: zfs status: ONLINE level: linear raw: size: 952 GiB free: 945 GiB
    allocated: 7.4 GiB zfs-fs: size: 922.5 GiB free: 915.1 GiB
  Components: Online: 1:
  Device-2: viper type: zfs status: ONLINE level: linear raw: size: 1.81 TiB free: 1.5 TiB
    allocated: 324 GiB zfs-fs: size: 1.76 TiB free: 1.44 TiB
  Components: Online: 1:
Drives:
  Local Storage: total: raw: 7.3 TiB usable: 12.7 TiB used: 359.29 GiB (2.8%)
  ID-1: /dev/nvme0n1 vendor: MSI model: M450 1TB size: 931.51 GiB speed: 63.2 Gb/s lanes: 4
    type: SSD serial: <filter> rev: EJFMC0.0 temp: 43.9 C scheme: GPT
  ID-2: /dev/nvme1n1 vendor: Toshiba model: N/A size: 953.87 GiB speed: 31.6 Gb/s lanes: 4
    type: SSD serial: <filter> rev: AAHA4102 temp: 39.9 C scheme: GPT
  ID-3: /dev/sda vendor: Western Digital model: WD20EZBX-00AYRA0 size: 1.82 TiB speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: 1A01 scheme: GPT
  ID-4: /dev/sdb vendor: Western Digital model: WD40EZAX-00C8UB0 size: 3.64 TiB speed: 6.0 Gb/s
    type: HDD rpm: 5400 serial: <filter> rev: 1A01 scheme: GPT
Partition:
  ID-1: / size: 915.32 GiB used: 35.48 GiB (3.9%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 106.4 MiB (20.8%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-5:2 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-5.1:4 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 98mA
    chip-ID: 046d:c52b class-ID: 0300
  Hub-3: 1-5.2:13 info: Realtek RTS5411 Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip-ID: 0bda:5411
    class-ID: 0900
  Hub-4: 1-5.2.1:19 info: VIA Labs Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip-ID: 2109:2811
    class-ID: 0900
  Device-1: 1-5.2.1.2:20 info: SHARKOON GmbH Keyboard type: Keyboard,HID driver: semitek,usbhid
    interfaces: 3 rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 1ea7:0907 class-ID: 0300
    serial: <filter>
  Hub-5: 1-5.2.2:18 info: VIA Labs Hub ports: 4 rev: 2.1 speed: 480 Mb/s chip-ID: 2109:2811
    class-ID: 0900
  Device-1: 1-5.2.2.2:21 info: Yubicom Yubikey 4/5 OTP+U2F+CCID type: Keyboard,HID,Smart Card
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s power: 30mA chip-ID: 1050:0407
    class-ID: 0b00
  Hub-6: 1-5.2.4:16 info: Realtek RTS5411 Hub ports: 4 rev: 2.1 speed: 480 Mb/s
    chip-ID: 0bda:5411 class-ID: 0900
  Hub-7: 1-6:3 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-11:5 info: Micro Star MYSTIC LIGHT type: HID driver: hid-generic,usbhid
    interfaces: 1 rev: 1.1 speed: 12 Mb/s power: 500mA chip-ID: 1462:7d98 class-ID: 0300
    serial: <filter>
  Device-2: 1-14:7 info: Intel type: Bluetooth driver: btusb interfaces: 2 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 8087:0033 class-ID: e001
  Hub-8: 2-0:1 info: Super-speed hub ports: 10 rev: 3.1 speed: 20 Gb/s chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 27.8 C mobo: N/A gpu: nvidia temp: 45 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Repos:
  Packages: 2473 apt: 2462 flatpak: 11
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/docker.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/docker.gpg] https: //download.docker.com/linux/ubuntu jammy stable
  Active apt repos in: /etc/apt/sources.list.d/nvidia-container-toolkit.list
    1: deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https: //nvidia.github.io/libnvidia-container/stable/deb/$(ARCH) /
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //mirror.cs.jmu.edu/pub/linuxmint/packages virginia main upstream import backport
    2: deb http: //mirror.cs.jmu.edu/pub/ubuntu jammy main restricted universe multiverse
    3: deb http: //mirror.cs.jmu.edu/pub/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //mirror.cs.jmu.edu/pub/ubuntu jammy-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/virtualbox.list
    1: deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https: //download.virtualbox.org/virtualbox/debian jammy contrib
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] https: //packages.microsoft.com/repos/code stable main
Info:
  Processes: 823 Uptime: 1d 23h 41m wakeups: 50 Memory: 31.17 GiB used: 13.62 GiB (43.7%)
  Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12
  Client: Unknown python3.10 client inxi: 3.3.13

Steps to reproduce
  1. Log in to Cinnamon
  2. Lock the desktop
  3. Wait 10-15 seconds -- Screen will turn off and then cycle back on.
Expected behavior

The behavior I expect is that the monitors continue to stay in standby mode until input from my keyboard or my mouse.

Additional information

This issue first arose when I installed LM for the first time a year or so ago and has persisted. I recently upgraded to LM 22.2 and the issue still exists.

I've tried creating a brand new user with no customization and the screen continues to turn back on after the desktop is locked.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the lock-and-wait sequence described in the issue on Cinnamon with the reported NVIDIA setup, then compare behavior for the default and newly created users. Investigate which Cinnamon screen-lock or display-power component wakes the monitors after 10–15 seconds; done means locked monitors remain in standby until keyboard or mouse input.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, linux
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.