Disable startup/shutdown beeps

  • Hi,
    I found some earlier discussion about startup/shutdown beeps. Those did not help.


    I've tried blacklisting the pcspkr. It did not work and I would like to keep any other possible error sounds.


    I found these files in /lib/systemd/system#:


    openmediavault-beep-down.service


    [Unit]
    Description=Beep before system shutdown
    DefaultDependencies=no
    Before=exit.target


    [Service]
    Type=oneshot
    ExecStart=/usr/bin/beep -f 3000 -l 100 -r 2 -n -f 2000 -l 150


    [Install]
    WantedBy=reboot.target halt.target poweroff.target


    openmediavault-beep-up.service


    [Unit]
    Description=Beep after system start
    DefaultDependencies=no
    After=multi-user.target


    [Service]
    Type=oneshot
    ExecStart=/usr/bin/beep -f 3000 -l 100 -n -f 3500 -l 100 -r 2


    [Install]
    WantedBy=multi-user.target


    I backed up the files and removed the ExecStart line. Now the startup/shutdown beeps are gone.


    Is there any nicer way to do this, e.g. with an environment variable?


    My box is:
    Dell Poweredge T20 CPU E3-1225 v3


    openmediavault information
    Release: 3.0.59
    Codename: Erasmus


    Thanks

    • Offizieller Beitrag

    I would never edit a unit file. It is very easy to disable these


    systemctl stop openmediavault-beep-down
    systemctl disable openmediavault-beep-down


    systemctl stop openmediavault-beep-up
    systemctl disable openmediavault-beep-up

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Thanks,
    that was just a test, of course. I just could not find any docs/hints about this.


    It would be really nice to have some kind of setup that persists over updates.

    • Offizieller Beitrag

    I just could not find any docs/hints about this.

    OMV uses systemd. So, enabling/disabling things is done in the same way it is done with any systemd service.


    It would be really nice to have some kind of setup that persists over updates.

    What do you mean? If you aren't manually changing config files, setups do persist over updates.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    What happens in the next OMV update? Are the services still disabled?

    Yes, they are still disabled. OMV should only enable them on a new installation.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    it would still nice to have an option to disable beeps in e.g. Web Gui General Settings.

    While I actually like the beeps on my headless boxes, most of my machines don't beep. If you want the setting, file a request on http://bugtracker.openmediavault.org

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    My server does not beep even though the first machine that I used OMV on did. I don't really care, but do you have any idea why?

    The motherboard has to have a device that beeps on it. Not all motherboards do.

    omv 7.0-32 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.9 | compose 7.0.9 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • @tinh_x7


    That is not possible all the time.
    At my dell t20 the speaker / beeper (f****** little speaker) is soldered directly to the mainboard.


    One other solution to reduce the loudness is to add some electrical tape or "tesa".

    OMV 5.x always up to date.
    Modded dell t20 into 19" rack case with Pearl LCD Display (Status Display!)

    xeon e3-1225v3 / 32GB RAM / 1x500GB WD Blue SSD (OS) / 1x250 SSD (not used) / 1x1 TB Toshiba HHD (MultiDisk) / 4x 4TB WD40EFRX (Raid5)

  • Disabling services works great. Now it's much more convenient to play with box at late hours. The solution was a little hard to find, at least for me.


    I made a feature request: "Add a configuration feature to enable/disable startup/shutdown beeps."


    Unfortunately the answer was: "Can be done manually by disabling the associated systemd unit."

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!