-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
Intel CPU: Spamming of 'line 105: echo: write error: Device or resource busy #661
Comments
I have the same issue on my Surface Pro 7 on Arch. It tries to write I modified line 105 to point stderr to /dev/null. Not a solution though but a workaround to not spam my logs. function write_value () {
if [ -w $FLNM ]; then
echo $VALUE > $FLNM 2> /dev/null
fi
} |
@systemofapwne if this indeed fixes the problem, could you please contribute to the project/create PR? You will be credited for your work as part of future release. |
It's probably a silly thought, sorry if I missed the point. In search for the "bash script echo write error device or resource busy" to have an idea of what could be, it gave me a bunch of GPIO results, some USB related ones and others, but the answer for this one that made sense to me Would it just that options are limited by mode you choose a scaling_governor x energy_performance_preference relationship? So it will always have to check which scaling_governor is being used before trying to write, or limit the list to that relationship. Testing on my machine, with an Intel CPU, that "relationship" holds up, meaning, if I set the scaling governor to performance i can't change the energy preference from performance without changing the scaling governor back to powersave
|
This would just cure symptoms, not the underlaying issue. So thats why I didn't create a PR. |
Seeing this on my side now recently as well. Lenovo X1 Carbon Debian 12 Bookworm auto-cpufreq 2.2.0 (git: 166cd06) Also see some crashes recently so looking into why and found this - probably not related, but saw this in journalctl today. Thousands and thousands of lines. Mar 14 13:10:05 mergcarb python[16970]: /usr/local/bin/cpufreqctl.auto-cpufreq: line 105: echo: write error: Device or resource busy |
doing the /dev/null redirect for now. See how that goes. Thanks @systemofapwne ! |
If you tries to use the acpi governor the issue will be gone. it only affects pstate. however acpi may not be an option for you as it seems to break nvidia-powerd so no more GPU boosting. So I'm back using intel-pstate and I've disabled auto-cpufreq as not being able to use dynamic boost is not a suitable solution for me. |
This seems not to be a intel pstate specific problem! AMD pstate with active mode does result in the same problem. Probaply both pstate driver manage turbo boost them self (no need for auto-cpufreq to interfere) and the error is just because the turbo boost flag doesn't exist. So turbo boost (or dynamic boost) still works, it is just managed completely within the driver. |
I also think that this is linked with #602 |
In which file do you make the mod? Thanks! |
In line |
So, did some testing and I can confirm that when the Looking into the code in This is resolved when the command is changed to
This seems to be an intended behavior, since according to the kernel documentation when HWP is enabled(which is enabled by default during boot with supported processors)and scaling governor is set to |
I am still facing the issue but in Intel CPU.
Refer: [Spamming of 'line 105: echo: write error: Device or resource busy' in journal · Issue #563 · AdnanHodzic/auto-cpufreq](#563)
The text was updated successfully, but these errors were encountered: