Cinnamon freezes when unsuspending

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
jero
Level 1
Level 1
Posts: 26
Joined: Mon Sep 27, 2021 7:47 am

Cinnamon freezes when unsuspending

Post by jero »

Sometimes when I wake up my laptop, after suspending it, Cinnamon seems frozen. The application I was using right before suspending my laptop is visible. I can still move the mouse, but I can't click anything, and my keyboard isn't responding.

Restarting Cinnamon by pressing Ctrl-Alt-Esc doesn't work.
What does work, is switching to a TTY (Ctrl-Alt-F1) and entering cinnamon-unlock-desktop. After hitting Ctrl-Alt-F7 to return to the GUI, everything works fine again. Note that my system is now unlocked and I didn't have to enter my password, if I previously logged in to TTY1. This seems like a security risk as well.

I have executed journalctl -rb -0 | nc termbin.com 9999 right after this issue occurred: termbin.

Is this a known issue? Any suggestions how to solve this?
User avatar
AZgl1800
Level 20
Level 20
Posts: 11186
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Cinnamon freezes when unsuspending

Post by AZgl1800 »

Some laptops, like mine which is an older ASUS, does ot work well with Suspend.

So, I have that set to NEVER.
instead of suspend, I just use the Power Manager to make the laptop goes to sleep.

I also have Lid closed set to NEVER, as that function does not work for me either.

Personal choice, I use 5 minutes of Inactivity for the laptop to power down and turn the screen off. YouTube videos will keep it running just fine, but if I am just looking at a text document, and leave the keyboard alone for 5 minutes, it power down.

move the Mouse and it wakes up immediately.
powerdown.jpg
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
jero
Level 1
Level 1
Posts: 26
Joined: Mon Sep 27, 2021 7:47 am

Re: Cinnamon freezes when unsuspending

Post by jero »

Hi AZgl1800, thanks for sharing your experience.

Aren't suspend to RAM and sleep the same thing in Linux Mint?
AZgl1800 wrote: Tue Nov 14, 2023 9:18 am Personal choice, I use 5 minutes of Inactivity for the laptop to power down and turn the screen off.
Your screenshot seems to suggest that the only thing that happens after 5 minutes of inactivity is turning off the screen, not going to sleep/suspending?
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Cinnamon freezes when unsuspending

Post by SMG »

jero wrote: Tue Nov 14, 2023 4:43 am... but I can't click anything, and my keyboard isn't responding.
Please explain how you are switching to a TTY if your keyboard is not responding. :?

The output you posted has a Call Trace in it.

Code: Select all

Nov 14 09:18:25 zeus kernel: UBSAN: shift-out-of-bounds in /build/linux-oem-6.5-hgbTI9/linux-oem-6.5-6.5.0/drivers/gpu/drm/display/drm_dp_mst_topology.c:4416:36
Cinnamon cannot run if the graphics are not working properly and it appears there were graphics issues.

Looks like you may have disconnected your mouse and keyboard when this issue was happening?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11186
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Cinnamon freezes when unsuspending

Post by AZgl1800 »

jero wrote: Tue Nov 14, 2023 11:24 am Hi AZgl1800, thanks for sharing your experience.

Aren't suspend to RAM and sleep the same thing in Linux Mint?
AZgl1800 wrote: Tue Nov 14, 2023 9:18 am Personal choice, I use 5 minutes of Inactivity for the laptop to power down and turn the screen off.
Your screenshot seems to suggest that the only thing that happens after 5 minutes of inactivity is turning off the screen, not going to sleep/suspending?
I DO NOT ACTIVATE SUSPEND, SLEEP, OR HIBERNATE, EVER.
Also "Lid Closed" is set to NEVER.


I just simply have the power Manager turn off the power to the display,
the CPU idles way down and get as cold as the AC blowing out of the HVAC ducts.

this is a very efficient way of keeping the laptop alive, ready for instant use,
and NO, it does NOT store anything to RAM like Hibernate does.

it just idles back, and waits for a keyboard touch, or the mouse to move.

I turn the LogiTech M510 mouse OFF, every time I quit using the laptop, that way, if I bump it in the night, the screen does not light up and wake me up....

I sleep in a Recliner, with the laptop on my knees, or the side table.
Old Age Disease - can't lay on my back anymore.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
mikeflan
Level 17
Level 17
Posts: 7162
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Cinnamon freezes when unsuspending

Post by mikeflan »

