No terminal beep in a new debian xfce installation
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
No terminal beep in a new debian xfce installation
I have recently installed debian stable with xfce, and I get no beep in any terminal after echo $'\a'. alsamixer says shows that all kinds of sound are on, aplay plays wav files.
Code:
lsmod |grep pcspkr
says pcspkr is loaded
Code:
xset -q
says the bell is on
Code:
~/.config/Terminal/terminalrc
contains the line
Code:
MiscBell=TRUE
but I hear no bell in the standard xfce terminal, in xterm and in the "pure text" mode (after ctrl-alt-f1)
Do you have usblp loaded? I've seen people report that (for some reason) gets the beep too. Also, do you have snd-hda-intel loaded? On my computer, unloading the pcspkr module doesn't actually do anything. Only loading the snd-hda-intel module gets me the beep.
n my Oneiric system I had to do the following to get XBell/XkbBell working again:
Load the module pcspkr (like you already did via /etc/modprobe.d/blacklist.conf)
Remove the package pulseaudio-module-x11 (that seems to absorb all XBell events)
Put options snd-hda-intel beep_mode=2 into /etc/modprobe.d/enable-beep.conf (you only need that case you own a system with an intel sound chip like my Latitude E6420). Unmute the speaker in alsamixer after that.
Some terminals (like konsole, see bug Bug 177861) ignore the bell character. A good way to test the system beep is with the xkbbell command.
After I did all that the java call Toolkit.getDefaultToolkit().beep() works just fine.
pcspkr was not blacklisted in /etc/modprobe.d/blacklist.conf .
package pulseaudio-module-x11 was not installed
after I have added the option beep_mode=2, snd_hda_intel refused to load, it said that it does not know this option.
I don't use konsole, but xkbbell produces no sound in xterm and xfce terminal.
Then it's enabled. If the snd-hda-intel module does not have that option, then the module you are using is outdated. This is to be expected with the 2.6.32 series kernel Debian stable uses.
I don't have the file named config.gz in /proc/ .
And my module snd-hda-intel indeed has version 2.6.32-something, not 3.4.9-1-ARCH like yours. How do I update it? Some googling suggests me that it is in the package linux-image, but aptitude only suggests version 2.6.32-something, and says that it is already installed.
Mine is 3.9.4-1-ARCH because a) I use Arch Linux and b) because Arch is a rolling release. This means that there are no definitive versions of the distro. All packages get updated when a new version comes out.
You are using an old kernel.
Quote:
If the snd-hda-intel module does not have that option, then the module you are using is outdated. This is to be expected with the 2.6.32 series kernel Debian stable uses.
The 2.6.32 series is really outdated. You should consider upgrading to Wheezy if you want the newer packages. Or use some other new distro like Ubuntu 12.04 or Fedora 17.
OK, then I ask all the forum participants again: how can I make the beep work if I stay in debian squeeze? I would like to do this because:
1. I have some experience in using debian as normal user (not as root), and
2. The computer I am speaking about is not very fast, so I am not sure that wheezy (which is also declared as less stable) will not be too slow.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679
Rep:
Just to let you know I have no system beep in the terminal using XFCE on Sid. That's on two separate systems a netbook and a desktop (both kernel's labelled 3.2.0-3 but 686 and AMD64 respectively). I've not carried out any troubleshooting though as I don't miss it -- personally I tend to blame Pulse Audio for this kind of thing until proven otherwise.
All of my PulseAudio and ALSA configuration is default (except a sample rate change from S16_LE to s32_LE in PulseAudio, but it worked before that change).
/etc/asound.conf
Code:
defaults.pcm.card 0
defaults.pcm.device 0
defaults.ctl.card 0
# Use PulseAudio by default
pcm.!default {
type pulse
fallback "sysdefault"
hint {
show on
description "Default ALSA Output (currently PulseAudio Sound Server)"
}
}
ctl.!default {
type pulse
fallback "sysdefault"
}
The lines I changed in /etc/pulse/daemon.conf
Code:
default-sample-rate = 192000
default-sample-format = s32le
flat-volumes = no
/etc/pulse/default.pa
Code:
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)
.nofail
### Load something into the sample cache
#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
#load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-access /usr/share/sounds/generic.wav
.fail
### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties
### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink
### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev/hal support)
load-module module-detect
.endif
### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect
.fail
.endif
### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif
### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish
### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv
### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor
### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif
### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore
### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams
### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink
### Honour intended role device property
load-module module-intended-roles
### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle
### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
.nofail
load-module module-console-kit
.fail
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif
### Enable positioned event sounds
load-module module-position-event-sounds
### Cork music/video streams when a phone stream is active
load-module module-role-cork
### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply
### Load DBus protocol
.ifexists module-dbus-protocol.so
load-module module-dbus-protocol
.endif
# X11 modules should not be started from default.pa so that one daemon
# can be shared by multiple sessions.
### Load X11 bell module
#load-module module-x11-bell sample=bell-windowing-system
### Register ourselves in the X11 session manager
#load-module module-x11-xsmp
### Publish connection data in the X11 root window
#.ifexists module-x11-publish.so
#.nofail
#load-module module-x11-publish
#.fail
#.endif
load-module module-switch-on-port-available
### Make some devices default
#set-default-sink output
#set-default-source input
Alex Brinister
Last edited by abrinister; 08-20-2012 at 09:26 AM.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,679
Rep:
Alsamixer is practically empty on both my systems -- only containing one output control.
Both systems are as installed the only changes being enabling SPDIF out on the PC.
I think it's safe to say that for one reason or another I've never had everything working "properly" under Pulse Audio since it came with Ubuntu years ago.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.