TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

AMD has a one-liner to help speed up Linux system resume time

129 pointsby sharjeelsayedalmost 2 years ago

7 comments

conspalmost 2 years ago
Good to see general resume improvements but ...<p>Can we not try to force s2idle? It uses way too much power. I&#x27;ve not yet seen a laptop which is capable of staying &quot;sleeping&quot; in s2idle as long as in s3 sleep. Correct me if I&#x27;m wrong though.<p>I also don&#x27;t really get why: s3 is more than fast enough to be awake when my laptop is open and I&#x27;m ready to login, the only &quot;need to be faster&quot; way I can see is when you do not lock you laptop and go straight to desktop but that has ... issues.
评论 #36059223 未加载
评论 #36058194 未加载
评论 #36058412 未加载
programmarchyalmost 2 years ago
It may be a &quot;one-liner&quot;, but it&#x27;s the kind where the engineer had to have broad and detailed knowledge about the system and how it works. Well done!
评论 #36062832 未加载
评论 #36064297 未加载
nightowl_gamesalmost 2 years ago
I just upgraded my Linux kernel and had major suspend issues due to the XHCI driver. I ended up having to disable the ability for XHCI to wake my machine.<p>On fedora cinnamon, I was getting random freezes on resume, and momentary freezes on resume on Linux Mint. Disabling the ability for XHCI to wake my machine fixed it.<p>This sleep() looks like bad code designed to work around a race condition. Perhaps it&#x27;s related to the issue I had.<p>This issue was the worst Linux issue I&#x27;ve had in ~10+ years.<p>(I&#x27;m on ryzen first gen cpu)
评论 #36067292 未加载
samsquirealmost 2 years ago
I&#x27;ve been thinking there must be a generic approach to waiting for events rather than sleeping and registering actions on events.<p>Like epoll for events
interlinkedalmost 2 years ago
any guesses about how soon this will be available in distributions like pop os?
评论 #36059001 未加载
评论 #36060325 未加载
评论 #36058807 未加载
hardware2winalmost 2 years ago
Ah, the most powerful optimization technique: add random sleeps to the code and when people start complaining remove them and collect your bonus<p>&lt;&#x2F;joke&gt;
评论 #36060037 未加载
评论 #36058644 未加载
评论 #36063919 未加载
评论 #36059189 未加载
评论 #36058762 未加载
评论 #36059395 未加载
arnonalmost 2 years ago
I&#x27;m not sure what news value this has - what is there to talk about?