Skip to content

Instantly share code, notes, and snippets.

@btantlinger
Last active January 13, 2024 18:29
Show Gist options
  • Save btantlinger/eb9fb7ce261d702bb578df8485c76dc9 to your computer and use it in GitHub Desktop.
Save btantlinger/eb9fb7ce261d702bb578df8485c76dc9 to your computer and use it in GitHub Desktop.
powertop tuning for Arc 370m gpu on Dell XPS 9530

Make sure Intel Arc GPU is in low power mode

Create a systemd service to apply powertop tunings at startup. For some reason, the GPU won't go into low power mode until after the desktop is good and started, so the service will be executed on a systemd timer 1 minute after boot.

Create powertop tunings file at:

/usr/bin/

#!/bin/sh

echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control';
echo 'auto' > '/sys/bus/pci/devices/0000:00:08.0/power/control';

Create powertop-tunings.service and powertop-tunings.timer

/etc/systemd/system/powertop-tunings.service

[Unit]
Description=PowerTOP Tunings
#Requires=display-manager.service
#After=syslog.target network.target multi-user.target display-manager.service

[Service]
Type=oneshot
ExecStart=/usr/bin/powertop-tunings
TimeoutStartSec=0

/etc/systemd/system/powertop-tunings.timer

[Unit]
Description=PowerTOP Tunings

[Timer]
OnBootSec=1min

[Install]
WantedBy=default.target

Now enable the timer so it get started at every boot

sudo systemctl enable powertop-tunings.timer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment