Home » Questions » Computers [ Ask a new question ]

To control decibels in speakers by Ubuntu

To control decibels in speakers by Ubuntu

I need to load the module pcspkr to Linux kernel often by sudo modprobe pcspkr. It sometimes happens that something goes totally wrong such that I cannot stand the amount of decibels in my speakers.

Asked by: Guest | Views: 97
Total answers/comments: 2
Guest [Entry]

"Use the xset tool to control the volume and pitch of the pc speaker. Quoting from the xset man page:

The b option controls bell volume,
pitch and duration. This option
accepts up to three numerical
parameters, a preceding dash(-), or a ’on/off’ flag. If no
parameters are given, or the ’on’ flag
is used, the system defaults will be used. If the dash or
’off’ are given, the bell will
turned off. If only one numerical parameter is given, the
bell volume will be set to that value,
as a percentage of its maximum. Likewise, the second
numerical parameter specifies the
pitch, in hertz, and the third numerical parameter
specifies the duration in
milliseconds. Note
that not all hardware can vary the bell characteristics.
The X server will set the
tics of the bell as closely as it can to the user’s

Thus, xset b 0 should completely mute the speaker and xset b 100 should set it to its maximum volume."
Guest [Entry]

Normally in Gnome you use the Volume Applet to adjust the volume. Right-click the top panel and click "Add to Panel...". Scroll down until you see "Volume Control" and press the Add button. Now there is a speaker in the top panel that can be used to control the volume and show the current volume.