Difference between revisions of "Talk:Pinebook Pro Hardware Accessory Compatibility"

From PINE64
Jump to navigation Jump to search
(Created page with "NVME SSD power testing: I'd like to find out what the maximum sustained wattage for NVME drives is. 2.5W has been quoted as being safe, but I've tested 2.7W extensively withou...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== NVMe SSD power testing ==
NVME SSD power testing:
NVME SSD power testing:
I'd like to find out what the maximum sustained wattage for NVME drives is. 2.5W has been quoted as being safe, but I've tested 2.7W extensively without issues. Please try the following test if your power state is over 2.7W:
I'd like to find out what the maximum sustained wattage for NVME drives is. 2.5W has been quoted as being safe, but I've tested 2.7W extensively without issues. Please try the following test if your power state is over 2.7W:
Line 5: Line 7:
* Apply a sustained CPU load on all cores but one.
* Apply a sustained CPU load on all cores but one.
* Run 'sudo hdparm -t /dev/nvme0' continuously for 5 minutes.
* Run 'sudo hdparm -t /dev/nvme0' continuously for 5 minutes.
The test passes if your PBP does not crash (red-green blinking power led). I will write a script later to automate the test, but for now these instructions should suffice. If you think this would work better in a forum thread, let me know and I'll start one. I hope to see some of your findings!
The test passes if your PBP does not crash (red-green blinking power led). I will write a script later to automate the test, but for now these instructions should suffice. If you think this would work better in a forum thread, let me know and I'll start one. I hope to see some of your findings! --[[User:Natrox|Natrox]] ([[User talk:Natrox|talk]]) 03:58, 3 February 2020 (UTC)
--[[User:Natrox|Natrox]] ([[User talk:Natrox|talk]]) 03:58, 3 February 2020 (UTC)
 
<h3>Intel 660p</h3>
Got an Intel 660p 2TB. Added power states to the table. Lowest active state is just above the 2.5W recommendation.
<div class="toccolours mw-collapsible mw-collapsed" style="max-width:640px;">
<div><strong>$ sudo nvme id-ctrl /dev/nvme0</strong></div>
<div class="mw-collapsible-content">
<pre>
ps    0 : mp:5.50W operational enlat:0 exlat:0 rrt:0 rrl:0
          rwt:0 rwl:0 idle_power:- active_power:-
ps    1 : mp:3.60W operational enlat:0 exlat:0 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:- active_power:-
ps    2 : mp:2.60W operational enlat:0 exlat:0 rrt:2 rrl:2
          rwt:2 rwl:2 idle_power:- active_power:-
ps    3 : mp:0.0300W non-operational enlat:5000 exlat:5000 rrt:3 rrl:3
          rwt:3 rwl:3 idle_power:- active_power:-
ps    4 : mp:0.0040W non-operational enlat:5000 exlat:9000 rrt:4 rrl:4
          rwt:4 rwl:4 idle_power:- active_power:-
</pre>
</div></div>
 
Saving power state to NVMe firmware is not supported. Attempting to do so will result in an error, and will not execute the change. Use without <code>-s</code> flag.
<div class="toccolours mw-collapsible mw-collapsed" style="max-width:640px;">
<div><strong>$ sudo nvme set-feature /dev/nvme0 -f 2 -v 2 -s</strong></div>
<div class="mw-collapsible-content">
<pre>
NVMe status: FEATURE_NOT_SAVEABLE: The Feature Identifier specified does not support a saveable value(0x10d)
</pre>
</div></div>
 
APST appears to be enabled, but after idling for a while at PS 2, the NVMe has not changed. Leaving this off the table info, since I don't understand it well enough to toy with it.
<div class="toccolours mw-collapsible mw-collapsed" style="max-width:640px;">
<div><strong>$ sudo nvme get-feature /dev/nvme0 -f 0x0c</strong></div>
<div class="mw-collapsible-content">
<pre>
get-feature:0xc (Autonomous Power State Transition), Current value:0x000001
</pre>
</div></div>
--[[User:HitsuMaruku|HitsuMaruku]] ([[User talk:HitsuMaruku|talk]]) 05:10, 23 December 2020 (UTC)
 
 
== NVMe SSD Power State Script ==
 
<h3>systemd</h3>
Made a systemd service to handle setting the power state for reboot and (sleep) resume. These appear to work with my Intel 660p 2TB, with limited testing; they may or may not work with other models.
<div class="toccolours mw-collapsible mw-collapsed" style="max-width:640px;">
<div><strong>/usr/local/bin/nvme-power-limit.sh</strong></div>
<div>Make this file executable.</div>
<div class="mw-collapsible-content">
<pre>
nvme set-feature /dev/nvme0 -f 2 -v 2
</pre>
</div></div>
<div class="toccolours mw-collapsible mw-collapsed" style="max-width:640px;">
<div><strong>/etc/systemd/system/nvme-power-limit.service</strong></div>
<div>Enable this service to run on boot.</div>
<div class="mw-collapsible-content">
<pre>
[Unit]
Description=NVMe Power State Limiter
After=suspend.target
 
[Service]
User=root
Type=oneshot
ExecStart=/bin/bash /usr/local/bin/nvme-power-limit.sh
TimeoutSec=0
StandardOutput=syslog
 
[Install]
WantedBy=multi-user.target
WantedBy=suspend.target
</pre>
</div></div>
 
--[[User:HitsuMaruku|HitsuMaruku]] ([[User talk:HitsuMaruku|talk]]) 05:00, 23 December 2020 (UTC)

Latest revision as of 05:11, 23 December 2020

NVMe SSD power testing

NVME SSD power testing: I'd like to find out what the maximum sustained wattage for NVME drives is. 2.5W has been quoted as being safe, but I've tested 2.7W extensively without issues. Please try the following test if your power state is over 2.7W:

  • Run off battery.
  • Set your brightness level to maximum.
  • Apply a sustained CPU load on all cores but one.
  • Run 'sudo hdparm -t /dev/nvme0' continuously for 5 minutes.

The test passes if your PBP does not crash (red-green blinking power led). I will write a script later to automate the test, but for now these instructions should suffice. If you think this would work better in a forum thread, let me know and I'll start one. I hope to see some of your findings! --Natrox (talk) 03:58, 3 February 2020 (UTC)

Intel 660p

Got an Intel 660p 2TB. Added power states to the table. Lowest active state is just above the 2.5W recommendation.

$ sudo nvme id-ctrl /dev/nvme0
ps    0 : mp:5.50W operational enlat:0 exlat:0 rrt:0 rrl:0
          rwt:0 rwl:0 idle_power:- active_power:-
ps    1 : mp:3.60W operational enlat:0 exlat:0 rrt:1 rrl:1
          rwt:1 rwl:1 idle_power:- active_power:-
ps    2 : mp:2.60W operational enlat:0 exlat:0 rrt:2 rrl:2
          rwt:2 rwl:2 idle_power:- active_power:-
ps    3 : mp:0.0300W non-operational enlat:5000 exlat:5000 rrt:3 rrl:3
          rwt:3 rwl:3 idle_power:- active_power:-
ps    4 : mp:0.0040W non-operational enlat:5000 exlat:9000 rrt:4 rrl:4
          rwt:4 rwl:4 idle_power:- active_power:-

Saving power state to NVMe firmware is not supported. Attempting to do so will result in an error, and will not execute the change. Use without -s flag.

$ sudo nvme set-feature /dev/nvme0 -f 2 -v 2 -s
NVMe status: FEATURE_NOT_SAVEABLE: The Feature Identifier specified does not support a saveable value(0x10d)

APST appears to be enabled, but after idling for a while at PS 2, the NVMe has not changed. Leaving this off the table info, since I don't understand it well enough to toy with it.

$ sudo nvme get-feature /dev/nvme0 -f 0x0c
get-feature:0xc (Autonomous Power State Transition), Current value:0x000001

--HitsuMaruku (talk) 05:10, 23 December 2020 (UTC)


NVMe SSD Power State Script

systemd

Made a systemd service to handle setting the power state for reboot and (sleep) resume. These appear to work with my Intel 660p 2TB, with limited testing; they may or may not work with other models.

/usr/local/bin/nvme-power-limit.sh
Make this file executable.
nvme set-feature /dev/nvme0 -f 2 -v 2
/etc/systemd/system/nvme-power-limit.service
Enable this service to run on boot.
[Unit]
Description=NVMe Power State Limiter
After=suspend.target

[Service]
User=root
Type=oneshot
ExecStart=/bin/bash /usr/local/bin/nvme-power-limit.sh
TimeoutSec=0
StandardOutput=syslog

[Install]
WantedBy=multi-user.target
WantedBy=suspend.target

--HitsuMaruku (talk) 05:00, 23 December 2020 (UTC)