systemd / systemd/systemd

Closed laptop goes to sleep during reboot

Open
#11,525 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

login needs-reporter-feedback ❓
Dominant language
C
Stars
16.7k
Forks
4.7k
Avg merge
1d 6h
Merged PRs (30d)
140

Description

systemd version the issue has been seen with

...
All

Used distribution


Gentoo
Expected behaviour you didn't see

When the laptop is closed and a remote reboot command is sent I'd expect the laptop to reboot
Unexpected behaviour you saw

The reboot command is given, it begins to shutdown but after KDE Plasma is stopped the laptop goes to sleep

Steps to reproduce the problem

KDE Plasma is configured not to put the laptop to sleep when there is power connected and the lid is closed, when a reboot command is sent KDE Plasma is stopped thus reverting to the default systemd policy, upon sensing the laptop is closed the machine goes to sleep, the reboot happens when the laptop is reopened and resumed

I'd expect the reboot to take precedence over sleep if it's already been initiated

Contributor guide

Open the contributing guide

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 reboot behavior with the laptop lid closed and KDE Plasma stopped, using the systemd power-management policy described in the issue. Trace how the remote reboot request and lid-triggered sleep are ordered, then verify that an initiated reboot takes precedence and that reopening the lid is no longer required.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.