Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nojusmorkunas opened this issue Jun 10, 2023 · 0 comments

Comments

@nojusmorkunas
Copy link

nojusmorkunas commented Jun 10, 2023

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

Searching through existing/closed 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. #429
If installation failed with auto-cpufreq-installer,have you tried installing auto-cpufreq using Snap package?
I installed with snap from the beggining.
Have you tried 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?
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 <module>
    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 <module>
    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=)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant