linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: High pitched noise from laptop: processor.c in linux 2.6
@ 2004-10-18  3:51 Yu, Luming
  2004-10-18 11:41 ` Pavel Machek
  0 siblings, 1 reply; 29+ messages in thread
From: Yu, Luming @ 2004-10-18  3:51 UTC (permalink / raw)
  To: Pavel Machek, M; +Cc: linux-kernel

>Hi!
>
>> >> Is there any way to stop this? I googled around and found it had 
>> >> something to do with idle frequency of 1000 Hz in 2.6 
>instead of 100Hz 
>> >> in the 2.4 kernel. I couldn't find much else on this. 
>Hunting around the 
>> >> code didn't help much, I don't know C. 
>> >
>> > Change #define HZ 1000 to #define HZ 100...
>> 
>> ... and lose all the benefits of HZ=1000.  What would happen if one
>> were to set HZ to a higher value, like 10000?

There is a similar issue filed on :
http://bugzilla.kernel.org/show_bug.cgi?id=3406


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-18  3:51 High pitched noise from laptop: processor.c in linux 2.6 Yu, Luming
@ 2004-10-18 11:41 ` Pavel Machek
  2004-10-20 14:47   ` Måns Rullgård
  2004-10-20 23:31   ` Giuseppe Bilotta
  0 siblings, 2 replies; 29+ messages in thread
From: Pavel Machek @ 2004-10-18 11:41 UTC (permalink / raw)
  To: Yu, Luming; +Cc: M, linux-kernel

Hi!

> >> ... and lose all the benefits of HZ=1000.  What would happen if one
> >> were to set HZ to a higher value, like 10000?
> 
> There is a similar issue filed on :
> http://bugzilla.kernel.org/show_bug.cgi?id=3406
> 

He he, someone should write a driver to play music on
those capacitors....
				Pavel
-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-18 11:41 ` Pavel Machek
@ 2004-10-20 14:47   ` Måns Rullgård
  2004-10-20 15:47     ` Pavel Machek
  2004-10-20 23:31   ` Giuseppe Bilotta
  1 sibling, 1 reply; 29+ messages in thread
From: Måns Rullgård @ 2004-10-20 14:47 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Yu, Luming, linux-kernel

Pavel Machek <pavel@ucw.cz> writes:

> Hi!
>
>> >> ... and lose all the benefits of HZ=1000.  What would happen if one
>> >> were to set HZ to a higher value, like 10000?
>> 
>> There is a similar issue filed on :
>> http://bugzilla.kernel.org/show_bug.cgi?id=3406
>> 
>
> He he, someone should write a driver to play music on
> those capacitors....

Why not?  They used to have special files that played music on the
printer when printed.

-- 
Måns Rullgård
mru@mru.ath.cx

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-20 14:47   ` Måns Rullgård
@ 2004-10-20 15:47     ` Pavel Machek
  2004-10-20 16:37       ` Måns Rullgård
  0 siblings, 1 reply; 29+ messages in thread
From: Pavel Machek @ 2004-10-20 15:47 UTC (permalink / raw)
  To: M?ns Rullg?rd; +Cc: Yu, Luming, linux-kernel

Hi!

> >> >> ... and lose all the benefits of HZ=1000.  What would happen if one
> >> >> were to set HZ to a higher value, like 10000?
> >> 
> >> There is a similar issue filed on :
> >> http://bugzilla.kernel.org/show_bug.cgi?id=3406
> >> 
> >
> > He he, someone should write a driver to play music on
> > those capacitors....
> 
> Why not?  They used to have special files that played music on the
> printer when printed.

Yes, it would be nice... to scare people :-). Also with such piece of
software it would be rather easy to tell if given mainboard is junk.

								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-20 15:47     ` Pavel Machek
