Closed rekeeszeng closed 4 years ago
Hi,
I don't think this is a bug of cpupower-gui since it doesn't run as a daemon. You can only change the values by running the command.
The only way that I can think of is if you are using something like tlp. TLP runs as a daemon and changes the governor based on various rules like if the power plug is connected to the laptop switch the governor to performance.
Does your script runs only upon startup?
Thanks for the prompt reply. Yes, I have a startup script to change the governor to powersave. I didn't notice the plug-in state's relationship with the governor change, 'cause most of the time, I have a power cord and the script does its job on startup. I did some testing just now. Yes, you nailed it! When I connected the power cord, the governor changed to peformance. When I disconnected it, the governor changed to powersave. I don't know what's reponsible for the switch. I checked all the processes and services, and nothing had a name similar to TLP. With the governor at performance, the CPU always runs at a speed close to its maximum. That makes little sense. Anyway, I'll try and find what works like TLP and I'll be waiting for a new version of cpupower-gui that runs as a daemon if that's planned. Thanks a lot.
------------------ Original ------------------ From: "vagnum08"<notifications@github.com>; Date: Tue, Jun 30, 2020 07:07 PM To: "vagnum08/cpupower-gui"<cpupower-gui@noreply.github.com>; Cc: "Rekees Zeng"<rekeeszeng@foxmail.com>;"Author"<author@noreply.github.com>; Subject: Re: [vagnum08/cpupower-gui] Governor reverting to performance (#22)
Hi,
I don't think this is a bug of cpupower-gui since it doesn't run as a daemon. You can only change the values by running the command.
The only way that I can think of is if you are using something like tlp. TLP runs as a daemon and changes the governor based on various rules like if the power plug is connected to the laptop switch the governor to performance.
Does your script runs only upon startup?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi, I found laptop-mode-tools to be doing the switch. It changes the governor when the power supply type changes. cpupower-gui works like a charm. Thanks.
------------------ Original ------------------ From: "vagnum08"<notifications@github.com>; Date: Tue, Jun 30, 2020 07:07 PM To: "vagnum08/cpupower-gui"<cpupower-gui@noreply.github.com>; Cc: "Rekees Zeng"<rekeeszeng@foxmail.com>;"Author"<author@noreply.github.com>; Subject: Re: [vagnum08/cpupower-gui] Governor reverting to performance (#22)
Hi,
I don't think this is a bug of cpupower-gui since it doesn't run as a daemon. You can only change the values by running the command.
The only way that I can think of is if you are using something like tlp. TLP runs as a daemon and changes the governor based on various rules like if the power plug is connected to the laptop switch the governor to performance.
Does your script runs only upon startup?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
That's good news. There is a plan that cpupower-gui will run as a user service that will load a configuration based on user profiles.
I've been using this for quite some time. I use a script to set the governor to powersave upon startup. Most of the time, it works well, but the governor randomly reverts to performance. I thought that's because of a high load. So I ran some stress tests, which, however, didn't change the governor. The change seems to be random. Is that a bug?