Mint shuts down after I open the lid of my laptop randomly

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
cardinal94
Level 1
Level 1
Posts: 1
Joined: Thu Mar 30, 2023 10:34 pm

Mint shuts down after I open the lid of my laptop randomly

Post by cardinal94 »

Regardless of if I am on battery power or on A/C power, when I open the lid of my laptop after a while of it being closed, mint sometimes randomly shuts down. I do not think this is an issue with the Power Options, because they are set as so:

Suspend when inactive for: 30 minutes
When the lid is closed: suspend
When the battery is critically low: do nothing

I checked /var/log and here are some results:

Code: Select all

Mar 30 20:29:51 [user] systemd[1]: Stopped target Sleep.
Mar 30 20:29:51 [user] systemd[1]: Reached target Suspend.
Mar 30 20:29:51 [user] systemd[1]: Stopped target Suspend.
Mar 30 20:29:51 [user] systemd[1]: Started Load/Save RF Kill Switch Status.
Mar 30 20:29:51 [user] ModemManager[943]: <info>  [sleep-monitor-systemd] system is resuming
Mar 30 20:29:51 [user] NetworkManager[1023]: <info>  [1680229791.6244] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Mar 30 20:29:51 [user] NetworkManager[1023]: <info>  [1680229791.6245] device (wlo1): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Mar 30 20:29:51 [user] org.cinnamon.ScreenSaver[84195]: Fractional scaling active: False
Mar 30 20:29:51 [user] systemd[1]: Stopping Session c2 of User jake...
I am not sure if this is what I should look for in the logs though, as there are a lot of logs that got stored in the span of a couple seconds.

Here are my system settings:

Code: Select all

System:
  Kernel: 5.15.0-69-generic x86_64 bits: 64 compiler: gcc v: 11.3.0 Desktop: Cinnamon 5.6.8
    tk: GTK 3.24.33 wm: muffin dm: LightDM Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: HP product: HP Pavilion Laptop 15-eh1xxx v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: HP model: 88D0 v: 78.13 serial: <superuser required> UEFI: AMI v: F.10 date: 07/22/2021
Battery:
  ID-1: BAT0 charge: 36.1 Wh (99.7%) condition: 36.2/36.2 Wh (100.0%) volts: 12.6 min: 11.3
    model: HP Primary serial: <filter> status: N/A
CPU:
  Info: 8-core model: AMD Ryzen 7 5700U with Radeon Graphics bits: 64 type: MT MCP arch: Zen 2
    rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 8 MiB
  Speed (MHz): avg: 2295 high: 3675 min/max: 1400/1800 boost: enabled cores: 1: 3675 2: 1501
    3: 2116 4: 2334 5: 1613 6: 1530 7: 1625 8: 1709 9: 2706 10: 3547 11: 2210 12: 2396 13: 2680
    14: 2149 15: 1817 16: 3115 bogomips: 57487
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Lucienne vendor: Hewlett-Packard driver: amdgpu v: kernel pcie: speed: 8 GT/s
    lanes: 16 ports: active: eDP-1 empty: DP-1,HDMI-A-1 bus-ID: 04:00.0 chip-ID: 1002:164c
  Device-2: Cheng Uei Precision Industry (Foxlink) HP Wide Vision HD Camera type: USB
    driver: uvcvideo bus-ID: 1-3:2 chip-ID: 05c8:03df
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,vesa gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP res: 1920x1080 dpi: 142 diag: 395mm (15.5")
  OpenGL: renderer: RENOIR (renoir LLVM 15.0.6 DRM 3.42 5.15.0-69-generic) v: 4.6 Mesa 22.2.5
    direct render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 04:00.1 chip-ID: 1002:1637
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Hewlett-Packard
    driver: snd_rn_pci_acp3x v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 04:00.5
    chip-ID: 1022:15e2
  Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    pcie: speed: 8 GT/s lanes: 16 bus-ID: 04:00.6 chip-ID: 1022:15e3
  Sound Server-1: ALSA v: k5.15.0-69-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: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Hewlett-Packard
    driver: rtw_8822ce v: N/A pcie: speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 02:00.0
    chip-ID: 10ec:c822
  IF: wlo1 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 bus-ID: 1-4:3
    chip-ID: 0bda:b00c
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 3.0 lmp-v: 5.1
    sub-v: 6d7d
Drives:
  Local Storage: total: 476.94 GiB used: 246.26 GiB (51.6%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC711 HFM512GD3JX013N size: 476.94 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 26.9 C
Partition:
  ID-1: / size: 467.89 GiB used: 123.13 GiB (26.3%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 1024 KiB (0.0%) priority: -2 file: /swapfile
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A gpu: amdgpu temp: 44.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2492 apt: 2475 flatpak: 17
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http: //packages.linuxmint.com vera main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/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/spotify.list
    1: deb http: //repository.spotify.com stable non-free
  Active apt repos in: /etc/apt/sources.list.d/surfshark.list
    1: deb https: //ocean.surfshark.com/debian stretch main
Info:
  Processes: 392 Uptime: 20m Memory: 14.98 GiB used: 3.7 GiB (24.7%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.3.0 alt: 11/12 Client: Cinnamon v: 5.6.8 inxi: 3.3.13
If there is anything I could do to find out more about why this happens, I would love some suggestions.
Last edited by LockBot on Sun Oct 01, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Mint shuts down after I open the lid of my laptop randomly

Post by SMG »

cardinal94 wrote: Thu Mar 30, 2023 10:53 pm Regardless of if I am on battery power or on A/C power, when I open the lid of my laptop after a while of it being closed, mint sometimes randomly shuts down. I do not think this is an issue with the Power Options
Welcome to the forum, cardinal94.

There are quite a few bugs with amdgpu drivers and suspend so my first recommendation would be to upgrade to a newer kernel and see if that fixes the issue. Your system has a 5000 series Ryzen and I'd recommend a newer kernel than 5.15 anyhow.

You can install the latest 6.1-oem kernel with

Code: Select all

sudo apt-get install linux-oem-22.04c
and reboot.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Beginner Questions”