AdnanHodzic / AdnanHodzic/auto-cpufreq

Something is preventing auto-cpufreq from reading the thread count of my cpu

未关闭
#520 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
7.8k
派生
357
平均合并
3 天 8 小时
30 天内合并 PR
14

描述

Fill out informtion requested in this template, without doing so issue will be ignored & closed!
Have you tried?

[Searching through existing/closed issues](https://github.com/AdnanHodzic/auto-cpufreq/issues) to see if your bug has already been already submitted?
Yes, found a similar closed issue with a very similar error, but there was no solution because the OP of the issue did not use the template provided. https://github.com/AdnanHodzic/auto-cpufreq/issues/429
If installation failed with [auto-cpufreq-installer](https://github.com/AdnanHodzic/auto-cpufreq/#auto-cpufreq-installer),have you tried installing auto-cpufreq using [Snap package](https://github.com/AdnanHodzic/auto-cpufreq/#snap-store)?
I installed with snap from the beggining.
Have you tried [configuring auto-cpufreq](https://github.com/AdnanHodzic/auto-cpufreq/#configuring-auto-cpufreq)?
Yes, I have. (except I re-enabled daemon power profiles for now, to have atleast some power management. I turn it off when I try to fix the issue)
Have you tried suggestions in [troubleshooting section](https://github.com/AdnanHodzic/auto-cpufreq#troubleshooting)?
My issue is not prevelant in that page, since all of the troubleshooting in that page is only for already working auto-cpufreq.
### Error output:
```
Linux distro: Fedora Linux 38 (Workstation Edition)
Linux kernel: 6.3.5-200.fc38.x86_64
Processor: AMD Ryzen 5 4600H with Radeon Graphics
Traceback (most recent call last):
File "/snap/auto-cpufreq/129/bin/auto-cpufreq", line 225, in
main()
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/snap/auto-cpufreq/129/bin/auto-cpufreq", line 106, in main
sysinfo()
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/auto_cpufreq/core.py", line 1110, in sysinfo
total_cpu_count = int(getoutput("nproc"))
ValueError: invalid literal for int() with base 10: "ERROR: ld.so: object '/usr/local/lib64/libinput-config.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\nERROR: ld.so: object '/usr/local/lib64/libinput-conf

```
---

### System information:
```
[name@name ~]$ sudo auto-cpufreq --debug
[sudo] password for name:
ERROR: ld.so: object '/usr/local/lib64/libinput-config.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/local/lib64/libinput-config.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.

-------------------------------------------------------------------------------

Linux distro: Fedora Linux 38 (Workstation Edition)
Linux kernel: 6.3.5-200.fc38.x86_64
Processor: AMD Ryzen 5 4600H with Radeon Graphics
Traceback (most recent call last):
File "/snap/auto-cpufreq/129/bin/auto-cpufreq", line 225, in
main()
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/snap/auto-cpufreq/129/bin/auto-cpufreq", line 159, in main
sysinfo()
File "/snap/auto-cpufreq/129/lib/python3.10/site-packages/auto_cpufreq/core.py", line 1110, in sysinfo
total_cpu_count = int(getoutput("nproc"))
ValueError: invalid literal for int() with base 10: "ERROR: ld.so: object '/usr/local/lib64/libinput-config.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.\nERROR: ld.so: object '/usr/local/lib64/libinput-conf
```

For some reason my libinput config might not be letting auto-cpufreq run properly. That config is in place for me to reduce my touchpad scrolling speed and I am looking for a way for both of these to work at the same time. The problem with it is that it used to work fine, until one day I got an error that I pasted above. I followed these instructions to reduce my touchpad scrolling speed: https://gitlab.com/warningnonpotablewater/libinput-config.
I do not have tlp, but I re-enabled daemon power profiles to atleast have some power management until I am able to fix this issue. As I can see from this error, it also cannot for some reason read the thread count of my cpu, so it just crashes.

I tried:
- Updating auto-cpufreq
- Reinstalling auto-cpufreq
- Reinstalling coreutils
- Clearing LD_PRELOAD environment variable (```export LD_PRELOAD=```)

---

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。