Try.
Create the service file
sudo nano /etc/systemd/system/cpupower-tweaks.service
Paste this:
[Unit]
Description=Set CPU governor and max frequency
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/usr/bin/cpupower frequency-set -g powersave
ExecStart=/usr/bin/cpupower frequency-set --max 3400000
[Install]
WantedBy=multi-user.target
Enable the service
sudo systemctl enable cpupower-tweaks.service
To verify after reboot:
systemctl status cpupower-tweaks.service
cpupower frequency-info
The first one shows if the service ran correctly.
The second lets you check if the governor and frequency limits were applied.