<em><a href="Non-Sumou.html">Other Nokia N900 tips</a></em></p>
When using <a href="http://www.gnu.org/software/emms/">EMMS</a> to play music in <a href="http://www.gnu.org/software/emacs/">GNU Emacs</a> on the Nokia N900 via the FM transmitter, the transmitter will let out a periodic beep every couple of seconds.</p>
This is done when the transmitter is transmitting and not playing music, as a reminder that the transmitter is on. The FM transmitter does this even when GNU Emacs is playing music as apparently the N900 is not aware of the music stream.</p>
To disable this annoying beep:</p> <ul> <li>On the N900: <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b># echo "echo 0 > /sys/bus/i2c/devices/2-0063/tone_deviation" > /usr/local/bin/n900-fm-transmitter-beep-disable.sh<br /> # echo "echo 0 > /sys/bus/i2c/devices/2-0063/tone_frequency" >> /usr/local/bin/n900-fm-transmitter-beep-disable.sh<br /> # echo "echo 0 > /sys/bus/i2c/devices/2-0063/tone_off_time" >> /usr/local/bin/n900-fm-transmitter-beep-disable.sh<br /> # echo "echo 0 > /sys/bus/i2c/devices/2-0063/tone_on_time" >> /usr/local/bin/n900-fm-transmitter-beep-disable.sh<br /> # echo "echo 120 > /sys/class/i2c-adapter/i2c-2/2-0063/power_level" >> /usr/local/bin/n900-fm-transmitter-beep-disable.sh<br /> # chmod 755 /usr/local/bin/n900-fm-transmitter-beep-disable.sh</b></td></tr></table></li> </ul>
<em>note: the 120 line increases FM transmitter output, this is especially useful when plugging a USB charger in, since the N900 will by default decrease the output power, i.e. volume, increasing the static.</em></p> <ul> <li>On the N900: <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b># echo "user ALL = NOPASSWD: /usr/local/bin/n900-fm-transmitter-beep-disable.sh" > /etc/sudoers.d/n900-fm-transmitter-beep-disable</b></td></tr></table></li> <li>On the N900, add the following code to <strong>~/.emacs</strong> <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>(defun jj/n900-fm-transmitter-beep-disable ()<br /> <blockquote> <p class="quoted">(interactive)<br /> (shell-command "sudo /usr/local/bin/n900-fm-transmitter-beep-disable.sh"))</b></td></tr></table></p> </blockquote></li> </ul>
When you want to disable the beep: <table bgcolor="#000000" border="1"><tr><td border="0"><font color="#FFFF00"><b>M-x jj/n900-fm-transmitter-beep-disable</b></td></tr></table> <!— Page published by Emacs Muse ends here —> </div> <i>To send me feedback about this page, use the below email.</i><br /> <b>© sumoudou.org 2010</b><br /> <img style="border:0" alt="sumoudou.org" src="email.gif" width="129" height="10" /><br /> <a href="http://www.gnu.org/" style="text-decoration: none;"><img style="border:0" alt="GNU" src="powered-by-gnu.png" />]] <a href="http://www.gnu.org/software/emacs/emacs.html" style="text-decoration: none;"><img style="border:0" alt="GNU Emacs" src="made-with-emacs.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hcoop-proud-member.png" />]] <a href="http://hcoop.net/" style="text-decoration: none;"><img style="border:0" alt="HCoop" src="hosted-by-hcoop.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="made-with-muse.png" />]] <a href="http://mwolson.org/projects/EmacsMuse.html" style="text-decoration: none;"><img style="border:0" alt="Emacs Muse" src="powered-by-muse.png" />]] <br /> <a href="http://www.fsf.org/resources/formats/playogg" style="text-decoration: none;"><img style="border:0" alt="Ogg" src="play-ogg.png" />]] <a href="http://www.catb.org/hacker-emblem/" style="text-decoration: none;"><img style="border:0" alt="Glider" src="glider.png" />]] <a href="http://ubuntu.com/" style="text-decoration: none;"><img style="border:0" alt="Ubuntu" src="ubuntu.png" />]] <a href="http://validator.w3.org/check?uri=referer" style="text-decoration: none;"><img style="border:0" alt="Valid XHTML 1.0 Strict!" src="valid-xhtml10-blue.png" />]] <a href="http://jigsaw.w3.org/css-validator/check/referer" style="text-decoration: none;"><img style="border:0" alt="Valid CSS!" src="valid-css-blue.png" />]] <br />Last updated 2010-03-21-162111
</div> <br />. </body> </html>