@ 2004-10-20 16:37       ` Måns Rullgård
  2004-10-20 16:49         ` Jan-Benedict Glaw
  2004-10-20 16:53         ` Lee Revell
  0 siblings, 2 replies; 29+ messages in thread
From: Måns Rullgård @ 2004-10-20 16:37 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Yu, Luming, linux-kernel

Pavel Machek <pavel@ucw.cz> writes:

> Hi!
>
>> >> >> ... and lose all the benefits of HZ=1000.  What would happen if one
>> >> >> were to set HZ to a higher value, like 10000?
>> >> 
>> >> There is a similar issue filed on :
>> >> http://bugzilla.kernel.org/show_bug.cgi?id=3406
>> >> 
>> >
>> > He he, someone should write a driver to play music on
>> > those capacitors....
>> 
>> Why not?  They used to have special files that played music on the
>> printer when printed.
>
> Yes, it would be nice... to scare people :-). Also with such piece of
> software it would be rather easy to tell if given mainboard is junk.

I've noticed my laptop makes a slight noise whenever there's heavy
network traffic.  Maybe that could be used to control the pitch even
without a kernel hack.

-- 
Måns Rullgård
mru@mru.ath.cx

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-20 16:37       ` Måns Rullgård
@ 2004-10-20 16:49         ` Jan-Benedict Glaw
  2004-10-20 16:53           ` Pavel Machek
  2004-10-20 16:53         ` Lee Revell
  1 sibling, 1 reply; 29+ messages in thread
From: Jan-Benedict Glaw @ 2004-10-20 16:49 UTC (permalink / raw)
  To: Måns Rullgård; +Cc: Pavel Machek, Yu, Luming, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]

On Wed, 2004-10-20 18:37:42 +0200, Måns Rullgård <mru@mru.ath.cx>
wrote in message <yw1x65554a7d.fsf@mru.ath.cx>:
> Pavel Machek <pavel@ucw.cz> writes:
> >> > He he, someone should write a driver to play music on
> >> > those capacitors....
> >> Why not?  They used to have special files that played music on the
> >> printer when printed.
> > Yes, it would be nice... to scare people :-). Also with such piece of
> > software it would be rather easy to tell if given mainboard is junk.
> I've noticed my laptop makes a slight noise whenever there's heavy
> network traffic.  Maybe that could be used to control the pitch even
> without a kernel hack.

That would make up a pure userspace driver, even for a remotely
accessibly hardware device. Cool:-)

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-20 16:49         ` Jan-Benedict Glaw
@ 2004-10-20 16:53           ` Pavel Machek
  0 siblings, 0 replies; 29+ messages in thread
From: Pavel Machek @ 2004-10-20 16:53 UTC (permalink / raw)
  To: M?ns Rullg?rd, Yu, Luming, linux-kernel

Hi!

> > >> > He he, someone should write a driver to play music on
> > >> > those capacitors....
> > >> Why not?  They used to have special files that played music on the
> > >> printer when printed.
> > > Yes, it would be nice... to scare people :-). Also with such piece of
> > > software it would be rather easy to tell if given mainboard is junk.
> > I've noticed my laptop makes a slight noise whenever there's heavy
> > network traffic.  Maybe that could be used to control the pitch even
> > without a kernel hack.
> 
> That would make up a pure userspace driver, even for a remotely
> accessibly hardware device. Cool:-)

"Help! Not only are our machines under Distributed DoS attack, they
also play Yankee Doodle ;-)))."
								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-20 16:37       ` Måns Rullgård
  2004-10-20 16:49         ` Jan-Benedict Glaw
@ 2004-10-20 16:53         ` Lee Revell
  2004-10-20 17:13           ` Måns Rullgård
  1 sibling, 1 reply; 29+ messages in thread
From: Lee Revell @ 2004-10-20 16:53 UTC (permalink / raw)
  To: Måns Rullgård; +Cc: Pavel Machek, Yu, Luming, linux-kernel

On Wed, 2004-10-20 at 12:37, Måns Rullgård wrote:
> I've noticed my laptop makes a slight noise whenever there's heavy
> network traffic.  Maybe that could be used to control the pitch even
> without a kernel hack.

Well, in your case the bad capacitors might be in the NIC.  The ethernet
phones at my last job were so cheaply made that you could hear it ARPing
through your computer speakers.

I bet you could actually identify the singing capacitor using a
telephone toner wand.  IMHO this is a bad enough problem to RMA it. 
What if you had bought the thing for sound recording?

Lee


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-20 16:53         ` Lee Revell
@ 2004-10-20 17:13           ` Måns Rullgård
  2004-10-21 20:32             ` Lee Revell
  0 siblings, 1 reply; 29+ messages in thread
From: Måns Rullgård @ 2004-10-20 17:13 UTC (permalink / raw)
  To: Lee Revell; +Cc: Pavel Machek, Yu, Luming, linux-kernel

