-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
System is discharging but auto-cpufreq detects charging #164
Comments
First, what version of auto-cpufreq are you running? If you are running the latest version, what is the output of the command: dmidecode --string chassis-type |
@pheiduck make sure you're using the latest version, 1.5.4 was released few hours ago. If AUR package is older, you can also install latest version using auto-cpufreq-installer. Could you also return output of @ThePoorPilot this ended up being changed to This way else in this block could be set to default to "powersave" (defaults to laptop) which for some reason wasn't detected by dmidecode. FYI: @librewish ^ |
Yeah I read through the change and caught that. There could be a slight issue with dmidecode, though. On my system I get this output when I run dmidecode --string chassis-type: I have to run it with sudo for it to output "Desktop" I would guess that "permission denied" falls under else |
@AdnanHodzic It looks like we need to find a different command that doesn't require systemd and doesn't require sudo. Although, it is possible the chassis detection could run successfully if it is done during installation, which would have root permission. I would hazard to guess, though, that it runs that check while in operation |
auto-cpufreq runs with root permissions, so always use sudo during debug process to see how things would look like if run as part of the app/tool. I think we'll have a problem with this implementation where we don't want a missing case. Right off the bat "Desktop" option needs to be explicitly defined as I voiced in specifically. I'm pretty certain that in @pheiduck case "Notebook" wasn't detected for some reason and it immediately switched to "Desktop" since that case isn't explicitly defined. But let's first see what @pheiduck says his |
@AdnanHodzic I think it would be smart to use else for the laptop based settings and instead actively look for "Desktop." I could also look at all the different chassis types dmidecode could possibly detect and use an if statement for each type. Then, use else to revert to laptop settings. Another issue I thought of is that while the dmidecode was added to the installer as a dependency, I don't know if it will be automatically added as a dependency to pre-compiled packages on repositories. We'll wait for his output of sudo dmidecode --string chassis-type I removed dmidecode before installing (it comes by default on Garuda) the update to auto-cpufreq-git on the Chaotic-AUR (Garuda linux pre-compiled repository). In the install process, it did not install dmidecode as a dependency, and the command outputs "command not found" |
I checked on my Thinkpad with Manjaro and it does indeed also have dmidecode installed by default, so it may actually be a case where it misidentified the chassis as you said. Again, I guess I'm just impatient. Let's wait for pheiduck's output. |
No worries, lesson lived, lesson learned! :)
That would be great! If you could collect as many outputs of If you did that, and either you or @librewish or both of you created a PR I'd highly appreciate it.
Make sure whoever you ask for this output for them to install
That's why it's set as a dependency in the auto-cpufreq-installer and Snap package so it's automatically installed with those. II suggest we start using "Discussions" for this projects so bug reports don't get hijacked with devel discussion like this one :) |
Alright, I'll move over there when I have more updates I guess the dependency issue on my side needs to be fixed by the maintainers of Chaotic-AUR and the Arch User Repository, which are unofficial packages |
... still exist after
|
@pheiduck problem has been fixed as part of 1.5.5 release. Please get the latest changes and re-open this issue if you're still experiencing the same problem. |
Yep, works again as expected Thank you @AdnanHodzic 👍 |
Error output:
System information:
The text was updated successfully, but these errors were encountered: