蜂鸣程序无法打开任何设备

蜂鸣程序无法打开任何设备

我正在运行 Debian Stable Linux,它运行良好。我已经使用beep命令安装了软件包apt install beep。没有错误。但是,命令beep不起作用。以下是错误:

$ beep
beep: Error: Could not open any device


$ BEEP_LOG_LEVEL=999 beep
beep-log: Verbose: log_constructor
beep-log: Verbose: beep_driver_console_constructor
beep-log: Verbose: beep_drivers_register 0x564bb79ad6a0 (console)
beep-log: Verbose: beep_driver_evdev_constructor
beep-log: Verbose: beep_drivers_register 0x564bb79ad700 (evdev)
beep: Verbose: evdev driver_detect 0x564bb79ad700 (nil)
beep: Verbose: b-lib: could not stat(2) /dev/input/by-path/platform-pcspkr-event-spkr: No such file or directory
beep: Verbose: console driver_detect 0x564bb79ad6a0 (nil)
beep: Verbose: b-lib: could not open(2) /dev/tty0: Permission denied
beep: Verbose: b-lib: could not stat(2) /dev/vc/0: No such file or directory
beep: Error: Could not open any device

网上有很多页面讨论这个问题,尽管大多数都是针对 Ubuntu 的。然而,他们的解决方案(包括)sudo modprobe pcspkrsudo usermod -aG input iuser没有纠正错误。

问题出在哪里?如何解决?

相关内容