Please type this in a terminal:

Code: Select all

inxi -Fxxxmprz
Post the output to this forum in "Code" tags. The button that inserts these tags is marked </>, which is in the mini toolbar above the edit box where you type your reply.
viewtopic.php?f=42&t=364929
jero
Level 1
Level 1
Posts: 26
Joined: Mon Sep 27, 2021 7:47 am

Re: Cinnamon freezes when unsuspending

Post by jero »

Thanks for the suggestions.
SMG wrote: Tue Nov 14, 2023 2:12 pm Please explain how you are switching to a TTY if your keyboard is not responding. :?
You are right, that doesn't make sense :) I should have been more precise: the keys that should affect the GUI (e.g., the Super key which opens the start menu) aren't responding.
SMG wrote: Tue Nov 14, 2023 2:12 pm The output you posted has a Call Trace in it.

Code: Select all

Nov 14 09:18:25 zeus kernel: UBSAN: shift-out-of-bounds in /build/linux-oem-6.5-hgbTI9/linux-oem-6.5-6.5.0/drivers/gpu/drm/display/drm_dp_mst_topology.c:4416:36
Cinnamon cannot run if the graphics are not working properly and it appears there were graphics issues.
A graphics issue could very well be the cause for this problem. I had worse graphics issues before, which is why I am now running the 6.5 kernel.
SMG wrote: Tue Nov 14, 2023 2:12 pm Looks like you may have disconnected your mouse and keyboard when this issue was happening?
You are right again. My workflow: I suspend my laptop, disconnect my external keyboard (it has a mouse built-in) and put my laptop in my backpack. Sometimes I disconnect the keyboard while the laptop is still awake, sometimes just after suspending it. Maybe I should pay more attention to that timing.
mikeflan wrote: Tue Nov 14, 2023 11:06 pm Please type this in a terminal:

Code: Select all

System:
  Kernel: 6.5.0-1006-oem x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: LENOVO product: 20UHCTO1WW v: ThinkPad T14s Gen 1
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20UHCTO1WW v: SDK0J40697 WIN
    serial: <superuser required> UEFI: LENOVO v: R1CET76W(1.45 )
    date: 07/31/2023
Battery:
  ID-1: BAT0 charge: 49.0 Wh (100.0%) condition: 49.0/57.0 Wh (86.0%)
    volts: 12.8 min: 11.5 model: SMP 5B10W139 type: Li-poly serial: <filter>
    status: Full cycles: 129