Lee Revell <rlrevell@joe-job.com> writes:

> On Wed, 2004-10-20 at 12:37, Måns Rullgård wrote:
>> I've noticed my laptop makes a slight noise whenever there's heavy
>> network traffic.  Maybe that could be used to control the pitch even
>> without a kernel hack.
>
> Well, in your case the bad capacitors might be in the NIC.  The ethernet
> phones at my last job were so cheaply made that you could hear it ARPing
> through your computer speakers.

I have and old Alphastation where the onboard sound card picks up all
sorts of noise.  If you connect some speakers everything gets it's own
special noise, from cache misses to SCSI traffic.

> I bet you could actually identify the singing capacitor using a
> telephone toner wand.  IMHO this is a bad enough problem to RMA it. 

Not really, it's barely noticeable in a quiet room.

-- 
Måns Rullgård
mru@mru.ath.cx

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-18 11:41 ` Pavel Machek
  2004-10-20 14:47   ` Måns Rullgård
@ 2004-10-20 23:31   ` Giuseppe Bilotta
  1 sibling, 0 replies; 29+ messages in thread
From: Giuseppe Bilotta @ 2004-10-20 23:31 UTC (permalink / raw)
  To: linux-kernel

Pavel Machek wrote:
> Hi!
> 
> > >> ... and lose all the benefits of HZ=1000.  What would happen if one
> > >> were to set HZ to a higher value, like 10000?
> > 
> > There is a similar issue filed on :
> > http://bugzilla.kernel.org/show_bug.cgi?id=3406
> > 
> 
> He he, someone should write a driver to play music on
> those capacitors....

A new ALSA driver? :)

-- 
Giuseppe "Oblomov" Bilotta

Can't you see
It all makes perfect sense
Expressed in dollar and cents
Pounds shillings and pence
                  (Roger Waters)


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-20 17:13           ` Måns Rullgård
@ 2004-10-21 20:32             ` Lee Revell
  2004-10-21 21:39               ` Jon Masters
  0 siblings, 1 reply; 29+ messages in thread
From: Lee Revell @ 2004-10-21 20:32 UTC (permalink / raw)
  To: Måns Rullgård; +Cc: Pavel Machek, Yu, Luming, linux-kernel

On Wed, 2004-10-20 at 13:13, Måns Rullgård wrote:
> > I bet you could actually identify the singing capacitor using a
> > telephone toner wand.  IMHO this is a bad enough problem to RMA it. 
> 
> Not really, it's barely noticeable in a quiet room.

If you had bought that laptop for audio use (big market these days, just
look at all the FireWire/USB/PCMCIA sound hardware out there), then this
would be a fatal problem.

Of course, for such a user, a BIOS where the hardware constantly block
interrupts via SMM would also be a fatal problem because it ruins audio
latency.  According to Alan Cox this is most laptops these days!

I am beginning to suspect the only known good laptop for pro audio use
is a Powerbook :-/.  x86 laptops are just too cheaply made.

Lee


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-21 20:32             ` Lee Revell
@ 2004-10-21 21:39               ` Jon Masters
  0 siblings, 0 replies; 29+ messages in thread
From: Jon Masters @ 2004-10-21 21:39 UTC (permalink / raw)
  To: Lee Revell
  Cc: Måns Rullgård, Pavel Machek, Yu, Luming, linux-kernel

On Thu, 21 Oct 2004 16:32:08 -0400, Lee Revell <rlrevell@joe-job.com> wrote:

> I am beginning to suspect the only known good laptop for pro audio use
> is a Powerbook :-/.  x86 laptops are just too cheaply made.

Google suggests the Powerbook has also seen issues with singing
capacitors but I have to say that I have not experienced this with
mine - who wants an Intel POS laptop anyway ;-)

Jon.

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-17  2:21             ` Alan Cox
  2004-10-17  3:33               ` Lee Revell
