All Projects → dasunsrule32 → radeon-scripts

dasunsrule32 / radeon-scripts

Licence: GPL-3.0 license
Scripts to manage various aspects of the AMD line of cards in Linux

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to radeon-scripts

amdctl
Set P-State voltages and clock speeds on recent AMD CPUs on Linux.
Stars: ✭ 97 (+148.72%)
Mutual labels:  gplv3, overclock, undervolt
ZenStates-Linux
Dynamically edit AMD Ryzen processor P-States
Stars: ✭ 52 (+33.33%)
Mutual labels:  amd, overclock
xrig
High performance cryptonight miner for AMD cards. Designed for large-scale use of RX Vega.
Stars: ✭ 23 (-41.03%)
Mutual labels:  amd, vega
Bitwrk
Bitcoin-fueled Peer-to-Peer Blender Rendering (and more)
Stars: ✭ 114 (+192.31%)
Mutual labels:  gplv3
Gmtk jam 2020
A short puzzle-platformer game made with Godot, running on GLES 2.0.
Stars: ✭ 124 (+217.95%)
Mutual labels:  gplv3
Simple Solitaire
[Android] Simple Solitaire game collection
Stars: ✭ 173 (+343.59%)
Mutual labels:  gplv3
TypeScript-AMD-Boilerplate
A TypeScript AMD Grunt Boilerplate with RequireJS
Stars: ✭ 46 (+17.95%)
Mutual labels:  amd
Sliver
Adversary Simulation Framework
Stars: ✭ 1,348 (+3356.41%)
Mutual labels:  gplv3
Olauncher
Minimal AF (ad-free) launcher app for Android. Available at Play Store and F-Droid.
Stars: ✭ 211 (+441.03%)
Mutual labels:  gplv3
Rar2fs
FUSE file system for reading RAR archives
Stars: ✭ 155 (+297.44%)
Mutual labels:  gplv3
Passer
Passive service locator, a python sniffer that identifies servers, clients, names and much more
Stars: ✭ 144 (+269.23%)
Mutual labels:  gplv3
Roam
Simple data collection built using QGIS.
Stars: ✭ 124 (+217.95%)
Mutual labels:  gplv3
Tubeup
Download videos using youtube-dl and upload to the Internet Archive with metadata.
Stars: ✭ 173 (+343.59%)
Mutual labels:  gplv3
Tfg Voice Conversion
Deep Learning-based Voice Conversion system
Stars: ✭ 115 (+194.87%)
Mutual labels:  gplv3
Feelpp
💎 Feel++: Finite Element Embedded Language and Library in C++
Stars: ✭ 229 (+487.18%)
Mutual labels:  gplv3
Fim
File Integrity Manager -
Stars: ✭ 114 (+192.31%)
Mutual labels:  gplv3
Portfusion
Haskell-powered cross-platform transport-layer distributed reverse / forward proxy & tunneling solution – currently available for all TCP protocols (RDP, VNC, HTTP(S), SSH, ...).
Stars: ✭ 177 (+353.85%)
Mutual labels:  gplv3
La Capitaine Icon Theme
La Capitaine is an icon pack designed to integrate with most desktop environments. The set of icons takes inspiration from the latest iterations of macOS and Google's Material Design.
Stars: ✭ 1,858 (+4664.1%)
Mutual labels:  gplv3
Dns66
DNS-based Host Blocker (and lightweight ad blocker) for Android
Stars: ✭ 1,782 (+4469.23%)
Mutual labels:  gplv3
Quirk
✨🐙 A GPL Licensed Cognitive Behavioral Therapy app for iOS and Android. Currently a teaching tool
Stars: ✭ 1,976 (+4966.67%)
Mutual labels:  gplv3

radeon-scripts

Scripts to manage various aspects of the AMD line of cards in Linux.

vega-power-control notes

Set AMD Vega clock/voltage/profile settings:

  • Reduce temps
  • Increase performance
  • Increase longevity of card

I've set this to some sane defaults that I know work on my card (Sapphire Radeon RX Vega 64). The cooler isn't the best on the reference card, but these settings keep the speeds in the 1500Mhz to 1600Mhz range. You may need to tweak your particular card more to get decent performance.

You can use this script to overclock your card as well. Adjust the p-state clock and voltage to get higher clocks if you'd like. Be forwarned, you can damage your card though. Be judicious with how far you overclock.

