executing commands after Linux start

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
fresh_tea

executing commands after Linux start

Post by fresh_tea »

Hello guys.

Since executing the commands below doesn't work when I added them in /etc/rc.local, I think they would work when adding them in some config file after Gnome startup.

But where to add them?

The commands are:

Code: Select all

cpufreq-set -g powersave
rfkill block 0
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
unexistance

Re: executing commands after Linux start

Post by unexistance »

Hi,

You can do this in terminal

Code: Select all

sudo gedit /etc/rc.local
then add those two lines above exit 0

Regards,
fresh_tea

Re: executing commands after Linux start

Post by fresh_tea »

Thanks for your help!

However, it doesn't work neither...

Now, my /etc/rc.local looks like this:

Code: Select all

setpci -s 00:02.0 F4.B=25
xgamma -gamma 0.9
rfkill block 0
cpufreq-set -g powersave
exit 0
While, the command for brightness and gamma work, the last two for Bluetooth and frequency governor do not.
Anyone knows why?

Thanks
unexistance

Re: executing commands after Linux start

Post by unexistance »

Hi,

You might want to put some delay for those two that didn't seems to work
Put something like

Code: Select all

sleep 10 & <commands>
Regards,
Locked

Return to “Software & Applications”