Memory:
  RAM: total: 30.57 GiB used: 12.52 GiB (40.9%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: 8-core model: AMD Ryzen 7 PRO 4750U with Radeon Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen 2 rev: 1 cache: L1: 512 KiB L2: 4 MiB
    L3: 8 MiB
  Speed (MHz): avg: 1399 high: 1400 min/max: 1400/1700 boost: enabled
    cores: 1: 1400 2: 1400 3: 1400 4: 1400 5: 1400 6: 1400 7: 1400 8: 1400
    9: 1397 10: 1400 11: 1400 12: 1400 13: 1397 14: 1400 15: 1400 16: 1400
    bogomips: 54296
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel pcie:
    speed: 8 GT/s lanes: 16 ports: active: eDP-1 empty: DP-1,DP-2,HDMI-A-1
    bus-ID: 06:00.0 chip-ID: 1002:1636 class-ID: 0300
  Device-2: Chicony Integrated Camera type: USB driver: uvcvideo
    bus-ID: 2-2:2 chip-ID: 04f2:b6cb class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3")
    s-diag: 583mm (23")
  Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 158 size: 309x174mm (12.2x6.9")
    diag: 355mm (14")
  OpenGL: renderer: RENOIR (renoir LLVM 15.0.7 DRM 3.54 6.5.0-1006-oem)
    v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 06:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    vendor: Lenovo driver: snd_rn_pci_acp3x v: kernel pcie: speed: 8 GT/s
    lanes: 16 bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 06:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Sound Server-1: ALSA v: k6.5.0-1006-oem 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: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 2400 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0f0 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie:
    speed: 5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 6-4:19 chip-ID: 8087:0029 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 18 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 953.87 GiB used: 604.9 GiB (63.4%)
  ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW010T8 size: 953.87 GiB
    speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 004C temp: 27.9 C
    scheme: GPT
Partition:
  ID-1: / size: 914.69 GiB used: 604.45 GiB (66.1%) fs: ext4 dev: /dev/dm-1
    mapped: vgmint-root
  ID-2: /boot size: 703.1 MiB used: 441.8 MiB (62.8%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 511 MiB used: 23.2 MiB (4.5%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 20 GiB used: 264 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 41.0 C mobo: N/A gpu: amdgpu temp: 40.0 C
  Fan Speeds (RPM): fan-1: 0 fan-2: 0
Info:
  Processes: 604 Uptime: 4d 15h 26m wakeups: 26 Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12/9 Shell: Zsh v: 5.8.1
  running-in: tmux: inxi: 3.3.13
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Cinnamon freezes when unsuspending

Post by SMG »

Here are the current Cinnamon screensaver Issues.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
mikeflan
Level 17
Level 17
Posts: 7162
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Cinnamon freezes when unsuspending

Post by mikeflan »

If the graphics issues are resolved I suggest going back to the 6.2 kernel.
If that is not worth doing I have no other recommendations.
jero
Level 1
Level 1
Posts: 26
Joined: Mon Sep 27, 2021 7:47 am

Re: Cinnamon freezes when unsuspending

Post by jero »

SMG wrote: Wed Nov 15, 2023 3:51 pm Here are the current Cinnamon screensaver Issues.
Thanks for the link. I can't find anything really similar, but lots of issues seem related to external monitors and docking stations, which might play a role in my case as well. I will pay closer attention when exactly this issue is occurring.
I guess it's better to disconnect external keyboards and monitors when the system is still awake.
mikeflan wrote: Wed Nov 15, 2023 10:01 pm If the graphics issues are resolved I suggest going back to the 6.2 kernel.
If that is not worth doing I have no other recommendations.
The graphics issues were mostly resolved (except for this minor issue) by using a newer kernel, so going back to 6.2 isn't an option for me.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11186
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Cinnamon freezes when unsuspending

Post by AZgl1800 »

I have a desktop PC in the office on LM21.2, I never do anything with it, except to use the Power Manager to idle it down after 5 minutes.

the Monitor is External, I just swipe the face of the monitor and the power goes off to it, the PC stays on
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
CJRoss
Level 1
Level 1
Posts: 30
Joined: Tue Feb 20, 2024 7:42 am

Re: Cinnamon freezes when unsuspending

Post by CJRoss »

jero wrote: Tue Nov 14, 2023 4:43 am Sometimes when I wake up my laptop, after suspending it, Cinnamon seems frozen. The application I was using right before suspending my laptop is visible. I can still move the mouse, but I can't click anything, and my keyboard isn't responding.

Restarting Cinnamon by pressing Ctrl-Alt-Esc doesn't work.
What does work, is switching to a TTY (Ctrl-Alt-F1) and entering cinnamon-unlock-desktop. After hitting Ctrl-Alt-F7 to return to the GUI, everything works fine again. Note that my system is now unlocked and I didn't have to enter my password, if I previously logged in to TTY1. This seems like a security risk as well.

I have executed journalctl -rb -0 | nc termbin.com 9999 right after this issue occurred: termbin.

Is this a known issue? Any suggestions how to solve this?
I've had this issue a few times before. While the screen is frozen it seems that the computer is thinks it's still displaying the unlock screen and if you type in your password will recover and log you in properly.
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Cinnamon freezes when unsuspending

Post by SMG »

CJRoss wrote: Sun Mar 10, 2024 2:36 pmI've had this issue a few times before.
You had the issue on your LM21.2 install back in November when the OP made this topic? You posted in another topic saying you are using LMDE. This topic is posted in the forum for those running Linux Mint based on Ubuntu. It is not for Cinnamon issues running on any operating system.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
CJRoss
Level 1
Level 1
Posts: 30
Joined: Tue Feb 20, 2024 7:42 am

Re: Cinnamon freezes when unsuspending

Post by CJRoss »

SMG wrote: Sun Mar 10, 2024 3:18 pm
CJRoss wrote: Sun Mar 10, 2024 2:36 pmI've had this issue a few times before.
You had the issue on your LM21.2 install back in November when the OP made this topic? You posted in another topic saying you are using LMDE. This topic is posted in the forum for those running Linux Mint based on Ubuntu. It is not for Cinnamon issues running on any operating system.
No. I'm pointing out that sometimes even though the screen appears to freeze you can still type in your password and unlock it. I posted that as something the OP can try while they're troubleshooting their issue.
Post Reply

Return to “Cinnamon”