sibradzic / amdgpu-clocks

Simple script to control power states of amdgpu driven GPUs
GNU General Public License v2.0
394 stars 44 forks source link

Running sudo ln -s $(pwd)/amdgpu-clocks /usr/local/bin/amdgpu-clocks Creates a broken link #36

Closed justbest23 closed 2 years ago

justbest23 commented 2 years ago

Thank you for making this. I'm sure it's something I'm doing wrong on my end but I can't figure it out. I run the command above (sudo ln -s $(pwd)/amdgpu-clocks /usr/local/bin/amdgpu-clocks) and it creates a broken link that I cannot access. When I try to manually copy the script into a file of the same name in the same dir I get Unexpected error: Error opening file “/usr/local/bin/amdgpu-clocks”: Too many levels of symbolic links.

Any help would be greatly appreciated!

sibradzic commented 2 years ago

ls -alh /usr/local/bin ? echo $PATH ?

rm /usr/local/bin/amdgpu-clocks
git clone https://github.com/sibradzic/amdgpu-clocks.git
cd amdgpu-clocks
sudo cp amdgpu-clocks /usr/local/bin/amdgpu-clocks
# and just in case
chmod +x /usr/local/bin/amdgpu-clocks
sibradzic commented 2 years ago

ping

justbest23 commented 2 years ago

Huge apologies for not getting back to you. I ended up rolling back the kernel version and it all worked out fine. Thank you.