You can now adjust your POWERCAP for your card. It requires kernel 4.20+. To enable the feature, simply set $POWERCAP = 1. You can set the wattage in the example in the main body:

  # To set the allowed maximum power consumption of the GPU to e.g. 220 Watts (Default wattage):
  echo 220000000 > "$SYSPATH/$HWMONPATH/power1_cap"

It's currently set the card default, this may need more checks if more cards are introduced at a later time.

Profiles have now been implemented. By default, the script is set auto and the profile is set to balanced (DEFAULTDPMSTATE is there for legacy support only). This can easily be adjusted by adjusting the values for DEFAULTDPMSTATE and DEFAULTDPMPERFLVL. The different profile options are described in the docs.

NOTES:

  • To get live metrics of the card while testing:

    watch -n 1 sudo cat /sys/kernel/debug/dri/0/amdgpu_pm_info

  • You need to add the amdgpu.ppfeaturemask on the GRUB_CMDLINE and regenerate the config file. Edit the following line in Ubuntu:

    /etc/default/grub

    and modify the following line:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.ppfeaturemask=0xffffffff"

    with the following argument:

    amdgpu.ppfeaturemask=0xffffffff

    Then run:

    sudo update-grub

  • Verify the configuration after reboot, it should match what you used:

    printf "0x%08x\n" $(cat /sys/module/amdgpu/parameters/ppfeaturemask)

  • You can check the currently loaded settings by running the following:

    SYSPATH=$(awk '{print}' <<< `find /sys/devices -name power_dpm_force_performance_level -type f -exec dirname {} \;`)
    cat $SYSPATH/pp_od_clk_voltage
    

Command format:

  • echo "[s|m] p-state clock voltage" > "$SYSPATH/pp_od_clk_voltage"
  • echo "r" > $SYSPATH/pp_od_clk_voltage to restore the default values
  • echo "c" > $SYSPATH/pp_od_clk_voltage to commit the changes

Install Notes:

  • Install Notes for vega-power-control can be found here.

vega-fan-control notes

Script to set AMD card fan curves.

NOTES:

To adjust the FANRPM, simply edit the following block in the script to the desired RPM for each temperature range.

 if [ "$GPUTEMP" -ge "20" ] && [ "$GPUTEMP" -le "24" ]; then
    FANRPM=400
 elif [ "$GPUTEMP" -ge "25" ] && [ "$GPUTEMP" -le "29" ]; then
    FANRPM=600
 elif [ "$GPUTEMP" -ge "30" ] && [ "$GPUTEMP" -le "34" ]; then
    FANRPM=800
 elif [ "$GPUTEMP" -ge "35" ] && [ "$GPUTEMP" -le "39" ]; then
    FANRPM=1200
 elif [ "$GPUTEMP" -ge "40" ] && [ "$GPUTEMP" -le "44" ]; then
    FANRPM=1600
 elif [ "$GPUTEMP" -ge "44" ] && [ "$GPUTEMP" -le "49" ]; then
    FANRPM=1800
 elif [ "$GPUTEMP" -ge "50" ] && [ "$GPUTEMP" -le "54" ]; then
    FANRPM=2000
 elif [ "$GPUTEMP" -ge "55" ] && [ "$GPUTEMP" -le "59" ]; then
    FANRPM=2200
 elif [ "$GPUTEMP" -ge "60" ] && [ "$GPUTEMP" -le "64" ]; then
    FANRPM=2400
 elif [ "$GPUTEMP" -ge "65" ] && [ "$GPUTEMP" -le "69" ]; then
    FANRPM=2600
 elif [ "$GPUTEMP" -ge "70" ] && [ "$GPUTEMP" -le "74" ]; then
    FANRPM=2800
 elif [ "$GPUTEMP" -ge "75" ] && [ "$GPUTEMP" -le "79" ]; then
    FANRPM=3000
 elif [ "$GPUTEMP" -ge "80" ] && [ "$GPUTEMP" -le "86" ]; then
    FANRPM=3200
 fi

To watch temperatures, simply enable DEBUG in the script if running it manually. You can also watch the temps via sysfs and use the following command:

    SYSPATH=$(awk '{print}' <<< `find /sys/devices -name power_dpm_force_performance_level -type f -exec dirname {} \;`)
    watch -t -n 1 "awk '{print \$1/(1000)}' $SYSPATH/hwmon/hwmon0/temp1_input && cat $SYSPATH/hwmon/hwmon0/fan1_target"

Install Notes:

  • Install Notes for vega-fan-control can be found here.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].