How to set Micron 7500 series U.2 idle LED on B8056T70AE26HR-2T NVME#24&25
The LED behavior on the 7500 series is configurable
via vendor-unique (VU) NVMe commands.
Specifically, the LED configuration
can be adjusted using the 0xF2 feature code. For example:
To set LED to be OFF during
Idle:
sudo nvme
admin-passthru --opcode=9 -f 0 -n 0 -l 0 -m 0 --cdw10=0x800000f2 --cdw11=0x4
--cdw12=0x1 -w -s /dev/nvme0
To set LED to be
ON during Idle:
sudo nvme
admin-passthru --opcode=9 -f 0 -n 0 -l 0 -m 0 --cdw10=0x800000f2 --cdw11=0x4
--cdw12=0x0 -w -s /dev/nvme0
nvme admin-passthru is a command provided by nvme-cli that allows you to directly send arbitrary NVMe Admin Commands to an NVMe device. It is typically used when nvme-cli does not offer a built-in subcommand for a particular operation, but you still need to issue a specific NVMe command to the controller or namespace.
It has been verified that nvme-cli v2.4 can successfully control LED on B8056T70AE26HR-2T NVME#24&25.
How to install:
1.
sudo apt update
sudo apt install -y build-essential pkg-config git autoconf automake libtool uuid-dev libjson-c-dev libncurses5-dev meson ninja-build
2.
cd nvme-cli
git checkout v2.4
meson setup build
ninja -C build
sudo ninja -C build install
3.
nvme --version