on ubuntu 22.04 i need to have powertop run on startup as a service
as powertop --auto-tune
to set all devices on "good" power saving
status but this also disables mouse and keyboard so its very annoying
to have to wake up the device before using it again after 5 seconds
powertune.sh script sets all devices on powersave except usb
edit powertop.service to start yourt script in the correct location
in ExecStart=(path to script)
copy the service to: /etc/systemd/system/powertop.service
systemctl daemon-reload systemctl enable powertop.service
also look for help here: https://askubuntu.com/questions/112705/how-do-i-make-powertop-changes-permanent