@ 2004-10-22 11:40               ` Alexandre Oliva
  1 sibling, 0 replies; 29+ messages in thread
From: Alexandre Oliva @ 2004-10-22 11:40 UTC (permalink / raw)
  To: Alan Cox; +Cc: Lee Revell, Pavel Machek, M, Linux Kernel Mailing List

On Oct 16, 2004, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:

> Yes, and most laptops have this problem. They use SMM traps to talk to
> the battery

Hmm...  Since the SMM on this AMD64 notebook we've been talking about
on the thread about USB handoff isn't exactly AMD64-compliant, could
this be the reason why I can't get battery information?  I'm yet to
install a 32-bit-only system on this box to see whether it makes any
difference.

-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
@ 2004-10-17  5:21 Albert Cahalan
  0 siblings, 0 replies; 29+ messages in thread
From: Albert Cahalan @ 2004-10-17  5:21 UTC (permalink / raw)
  To: linux-kernel mailing list; +Cc: alan

Alan Cox writes:
> On Sad, 2004-10-16 at 20:52, Lee Revell wrote:
>> [Pavel Machek]

>>> What benefits? HZ=1000 takes 1W more on my system.
>>
>> Better timer resolution?
>
> And heavily reduced accuracy on a lot of laptops
> where 1000Hz is enough to make the clock slide
> every time the battery state is queried or an SMM
> event triggers.

How low is low enough for nearly all of these laptops?
Some decent choices:

wrongness_%   HZ_diff   PIT_#   HZ     actual_HZ
-0.00083809  -0.003051   3278   364   363.996949  
-0.00016762  -0.000483   4143   288   287.999517
-0.00016762  -0.000724   2762   432   431.999276
-0.00016762  -0.001448   1381   864   863.998552
+0.00008381  +0.000304   3287   363   363.000304  
+0.00008381  +0.000435   2299   519   519.000435  
+0.00008381  +0.000525   1903   627   627.000525  



^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-17  2:21             ` Alan Cox
@ 2004-10-17  3:33               ` Lee Revell
  2004-10-22 11:40               ` Alexandre Oliva
  1 sibling, 0 replies; 29+ messages in thread
From: Lee Revell @ 2004-10-17  3:33 UTC (permalink / raw)
  To: Alan Cox; +Cc: Pavel Machek, M, Linux Kernel Mailing List

On Sat, 2004-10-16 at 22:21, Alan Cox wrote:
> On Sul, 2004-10-17 at 02:24, Lee Revell wrote:
> > > And heavily reduced accuracy on a lot of laptops where 1000Hz
> > > is enough to make the clock slide every time the battery state is
> > > queried or an SMM event triggers.
> > Wouldn't such a laptop be horribly broken?  1ms is a LONG time to
> > disable interrupts.  That's millions of CPU cycles...
> 
> Yes, and most laptops have this problem. They use SMM traps to talk to
> the battery including huge delay loops and during those SMM traps no
> interrupt code runs.
> 

Ugh!  I was under the impression that mostly older machines had this
problem and it was a minority of laptops.  I could not find a lot of 
info on SMM  - several of the links I found were DDJ "Undocumented
Corner" articles.

Anyway this explains probably half the weird bug reports on the linux
audio user list.

Lee


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-17  1:24           ` Lee Revell
  2004-10-17  1:50             ` Kyle Moffett
@ 2004-10-17  2:21             ` Alan Cox
  2004-10-17  3:33               ` Lee Revell
  2004-10-22 11:40               ` Alexandre Oliva
  1 sibling, 2 replies; 29+ messages in thread
From: Alan Cox @ 2004-10-17  2:21 UTC (permalink / raw)
  To: Lee Revell; +Cc: Pavel Machek, M, Linux Kernel Mailing List

On Sul, 2004-10-17 at 02:24, Lee Revell wrote:
> > And heavily reduced accuracy on a lot of laptops where 1000Hz
> > is enough to make the clock slide every time the battery state is
> > queried or an SMM event triggers.
> Wouldn't such a laptop be horribly broken?  1ms is a LONG time to
> disable interrupts.  That's millions of CPU cycles...

Yes, and most laptops have this problem. They use SMM traps to talk to
the battery including huge delay loops and during those SMM traps no
interrupt code runs.

> > Getting the best of both worlds depends on the stuff discussed at OLS
> > being finished, then you can have 1Khz accurancy and battery life
> I was not there but I imagine this involves a way to get 1khz accuracy
> with a 100Hz timer interrupt rate?

Think about

	add_timeout(timer, when, precision_desired)



^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-17  1:24           ` Lee Revell
@ 2004-10-17  1:50             ` Kyle Moffett
  2004-10-17  2:21             ` Alan Cox
  1 sibling, 0 replies; 29+ messages in thread
