Suspend with NVME not working - Default Debian
(07-12-2020, 01:47 AM)johnny89 Wrote:
(02-06-2020, 08:06 PM)Jeremiah Cornelius Wrote: This is probably related to the same nvme issues I solved for Linux on the Macbook Pro, recently. The drive would "sleep" but then resume as read-only - with unpredictable effects!

The Macs don't support APST, and many nvme units also seem to be "idiosyncratic" about implementations. The fix is to "turn-off" the ability of the kernel to impose sleep states on hardware that does not conform.

After researching a bit about this, my solution was:
echo 0 > /sys/bus/pci/devices/0000\:01\:00.0/d3cold_allowed

This is now featured on the authoritative  Dunedan /mbp-2016-linux github:

This needs to be done in a root shell, sudo user won't cut it. You can elevate by runing 'sudo su -' and have a root shell, without additional login process.
I'd seriously give this a shot, AFTER you determine with lspci the actual device number for your nvme.

If this solves your problem, I supplied scripts and a systemd service wrapper, so you may automate at boot:

Create this file:


# systemd oneshot service to set sleep boolean on Apple Macbook Pro disks
# Original by Pier Lim. Posted at

   Description=Job that disables sleep from stopping nvme hardware on MBP


And the actual script:


/bin/echo 0 > /sys/bus/pci/devices/0000\:01\:00.0/d3cold_allowed

If you try this out, I'd love to hear how it goes.


Hi Jeremiah,

Your suggestion works on imac models that have unofficial nvme setup running Debian. Do you have knowledge as to implementing same mechanism in macos since the issue is ongoing there as well. setpci maybe?  Any clues?

I'm afraid I'm way more familiar with being able to tinker with kernel internals of Linux, than MacOS.
— Jeremiah Cornelius
"Be the first person not to do some­thing, that no one has thought of not doing before’’
— Brian Eno, "Oblique Strategies"

Messages In This Thread
RE: Suspend with NVME not working - Default Debian - by Jeremiah Cornelius - 07-14-2020, 01:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Games compilation howto on the Pinebook-pro (Manjaro Linux and Debian native) astr0baby 198 135,957 Yesterday, 08:38 AM
Last Post: ImmyChan
  U-Boot with direct NVMe boot support for eMMC/SPI Flash pcm720 118 95,470 06-08-2021, 11:04 PM
Last Post: calinb
  UK Pinebook Pro for sale (UK buyers only, 64GB, eMMC reader, NVME add-on) Z0rua 0 158 06-01-2021, 12:51 PM
Last Post: Z0rua
  high battery drain on suspend/poweroff wiz 3 408 05-12-2021, 07:09 AM
Last Post: tophneal
Sad Webcam not working in pinebook pro with Manjaro jcarball 2 442 04-28-2021, 03:23 PM
Last Post: jcarball
  NVMe SSD and battery life? dieselnutjob 3 711 04-19-2021, 01:55 PM
Last Post: slyecho
  No Sound on Default Manjaro KDE carlosqueso 4 617 04-01-2021, 07:17 AM
Last Post: carlosqueso
  Selling Pinebook Pro 128GB version (w/ NVMe adaptor) due to lack of use VoT 3 1,142 03-19-2021, 03:11 AM
Last Post: jj282
  Built-in Webcam Not Working fozzedout 36 15,156 02-01-2021, 08:59 AM
Last Post: lemaurien19
  [split] U-Boot with NVMe support, keyboard & display working as400 83 35,052 01-27-2021, 12:48 AM
Last Post: as400

Forum Jump:

Users browsing this thread: 1 Guest(s)