linuxmint / linuxmint/cinnamon

PC will instead suspend if you close the lid of your laptop screen within 1 second or so of selecting "Shut Down"

Open
#11,425 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

* Cinnamon v5.6.5 — v5.6.6
* Mint 21.1
Issue

Simply put, when you click Shut Down, if you then close the lid of the laptop screen within 1 second or so of selecting "Shut Down", the PC will instead suspend.

This also occurs in a live ISO session if that's easier to test with. It may also be easier to test with when using an external USB mouse and/or keyboard.

Steps to reproduce

Select Shut Down and then immediately close the lid of your laptop (you do actually have a second or so, therefore you don't have to be super-immediate in the process... though, in theory, a modern fast CPU with an NVMe SSD may require you to do it super-immediately after selecting Shut Down)

Expected behaviour

The PC should not allow suspend to occur immediately after you have selected Shut Down, not one second or so after you've selected Shut Down.

Other information

This does not occur on slow PCs such as my AMD E-350 (1.6GHz with IPC around an Athlon XP); this only seems to occur on at least moderately fast PCs (2.4GHz Core 2 Duo, 3.6GHz Phenom II, 3GHz 2nd gen Intel Core i5, and a 4.6GHz 4th gen Intel Core Haswell-based CPU).

MATE seems to actually have the same issue, but you have to be super-duper-uber quick about it to the point of it being incredibly impractical and you might even break your laptop screen in the rush to close its lid fast enough.

It can also be manually done on a desktop PC if you have a keyboard with a 'Suspend' button whereby you simply press that 'Suspend' button after clicking Shut Down.

Lastly, this issue seems to straight-up not happen on Xfce.

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

No source file or test is identified. Start by reproducing the timing-sensitive behavior in Cinnamon or a live ISO, then trace the shutdown and lid/suspend handling. Done means selecting Shut Down and immediately closing the lid no longer suspends the PC.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.