From: Kyle Moffett @ 2004-10-17  1:50 UTC (permalink / raw)
  To: Lee Revell; +Cc: Pavel Machek, Linux Kernel Mailing List, M, Alan Cox

On Oct 16, 2004, at 21:24, Lee Revell wrote:
> I was not there but I imagine this involves a way to get 1khz accuracy
> with a 100Hz timer interrupt rate?

I think the idea is to (depending on the hardware) dynamically adjust 
the
system timers to exactly the time necessary.  If you don't have any 
important
processes that will interrupt within the next 10ms then you can just go
ahead and set the timer longer.  If properly done you might even be able
to set HZ to 20 or 50.  Hardware interrupts would trigger immediate
responses, but otherwise a non-interactive system could minimize the
number of context switches and make the processor cache that much
more useful.  This would still be bad on an interactive/desktop system
because it would mean that perceptive users could detect the switching
if they have two computationally intensive jobs running simultaneously.

Cheers,
Kyle Moffett

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/IT/U d- s++: a17 C++++>$ UB/L/X/*++++(+)>$ P+++(++++)>$
L++++(+++) E W++(+) N+++(++) o? K? w--- O? M++ V? PS+() PE+(-) Y+
PGP+++ t+(+++) 5 X R? tv-(--) b++++(++) DI+ D+ G e->++++$ h!*()>++$ r  
!y?(-)
------END GEEK CODE BLOCK------



^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-16 21:46         ` Alan Cox
@ 2004-10-17  1:24           ` Lee Revell
  2004-10-17  1:50             ` Kyle Moffett
  2004-10-17  2:21             ` Alan Cox
  0 siblings, 2 replies; 29+ messages in thread
From: Lee Revell @ 2004-10-17  1:24 UTC (permalink / raw)
  To: Alan Cox; +Cc: Pavel Machek, M, Linux Kernel Mailing List

On Sat, 2004-10-16 at 17:46, Alan Cox wrote:
> On Sad, 2004-10-16 at 20:52, Lee Revell wrote:
> > > What benefits? HZ=1000 takes 1W more on my system.
> > Better timer resolution?
> 
> And heavily reduced accuracy on a lot of laptops where 1000Hz
> is enough to make the clock slide every time the battery state is
> queried or an SMM event triggers.
> 

Wouldn't such a laptop be horribly broken?  1ms is a LONG time to
disable interrupts.  That's millions of CPU cycles...

> Getting the best of both worlds depends on the stuff discussed at OLS
> being finished, then you can have 1Khz accurancy and battery life
> 

I was not there but I imagine this involves a way to get 1khz accuracy
with a 100Hz timer interrupt rate?

Lee


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-07 10:32 ` Pavel Machek
  2004-10-07 10:53   ` Måns Rullgård
@ 2004-10-17  0:45   ` Alex Riesen
  1 sibling, 0 replies; 29+ messages in thread
From: Alex Riesen @ 2004-10-17  0:45 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Fraz, linux-kernel

On Thu, 7 Oct 2004 12:32:10 +0200, Pavel Machek <pavel@ucw.cz> wrote:
> > Is there any way to stop this? I googled around and found it had
> > something to do with idle frequency of 1000 Hz in 2.6 instead of 100Hz
> > in the 2.4 kernel. I couldn't find much else on this. Hunting around the
> > code didn't help much, I don't know C.
> 
> Change #define HZ 1000 to #define HZ 100...

Helped an Asus S1300N. Not sure it's gone completely, but it's more
comfortable now.
 
To the original poster: look in include/asm/param.h

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-16 19:52       ` Lee Revell
@ 2004-10-16 21:46         ` Alan Cox
  2004-10-17  1:24           ` Lee Revell
  0 siblings, 1 reply; 29+ messages in thread
From: Alan Cox @ 2004-10-16 21:46 UTC (permalink / raw)
  To: Lee Revell; +Cc: Pavel Machek, M, Linux Kernel Mailing List

On Sad, 2004-10-16 at 20:52, Lee Revell wrote:
> > What benefits? HZ=1000 takes 1W more on my system.
> Better timer resolution?

And heavily reduced accuracy on a lot of laptops where 1000Hz
is enough to make the clock slide every time the battery state is
queried or an SMM event triggers.

Getting the best of both worlds depends on the stuff discussed at OLS
being finished, then you can have 1Khz accurancy and battery life


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-16 19:59       ` Måns Rullgård
@ 2004-10-16 20:42         ` Pavel Machek
  0 siblings, 0 replies; 29+ messages in thread
From: Pavel Machek @ 2004-10-16 20:42 UTC (permalink / raw)
  To: M?ns Rullg?rd; +Cc: linux-kernel

Hi!

> >> >> code didn't help much, I don't know C. 
> >> >
> >> > Change #define HZ 1000 to #define HZ 100...
> >> 
> >> ... and lose all the benefits of HZ=1000.  
> >
> > What benefits? HZ=1000 takes 1W more on my system.
> 
> Isn't it supposed to give more accurate timing?

Well, yes, but if it beeps for you... Accurate timing is probably not
that important.

> > 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         
> 
> Has that really happened?

Yes. On gprs it is rather easy to reproduce, unfortunately...

								Pavel
-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-07 14:32     ` Pavel Machek
  2004-10-16 19:52       ` Lee Revell
@ 2004-10-16 19:59       ` Måns Rullgård
  2004-10-16 20:42         ` Pavel Machek
  1 sibling, 1 reply; 29+ messages in thread
From: Måns Rullgård @ 2004-10-16 19:59 UTC (permalink / raw)
  To: Pavel Machek; +Cc: linux-kernel

Pavel Machek <pavel@ucw.cz> writes:

> Hi!
>
>> >> Is there any way to stop this? I googled around and found it had 
>> >> something to do with idle frequency of 1000 Hz in 2.6 instead of 100Hz 
>> >> in the 2.4 kernel. I couldn't find much else on this. Hunting around the 
>> >> code didn't help much, I don't know C. 
>> >
>> > Change #define HZ 1000 to #define HZ 100...
>> 
>> ... and lose all the benefits of HZ=1000.  
>
> What benefits? HZ=1000 takes 1W more on my system.

Isn't it supposed to give more accurate timing?

>> What would happen if one
>> were to set HZ to a higher value, like 10000?
>
> Try it.
>
>> > Boycott Kodak -- for their patent abuse against Java.
>> 
>> Actually, I don't know which is worse, patent abuse or Java misuse.
>
> Well, java is ugly but not dangerous.
> 				Pavel
> -- 
> 64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         

Has that really happened?

-- 
Måns Rullgård
mru@mru.ath.cx

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-07 14:32     ` Pavel Machek
@ 2004-10-16 19:52       ` Lee Revell
  2004-10-16 21:46         ` Alan Cox
  2004-10-16 19:59       ` Måns Rullgård
  1 sibling, 1 reply; 29+ messages in thread
From: Lee Revell @ 2004-10-16 19:52 UTC (permalink / raw)
  To: Pavel Machek; +Cc: M, linux-kernel

On Thu, 2004-10-07 at 10:32, Pavel Machek wrote:
> Hi!
> 
> > >> Is there any way to stop this? I googled around and found it had 
> > >> something to do with idle frequency of 1000 Hz in 2.6 instead of 100Hz 
> > >> in the 2.4 kernel. I couldn't find much else on this. Hunting around the 
> > >> code didn't help much, I don't know C. 
> > >
> > > Change #define HZ 1000 to #define HZ 100...
> > 
> > ... and lose all the benefits of HZ=1000.  
> 
> What benefits? HZ=1000 takes 1W more on my system.
> 

Better timer resolution?

Lee


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-07 10:53   ` Måns Rullgård
  2004-10-07 14:32     ` Pavel Machek
@ 2004-10-07 14:34     ` Pavel Machek
  1 sibling, 0 replies; 29+ messages in thread
From: Pavel Machek @ 2004-10-07 14:34 UTC (permalink / raw)
  To: M; +Cc: linux-kernel

Hi!

> >> Is there any way to stop this? I googled around and found it had 
> >> something to do with idle frequency of 1000 Hz in 2.6 instead of 100Hz 
> >> in the 2.4 kernel. I couldn't find much else on this. Hunting around the 
> >> code didn't help much, I don't know C. 
> >
> > Change #define HZ 1000 to #define HZ 100...
> 
> ... and lose all the benefits of HZ=1000.  What would happen if one
> were to set HZ to a higher value, like 10000?

You'll probably get even uglier noise and 5%+ performance penalty.
-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-07 10:53   ` Måns Rullgård
@ 2004-10-07 14:32     ` Pavel Machek
  2004-10-16 19:52       ` Lee Revell
  2004-10-16 19:59       ` Måns Rullgård
  2004-10-07 14:34     ` Pavel Machek
  1 sibling, 2 replies; 29+ messages in thread
From: Pavel Machek @ 2004-10-07 14:32 UTC (permalink / raw)
  To: M; +Cc: linux-kernel

Hi!

> >> Is there any way to stop this? I googled around and found it had 
> >> something to do with idle frequency of 1000 Hz in 2.6 instead of 100Hz 
> >> in the 2.4 kernel. I couldn't find much else on this. Hunting around the 
> >> code didn't help much, I don't know C. 
> >
> > Change #define HZ 1000 to #define HZ 100...
> 
> ... and lose all the benefits of HZ=1000.  

What benefits? HZ=1000 takes 1W more on my system.

> What would happen if one
> were to set HZ to a higher value, like 10000?

Try it.

> > Boycott Kodak -- for their patent abuse against Java.
> 
> Actually, I don't know which is worse, patent abuse or Java misuse.


Well, java is ugly but not dangerous.
				Pavel
-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-07 10:32 ` Pavel Machek
@ 2004-10-07 10:53   ` Måns Rullgård
  2004-10-07 14:32     ` Pavel Machek
  2004-10-07 14:34     ` Pavel Machek
  2004-10-17  0:45   ` Alex Riesen
  1 sibling, 2 replies; 29+ messages in thread
From: Måns Rullgård @ 2004-10-07 10:53 UTC (permalink / raw)
  To: linux-kernel

Pavel Machek <pavel@ucw.cz> writes:

> Hi!
>
>> I recently upgraded from linux 2.4.27 to 2.6.8.1 and noticed my laptop 
>> now makes a high pitch noise while idle. I traced it back to the 
>> processor module for acpi. 'rmmod processor' stops the noise. 
>> 
>> 
>> 
>> Using speed step to turn it down to 733 Mhz makes it a 
>>        little quieter and doesn't change the tone. 
>> 
>> 
>> 
>> Is there any way to stop this? I googled around and found it had 
>> something to do with idle frequency of 1000 Hz in 2.6 instead of 100Hz 
>> in the 2.4 kernel. I couldn't find much else on this. Hunting around the 
>> code didn't help much, I don't know C. 
>
> Change #define HZ 1000 to #define HZ 100...

... and lose all the benefits of HZ=1000.  What would happen if one
were to set HZ to a higher value, like 10000?

> Ouch and btw it is hardware problem -- too cheap capacitors.
> 								Pavel
> -- 
> Boycott Kodak -- for their patent abuse against Java.

Actually, I don't know which is worse, patent abuse or Java misuse.

-- 
Måns Rullgård
mru@mru.ath.cx


^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-07  9:30 Fraz
  2004-10-07 10:32 ` Pavel Machek
@ 2004-10-07 10:37 ` Christian Hesse
  1 sibling, 0 replies; 29+ messages in thread
From: Christian Hesse @ 2004-10-07 10:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: Fraz

[-- Attachment #1: Type: text/plain, Size: 954 bytes --]

On Thursday 07 October 2004 11:30, Fraz wrote:
> I recently upgraded from linux 2.4.27 to 2.6.8.1 and noticed my laptop
> now makes a high pitch noise while idle. I traced it back to the
> processor module for acpi. 'rmmod processor' stops the noise.
>
> Using speed step to turn it down to 733 Mhz makes it a
> little quieter and doesn't change the tone.
>
> Is there any way to stop this? I googled around and found it had
> something to do with idle frequency of 1000 Hz in 2.6 instead of 100Hz
> in the 2.4 kernel. I couldn't find much else on this. Hunting around the
> code didn't help much, I don't know C.
>
> The laptop is a Compaq Evo N160 from Dec 2001. The reference in google
> was to a Centrino laptop with the same problem. I wrote to Dominik
> Brodowski who suggested posting here.

Take a look at this bug report:

http://bugme.osdl.org/show_bug.cgi?id=2478

-- 
Christian Hesse

geek by nature
linux by choice

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread

* Re: High pitched noise from laptop: processor.c in linux 2.6
  2004-10-07  9:30 Fraz
@ 2004-10-07 10:32 ` Pavel Machek
  2004-10-07 10:53   ` Måns Rullgård
  2004-10-17  0:45   ` Alex Riesen
  2004-10-07 10:37 ` Christian Hesse
  1 sibling, 2 replies; 29+ messages in thread
From: Pavel Machek @ 2004-10-07 10:32 UTC (permalink / raw)
  To: Fraz; +Cc: linux-kernel

Hi!

> I recently upgraded from linux 2.4.27 to 2.6.8.1 and noticed my laptop 
> now makes a high pitch noise while idle. I traced it back to the 
> processor module for acpi. 'rmmod processor' stops the noise. 
> 
> 
> 
> Using speed step to turn it down to 733 Mhz makes it a 
>        little quieter and doesn't change the tone. 
> 
> 
> 
> Is there any way to stop this? I googled around and found it had 
> something to do with idle frequency of 1000 Hz in 2.6 instead of 100Hz 
> in the 2.4 kernel. I couldn't find much else on this. Hunting around the 
> code didn't help much, I don't know C. 

Change #define HZ 1000 to #define HZ 100...

Ouch and btw it is hardware problem -- too cheap capacitors.
								Pavel
-- 
Boycott Kodak -- for their patent abuse against Java.

^ permalink raw reply	[flat|nested] 29+ messages in thread

* High pitched noise from laptop: processor.c in linux 2.6
@ 2004-10-07  9:30 Fraz
  2004-10-07 10:32 ` Pavel Machek
  2004-10-07 10:37 ` Christian Hesse
  0 siblings, 2 replies; 29+ messages in thread
From: Fraz @ 2004-10-07  9:30 UTC (permalink / raw)
  To: linux-kernel

I recently upgraded from linux 2.4.27 to 2.6.8.1 and noticed my laptop 
now makes a high pitch noise while idle. I traced it back to the 
processor module for acpi. 'rmmod processor' stops the noise. 

 

Using speed step to turn it down to 733 Mhz makes it a 
        little quieter and doesn't change the tone. 

 

Is there any way to stop this? I googled around and found it had 
something to do with idle frequency of 1000 Hz in 2.6 instead of 100Hz 
in the 2.4 kernel. I couldn't find much else on this. Hunting around the 
code didn't help much, I don't know C. 

 

The laptop is a Compaq Evo N160 from Dec 2001. The reference in google 
was to a Centrino laptop with the same problem. I wrote to Dominik 
Brodowski who suggested posting here.


fraz

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2004-10-22 11:41 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-18  3:51 High pitched noise from laptop: processor.c in linux 2.6 Yu, Luming
2004-10-18 11:41 ` Pavel Machek
2004-10-20 14:47   ` Måns Rullgård
2004-10-20 15:47     ` Pavel Machek
2004-10-20 16:37       ` Måns Rullgård
2004-10-20 16:49         ` Jan-Benedict Glaw
2004-10-20 16:53           ` Pavel Machek
2004-10-20 16:53         ` Lee Revell
2004-10-20 17:13           ` Måns Rullgård
2004-10-21 20:32             ` Lee Revell
2004-10-21 21:39               ` Jon Masters
2004-10-20 23:31   ` Giuseppe Bilotta
  -- strict thread matches above, loose matches on Subject: below --
2004-10-17  5:21 Albert Cahalan
2004-10-07  9:30 Fraz
2004-10-07 10:32 ` Pavel Machek
2004-10-07 10:53   ` Måns Rullgård
2004-10-07 14:32     ` Pavel Machek
2004-10-16 19:52       ` Lee Revell
2004-10-16 21:46         ` Alan Cox
2004-10-17  1:24           ` Lee Revell
2004-10-17  1:50             ` Kyle Moffett
2004-10-17  2:21             ` Alan Cox
2004-10-17  3:33               ` Lee Revell
2004-10-22 11:40               ` Alexandre Oliva
2004-10-16 19:59       ` Måns Rullgård
2004-10-16 20:42         ` Pavel Machek
2004-10-07 14:34     ` Pavel Machek
2004-10-17  0:45   ` Alex Riesen
2004-10-07 10:37 ` Christian Hesse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).