Is it true, that to make settings permanent in the Linux systems, the batch script way is the standard?

Today I found myself checking that the computer wake-up settings got reset after restart of the computer. I started to search over the Google that I need to setup a batch script for the changes to persist. Now, this kind of suggestion is kind of universal across these type of "rare configurations". It made me very nervous that nobody is talking about any configurations or the software responsible for Wake-up functionality, instead - some cheap looking batch scripts solutions are thrown in that are suppose to set the settings on the computer startup.

Is it true that I have to setup a batch script and there are no configurations for wakeup in the /etc/ or any other folder to set the permanent changes that are kept after shutdown or a restart?

**I'm providing additional information:**

```
naudotojas@naudotojas-N53SV:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 19.04
Release:    19.04
Codename:   disco
naudotojas@naudotojas-N53SV:~$ 

```

**These settings I would like to be disabled** after restarting Ubuntu, aka stay permanent:

```
naudotojas@naudotojas-N53SV:~$ cat /proc/acpi/wakeup | grep enabled
EHC1      S3    *enabled   pci:0000:00:1d.0
EHC2      S3    *enabled   pci:0000:00:1a.0
XHCI      S3    *enabled   pci:0000:04:00.0

```

**This is the final result I would like to see after reboot:** 

```
EHC1      S3    *disabled   pci:0000:00:1d.0
EHC2      S3    *disabled   pci:0000:00:1a.0
XHCI      S3    *disabled   pci:0000:04:00.0

```