this post was submitted on 16 Mar 2025
46 points (97.9% liked)
Linux
58395 readers
1141 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm not familiar with Radeon PowerPlay, so I don't know if there is a proper way to solve this, but you should be able to make a systemd system service to run the
uppcommand on boot.To do so, I think you can use the following:
To configure this service:
.servicefile in/etc/systemd/service. (e.g./etc/systemd/system/my_update_pp.service)sudo systemctl daemon-reloadto tell systemd to re-read the service filessudo systemctl restart my_update_pp.serviceto manually run the servicesudo systemctl enable my_update_pp.serviceto tell systemd to run your service automatically on boot/wake (WantedBytells systemd when it should include the unit/service,After,Wants,Requires, andBeforehelp systemd decide the order to run all the units/services)Notes
Afterand setWantedByto justWantedBy=multi-user.target, but if you also need to runuppafter sleep or hibernate, then you probably need something more complex. I copied theAfterandWantedByfrom a stackexchange answer, but I haven't tried using those targets before. You might have to addmulti-user.targetto theWantedBylist.uppafter sleep/hibernate. Running on boot might be sufficient.chmodif you runuppas sudo/root. Systemd system services run as root by default.References:
Thanks a lot. I will look into this.
Reason why I use chmod is because I cant for the life of me figure out why I can't just use sudo. Even when I set environment variable for the upp.py it refuses to run it. Even when I directly want to run it via sudo it refuses, I can only run it without sudo for whatever reason... but to overwrite pp_table I need sudo privileges and I've been only able to get around with chmod.
Also I've tried to make a script that I will just run and will execute the commands... but I get immediately hard lock and black screen and I need to do hard reset. Same when I try to copy and overwrite the pp_table with sudo priviledges with a pre-modified pp_table.
So I'm kinda hesitant to now run the commands on runtime, it's possible it will hardlock during boot. I will give it more though tommorrow.
edit:
I just found out how to write the pp_table into VBIOS so I will try flashing modified VBIOS on the card and hope it will work. I'll leave that for tomorrow though.