TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: High-pitched noise when lots of colored text shows in terminal over SSH

1 pointsby svlalmost 12 years ago
So my Google-fu is completely failing me here.<p>I SSH into a server, where I run a grep --color=auto, matching about a third of its output (so nearly a third of the screen is showing colored text). Whenever the terminal showing this output is visible on screen, my monitor emits a barely audible high-pitched whine (which, as soon as I noticed it for the first time, became highly annoying). Alt-tab away, the sound stops immediately. Run a command showing non-colored text, the sound stops immediately. I can reproduce it with other commands showing colored output (cd &#x2F;; ls; ls; ls; ls, etc). I&#x27;m not hearing it if the amount of colored text on screen is low (cd &#x2F;; ls -al; ls -al). I&#x27;ve changed GREP_COLORS to show non-bold and non-red colors; doesn&#x27;t make any difference. This _doesn&#x27;t_ happen in a local terminal; only over SSH.<p>OS is Ubuntu 12.04 (both client and server), monitor is a Samsung Syncmaster 215TW.<p>I&#x27;d like to make the noise go away, without losing the benefit of colored output, but I&#x27;m utterly clueless on how to proceed from here, or even where the people who would be likely to be able to say intelligent things about this would hang out. I&#x27;m hoping someone here could give me a first pointer...

3 comments

mooism2almost 12 years ago
&gt; This _doesn&#x27;t_ happen in a local terminal; only over SSH.<p>That is odd.<p>Are the colours the same locally -v- over ssh? I don&#x27;t just mean &quot;is the text red?&quot; I mean: what are the RGB components of local red? Are they the same as the RGB components of red over ssh? (I don&#x27;t know of a better way of checking this than examining a screengrab with an image editor.) Similarly for other colours. We would expect local black to be the same as black over ssh, but local red to be different from red over ssh.<p>Do you get a whine when a local terminal shows coloured text, while in a different window you are sshed into a server without coloured text?
Throwadevalmost 12 years ago
First, find out the reasons a monitor would make a high pitched noise, then work backwards to find out why this happens in your colored output scenario.<p>I think it might have something to do with capacitors, I had problems with my video card or mobo making high pitched sounds and I think I remember reading that the capacitors were making the sound. It only happened when entered a game or app that made heavy use of 3d rendering.<p>So my guess is the app that outputs in color is making your monitor or video card enter a state that uses a lot of power, or otherwise for some reason causes the high pitched sound.<p>I could be totally wrong though.
mthomasalmost 12 years ago
<a href="http:&#x2F;&#x2F;www.silentpcreview.com&#x2F;stop_lcd_whine" rel="nofollow">http:&#x2F;&#x2F;www.silentpcreview.com&#x2F;stop_lcd_whine</a> What happens if you increase the brightness
评论 #5879634 未加载