Bug#1019510: systemd-sysv: annoying beep during shutdown or reboot
Christian Danneberg
christiandanneberg at gmx.net
Sun Sep 11 19:15:49 BST 2022
Hi Michael,
blacklisting pcspkr is not an option because this module isn't loaded.
Is there a way to configure my system so that no wall message is send
for shutdown or reboot?
Christian
Here ist the output of:
$ lsmod
Module Size Used by
cmac 16384 3
algif_hash 16384 1
algif_skcipher 16384 1
af_alg 36864 6 algif_hash,algif_skcipher
bnep 28672 2
cpufreq_ondemand 20480 4
cpufreq_powersave 20480 0
cpufreq_userspace 20480 0
cpufreq_conservative 16384 0
btusb 65536 0
btrtl 28672 1 btusb
intel_rapl_msr 20480 0
btbcm 24576 1 btusb
intel_rapl_common 28672 1 intel_rapl_msr
btintel 45056 1 btusb
btmtk 16384 1 btusb
bluetooth 888832 29 btrtl,btmtk,btintel,btbcm,bnep,btusb
x86_pkg_temp_thermal 20480 0
intel_powerclamp 20480 0
coretemp 20480 0
qrtr 49152 4
kvm_intel 372736 0
jitterentropy_rng 16384 1
kvm 1081344 1 kvm_intel
sha512_ssse3 49152 1
irqbypass 16384 1 kvm
sha512_generic 16384 1 sha512_ssse3
snd_hda_codec_hdmi 81920 1
mei_wdt 16384 0
ghash_clmulni_intel 16384 0
sunrpc 659456 1
mei_hdcp 24576 0
dell_laptop 32768 0
ctr 16384 0
snd_hda_codec_idt 69632 1
aesni_intel 380928 4
drbg 40960 1
snd_hda_codec_generic 98304 1 snd_hda_codec_idt
crypto_simd 16384 1 aesni_intel
cryptd 28672 3 crypto_simd,ghash_clmulni_intel
ledtrig_audio 16384 2 snd_hda_codec_generic,dell_laptop
dell_smm_hwmon 20480 0
ansi_cprng 16384 0
snd_hda_intel 57344 3
iTCO_wdt 16384 0
snd_intel_dspcfg 32768 1 snd_hda_intel
rapl 20480 0
snd_intel_sdw_acpi 20480 1 snd_intel_dspcfg
uinput 20480 1
intel_pmc_bxt 16384 1 iTCO_wdt
dell_wmi 20480 0
snd_hda_codec 176128 4
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_idt
joydev 28672 0
intel_cstate 20480 0
ecdh_generic 16384 2 bluetooth
ecc 40960 1 ecdh_generic
iTCO_vendor_support 16384 1 iTCO_wdt
intel_uncore 208896 0
serio_raw 20480 0
at24 28672 0
sparse_keymap 16384 1 dell_wmi
wmi_bmof 16384 0
watchdog 32768 2 iTCO_wdt,mei_wdt
snd_hda_core 110592 5
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_idt
wl 6471680 0
snd_hwdep 16384 1 snd_hda_codec
snd_pcm 155648 4
snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer 45056 1 snd_pcm
cfg80211 1064960 1 wl
evdev 28672 32
dell_smo8800 20480 0
snd 118784 14
snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm,snd_hda_codec_idt
mei_me 45056 2
dell_rbtn 20480 1
ac 20480 0
mei 155648 5 mei_wdt,mei_hdcp,mei_me
soundcore 16384 1 snd
rfkill 32768 9 bluetooth,dell_laptop,dell_rbtn,cfg80211
sg 40960 0
binfmt_misc 24576 1
dell_smbios 32768 2 dell_wmi,dell_laptop
dcdbas 20480 1 dell_smbios
dell_wmi_descriptor 20480 2 dell_wmi,dell_smbios
msr 16384 0
parport_pc 40960 0
ppdev 24576 0
lp 20480 0
parport 73728 3 parport_pc,lp,ppdev
fuse 172032 5
configfs 57344 1
ip_tables 36864 0
x_tables 57344 1 ip_tables
autofs4 53248 2
ext4 954368 1
crc16 16384 2 bluetooth,ext4
mbcache 16384 1 ext4
jbd2 163840 1 ext4
crc32c_generic 16384 0
sd_mod 61440 3
t10_pi 16384 1 sd_mod
hid_generic 16384 0
crc64_rocksoft 20480 1 t10_pi
crc64 20480 1 crc64_rocksoft
crc_t10dif 20480 1 t10_pi
crct10dif_generic 16384 0
usbhid 65536 0
hid 155648 2 usbhid,hid_generic
i915 3207168 45
ahci 49152 2
libahci 49152 1 ahci
drm_buddy 20480 1 i915
libata 385024 2 libahci,ahci
i2c_algo_bit 16384 1 i915
drm_dp_helper 159744 1 i915
sdhci_pci 77824 0
cec 61440 2 drm_dp_helper,i915
e1000e 315392 0
rc_core 65536 1 cec
xhci_pci 20480 0
scsi_mod 270336 3 sd_mod,libata,sg
cqhci 32768 1 sdhci_pci
ttm 86016 1 i915
xhci_hcd 315392 1 xhci_pci
ptp 32768 1 e1000e
drm_kms_helper 196608 2 drm_dp_helper,i915
i2c_i801 36864 0
sdhci 81920 1 sdhci_pci
ehci_pci 20480 0
crct10dif_pclmul 16384 1
crct10dif_common 16384 3
crct10dif_generic,crc_t10dif,crct10dif_pclmul
drm 622592 13
drm_dp_helper,drm_kms_helper,drm_buddy,i915,ttm
crc32_pclmul 16384 0
crc32c_intel 24576 2
ehci_hcd 98304 1 ehci_pci
psmouse 184320 0
lpc_ich 28672 0
usbcore 331776 6
xhci_hcd,ehci_pci,usbhid,ehci_hcd,btusb,xhci_pci
mmc_core 200704 3 sdhci,cqhci,sdhci_pci
scsi_common 16384 3 scsi_mod,libata,sg
i2c_smbus 20480 1 i2c_i801
pps_core 24576 1 ptp
usb_common 16384 3 xhci_hcd,usbcore,ehci_hcd
wmi 36864 4
dell_wmi,wmi_bmof,dell_smbios,dell_wmi_descriptor
battery 28672 0
video 57344 3 dell_wmi,dell_laptop,i915
button 24576 0
Am 11.09.22 um 13:17 schrieb Michael Biebl:
> [please CC the bug report on replies]
>
>
> Am 11.09.2022 um 12:29 schrieb Christian Danneberg:
>> Hi Michael,
>> seems to work!!! This solved the issue. Thanks! Any explanations how
>> this happens?
>
> As mentioned in my previous mail, systemd now defaults to sending a
> wall message (on shutdown/reboot/...) if there are locally logged in
> users.
>
> It appears, this wall message triggers the beep on your system (you
> can verify that by running the wall command)
>
> https://lists.debian.org/debian-user/2011/12/msg00323.html
>
> I'd try blacklisting the pcspkr module:
>
> echo "blacklist pcspkr" >> /etc/modprobe.d/blacklist.conf
>
>
>
>> Christian
>>
>> Am 10.09.22 um 23:27 schrieb Michael Biebl:
>>> Control: tags -1 + moreinfo
>>>
>>> Am 10.09.2022 um 21:57 schrieb Christian Danneberg:
>>>> on every reboot or shutdown my Laptop beeps very loud (Dell E6230).
>>>> This
>>>> behaviour came up after the installation of Bookworm.
>>>> I tried all stuff I found. Blacklisting of pcspkr kernel module, on
>>>> my system I
>>>> can't find a module like pcspkr or similar. Tried to find the hex
>>>> code 0x07
>>>> in the binary of /sbin/shutdown. As suggested in forum.debian.de.
>>>>
>>>> All that had no effect.
>>>
>>> Do you get a beep if you run
>>> systemctl reboot --no-wall ?
>>>
>>> It's possibly related to
>>> https://github.com/systemd/systemd/commit/cdf370626f08ed509a5dde9d5618eed29d625032
>>>
>>>
>>> In that case, wall messages do trigger a beep on your system.
>>> If you don't want that, you can blacklist pcspkr.
>>
>
More information about the Pkg-systemd-maintainers
mailing list