Giter Site home page Giter Site logo

Comments (11)

volnes avatar volnes commented on May 12, 2024 1

Thanks, systemd daemon now works fine!

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 12, 2024

What happens if you run auto-cpufreq-installer?

I also released auto-cpufreq to Snap store which would definitely fix your problem. But as I stated for full functionality auto-cpufreq needs snapd version 2.4.4 which is currently only available in Ubuntu 20.04.

from auto-cpufreq.

filippofontana avatar filippofontana commented on May 12, 2024

I got this pip warning:

WARNING: The directory '/home/filip/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

And after that, everything goes fine, but after the sudo auto-cpufreq --install command, I had the error stated in the previous message.
Maybe I will just wait the snapd 2.4.4 version.

from auto-cpufreq.

volnes avatar volnes commented on May 12, 2024

Well now i got same error with systemd daemon (daemon not starting):
image

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 12, 2024

Since some changes were pushed in meantime. What happens if you do:

sudo auto-cpufreq --remove
sudo ./auto-cpufreq-installer --remove
sudo ./auto-cpufreq-installer --install

from auto-cpufreq.

volnes avatar volnes commented on May 12, 2024

sudo auto-cpufreq --remove
sudo ./auto-cpufreq-installer --remove
sudo ./auto-cpufreq-installer --install

Same error after reinstalling last version.

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 12, 2024

What does whereis auto-cpufreq return and are you able to run i.e: auto-cpufreq --live

Does it make any difference if you run:

sudo su -
auto-cpufreq --remove
./auto-cpufreq-installer --remove
./auto-cpufreq-installer --install

from auto-cpufreq.

volnes avatar volnes commented on May 12, 2024

What does whereis auto-cpufreq

image

are you able to run i.e: auto-cpufreq --live

Weird but it works.

sudo su -
auto-cpufreq --remove
./auto-cpufreq-installer --remove
./auto-cpufreq-installer --install

No difference

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 12, 2024

Right, so problem is that same path /usr/local/bin/auto-cpufreq for some weird reason isn't found in your case, when it's run by root user as part of the systemd service.

What I suggest you do as a workaround is:

after sudo auto-cpufreq --install

Run: sudo systemctl stop auto-cpufreq

Edit /etc/systemd/system/auto-cpufreq.service file with editor of your choice, i.e:

sudo vim /etc/systemd/system/auto-cpufreq.service

Change line 9:
ExecStart=auto-cpufreq --daemon to:
ExecStart=/usr/local/bin/auto-cpufreq --daemon

Followed by:

sudo systemctl daemon-reload
sudo systemctl start auto-cpufreq

auto-cpufreq daemon should be running now which you can verify by running: auto-cpufreq --log

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 12, 2024

Great. I won't make any changes in code yet, as I want to see if anyone else has this problem and until then will leave this issue open.

from auto-cpufreq.

AdnanHodzic avatar AdnanHodzic commented on May 12, 2024

This problem has been permanently fixed as part of 1.1.2 release.

from auto-cpufreq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.