LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-07-2020, 12:51 PM   #1
oscar_649
LQ Newbie
 
Registered: Aug 2020
Distribution: Mageia 7.1
Posts: 29

Rep: Reputation: Disabled
Limiting intel C-states in grub - coil whine begins again after hybernation


Hi all!

I have limited the intel C-states in grub2 with:
Code:
intel_idle.max_cstate=1
which works very well.

But after waking up the Laptop after hibernation the disturbing noise is back again.

Is there a possibility to reconfigure that on a running system?

Greets
Jens
 
Old 09-07-2020, 03:23 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by oscar_649 View Post
I have limited the intel C-states in grub2 with:
Code:
intel_idle.max_cstate=1
which works very well.

But after waking up the Laptop after hibernation the disturbing noise is back again.

Is there a possibility to reconfigure that on a running system?
What makes you think intel_idle.max_cstate=1 has an effect on coil whine?
Where does the whine originate from (trick question; it's extremely difficult to localize, I recommend slowly moving some sort of ear trumpet through the computer)?
 
Old 09-07-2020, 05:12 PM   #3
oscar_649
LQ Newbie
 
Registered: Aug 2020
Distribution: Mageia 7.1
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
What makes you think intel_idle.max_cstate=1 has an effect on coil whine?
Maybe "coil whine" is not the correct designation. My English is not very strong in special electronics.
Simple answer : Booting with that option, the whine is completely gone. Without the option it goes continuously when the CPU is not running at high load.

There are some other discussions about that (for example: Here)

My problem is now that the whine returns every time again after hibernating.

Last edited by oscar_649; 09-07-2020 at 05:22 PM.
 
1 members found this post helpful.
Old 09-09-2020, 02:05 PM   #4
oscar_649
LQ Newbie
 
Registered: Aug 2020
Distribution: Mageia 7.1
Posts: 29

Original Poster
Rep: Reputation: Disabled
So, I got a little further.

To change the kernel parameter, a simple
Code:
echo 1 > /sys/module/intel_idle/parameters/max_cstate
would do it.
That works for setting the governor for example.

But logically the file and the other files are in use by the cpu and I have no permission.

Last edited by oscar_649; 09-09-2020 at 02:07 PM.
 
Old 09-10-2020, 07:22 PM   #5
oscar_649
LQ Newbie
 
Registered: Aug 2020
Distribution: Mageia 7.1
Posts: 29

Original Poster
Rep: Reputation: Disabled
O.k. This is not exactly what I wanted but it solved the problem.

There are some different pre-compiled kernels here in Mageia like on many other distros.
So far I was using kernel-desktop and the cpu whine made me mad.
I'm now using kernel-server and the cpu is silent, even after hibernation.

It would be interesting to know where the difference is in compilation.
Anyway. It works now. This is a real blessing.

Btw.: From the the docs:
==============================================
``intel_idle`` CPU Idle Time Management Driver
==============================================
...
``intel_idle`` is not modular, so it cannot be unloaded, which means that the
only way to pass early-configuration-time parameters to it is via the kernel
command line.

...

Last edited by oscar_649; 09-10-2020 at 07:39 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Larry Tesler cut and pasted from this mortal coil: That thing you just did? He probably invented it LXer Syndicated Linux News 1 02-20-2020 01:28 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 11:56 PM
LXer: Open States gathers legislative data from all 50 states LXer Syndicated Linux News 0 02-21-2013 12:00 PM
{Whine}I am soo pissed.....{/Whine} Hitboxx General 8 08-17-2007 12:54 PM
Whine whine wine lackluster Linux - Newbie 2 07-19-2002 02:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration