"Your CPU is not avalible, this software might not work."
Opened this issue · 4 comments
When clicking on accept, the app crashes and I get the message above.
Os: KDE Neon
Newest Slimbook KDE out of the box
Any fixes?
UPD: Yeah, the typos appear as they are
Hi, thanks for reporting.
Can you provide terminal output for command slimbookamdcontroller
?
I'm getting a similar issue, so I'm going to post my logs here.
System
Running on a Slimbook Titan
Relevant dump from neofetch
OS: Kubuntu 22.04.1 LTS x86_64
Kernel: 5.15.0-58-generic
CPU: AMD Ryzen 9 5900HX with Radeon Graphics (16) @ 4.680GHz
GPU: AMD ATI 06:00.0 Cezanne
GPU: NVIDIA GeForce RTX 3070 Mobile / Max-Q
Memory: 2971MiB / 31499MiB
slimbookamdcontroller
version: 0.3.9beta from apt
.
Output logs
When running in terminal and only clicking "Accept" in the GUI:
$ slimbookamdcontroller
/usr/share/slimbookamdcontroller/src
Loading configuration:
- Autostart disabled
- Indicator disabled
- Low
Found thermal zone!
en
['10000', '10000', '10000']
Updating low to : 10000 10000 10000.
+ python3 /usr/share/slimbookamdcontroller/src/applyconfig.py
sudo: /usr/share/slimbookamdcontroller/ryzenadj: command not found
Likely Cause
When installing from apt
, the package tries to run pip
. This seems like bad practice, but I'm not an expert on that subject. The logs from apt include an error due to unmet dependencies.
$ sudo apt --reinstall install slimbookamdcontroller
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
apt-config-icons-hidpi apt-config-icons-large apt-config-icons-large-hidpi gir1.2-gtksource-3.0 kde-config-updates
libevdi0 libflashrom1 libftdi1-2 libgtksourceview-3.0-1 libgtksourceview-3.0-common libllvm13 libnvidia-cfg1-515
libnvidia-common-515 libnvidia-decode-515 libnvidia-egl-wayland1 libnvidia-encode-515 libnvidia-extra-515
libnvidia-fbc1-515 libnvidia-gl-515 libsnapd-qt1 libxmlsec1-nss nvidia-compute-utils-515 nvidia-kernel-source-515
nvidia-settings nvidia-utils-515 pkg-config plasma-discover-common python3-configargparse python3-magic python3-relatorio
screen-resolution-extra wmdocker xserver-xorg-video-nvidia-515
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 10 not upgraded.
Need to get 1,217 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 https://ppa.launchpadcontent.net/slimbook/slimbook/ubuntu jammy/main amd64 slimbookamdcontroller all 0.3.9beta [1,217 kB]
Fetched 1,217 kB in 2s (570 kB/s)
(Reading database ... 367799 files and directories currently installed.)
Preparing to unpack .../slimbookamdcontroller_0.3.9beta_all.deb ...
Unpacking slimbookamdcontroller (0.3.9beta) over (0.3.9beta) ...
+ cd /usr/share/slimbookamdcontroller/
+ rm -rf RyzenAdj/
+ rm -rf ryzenadj
+ pip uninstall pyamdgpuinfo -y
Found existing installation: pyamdgpuinfo 2.1.3
Uninstalling pyamdgpuinfo-2.1.3:
Successfully uninstalled pyamdgpuinfo-2.1.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ exit 0
Setting up slimbookamdcontroller (0.3.9beta) ...
Cloning into 'RyzenAdj'...
remote: Enumerating objects: 870, done.
remote: Counting objects: 100% (348/348), done.
remote: Compressing objects: 100% (165/165), done.
remote: Total 870 (delta 234), reused 227 (delta 179), pack-reused 522
Receiving objects: 100% (870/870), 305.73 KiB | 2.28 MiB/s, done.
Resolving deltas: 100% (540/540), done.
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- 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:
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/share/slimbookamdcontroller/RyzenAdj/build
[ 8%] Building C object CMakeFiles/ryzenadj.dir/lib/osdep_linux.c.o
In file included from /usr/share/slimbookamdcontroller/RyzenAdj/lib/osdep_linux.c:10:
/usr/share/slimbookamdcontroller/RyzenAdj/lib/nb_smu_ops.h:83:10: fatal error: pci/pci.h: No such file or directory
83 | #include <pci/pci.h>
| ^~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/ryzenadj.dir/build.make:76: CMakeFiles/ryzenadj.dir/lib/osdep_linux.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/ryzenadj.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
cp: cannot stat 'ryzenadj': No such file or directory
chmod: cannot access '/usr/share/slimbookamdcontroller/ryzenadj': No such file or directory
/usr/bin/pip
Collecting pyamdgpuinfo
Using cached pyamdgpuinfo-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (309 kB)
Installing collected packages: pyamdgpuinfo
Successfully installed pyamdgpuinfo-2.1.3
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
GPU info installed!
Getting logname successfull
Config check executed as wes
Checking section: CONFIGURATION...
Checking section: PROCESSORS...
Checking section: USER-CPU...
Incidences not found.
Giving permisions to config directory...
2023-02-08 15:01:22,395 - 54 - DEBUG - Folder /home/wes/.config/slimbookamdcontroller
User uid=1000
Folder uid=1000
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Resolution
When I follow the suggestion from #26 and install libpci-dev
error is no longer raised in compilation. See:
$ slimbookamdcontroller
/usr/share/slimbookamdcontroller/src
Loading configuration:
- Autostart disabled
- Indicator disabled
- Low
Found thermal zone!
en
['10000', '10000', '10000']
Updating low to : 10000 10000 10000.
+ python3 /usr/share/slimbookamdcontroller/src/applyconfig.py
SMU_SERVICE REQ_ID:0x14
SMU_SERVICE REQ: arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REP: REP: 0x1, arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REQ_ID:0x15
SMU_SERVICE REQ: arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REP: REP: 0x1, arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REQ_ID:0x16
SMU_SERVICE REQ: arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REP: REP: 0x1, arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REQ_ID:0x19
SMU_SERVICE REQ: arg0: 0x5f, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REP: REP: 0x1, arg0: 0x5f, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
Autostart Disabled
Autostart now: off
Indicator Disabled
Indicador now: off
- Variable |mode| updated in .conf, actual value: low
- Variable |autostart| updated in .conf, actual value: off
- Variable |show-icon| updated in .conf, actual value: off
Process PID
['']
Starting indicator...
wes@wes-TITAN:~$ /usr/share/slimbookamdcontroller/src/slimbookamdcontrollerindicator.py:72: DeprecationWarning: Gtk.ImageMenuItem.set_always_show_image is deprecated
item_bajo.set_always_show_image(True)
Loading data from .conf:
- Autostart disabled
- CPU Parameters: ['10000-10000-10000', '15000-15000-25000', '70000-80000-100000', ' 35', '54 w']
- Low
Updated mode --> low
Data loaded from .conf
+ python3 /usr/share/slimbookamdcontroller/src/applyconfig.py
Reading /home/wes/.config/slimbookamdcontroller/slimbookamdcontroller.conf
File detected!
Current mode: low
Parameters: ['10000-10000-10000', '15000-15000-25000', '70000-80000-100000', ' 35', '54 w']
Setting low to : 10000 10000 10000.
SMU_SERVICE REQ_ID:0x14
SMU_SERVICE REQ: arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REP: REP: 0x1, arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
Sucessfully set stapm_limit to 10000
SMU_SERVICE REQ_ID:0x15
SMU_SERVICE REQ: arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REP: REP: 0x1, arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
Sucessfully set fast_limit to 10000
SMU_SERVICE REQ_ID:0x16
SMU_SERVICE REQ: arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REP: REP: 0x1, arg0: 0x2710, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
Sucessfully set slow_limit to 10000
SMU_SERVICE REQ_ID:0x19
SMU_SERVICE REQ: arg0: 0x5f, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
SMU_SERVICE REP: REP: 0x1, arg0: 0x5f, arg1:0x0, arg2:0x0, arg3:0x0, arg4: 0x0, arg5: 0x0
Sucessfully set tctl_temp to 95
--------------------------------------------
Exit: 0
--------------------------------------------
- I recommend closing this issue as it is likely related to #26*
Yes, I had the same issue, and the solution is as mentioned in #26 and in the previous comment.
You just need to install the libpci-dev
, but after it I uninstalled and installed again the Slimbook AMD controller.
sudo apt install libpci-dev
sudo apt remove slimbookamdcontroller
sudo apt install slimbookamdcontroller
After it, the app works correctly.
I had the same issue on Ubuntu 22.04.4 LTS x86_64 for /usr/share/slimbookamdcontroller/ryzenadj
seems not installed properly.
I had solved it by manually installing ryzenadj and copying ryzenadj
to /usr/share/slimbookamdcontroller/
.
This may solve the problem directly.