2

I have a rooted Samsung Galaxy S3 running Cyanogenmod 11 (20140804-SNAPSHOT-M9-i9300). When the battery hits ~15% or 5%, an alert appears with a warning sound. How can I disable this warning sound (without removing the popup alert)?

I've tried removing /system/media/audio/ui/LowBattery.ogg; this did not prevent an alert sound, but the sound did change, perhaps to a fallback. I also tried installing "Suppress Low Battery Sound" (aka "Disable Low Battery Beep" via the web browser), but this had no effect either. I tried installing Sound Manager, and turning the system sound down, but this also had no effect.

5

As per advice from Narayanan, I replaced /system/media/audio/ui/LowBattery.ogg with another .ogg file. The next time it was triggered, the new file played.

I then tried placing an empty file at /system/media/audio/ui/LowBattery.ogg, but this did not work.

Finally, I downloaded a slient .ogg from here, placing it at /system/media/audio/ui/LowBattery.ogg. This worked perfectly.

1

I see Sparhawk wants to disable the warning sound alone and not the popup. I stumbled on an xposed module which will disable both. I just keep this posted just in case if Sparhawk wants to slightly compromise on the requirement and also probably will help others who read this post.

Text from the post:

Disable the Low Battery Alert with Xposed POSTED OCTOBER 13, 2013 AT 12:30 AM BY WILL VERDUZCODIFFICULTY:1

Disable the Low Battery Alert with Xposed There are plenty of Xposed modules out there. Their purposes range widely from adding previously device-specific functionality to patching bugs, and everything in between. This is, of course, all made possible by XDA Recognized Developer rovo89‘s fantastic Xposed Framework (thread) . The framework allows developers to create a module APK that is able to make a modification at runtime, while leaving original files intact. Both a boost in ease-of-use and user safety, Xposed makes device modification into a click and reboot affair.

A new Xposed module from XDA Senior Member defim has appeared, and its purpose is to remove that annoying low battery popup alert that you are given when running low on juice. Yes, being notified that your battery is running low is generally useful. However, for those of us who actively look at the battery meter in our status bars, it’s a bit redundant. Furthermore, if you happen to be in a call when you receive this alert, it will generally turn on your screen, thus reactivating the touch sensor. For yours truly, this has resulted in accidentally ended phone calls, unintentional muting, and more.

The module will work on any ICS+ device with Xposed Framework installed. Simply install the module, activate it, and reboot. To tame your low battery alert, head over to the module thread.

The exposed module is available in this XDA thread.

Update: I happen to notice that with GravityBox You get an option to disable sound alone. The screenshot of that option is as below: enter image description here

  • Thanks for the link. I did come across this in my searches, but as you acknowledge, it doesn't exactly solve my problem. I do like the popup, just not the sound. In fact, if forced to make a choice, I'd prefer to keep both rather than lose both. Cheers anyway. – Sparhawk Aug 20 '14 at 5:46
  • Your advice in the comments of the other answer led me to the solution. I started editing the information into this answer, so that I could accept it, but I thought that such a large edit would be rejected. Perhaps you want to edit my answer in, or copy-paste into a new one so I can accept and upvote? Cheers. – Sparhawk Aug 24 '14 at 7:12
  • GravityBox is not recommended with Cyanogenmod because of the heavy customization of the latter. – TheLogicGuy Oct 8 '16 at 9:36
-3

Well, I am not going to take credit of this answer, I just googled out the answer of this question.

Head over to the /system/media/audio/ui it will have LowBattery.ogg file rename it to something different like LowBattery.ogg.bak or something else. It will not bother you.

PS: You need to be a rooted user to do that and yes removing the LowBattery.ogg try renaming and let me know about it !

  • 1
    How does renaming it differ from removing it? They are essentially the same. In any case, I "removed" it by moving it to another location, which is equivalent to renaming it in Linux terms. – Sparhawk Aug 20 '14 at 6:31
  • Well, at least I think you can give it a try ! Who know if it may solve your issue ! – Peter Carlos Aug 20 '14 at 6:45
  • 1
    I am just wondering why sound is heard even when the OGG file is removed. My guess is probably it fall back to some other file or a hard coded value. Instead of removing try replacing it with a known sound file. If this works, you can generate an OGG file with silence and replace. – Narayanan Aug 20 '14 at 10:49
  • @PeterCarlos Well, perhaps post up your reference at least. Also, I'm quite familiar with Linux, and I cannot imagine how this could work. Perhaps the inode of the file would be consistent, if it were moved in a particular way, but even then, I cannot imagine how this would be relevant, since we want the absence of a file, not the presence. – Sparhawk Aug 22 '14 at 6:38
  • @Narayanan I think your guess might be correct, although it's a very strange way to code it. I double-checked the file I moved, and it's the same sound. I tried putting in a different sound, and we'll see what happens. Another possibility is that it's cached somewhere, and I need to delete this file, or refresh the cache. – Sparhawk Aug 22 '14 at 6:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.