How to turn off the LEDs on the front of the laptop(ASUS K501LX-NH52)

asus-laptoplaptopled

Is there a way to turn off the lights on the front of my laptop? My laptop: http://www.newegg.com/Product/Product.aspx?Item=N82E16834232753R. I am currently running a dual-boot of KDE Fedora and Windows 10.

If there is no way to turn it off in the BIOS can I can unplug the cord running to it? Here is a picture of it:

Pic of LED

Best Answer

On Linux check this directory.

/sys/class/leds/

If there are subdirectories, look inside for a file called trigger Reading the trigger file will list the available LED control parameters, with the current one surrounded by brackets.

To change the trigger parameter, just write the name of the parameter to the trigger file.

Another file, brightness can be used to disable to LED as well. Writing 0 to brightness will shut off the LED that that particular subdirectory controls.

To disable all controllable LEDs as a test, you can try:

for led in /sys/class/leds/*;
do
  echo 0 | sudo tee ${led}/brightness
done

If you cannot control the LEDs this way, unplugging the board may be the only way.

Related Question