Sometimes, my computer doesn't shut down or suspend properly.

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

Every once in a while, usually after my computer has been continuously turned on for several days, it'll be unable to suspend or shut down properly.

It's a laptop, dual booted, using Linux Mint Cinnamon. When this problem occurs, I find that upon closing my laptop's lid, the screen doesn't actually turn off (go black). Instead, it displays this:
Image

Then, after I unlock it, it shows this:
Image

Then, when I try to shut down, it doesn't shut down. It just shows the same thing you see in the first image again. Then, when I type in the password, it restarts. It doesn't take me to the BIOS screen, like it's supposed to, it just loads the desktop and plays the startup theme. So, when this bug occurs, literally the only way to shut down is to press and hold the power button.


I don't even remotely understand what's going on. I tried looking throughout the forum for help, but found nobody with the same issue. Help would be greatly appreciated. If you need any extra information, I'd be more than happy to show it to you. I'd show you the results of inxi, but it's been a while and I forgot what the options were that I was supposed to put in.

Thank you!
Attachments
Authentication is required to suspend the system while an application is inhibiting this..jpg
Trying to unlock.jpg
Last edited by LockBot on Sat Aug 26, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mikeflan
Level 17
Level 17
Posts: 7088
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by mikeflan »

I find that upon closing my laptop's lid . . .
Don't do that - at least temporarily.
Instead, Suspend the system and then close the lid when all systems stop.

Type this in a terminal and post the response:

Code: Select all

systemd-inhibit --listsystemd-inhibit --list
Obtained from here:
https://askubuntu.com/questions/1187748 ... ed-for-reb

Here is mine:

Code: Select all

$ systemd-inhibit --list
WHO            UID  USER PID    COMM           WHAT                                              >
ModemManager   0    root 1100   ModemManager   sleep                                             >
NetworkManager 0    root 972    NetworkManager sleep                                             >
UPower         0    root 1254   upowerd        sleep                                             >
mike           1000 mike 521689 csd-power      handle-lid-switch                                 >
mike           1000 mike 521651 csd-media-keys handle-power-key:handle-suspend-key:handle-hiberna>
mike           1000 mike 521689 csd-power      sleep                                             >

6 inhibitors listed.
$
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

Results of the command:

Code: Select all

systemd-inhibit: unrecognized option '--listsystemd-inhibit'
This is what happens if I remove the --listsystemd-inhibit option:

Code: Select all

WHO            UID  USER  PID  COMM           WHAT                             >
ModemManager   0    root  947  ModemManager   sleep                            >
NetworkManager 0    root  896  NetworkManager sleep                            >
UPower         0    root  1378 upowerd        sleep                            >
chris          1000 chris 1382 csd-power      handle-lid-switch                >
chris          1000 chris 1338 csd-media-keys handle-power-key:handle-suspend-k>
chris          1000 chris 1382 csd-power      sleep                            >

6 inhibitors listed.
mikeflan
Level 17
Level 17
Posts: 7088
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by mikeflan »

When you do this:
Instead, Suspend the system and then close the lid when all systems stop.
Does the laptop wake up properly by pressing any key?
Can you suspend and wake multiple times with no problems?

If so, lets see your Power Management settings.

I don't use a laptop much, so others are likely to come up with the answer for you.
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

Right now, the laptop does wake properly when I press a key. However, I'm not sure if that will be the case when this bug next happens.

Here's a screenshot of my power management settings:

Image
User avatar
SMG
Level 25
Level 25
Posts: 31739
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by SMG »

MathMachine4 wrote: Sun Feb 26, 2023 4:48 pmIt's a laptop, dual booted, using Linux Mint Cinnamon.
Please open the System Reports app and click the System Information tab on the left. Your computer's information should come up in the right pane. Then click the Copy button in the lower right and paste the results into a reply window here so we can see how Linux Mint views your hardware.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

It shows nothing.png
Also, sorry for taking so long to get back
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

Also, the bug is happening again. I tried reentering the command, and now 7 inhibitors are listed:

Code: Select all

WHO            UID  USER  PID  COMM           WHAT                             >
Disk Manager   0    root  957  udisksd        shutdown:sleep:idle              >
ModemManager   0    root  986  ModemManager   sleep                            >
NetworkManager 0    root  921  NetworkManager sleep                            >
UPower         0    root  1391 upowerd        sleep                            >
chris          1000 chris 1401 csd-power      handle-lid-switch                >
chris          1000 chris 1352 csd-media-keys handle-power-key:handle-suspend-k>
chris          1000 chris 1401 csd-power      sleep                            >

7 inhibitors listed.
User avatar
SMG
Level 25
Level 25
Posts: 31739
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by SMG »

MathMachine4 wrote: Sun Mar 05, 2023 4:56 pm It shows nothing.png

