$ sudo nano /usr/lib/systemd/system/power-dpm.service
Contents:
[Unit]
Description=set the parameters power_dpm_force_performance_level
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo high > /sys/class/drm/card*/device/power_dpm_force_performance_level'
[Install]
WantedBy=multi-user.target
Then enable it:
systemctl daemon-reloadsystemctl enable --now power-dpm.service