Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
No Beep on Startup and Shutdown
« previous
next »
Print
Pages: [
1
]
Author
Topic: No Beep on Startup and Shutdown (Read 760 times)
pholt
Newbie
Posts: 13
Karma: 1
No Beep on Startup and Shutdown
«
on:
June 26, 2024, 08:31:34 pm »
I have two identical OPNsense machines at two different locations. Sound is enabled in the BIOS of both machines and the beep is enabled in both OPNsense configurations. One plays the beep on startup and shutdown. The other one doesn't. I cannot figure out why. I have confirmed that the speaker works in both machines, but just in case, I replaced the one in the silent machine. Same thing. Maybe some other failure on the mainboard is probably the issue.
It's not the end of the world if it doesn't work on one of the machines, but I'm curious.
«
Last Edit: June 26, 2024, 09:34:38 pm by pholt
»
Logged
farmerjeb
Newbie
Posts: 1
Karma: 0
Re: No Beep on Startup and Shutdown
«
Reply #1 on:
August 12, 2024, 11:02:27 pm »
I'm not sure what hardware brand or version of OPNSense you're running, but this also happened to me. I was just tinkering with it today. I have a Lenovo M720q Tiny as well as a M715q Tiny. The beep can be heard on the M715q but not on the M720q. At first I thought it was the internal speaker but I swapped speakers and it was same result, so bad speaker was ruled-out. I checked BIOS next. Speaker was enabled. But then I hit a key by accident and the BIOS beeped its disapproval at me, so it wasn't the mobo or speaker.
Next I went into the console of OPNSense in search of the script that plays the little tones during start and shutdown. I'm running version 24.1. Interestingly I found two beep commands, one located in /usr/local/bin and the other under /usr/bin. The beep script can be located here: /usr/local/sbin/opnsense-beep. cat this file reveals that it calls /usr/local/bin/beep and not /usr/bin/beep. The one under /usr/bin/ has more switches than the other. One of them is -g. This switch controls the audio gain and takes a number from 50 to 100 with default of 75. The beep that opnsense-beep script calls does not have this switch. Still in the shell, I issued a test:
$ /usr/bin/beep -F440 -D100
Didn't hear any tone, so I added -g100:
$ /usr/bin/beep -F440 -D100 -g100
This time success, although a bit loud. Now, for me I decided to change the opnsense-beep script knowing that as soon as an update is installed it will get reverted to the distributed beep package that is part of OPNsense. The other thing to "note" was that these two beep commands have incompatible delay values. So I had to also adjust those values in the /usr/local/etc/opnsense-beep.d/start and /usr/local/etc/opnsense-beep.d/stop files. These files, along with two others, simply contain lines that correspond to the frequency and duration of each tone and are used as inputs to the /usr/local/sbin/opnsense-beep script. I just changed the duration to be compatible with what /usr/bin/beep requires.
Now I can hear those sweet jingles again!
What would be even better is if the official packaged beep command also had an option to control gain!
Logged
pholt
Newbie
Posts: 13
Karma: 1
Re: No Beep on Startup and Shutdown
«
Reply #2 on:
August 21, 2024, 07:55:09 pm »
I followed your steps, and no result. Interestingly, I swapped out the old OPNsense machine for a new one--moved disk/memory/network card over--and tried again. Still no sound.
I'm stumped.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
No Beep on Startup and Shutdown