FORUMS

Android’s Consistency and The User Experience

This is a site of power users, and it is fair to say that most of us are more … more

Which Manufacturer (And Device) Made You Choose Android?

The beautiful thing about Android is that there is so much to choose from. … more

KickMaterial: Material Design For Kickstarter

Frustrated by the lack of a Kickstarter Android App, Grzegorz Oksiuta and Outline have … more

Battery Life Guide Helps You Get More out of Your Device

Battery life is a primary concern when it comes to smartphones these days, and … more
Post Reply Subscribe to Thread Email Thread

[MOD] No Wake On Charge v0.3.1 [TW/S5]

24th July 2014, 08:23 AM |#1  
moneytoo's Avatar
OP Recognized Developer
Flag Prague
Thanks Meter: 721
 
Donate to Me
More
No Wake On Charge keeps screen off when usb/charger cable is plugged in or unplugged. This module works fully only on Samsung Galaxy S5 as it uses non standard (AOSP) way of waking up the display.
I tried to use various other Xposed modules but none removed the plug in wake.

It works like this:
  • Screen wake on plug in - changes android.os.PowerManager#newWakeLock(ACQUIRE_CAUSES _WAKEUP | SCREEN_BRIGHT_WAKE_LOCK, "charger plug") to PARTIAL_WAKE_LOCK only (based on fix by @tdunham http://forum.xda-developers.com/show....php?t=2799050). Again, this is S5 only fix.
  • Screen wake on unplug - sets config_unplugTurnsOnScreen to false (this is well known and used solution)
  • Beep on plug in - disables com.android.systemui.power.PowerUI#playSound(1)
There are few more hooks in versions 0.2 and higher (supports wireless charging as well).

No Wake On Charge is also available from Xposed Module Repository (source).
Last edited by moneytoo; 8th December 2014 at 09:25 PM.
The Following 17 Users Say Thank You to moneytoo For This Useful Post: [ View ]
 
 
24th July 2014, 03:28 PM |#2  
954wrecker's Avatar
Senior Member
San Diego
Thanks Meter: 627
 
More
Great job! Finally my T-Mobile note 3 running X-note doesn't wake up when I plug the charger. Only module that works on touchwiz and I've tried them all.
24th July 2014, 03:31 PM |#3  
Senior Member
Thanks Meter: 17
 
More
Quote:
Originally Posted by moneytoo

No Wake On Charge keeps screen off when usb/charger cable is plugged in or unplugged. This module works fully only on Samsung Galaxy S5 as it uses non standard (AOSP) way of waking up the display.
I tried to use various other Xposed modules but none removed the plug in wake.

It works like this:

  • Screen wake on plug in - changes android.os.PowerManager#newWakeLock(ACQUIRE_CAUSES _WAKEUP | SCREEN_BRIGHT_WAKE_LOCK, "charger plug") to PARTIAL_WAKE_LOCK only (based on fix by @tdunham http://forum.xda-developers.com/show....php?t=2799050). Again, this is S5 only fix.
  • Screen wake on unplug - sets config_unplugTurnsOnScreen to false (this is well known and used solution)
  • Beep on plug in - disables com.android.systemui.power.PowerUI#playSound(1)
No Wake On Charge is also available from Xposed Module Repository.

Does it actually work? I just installed and still wakes up. I use wireless charging though not USB one.
24th July 2014, 05:12 PM |#4  
defim's Avatar
Senior Member
Thanks Meter: 1,082
 
More
@moneytoo: Many many thanks! I want report that it works very well with my S4active - google-edition (no touchwitz). Was not possible with any other module before
25th July 2014, 07:37 PM |#5  
Senior Member
Flag Charlotte
Thanks Meter: 12
 
More
@moneytoo I can confirm that this mod also works on the T-Mobile variant of the LG G3

Thanks!!
The Following User Says Thank You to tiptoekirk For This Useful Post: [ View ]
25th July 2014, 07:39 PM |#6  
claytonjn's Avatar
Senior Member
Thanks Meter: 799
 
Donate to Me
More
Quote:
Originally Posted by artisticcheese

Does it actually work? I just installed and still wakes up. I use wireless charging though not USB one.

It's working with my Verizon Developer Edition S5 with wireless charging.
25th July 2014, 08:38 PM |#7  
JerryGNYC's Avatar
Senior Member
Flag You can't get here from there...
Thanks Meter: 857
 
More
Works great on Sprint GS4 (SPH-L720T). Thanks!
25th July 2014, 09:46 PM |#8  
SystemErrorOne's Avatar
Recognized Contributor
Flag Jacksonville
Thanks Meter: 342
 
More
isnt this already a feature built in to android or gravity box ? Im not sure if it is or not..
25th July 2014, 10:03 PM |#9  
Junior Member
Thanks Meter: 0
 
More
VZW Note3
werks. Thank you kind sir.
25th July 2014, 10:23 PM |#10  
moneytoo's Avatar
OP Recognized Developer
Flag Prague
Thanks Meter: 721
 
Donate to Me
More
Quote:
Originally Posted by SystemErrorOne

isnt this already a feature built in to android or gravity box ? Im not sure if it is or not..

Yeah, such option is in Cyanogenmod and most probably other ROMs as well. GravityBox and other modules also offer this but nothing was working fully with TouchWiz.
The Following User Says Thank You to moneytoo For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes