PINE64
Setup power profile from nvme bootscript - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Pinebook Pro Tutorials (https://forum.pine64.org/forumdisplay.php?fid=117)
+--- Thread: Setup power profile from nvme bootscript (/showthread.php?tid=9110)



Setup power profile from nvme bootscript - korneliuszo - 02-10-2020

Code:
[Unit]
Description=Set nvme powersave
ConditionPathExists=/dev/nvme0

[Service]
Type=oneshot
ExecStart=/usr/sbin/nvme set-feature /dev/nvme0 -f 2 -v 2
RemainAfterExit=yes

[Install]
WantedBy=sysinit.target
put this into /etc/systemd/system/nvme.service

and run systemd enable nvme
x (x)

#ir-ext-ui { position: fixed; padding: 1px; z-index: 9999; display: none; font-family: Consolas, "Lucida Console", "Courier New", Courier, monospace; text-align: right; }



RE: Setup power profile from nvme bootscript - tophneal - 02-10-2020

Thanks for writing this up. Please consider adding this to the wiki as well.

Should this be OS-agnostic, or is it geared toward use on a specific OS?

Moving to Tutorials.


RE: Setup power profile from nvme bootscript - korneliuszo - 02-11-2020

I've written it on ubuntu bionic but should be os agnostic