Running command with sudo on startup

Hello! I've been using Zorin OS 16 Core on my ThinkPad X13 Gen 1 AMD, and I have a problem with the microphone mute button light (On F4 key), there's a command to fix this, but I have to manually run it after startup

echo 0 | sudo tee /sys/class/leds/platform::micmute/brightness

I tried pasting this command on "Startup Applications" but it didn't work. Is there any way I can run this command on startup?

Thank you for the answer in advance!

try with sh -c command. Also put a timer on it, so it doesn't start before the audio is loaded.

1 Like

How do you do that? I’m kinda new to Linux.

sh -c "sleep 10 && echo 0 | sudo tee /sys/class/leds/platform::micmute/brightness"

You can try different variables in the sleep command depending how fast7slow your computer is.

1 Like

I tried it, it didn't work I don't know why, but thank you!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.