-
Notifications
You must be signed in to change notification settings - Fork 48
Disable or Replace Startup Sounds
As of writing this Wiki entry roleoroleo has committed a change that'll disable sounds but has not yet implemented it into any new releases.
Please go to https://github.com/roleoroleo/sonoff-hack/tree/master/sdhack and download the latest boot.sh
, then replace the current one on the SD Card with that one to disable all sounds!
To enable Startup Sounds again open boot.sh
on the root of your SD Card and comment out or remove the following lines:
touch /tmp/di.wav
touch /tmp/Internet_connected_Welcome_to_use_cloud_camera.wav
touch /tmp/WiFi_connect_success.wav
mount --bind /tmp/di.wav /mnt/mtd/ipc/app/res/En/di.wav
mount --bind /tmp/Internet_connected_Welcome_to_use_cloud_camera.wav /mnt/mtd/ipc/app/res/En/Internet_connected_Welcome_to_use_cloud_camera.wav
mount --bind /tmp/WiFi_connect_success.wav /mnt/mtd/ipc/app/res/En/WiFi_connect_success.wav
Do the same as Enable Startup Sounds but remove the commented out lines. If you've deleted them simply copy and paste the above lines below the echo
command.
If you want to do something like this follow the steps below :)
This can lead to your camera not booting anymore! If anything goes wrong simply delete the .wav
files off the SD Card and it should boot again!
Also make sure that the WAV files you use aren't longer than the original ones! They are loaded into the very small RAM of the camera, too long/big files can lead to the camera crashing!
- Create a folder on the root of your SD Card, in my example it's called
audiostuff
- Use a program like Audacity to edit and cut the sound you want
- Convert the result on G711.org
- Copy those files according to the following naming scheme into the
audiostuff
folder:-
di.wav
- The first message you hear: "Please wait for Internet connecting..." -
Internet_connected_Welcome_to_use_cloud_camera.wav
- Camera says: "Internet connected, welcome to use Cloud Camera!" -
WiFi_connect_success.wav
- Most likely used during setup, not bootup. - If you want to replace any other sound check
/mnt/mtd/ipc/app/res/En
via FTP and download them to hear what each of them does
-
- Copy the following code and add it between the
echo
andsleep
command inboot.sh
(if you have the newer version ofboot.sh
paste it between the lasttouch
and firstmount
command):
# ---------- Custom Audio Segment ----------
# Mounts SD Card for a short while to copy audio files over, sleeps to give cam time to mount it fully (precaution, probably not really needed)
mkdir /tmp/sdcard_audio
mount /dev/mmcblk0p1 /tmp/sdcard_audio
sleep 2
# Copies over the audio files, then unmounts the card again
cp /tmp/sdcard_audio/audiostuff/di.wav /tmp/di.wav
cp /tmp/sdcard_audio/audiostuff/Internet_connected_Welcome_to_use_cloud_camera.wav /tmp/Internet_connected_Welcome_to_use_cloud_camera.wav
cp /tmp/sdcard_audio/audiostuff/WiFi_connect_success.wav /tmp/WiFi_connect_success.wav
umount /tmp/sdcard_audio
# ---------- Custom Audio Segment END ----------
- Put the SD Card back and boot your camera, you should now hear your own custom sounds :)