NVMe Tuning
#14
(01-12-2020, 11:32 PM)Arwen Wrote: @Redbeard, yes, startup scripts need to run as root, and that's not a problem.
The exact nature of the the startup script varies depending the OS.

Thanks again.

I just got this working by creating a cron job at boot.  From the terminal, I typed: 


Quote:sudo crontab -e

In the editor, I added the following line to the end of the file (just past the last commented line):


Quote:@reboot sudo nvme set-feature /dev/nvme0 -f 2 -v 2

I then exited, saving the edit.  After a reboot I ran the following to confirm that it worked:


Quote:sudo nvme get-feature /dev/nvme0 -f 2

It came back with:


Quote:get-feature:0x2 (Power Management), Current value:0x000002

Which shows that it is working.  I tested this after both a restart and a boot after shutting down entirely, and it worked both ways.  

One thing I did find is that if I used the -s switch in this situation not only does it throw an error that it can't process the save, but the entire command appears not to function.  I originally made the mistake of including the -s switch when I first edited crontab, and when I did that the power state wasn't set after reboot.  So if someone tries this and it comes back with "Current value:00000000" after rebooting, double check that the -s switch isn't included in the crontab line.


Messages In This Thread
NVMe Tuning - by gandlers - 01-09-2020, 03:22 PM
RE: NVMe Tuning - by Arwen - 01-10-2020, 08:49 AM
RE: NVMe Tuning - by gandlers - 01-10-2020, 09:52 AM
RE: NVMe Tuning - by Arwen - 01-10-2020, 10:10 AM
RE: NVMe Tuning - by gandlers - 01-10-2020, 10:39 AM
RE: NVMe Tuning - by Arwen - 01-10-2020, 09:36 PM
RE: NVMe Tuning - by Redbeard - 01-10-2020, 02:33 PM
RE: NVMe Tuning - by gandlers - 01-11-2020, 03:37 AM
RE: NVMe Tuning - by Arwen - 01-11-2020, 11:59 AM
RE: NVMe Tuning - by Redbeard - 01-11-2020, 04:40 PM
RE: NVMe Tuning - by Arwen - 01-11-2020, 10:27 PM
RE: NVMe Tuning - by Redbeard - 01-12-2020, 09:19 PM
RE: NVMe Tuning - by Arwen - 01-12-2020, 11:32 PM
RE: NVMe Tuning - by Redbeard - 01-13-2020, 11:46 AM
RE: NVMe Tuning - by gandlers - 01-13-2020, 03:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NVMe reukiodo 0 65 11-18-2024, 09:00 AM
Last Post: reukiodo
  NVMe drives not detected mattpenn 13 12,623 11-17-2024, 04:38 AM
Last Post: reukiodo
  New Working nVME gilwood 1 631 11-17-2024, 04:24 AM
Last Post: reukiodo
  NVME problems 2022 / Intel 660p 1TB Starbug 1 2,180 04-04-2023, 12:16 PM
Last Post: globaltree
Thumbs Up NVMe adapter, Great addition dachalife 2 2,363 11-28-2022, 12:56 PM
Last Post: dachalife
  NVme intall usage? tkudog 2 3,465 03-04-2022, 01:29 AM
Last Post: Tazdevl
  Anyone selling a spare NVMe adapter in Europe? tom.tomasz 1 2,235 01-03-2022, 07:57 AM
Last Post: tom.tomasz
  NVMe SSD testing methodology halogen 1 3,093 07-22-2021, 05:57 PM
Last Post: calinb
Question Battery stops charging and NVMe and other media disconnect randomly Eey0zu6O 4 5,789 07-09-2021, 08:45 PM
Last Post: moonwalkers
  nvme drive disappears after about an hour of uptime codebreaker 24 36,391 02-09-2021, 11:32 PM
Last Post: dsimic

Forum Jump:


Users browsing this thread: 1 Guest(s)