Public bug reported:
PROBLEM : beep doesn't work.
This is a standard desktop PC, with a little speaker connected to the
motherboard. It always used to beep in shell-scripts (and as an alarm
clock) until a few days ago when I upgraded from 25.04 to 26.04. I'm
using beep (/usr/bin/beep).
DEBUGGING:
beep says:
beep: Error: Could not open any device
The pscpkr module was already loaded.
lsmod | grep pcspkr
pcspkr 12288 0
Find the associated input device:
grep -i pcspkr /proc/bus/input/devices
S: Sysfs=/devices/platform/pcspkr/input/input9
Now look at the input device:
ls -l /dev/input/event9
crw-rw---- 1 root input 13, 73 Mar 13 02:32 /dev/input/event9
#I don't have permission and am not able to write to this.
#Try forcing it:
sudo chmod 666 /dev/input/event9
ls -l /dev/input/event9
crw-rw-rw- 1 root input 13, 73 Mar 13 02:32 /dev/input/event9
#Now it beeps.
beeps
COMPARISON:
Look at another machine, similar desktop PC, still on 25.04, which does
beep. (this time it's event7)
crw-rw----+ 1 root input 13, 71 Feb 25 12:32 /dev/input/event7
So, There's an ACL there that's not on the other one.
COMPARING ACLs:
#On the Ubuntu 26.04 machine, that doesn't beep.
[rjn@chocolate ~]$ getfacl /dev/input/event9
getfacl: Removing leading '/' from absolute path names
# file: dev/input/event9
# owner: root
# group: input
user::rw-
group::rw-
other::rw-
#On the Ubuntu 25.04 machine that does beep.
rjn@marmalade:~$ getfacl /dev/input/event7
getfacl: Removing leading '/' from absolute path names
# file: dev/input/event7
# owner: root
# group: input
user::rw-
user:rjn:rw- #<-- rjn here is me.
group::rw-
mask::rw-
other::---
I'm not sure why this is happening - presumably something to do with
systemd/logind not adding me to the ACL when I logged in. If it helps,
I'm running Ubuntu-Mate/x11.
I filed this bug on "beep" but I don't think "beep" is itself at fault.
It might be a udev-ism, or something deep in the internals of logind, or
the display-manager, or mate-session. Sorry, I'm a bit out of my depth
here; I can only point out the problem and give you a pair of test-cases
which show opposite behaviour. Please let me know what you would like me
to try to debug further.
Thanks!
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: beep 1.4.9-1.1ubuntu3
ProcVersionSignature: Ubuntu 6.19.0-9.9-generic 6.19.5
Uname: Linux 6.19.0-9-generic x86_64
ApportVersion: 2.33.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: MATE
Date: Tue Mar 17 23:29:38 2026
InstallationDate: Installed on 2024-04-29 (687 days ago)
InstallationMedia: Ubuntu-MATE 24.04 LTS "Noble Numbat" - Release amd64
(20240424)
SourcePackage: beep
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: beep (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144709
Title:
beep no longer works: wrong ACL permissions in 26.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/beep/+bug/2144709/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs