Found a fix for ryzen laptops that don't like to wake up from sleep (Tried for 7000 series and AI 300 series)
Posted by MrGoose48@reddit | linux | View on Reddit | 34 comments
So about two months back I bought the Acer Swift 14 AI with a ryzen AI 365 / 32 gigs of ram / 1TB drive for about 650ish. Was a pretty good deal, installed arch and besides the wrestling match to get the speakers to play audio I was having a great experience.
It wasn't until I started putting it into my bag and putting the device to sleep that I would notice. I would leave my morning uni class and go get coffee with a friend and then when I pull my laptop out to take some notes down before the next class, it wouldn't wake up. Kind of thing where you mash the caps key or press the space bar a few times, but after 1-2 minutes I gave up and had to hard power off, and turn on the machine again to get it to get back into linux. This issue was so bad that I considered going back to windows all together because after two months I was tired of it, but then read an interesting forum post from another user seeing that the iommu would have issues waking up.
I use systemd boot, so I went to the conf file in /boot/loader/entries/ to edit my arch.conf.
under the options line, I added amd_iommu=off at the end, saved it, rebooted. I have never had an issue since I added it.
For grub you would have to edit the grub config file in /etc/default/grub
at the line GRUB_CMDLINE_LINUX_DEFAULT= add amd_iommu=off, save it and then update the grub.
Hope this fixes the issue for someone else, because even after asking other people and suggesting it was kernel panic I wasn't able to find a fix.
zDCVincent@reddit
Fucking sweet. I will have to look into this. Thanks OP!
MrGoose48@reddit (OP)
how'd it go?
zDCVincent@reddit
It definitely works, but Lenovo solved this issue in their latest BIOS update without compromising device security by changing power groups for the internals.
Secure-System2406@reddit
thanks, this is ok
jmnugent@reddit
I have a Framework AI 300 series coming in a week or so.. so I'm just commenting here to remind myself I saw this. (in case I end up needing it)
Kitayama_8k@reddit
Heh same ish (Asus)
jmnugent@reddit
How's it been for you ?... I realized in looking at some of the extra computers I have here at home,. that the new Framework laptop I ordered will be much newer and better. (probably way better at playing Steam games ?)
I have a Dell 7070 Micro and a 7390 2in1.. but the Service Tags on those 2 both indicate they are 8 years old. (didn't realize they are that old)
I have a Steamdeck (purchased in 2023).. which works fine.. but the Framework Laptop with Risen 9 AI HX370.. seems like it's 2x to 3x more powerful ?
MrGoose48@reddit (OP)
It’s been great! You’ll have an even faster CPU/APU than me but it will blow those Dell 7070 machines out of the water.
As for the APU the biggest difference is probably gonna be based on TDP so you’ll have to benchmark them yourself. But I was able to play god of war at 1200p low and it ran great! Which for an APU is kind of nuts
jmnugent@reddit
That's awesome to hear. I checked my Email this morning and I now see a Shipping confirmation (coming from Taiwan, interestingly) .. so fingers crossed Fedex delivery times I'd guess early to mid next week.
I bought a 2nd monitor (and 2nd monitor arm) for my work-desk here at home. Going to be paired with a Cal-Digit TS3 dock. So during daytime 8-5pm I can have my work Dell 5440 plugged in. Then when 5pm rolls around, just shutdown work laptop swap over to my Framework and have dual monitors to do some Linux learning. It's going to make that particular desk setup a lot better and I'm excited.
zDCVincent@reddit
How'd it go out of curiosity?
jmnugent@reddit
Pretty great so far to be honest.
The Framework 13 laptop has been pretty solid. You can tell there was a lot of attention paid to the design and engineering. Doing things like "swapping SSD".. is easy. I like how the 5 screws along the bottom of th laptop are "captive screws" (they don't fall out when you unscrew them).. so you can easily unscrew them,. then flip the laptop over and unfold the keyboard tray and swap the SSD quite easily. I have 2 x SSD's.. (1tb from the factory that has Windows 11.. and a 4tb SSD that has Fedora). I've swapped the SSD's 6 to 8 times now and it works great.
I don't think I'm going to end up needing the Cal-Digit dock. The existing monitor I have is a DELL U2723QE.. so I re-ordered a 2nd one of those. interestingly though, what I received was a DELL U2725QE (which is a TB4 Hub monitor. So I can now "daisy-chain" my 2 monitors directly (from monitor to monitor) without needing a Docking station. Right now I'm doing that over a standard Display Port cable . .but there's some misleading and confusing information online. DELL documentation seems to say I can do the daisy-chain over a Thunderbolt-capable USB-C cable. So I have one of those set aside and my 2nd U2725QE monitor is supposed to arrive today.
Overall though I'm quite happy with the Framework13. The only 2 complaints I have:
performance (especially gaming performance) is not as high as I was hoping. The fans and heat are both very noticable. (to be expected with a 13in laptop I guess)
Getting Steam games to run properly under Fedora Linux has been an exercise in deep frustration. I've probably spent 8 to 10 hours so far trying to get the right combination of Proton and Launch strings and etc,. but still getting a lot of crashing and low FPS. I'm kind of to the point of just giving up on Steam entirely on Linux and just using this machine for other tasks (linux-learning, other coding and sysadmin stuff)
Encryped-Rebel2785@reddit
I have to try this tomorrow
MrGoose48@reddit (OP)
Enjoy!
LegitimateFly4223@reddit
SOY NUEVO EN LINUX , RECOMENDACIONES PARA DESCARGA , ANYONE?
A--E@reddit
Do you have aspm enabled in bios?
MrGoose48@reddit (OP)
Went through all the menus in the BIOS and every sub menu, ASPM is not an option
A--E@reddit
I'm not a laptop exert an it totally can be laptops handle power settings in a different manner their bios - anyways I'm glad you've resolved the suspend issue. On my desktop I've been hitting my head against the wall for 6 month and it was aspm disabled all along.
MrGoose48@reddit (OP)
I can check but I didn’t see aspm in the bios (Acer swift)
Rest-That@reddit
Thanks for this post! I'm thinking of getting one of these newer Strix Halo laptops, how's the battery life in your experience?
MrGoose48@reddit (OP)
Wild compared to older laptops. I upgraded from a 10710U so getting 4 more cores was already great but it’s snappy, and lasts around 12 hours of regular usage for me when I use TLP with my config :)
Rest-That@reddit
Insane! I can barely pull 4 hours with my Zephyrus g14. Thanks for the info!
granadesnhorseshoes@reddit
Beware: Disabling the iommu will probably have a negative impact on virtualization, specifically hardware passthrough support for VMs.
Not a huge deal if you don't use virtualization much or have a need for hardware passthrough. But It's something to keep in mind.
I just disable sleep and suspend. Cold boot times with solid stare drives aren't any slower than resuming these days anyway. once you close the lid and the screen backlight is off, you can still get hours or even days worth of battery even on an active CState. And its all solid state so physical motion during read/write isn't causing any problems either.
MrGoose48@reddit (OP)
Takes about 10-12 seconds to initialize (DDR5 moment) so sleep works best for me, but noted. It just takes a while because it hangs (full minute cycle if I left it as is)
LordAnchemis@reddit
Is it iommu that is causing the issue?
Most of the time 'sleep' issues with Linux is due to 'bad' UEFI implementation (ie. S3 sleep) and 'modern standby' (ie. S0iX) issued
MrGoose48@reddit (OP)
My system is using S2Idle only ([s2idle], not deep or s3)
TimurHu@reddit
I had the same issue on Strix Halo. I think it's a recent regression. Will see if your solution helps.
MrGoose48@reddit (OP)
Lmk if it works
javopat227@reddit
The downside it seems if you run docker containers then
Zettinator@reddit
It's also detrimental to Thunderbolt security and device security in general.
If IOMMU causes problems that points to firmware issues that should be fixed!
dragonnnnnnnnnn@reddit
docker containers are not a vm (on Linux if you use native docker, not docker desktop). everything will work perfectly fine with it on off.
MrGoose48@reddit (OP)
This laptop is for general use, so no I wasn't. Thank you for adding this note though for others!
KnowZeroX@reddit
I have one of those lying around, only got a chance to play with it for a day or 2 but been too busy to fully set it up.
I've had no problem with speakers or sleep so far. I loaded up OpenSuse Leap 16 on it, only problem was wifi didn't work out of box but when I updated it, it started working without problem.
imbev@reddit
Which kernel version?
MrGoose48@reddit (OP)
6.18.3