Battery problem - high energy consumption

You could also use some systemd shenanigans …

cat /etc/systemd/system/xenweight.service

[Unit]
Description=XENweight dom0
[Service]
Type=oneshot
Environment="TERM=dumb"
RemainAfterExit=true
ExecStart=/usr/bin/xl sched-credit2 -d 0 -w 512
[Install]
WantedBy=multi-user.target

It’s in no way better. It’s just that I prefer to stick with systemd if it’s implemented, even though I hate it. Having different philosophies cluttered over the system is not ideal (with my memory capacities, that is).

2 Likes