# AMD won't sleep properly

**URL:** <https://community.frame.work/t/amd-wont-sleep-properly/41755>\
**Category:** Framework Laptop 13\
**Created:** [December 9, 2023, 5:28pm UTC](https://community.frame.work/t/amd-wont-sleep-properly/41755 "2023-12-09T17:28:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddahrn](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@ddahrn](https://community.frame.work/u/ddahrn)\
**Post date:** [December 9, 2023, 5:28pm UTC](https://community.frame.work/t/amd-wont-sleep-properly/41755/1 "2023-12-09T17:28:39Z")

</div>

I’m using an up to date Arch install with BIOS 3.03 and get high battery drain when putting it to sleep. Turns out it’s not actually sleeping and waking itself up, from what I can see in the log.  
I’ve read various stuff around and tried setting rtc\_cmos.use\_acpi\_alarm=1 in the kernel which doesn’t seem to make any difference.  
I’ve installed power-profiles-daemon and set it to power saver.  
One concrete thing I’ve noticed is if I remove the WiFi card and put it to sleep then it results in normal sleep and a battery drain of around 3% in 3.5 hours which is acceptable.  
At the moment I get about 4% loss in an hour.  
Seems someting related to the wifi card is stopping it sleeping properly / waking it up.  
I’ve run the amd\_s2idle.py script and set it to sleep for 1 hour, I’d appreciate it if someone could take a look?  
[https://pastebin.com/J3VNWYND](https://pastebin.com/J3VNWYND)

---

<div class="post-metadata">

**Author:** ![pkprotoplasm](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/pkprotoplasm/32/19088_2.png) [@pkprotoplasm](https://community.frame.work/u/pkprotoplasm)\
**Post date:** [December 9, 2023, 5:49pm UTC](https://community.frame.work/t/amd-wont-sleep-properly/41755/2 "2023-12-09T17:49:50Z")

</div>

I notice you’re using a 6.1 kernel. Are you able to run a 6.5+ kernel on this system and run the test again?

---

<div class="post-metadata">

**Author:** ![ddahrn](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@ddahrn](https://community.frame.work/u/ddahrn)\
**Post date:** [December 9, 2023, 6:08pm UTC](https://community.frame.work/t/amd-wont-sleep-properly/41755/3 "2023-12-09T18:08:05Z")

</div>

Sure, although the issue occurs regardless of the kernel used whether it’s the latest linux, linux-lts or linux-hardened kernel. I believe this was linux-lts kernel.

---

<div class="post-metadata">

**Author:** ![ddahrn](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@ddahrn](https://community.frame.work/u/ddahrn)\
**Post date:** [December 9, 2023, 7:48pm UTC](https://community.frame.work/t/amd-wont-sleep-properly/41755/4 "2023-12-09T19:48:42Z")

</div>

Here’s a later 6.6 kernel (linux) [https://pastebin.com/bMWMVdrX](https://pastebin.com/bMWMVdrX)

---

<div class="post-metadata">

**Author:** ![ddahrn](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@ddahrn](https://community.frame.work/u/ddahrn)\
**Post date:** [December 12, 2023, 11:23am UTC](https://community.frame.work/t/amd-wont-sleep-properly/41755/5 "2023-12-12T11:23:05Z")

</div>

Any advice? @Mario_Limonciello ?

---

<div class="post-metadata">

**Author:** ![Mario\_Limonciello](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/mario_limonciello/32/19277_2.png) [@Mario\_Limonciello](https://community.frame.work/u/Mario_Limonciello)\
**Post date:** [December 12, 2023, 12:20pm UTC](https://community.frame.work/t/amd-wont-sleep-properly/41755/6 "2023-12-12T12:20:56Z")

</div>

I think you’re seeing [[TRACKING] Framework AMD Ryzen 7040 Series lid wakeup behavior feedback - #54 by Gawdl3y](http://community.frame.work/t/tracking-framework-amd-ryzen-7040-series-lid-wakeup-behavior-feedback/39128/54)

Look at that thread and try the udev rule or don’t suspend before closing lid.
