<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Promised Lan &#187; dontneedosx</title>
	<atom:link href="http://www.thepromisedlan.org/archives/tag/dontneedosx/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thepromisedlan.org</link>
	<description>Metering Out Justice One Packet at a Time</description>
	<lastBuildDate>Mon, 11 Apr 2011 16:43:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Shut up your macbook</title>
		<link>http://www.thepromisedlan.org/archives/shut-up-your-macbook</link>
		<comments>http://www.thepromisedlan.org/archives/shut-up-your-macbook#comments</comments>
		<pubDate>Wed, 09 Sep 2009 22:54:12 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Freedom]]></category>
		<category><![CDATA[dontneedosx]]></category>
		<category><![CDATA[firmware]]></category>

		<guid isPermaLink="false">http://www.thepromisedlan.org/wordpress/?p=42</guid>
		<description><![CDATA[Annoyed by the !BONG! noise that macbooks make when you power them on? Apparently if you turn the volume down in Mac OS it saves a similar volume as an nvram setting in the EFI. So if you&#8217;re dual-booting or somesuch, you can just turn the volume down. But what about those of us who [...]]]></description>
			<content:encoded><![CDATA[<p>Annoyed by the !BONG! noise that macbooks make when you power them on?</p>
<p>Apparently if you turn the volume down in Mac OS it saves a similar volume as an nvram setting in the EFI. So if you&#8217;re dual-booting or somesuch, you can just turn the volume down.</p>
<p>But what about those of us who wiped out the legacy OS in the first few minutes of owning the thing and never looked back?<br />
Well only a few years later <img src='http://www.thepromisedlan.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  with the help of the <a href="http://sourceforge.net/mailarchive/message.php?msg_name=jwvljles9s0.fsf-monnier%2Bgmane.linux.ports.mactel.user%40gnu.org">mactel-linux-user list</a> I can now turn off that blasted noise.</p>
<div class="wp-caption alignleft" style="width: 650px"><a href="http://thepromisedlan.org/gallery2/v/geeks/Image258.jpg.html"><img title="gnubook2,1" src="http://thepromisedlan.org/gallery2/d/3002-3/Image258.jpg" alt="With new improved silence!" width="640" height="480" /></a><p class="wp-caption-text">With new improved silence!</p></div>
<p>It goes like this:<br />
#Boot EFI shell (from rEFIt, I don&#8217;t have rEFIt installed so i used a CD)<br />
#spend 30 minutes finding the paginate switch for help <img src='http://www.thepromisedlan.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Shell&gt;help -b</p>
<p>#cd to a writable partition (fs0 was the rEFIt CD, so fs1 was the 100MB fat/efi partition)<br />
Shell&gt;fs1:<br />
fs1:\&gt;</p>
<p>#dump the nvram variable<br />
fs1:\&gt;dmpstore SystemAudioVolume -s sav.txt</p>
<p>#edit the the dumped variable with a hexeditor (probably wiser to keep<br />
the original dump and edit a copy)<br />
fs1:\&gt;hexedit sav.txt</p>
<p>#load the new nvram variable<br />
fs1:\&gt;dmpstore SystemAudioVolume -l sav.txt</p>
<p>#exit to refit and reboot<br />
fs1:\&gt;exit</p>
<p>Enjoy the BONGless restart.</p>
<p>So for a while it wasn&#8217;t apparent what value to change with the<br />
hexeditor, and tbh, not being familiar with any hexeditor, I&#8217;m not sure<br />
I got it right. Further experimentation indicates I may have just borked<br />
it, but apparently that also serves to make it shut up.</p>
<p>The dmpstore&#8217;d files (now back in Debian) look like this:</p>
<p>$ cat SystemAudioVolume.txt<br />
$SystemAudioVolume(and some illegible characters with no new line)</p>
<pre>$ hexdump -C SystemAudioVolume.txt
00000000  24 00 00 00 53 00 79 00  73 00 74 00 65 00 6d 00  |$...S.y.s.t.e.m.|
00000010  41 00 75 00 64 00 69 00  6f 00 56 00 6f 00 6c 00  |A.u.d.i.o.V.o.l.|
00000020  75 00 6d 00 65 00 00 00  10 61 43 7c 2a ab bb 4b  |u.m.e....aC|*..K|
00000030  a8 80 fe 41 99 5c 9f 82  07 00 00 00 01 00 00 00  |...A.\..........|
00000040  71                                                |q|
00000041</pre>
<p>(In hexedit.efi the 00000041 line did not appear.)</p>
<p>Since running dmpstore SystemAudioValume by itself returned output<br />
something like:<br />
00000: 71 &#8220;q&#8221;<br />
I took a guess and replaced the 71 with 80 (as suggested on the mailing list.) getting:</p>
<pre>$ hexdump -C SystemAudioVolume80.txt
00000000  24 00 00 00 53 00 79 00  73 00 74 00 65 00 6d 00  |$...S.y.s.t.e.m.|
00000010  41 00 75 00 64 00 69 00  6f 00 56 00 6f 00 6c 00  |A.u.d.i.o.V.o.l.|
00000020  75 00 6d 00 65 00 00 00  10 61 43 7c 2a ab bb 4b  |u.m.e....aC|*..K|
00000030  a8 80 fe 41 99 5c 9f 82  07 00 00 00 01 00 00 00  |...A.\..........|
00000040  80                                                |.|
00000041</pre>
<p>Which turned off the bong and I&#8217;m happy. But for kicks I also tried 32<br />
(for 25% more BONG)</p>
<pre>$ hexdump -C sav.txt
00000000  24 00 00 00 53 00 79 00  73 00 74 00 65 00 6d 00  |$...S.y.s.t.e.m.|
00000010  41 00 75 00 64 00 69 00  6f 00 56 00 6f 00 6c 00  |A.u.d.i.o.V.o.l.|
00000020  75 00 6d 00 65 00 00 00  10 61 43 7c 2a ab bb 4b  |u.m.e....aC|*..K|
00000030  a8 80 fe 41 99 5c 9f 82  07 00 00 00 01 00 00 00  |...A.\..........|
00000040  32                                                |2|
00000041</pre>
<p>But that also gave me silence, so I think I&#8217;m doing it &#8216;wrong.&#8217;<br />
However reloading the original (71) file did bring back the bonging. So<br />
I don&#8217;t think any of this is particularly dangerous for those who may<br />
want to here the noise again someday. <img src='http://www.thepromisedlan.org/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thepromisedlan.org/archives/shut-up-your-macbook/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