Also, sorry for taking so long to get back
That is not a good sign. :(

Try running

Code: Select all

inxi -Fxxxrz
in a terminal. Click </> from the mini toolbar above the textbox where you type your reply and then place your cursor between the code tags and paste the results of the command between the code tags [code]Results[/code].
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

I typed

Code: Select all

inxi -Fxxxrz
. It displayed this:

Code: Select all

System:
  Kernel: 5.15.0-67-generic x86_64 bits: 64 compiler: N/A 
  Desktop: Cinnamon 5.2.7 wm: muffin 5.2.0 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: HP product: HP Laptop 15-gw0xxx 
  v: Type1ProductConfigId serial: <filter> Chassis: type: 10 
  serial: <filter> 
  Mobo: HP model: 87D1 v: 38.24 serial: <filter> UEFI: Insyde v: F.20 
  date: 03/11/2021 
Battery:
  ID-1: BAT1 charge: 27.1 Wh condition: 36.7/40.9 Wh (90%) volts: 11.9/11.3 
  model: Hewlett-Packard PABAS0241231 type: Li-ion serial: <filter> 
  status: Discharging 
CPU:
  Topology: Quad Core model: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx 
  bits: 64 type: MT MCP arch: Zen+ rev: 1 L2 cache: 2048 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 33535 
  Speed: 1252 MHz min/max: 1400/2100 MHz boost: enabled Core speeds (MHz): 
  1: 1248 2: 1259 3: 1365 4: 1309 5: 1245 6: 1218 7: 1259 8: 1215 
Graphics:
  Device-1: AMD Picasso vendor: Hewlett-Packard driver: amdgpu v: kernel 
  bus ID: 04:00.0 chip ID: 1002:15d8 
  Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati 
  unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: AMD Radeon Vega 8 Graphics (RAVEN DRM 3.42.0 
  5.15.0-67-generic LLVM 12.0.0) 
  v: 4.6 Mesa 21.2.6 direct render: Yes 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 04:00.1 chip ID: 1002:15de 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
  vendor: Hewlett-Packard driver: snd_pci_acp3x v: kernel 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 bus ID: 04:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.15.0-67-generic 
And then the terminal froze. I waited a few minutes, nothing happened, so I used ctrl+c to get it to stop.
User avatar
SMG
Level 25
Level 25
Posts: 31739
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by SMG »

MathMachine4 wrote: Sun Mar 05, 2023 8:28 pmAnd then the terminal froze. I waited a few minutes, nothing happened, so I used ctrl+c to get it to stop.
It sounds like there is likely a problem with your network card/device. That is the section which prints after Audio and I have seen this happen once or twice to others.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

Is that what's causing my laptop to fail to suspend/shut down?
User avatar
SMG
Level 25
Level 25
Posts: 31739
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by SMG »

MathMachine4 wrote: Sun Mar 05, 2023 9:03 pm Is that what's causing my laptop to fail to suspend/shut down?
It could be. Hardware devices are given the signal to power down after the operating system shuts down. If the device is not working properly, then it may not be shutting down.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

Do you know how I can fix this?
User avatar
SMG
Level 25
Level 25
Posts: 31739
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by SMG »

MathMachine4 wrote: Sun Mar 05, 2023 9:36 pm Do you know how I can fix this?
If there is something wrong with the card, it might need replaced.

I would first suggest seeing if you can find out what type of network card(s) your computer has. I would think you could get the info from the HP website.

Are you connecting with wireless or bluetooth or Ethernet? Having you been having problems with your connections?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

Network card.png
User avatar
powerwagon75
Level 4
Level 4
Posts: 338
Joined: Sun Feb 28, 2016 4:05 pm
Location: USA

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by powerwagon75 »

MM4,

In your original post, first photo with the authenticate pop-up, did you click on “Details” to see what was requesting authorization?
Image
Custom Antec Outside tower w/Mint 20.2
HP lap w/Mint 20.3
Optiplex 960 "Frankenbox" w/Fedora 39/Mint 19.2/Mint 20.2
Advantech TPC-1551T w/LinuxLite
Acer C720 Chromebook w/GalliumOS
Mac PPC G4 w/Lubuntu
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

Here ya go!
Authentication is required.png
MathMachine4
Level 3
Level 3
Posts: 115
Joined: Thu Jan 06, 2022 8:10 pm

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by MathMachine4 »

Sorry, my bad, I sent the wrong photo! ACK!
Network card.png
User avatar
SMG
Level 25
Level 25
Posts: 31739
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Sometimes, my computer doesn't shut down or suspend properly.

Post by SMG »

MathMachine4 wrote: Mon Mar 06, 2023 2:31 am Here ya go!Authentication is required.png
Are you running some type of background process, maybe? I'm not sure what might be blocking your ability to suspend.
MathMachine4 wrote: Mon Mar 06, 2023 12:06 pm Sorry, my bad, I sent the wrong photo! ACK!
Network card.png
That looks suspiciously like the one you already sent. :mrgreen:

Here is someone with what appears to be a similar computer that had problems with the Wifi device Realtek RTL8821CE 802.11ac PCIe Adapter not working. Low signal or not picking up networks available so it could be a hardware issue.

This topic RTL8821CE keeps stopping working. Disappears entirely from device manager (computer cannot find it). indicates there is HP diagnostic software one can run, but I don't know if that is in the BIOS/UEFI or something for which you would need a Windows install. (Maybe you could run Windows from a usb drive to run the test?)

Check to see if you are able to get output for

Code: Select all

lspci -knn | grep Net -A3; rfkill list
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Software & Applications”