No compatible `ryzen_smu` kernel module found error on 7840HS (Phoenix family)
Hey, I just try to install RyzenAdj on my laptop (elitebook 845 g10), but I run into an issue:
After I built the RyzenAdj from git sucessfully, here is the log:
❯ mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
if [ -d ~/.local/bin ]; then ln -s $(readlink -f ryzenadj) ~/.local/bin/ryzenadj && echo "symlinked to ~/.local/bin/ryzenadj"; fi
if [ -d ~/.bin ]; then ln -s $(readlink -f ryzenadj) ~/.bin/ryzenadj && echo "symlinked to ~/.bin/ryzenadj"; fi
-- The C compiler identification is GNU 16.1.1
-- The CXX compiler identification is GNU 16.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type: Release
-- IPO / LTO enabled
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.5.1")
-- Checking for module 'libpci'
-- Found libpci, version 3.15.0
-- Configuring done (1.8s)
-- Generating done (0.0s)
-- Build files have been written to: /home/martinvalentine/Downloads/Software/AMD-tools/RyzenAdj/build
[ 6%] Building C object CMakeFiles/ryzenadj.dir/lib/linux/osdep_linux.c.o
[ 12%] Building C object CMakeFiles/ryzenadj.dir/lib/linux/osdep_linux_mem.c.o
[ 18%] Building C object CMakeFiles/ryzenadj.dir/lib/linux/osdep_linux_smu_kernel_module.c.o
[ 25%] Building C object CMakeFiles/ryzenadj.dir/lib/nb_smu_ops.c.o
[ 31%] Building C object CMakeFiles/ryzenadj.dir/lib/api.c.o
[ 37%] Building C object CMakeFiles/ryzenadj.dir/lib/cpuid.c.o
[ 43%] Building C object CMakeFiles/ryzenadj.dir/argparse.c.o
[ 50%] Building C object CMakeFiles/ryzenadj.dir/main.c.o
[ 56%] Linking C executable ryzenadj
[ 56%] Built target ryzenadj
[ 62%] Building C object CMakeFiles/libryzenadj.dir/lib/linux/osdep_linux.c.o
[ 68%] Building C object CMakeFiles/libryzenadj.dir/lib/linux/osdep_linux_mem.c.o
[ 75%] Building C object CMakeFiles/libryzenadj.dir/lib/linux/osdep_linux_smu_kernel_module.c.o
[ 81%] Building C object CMakeFiles/libryzenadj.dir/lib/nb_smu_ops.c.o
[ 87%] Building C object CMakeFiles/libryzenadj.dir/lib/api.c.o
[ 93%] Building C object CMakeFiles/libryzenadj.dir/lib/cpuid.c.o
[100%] Linking C shared library libryzenadj.so
[100%] Built target libryzenadj
symlinked to ~/.local/bin/ryzenadj
But when I use the command ryzenadj -i, I got the error:
/\ user martinvalentine
/ \ distro Arch Linux x86_64
/ \ kernel Linux 7.0.10-zen1-1-zen
/ \ term ghostty 1.3.1-arch2
/ ,, \ wm niri 26.04 (Wayland)
/ | | \ disk 393.70 GiB / 628.97 GiB (63%) - ext4
/_-'' ''-_\ colors ◆ ◆ ◆ ◆ ◆ ◆ ◆ ◆
~ via v24.15.0
❯ ryzenadj -i
no compatible ryzen_smu kernel module found, fallback to /dev/mem
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/config
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/config
PCI Bus is not writeable, check secure boot
Unable to get MP1 SMU Obj
Unable to init ryzenadj
Question
How do I solve that?
I don't use Linux anymore, but you need to install ryzen_smu driver. Try to install it with this command from AUR:
yay -S ryzen_smu-dkms-git
After install reboot your device
I don't use Linux anymore, but you need to install ryzen_smu driver. Try to install it with this command from AUR:
yay -S ryzen_smu-dkms-gitAfter install reboot your device
Thanks for your replying, I'll give a try
You need to run ryzenadj with superuser privileges; I’ve encountered errors like
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/config
when running it as a standard user.
You can also try my branch, where I’ve added support for more AMD CPUs.
https://github.com/inode64/RyzenAdj/tree/feature/Dragon-Range
You need to run ryzenadj with superuser privileges; I’ve encountered errors like
pcilib: Cannot open /sys/bus/pci/devices/0000:00:00.0/configwhen running it as a standard user. You can also try my branch, where I’ve added support for more AMD CPUs.https://github.com/inode64/RyzenAdj/tree/feature/Dragon-Range
That sounds great!