Lock screen crashes after lid close
まだ誰も着手していません。
評価
調査の方向性
Start by tracing the suspend and resume handling in cinnamon-settings-daemon and how it interacts with cinnamon-screensaver and cs-backup-locker; the issue does not name source files or tests. Reproduce the lid close and reopen timing, then investigate whether the stage refresh completes after resume and whether the fallback locker activates. Done means the lock screen recovers or the backup locker takes over reliably after this sequence.
索引モデルが issue の本文から書いたものです。
説明
Summary
I closed the lid and reopened it after about 6 s. The system suspended anyway (see the related
cinnamon-settings-daemon issue: csd-power suspends after the lock call returns, without
re-checking the lid). After wake-up, the desktop with all application windows was visible, but there
was no password box and the session did not react. The backup locker did not take over. The only way
out was to switch to a text console (Ctrl+Alt+F2) and run cinnamon --replace.
System
- Linux Mint 22.3, Cinnamon 6.6.9, cinnamon-screensaver 6.6.2+mint22.3,
cinnamon-settings-daemon 6.6.4+zena, X11 - Intel UHD 630 + NVIDIA GTX 1050 Ti Max-Q (PRIME on-demand; the panel is driven by i915),
3840×2160, scale 2 lock-delay= 0, lock on suspend enabled
What the logs show
16:17:05 Lid closed.
16:17:09 cinnamon-screensaver: Starting screensaver... (fresh D-Bus activation)
16:17:11 Lid opened.
16:17:21 The system will suspend now! (immediately after the lock completed)
16:20:24 PM: suspend exit
-> no further output from cinnamon-screensaver until the session was restarted at 16:55
The kernel and NVIDIA resume were clean (no Xid/NVRM errors, no (EE) in Xorg.0.log).
I did not have a debug log of the failed resume itself. A later --debug run of a normal lid cycle
(lid kept closed until asleep) shows that after resume the stage refresh takes almost 7 s, before the
unlock widget can be shown:
17:45:32.039 Received Active changed from session manager
17:45:32.039 Stage: refreshing
...
17:45:38.871 manager: stage refresh complete
During those 7 s the old stage window exists and the grabs are held, so the screen looks frozen.
My assumption is that in the failing case this refresh, or the stage that was just being built when
the suspend happened, never finished. Because the screensaver window still existed,
cs-backup-locker did not consider it gone and did not activate.
Suggestions
- Watchdog after resume: if the stage is not mapped and painted within a few seconds after
PrepareForSleep(false), spawn the fallback/backup locker, or rebuild the stage. - Investigate the ~7 s stage refresh on resume (4K panel, scale 2, a single monitor).
- Cold start latency: started via D-Bus activation, the screensaver needs 4–20 s until the lock
is confirmed. With a resident instance (--hold) it takes under 1 s. Consider keeping it resident
by default, or making the first lock faster. - Minor:
Loading AccountsService/AccountsService ready
(dbusdepot/accountsServiceClient.py) are printed withoutflush=True. In the journal they
appear with the timestamp of the next flushed message. That makes AccountsService look like it
takes 12 s when it is actually ready within about 0.1 s.
- 主要言語
- C
- スター
- 70
- フォーク
- 81
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linuxmint/cinnamon-settings-daemon のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
linuxmint/cinnamon-settings-daemon#482 · コメント 1 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
linuxmint/cinnamon-settings-daemon#453 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
linuxmint/cinnamon-settings-daemon#483 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
linuxmint/cinnamon-settings-daemon の issue をすべて見る
似ている issue
-
bug severity: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AlessandroSangiuliano/Uros#1014 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
OpenXiangShan/NEMU#1314 ·
メンテナーはふだん 1 日以内に返信
-
`get_options()` repeats the first byte when hex-encoding octet strings対応中かも @rue19 が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
OpenPrinting/cups#1830 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
micropython/micropython#20020 ·
メンテナーはふだん 1 日以内に返信
-
macro typo in readmeオープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100