- OS version:
DISTRIB_ID=Parrot DISTRIB_RELEASE=4.11 DISTRIB_CODENAME=rolling DISTRIB_DESCRIPTION="Parrot OS 4.11" PRETTY_NAME="Parrot OS 4.11" NAME="Parrot OS" ID=parrot ID_LIKE=debian VERSION="4.11" VERSION_ID="4.11" HOME_URL="https://www.parrotsec.org/" SUPPORT_URL="https://community.parrotsec.org/" BUG_REPORT_URL="https://community.parrotsec.org/"
- Kernel version:
Linux punjistick-ux482 5.10.0-5parrot1-amd64 #1 SMP Debian 5.10.24-5parrot1 (2021-03-20) x86_64 GNU/Linux
Hey dudes and dudettes. Brand new to Linux, and new to Parrot. I’m using an ASUS Zenbook (UX482EA), and recently installed a kernel module to enable backlight adjustment support on the built-in second monitor. Works as advertised, however I’m hung up on the next step, which is running a script on startup that will allow me to create a hotkey, alias, or some form of shortcut that doesn’t involve using sudo each time. (for reference, here’s the module)
In the instructions for the module, Plippo mentions adding a line to “/etc/rc.local”, and then I can run a script he made to finally be able to adjust the monitor’s backlight simply and quickly.
However, as I’m trying to learn Linux as I go, I decided to look into what I’m doing first. I came across several posts saying using rc.local is deprecated, including a post here on the Parrot boards, and this ABSURDLY long post stating to “forget about rc.local”.
So, finally, my actual question. What is the “proper” way to get what I need accomplished here, if not using rc.local? Per Plippo’s instructions, I need to add:
sudo chmod a+w '/sys/class/leds/asus::screenpad/brightness'
to /etc/rc.local, and then download his script and make it an executable using:
cd /usr/bin sudo wget 'https://raw.githubusercontent.com/Plippo/screenpad-tools/master/screenpad' sudo chmod a+x screenpad
I’m by no means a coder and this is all very new to me, but if there is a newer or more proper method to accomplishing what I’m trying to do above, I’d love to learn it.