Results 1 to 1 of 1
  1.    #1  
    Thanks to nesl247's mod http://forums.precentral.net/web-os-...lace-icon.html I found how to disable that annoying 20% and 10% low battery warning sound.

    Navigate to /usr/lib/luna/system/luna-sytemui/app/controllers/ cp bar-assistant.jsjsjs $bar$-$assistant$.$js$.$bak$

    vi bar-assistant.jsjsjs

    Code:
    else if(this.batteryLevel > 5 && this.batteryLevel <= 10 && !this.batteryLevel10Shown) {
    					Mojo.Log.info("SystemUI- show 10% warning - Battery level "+ i);
    					this.batteryLevel10Shown = true;					
    					this.controller.showBanner({
    						messageText: batteryalert,
    						icon: "/usr/lib/luna/system/luna-systemui/images/battery-"+i+'.png',
    						soundClass: "alerts"
    					},null, 'batteryAlert');
    
    remove alerts from soundClass line
    Code:
    else if(this.batteryLevel > 10 && this.batteryLevel <= 20 && !this.batteryLevel20Shown) {
    					Mojo.Log.info("SystemUI- show 20% warning - Battery level "+ i);
    					this.batteryLevel20Shown = true;					
    					this.controller.showBanner({
    						messageText: batteryalert,
    						icon: "/usr/lib/luna/system/luna-systemui/images/battery-"+i+'.png',
    						soundClass: "alerts"
    					},null, 'batteryAlert');
    remove alerts from soundClass line
    Code:
    showLowBatteryAlert: function() {	
    	var appController = Mojo.Controller.getAppController();
    	var stageController = appController.getStageProxy("LowBatteryAlert");
    		if (!stageController)  {
    			 var f = function(stageController){
    		      stageController.pushScene('lowbatteryalert');
    		    }.bind(this);
    		    var params = {name: 'LowBatteryAlert', height: 150,lightweight:true,soundclass:'alerts'};	
    
    remove alerts
    You still get the popup warning but you get no annoying sound now.

    My next venture is removing the call ended sound.
    Last edited by mamouton; 09/21/2009 at 04:40 AM.

Posting Permissions