2015-04-13 20:20:11 +01:00
|
|
|
---
|
|
|
|
created: 2009-12-10 19:17:02 +0100
|
2022-01-23 17:14:59 +00:00
|
|
|
layout: redirect
|
|
|
|
layout_old: default
|
|
|
|
redirect_to: https://blog.mbirth.de/archives/2009/12/10/pc-speaker-in-linux.html
|
2015-04-13 20:20:11 +01:00
|
|
|
tags:
|
2022-01-23 17:14:59 +00:00
|
|
|
- know-how
|
|
|
|
- software
|
|
|
|
- linux
|
|
|
|
- sound
|
|
|
|
title: PC Speaker in Linux
|
|
|
|
toc: false
|
|
|
|
updated: 2009-12-10 19:17:02 +0100
|
2015-04-13 20:20:11 +01:00
|
|
|
---
|
2022-01-23 17:14:59 +00:00
|
|
|
|
2015-04-13 20:20:11 +01:00
|
|
|
Enable in Ubuntu
|
|
|
|
================
|
|
|
|
|
|
|
|
If you want some scripts to emit beeps, e.g. because you don't always have your headphones on, you first have to enable
|
|
|
|
the `pcspkr` module. This is per default disabled in Ubuntu. To enable it again, do the following:
|
|
|
|
|
|
|
|
1. open `/etc/modprobe.d/blacklist.conf` in your favorite editor (using `sudo`)
|
|
|
|
1. find these lines:
|
|
|
|
|
|
|
|
# ugly and loud noise, getting on everyone's nerves; this should be done by a
|
|
|
|
# nice pulseaudio bing (Ubuntu: #77010)
|
|
|
|
blacklist pcspkr
|
|
|
|
1. comment out the last line
|
|
|
|
1. finally, do a `sudo modprobe pcspkr`
|
|
|
|
|
2022-01-23 17:14:59 +00:00
|
|
|
After that, you can play around with the [beep](apt://beep) program.
|