yi-hack-v5 icon indicating copy to clipboard operation
yi-hack-v5 copied to clipboard

Disable alarm sound

Open danielhainich opened this issue 2 years ago • 19 comments

Describe the bug After Update to 0.4.0, all my cams Are playing an alarm Sound. I cant find anything to disable this behaviour.

Expected behaviour Disable sound

Set Up Details (please complete the following information):

  • Firmware Version: 0.4.0 and also 0.4.1.a
  • Device: yi_outdoor
  • Model: 4CUS

danielhainich avatar Sep 30 '23 12:09 danielhainich

@danielhainich what is different :)

Also, try 0.4.1a instead

alienatedsec avatar Sep 30 '23 12:09 alienatedsec

it seems that the alarm sound will be triggered by motion detection. alarm is only triggered when someone is in range of cameraview.

danielhainich avatar Sep 30 '23 15:09 danielhainich

I have this behavior too, but only if "record to cloud" is disabled. Would be great to be able to disable this sound on motion detection if cloud is disabled. I'm in 0.4.1a

Minims avatar Sep 30 '23 19:09 Minims

This issue has been stale for 30 days - it will be closed within the next 7 days if not updated

github-actions[bot] avatar Oct 31 '23 06:10 github-actions[bot]

bug isnt resolved yet

danielhainich avatar Oct 31 '23 18:10 danielhainich

checked in 0.4.1b, I confirmed it's still present. Tested on Yi Outdoor

Minims avatar Nov 03 '23 16:11 Minims

I don’t have the issue on yi home 720p might be related to yi outdoor only

Minims avatar Nov 03 '23 17:11 Minims

how can I read logs on the camera when motion is detected to check why alarm sound is on ?

Minims avatar Nov 30 '23 13:11 Minims

@Minims you would need to run services like ipc_cmd from the console https://github.com/alienatedsec/yi-hack-v5/blob/38c0cf6b28b7101e19a0f5677f7b297f1d40d0b4/src/ipc_cmd/ipc_cmd/ipc_cmd.h#L36

alienatedsec avatar Nov 30 '23 21:11 alienatedsec

I just need to launch this command to get logs or check if I get the ALARM Sound ?

ipc_cmd IPC_MOTION_START

Minims avatar Dec 04 '23 19:12 Minims

This issue has been stale for 30 days - it will be closed within the next 7 days if not updated

github-actions[bot] avatar Jan 04 '24 06:01 github-actions[bot]

Issue still present

Minims avatar Jan 04 '24 08:01 Minims

It seems that this command make a difference:

ipc_cmd -o on 

It was on or off i don’t remember, i have tested both. But on restart it still working for now and motion detection is working without sound and cloud.

@danielhainich can you give it a try ?

Minims avatar Jan 25 '24 18:01 Minims

Hum it does not work. The sound alarm only appears after a motion start only if there were no motion for many minutes.

Minims avatar Jan 26 '24 18:01 Minims

Upgraded to 0.4.1e and i still the issue when I Disable Cloud

Minims avatar Feb 08 '24 12:02 Minims

Hum seems related to this function in app « Camera Alarm »

It was ON, i set to OFF, disabled Cloud, reboot. Seems better, will check tomorrow.

IMG_1009

Minims avatar Feb 08 '24 22:02 Minims

Hum seems related to this function in app « Camera Alarm »

It was ON, i set to OFF, disabled Cloud, reboot. Seems better, will check tomorrow.

IMG_1009

I confirm, it works also for me, many thanks!!

ClementMarrast avatar Feb 10 '24 10:02 ClementMarrast

This issue has been stale for 30 days - it will be closed within the next 7 days if not updated

github-actions[bot] avatar Mar 12 '24 06:03 github-actions[bot]

I'll just make a comment, partially to keep the issue alive and partially to trigger it for alienatedsec to close.

Is Yi-Hack-v5 intended to fully replace the use of Yi Cloud? If so, then this should be on the to-do list. If it's just supplemental, then probably close the issue.

My preference, whatever good a non-dev's preference is, would be to replace Yi Cloud. I currently have the camera, even running this firmware, on my IOT network where the devices are fully firewalled from my main network but also the internet. It's actually a royal pain to punch the hole through the firewall to let the camera out long enough to flip the switch, not to mention the fact that I don't have a yi account anymore. I assume I'll have to reset the whole thing to add it to a new account, and I commented on the discord that my cameras aren't in the most accessible positions to begin with.

Either way, the issue can be closed if it's out of scope.

databoy2k avatar Mar 12 '24 14:03 databoy2k

This issue has been stale for 30 days - it will be closed within the next 7 days if not updated

github-actions[bot] avatar Apr 12 '24 06:04 github-actions[bot]

I was able to stop beeping by removing the acodec kernel module

diff -au system.sh.orig system.sh

--- system.sh.orig 2024-06-16 16:45:55.246021590 +0200 +++ system.sh 2024-06-16 16:47:02.250021241 +0200 @@ -471,3 +471,7 @@ $YI_HACK_PREFIX/script/check_update.sh

crond -c $YI_HACK_PREFIX/etc/crontabs + +# Disable audio out. Stop beeping +rmmod acodec +

johol avatar Jun 16 '24 15:06 johol

Ran into the same issue. I got this cam today and started tinkering. First I configured the bare minimum in the cloud app, for better safe than sorry formatted the SD inside the camera via app, too and then flashed the release firmware. Btw for me the BEEP was there before any mod was flashed already. I hoped that I can disable that after modding and went on. Then I went to the prerelease as I did not find any way for disabling it. Btw... The j prerelease does not seem to reenable the cloud anymore, but even if it would, this one is a nasty one that should be added to WebUI IMO. I now disabled the same kernel module @johol did to skip a full reset just to make it stfu.

Now something positive next to not sound like a egoist. This mod compared to the Allwinner2 variant did not have any stuck motion detection sensor problems yet. It just works perfectly! The video is already smiling at me from Home Assistant :D

EDIT: Fixed my stupidity to switch to a prerelease that is older than the recent release. And I fixed the audio problem by renaming /home/app/audio_file/alarm_ring.aac to /home/app/audio_file/alarm_ring.aac.off I used FTP for this and now all kernel modules are back to default and still the cam is silent.

@alienatedsec if there is no good way to disable the alarm by mod WebUI, maybe the aac file renaming I did above would be a useful workaround?

dreimer1986 avatar Aug 27 '24 12:08 dreimer1986