From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Casadonte Newsgroups: gmane.emacs.help Subject: Re: No sound with Emacs 23.1.1 on Ubuntu 9.10 Date: Mon, 18 Jan 2010 05:47:35 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <52d2aa65-9365-4b84-a651-23027d482f8e@21g2000vbh.googlegroups.com> <97mdnTbYRIuvC6PWnZ2dnUVZ_tNi4p2d@sysmatrix.net> <3690201d-0aa7-4d44-80e9-bbb7916bf6d7@h10g2000vbm.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1263825682 12663 80.91.229.12 (18 Jan 2010 14:41:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2010 14:41:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 18 15:41:15 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NWsn4-0005TP-Bo for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jan 2010 15:41:14 +0100 Original-Received: from localhost ([127.0.0.1]:58047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWsn4-0001l4-Ts for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jan 2010 09:41:14 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!19g2000vbq.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 72.78.240.9 Original-X-Trace: posting.google.com 1263822455 5747 127.0.0.1 (18 Jan 2010 13:47:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 18 Jan 2010 13:47:35 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 19g2000vbq.googlegroups.com; posting-host=72.78.240.9; posting-account=9sMYUAgAAAD1Zd9SdshhWwBTkZ4NGVXa User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:176226 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71297 Archived-At: Evidently in 9.10 the PC speaker is disabled by default: https://bugs.launchpad.net/ubuntu/karmic/+source/linux/+bug/77010 Why they "solved" this issue by disabling the speaker is beyond me; like many others, I feel the real solution is to let Gnome deal with the sound. That would be a way better default behavior, IMHO. So, to get the behavior I desired (turn on the beep but replace it with a gentler sound) I did the following: Edit the /etc/pulse/default.pa file and add the following lines at the bottom of the file: load-sample drip-ogg /usr/share/sounds/gnome/default/alerts/ drip.ogg load-module module-x11-bell sample=drip-ogg Then add the following lines to my ~/.bashrc file: xset b on pactl load-module module-x11-bell sample=drip-ogg >/dev/null The result is a pleasing system alert sound that's available pre- login, and the same pleasing system sound available post-login, but only after I've brought up a terminal window (which I nearly always do first thing anyway). The "xset b on" turns the alert sound back on, and the "pactl" line replaces it with a more pleasing sound. I haven't yet figured out how to do the "xset" bit globally (putting it in /etc/X11/xinit/xinitrc didn't work for me), nor have I figured out a way to do without it (simply commenting out the "pcspkr" line in /etc/modprobe.d/ blacklist.conf didn't do it). Occasionally I get both the system beep and my more pleasing sound both happening at once; when it does happen, simply re-running the "pactl" line fixes the issue (which I can do by opening up another terminal window). It's not an ideal solution, but it works well enough for me. I hope this helps someone else!