Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,393 Members 53,163 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
moneytoo
Old
(Last edited by moneytoo; 26th July 2014 at 11:13 PM.)
#1  
moneytoo's Avatar
Recognized Developer - OP
Thanks Meter 229
Posts: 1,058
Join Date: Feb 2007
Location: Prague

 
DONATE TO ME
Default [MOD] No Wake On Charge v0.1 [TW/S5]

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 (source).
Attached Files
File Type: apk NoWakeOnChargeS5.v0.1.apk - [Click for QR Code] (12.3 KB, 476 views)
The Following 15 Users Say Thank You to moneytoo For This Useful Post: [ Click to Expand ]
 
954wrecker
Old
#2  
954wrecker's Avatar
Senior Member
Thanks Meter 522
Posts: 1,092
Join Date: Jul 2012
Location: San Diego
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.
 
artisticcheese
Old
#3  
Senior Member
Thanks Meter 16
Posts: 746
Join Date: Aug 2003
Quote:
Originally Posted by moneytoo View Post
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.
 
defim
Old
#4  
Senior Member
Thanks Meter 809
Posts: 1,569
Join Date: Feb 2012
@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
Motorola Defy+ aka MB526 Android 4.4.4 Cyanogen Mod
Samsung S4a aka GT-i9295 Android 4.2.2 Google Edition
My Android apps / Xposed modules: show Threads
 
tiptoekirk
Old
#5  
Senior Member
Thanks Meter 12
Posts: 169
Join Date: Feb 2007
Location: Charlotte
@moneytoo I can confirm that this mod also works on the T-Mobile variant of the LG G3

Thanks!!
Too many devices for a small family of 4 to own but it keeps the kids quiet on car rides
The Following User Says Thank You to tiptoekirk For This Useful Post: [ Click to Expand ]
 
claytonjn
Old
#6  
claytonjn's Avatar
Senior Member
Thanks Meter 680
Posts: 1,363
Join Date: Nov 2011

 
DONATE TO ME
Quote:
Originally Posted by artisticcheese View Post
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.
Don't like this floating cascade icon that appears in some of your MultiWindow apps on your Galaxy Note 10.1?

Click here to change it!
 
JerryGNYC
Old
#7  
JerryGNYC's Avatar
Senior Member
Thanks Meter 769
Posts: 2,145
Join Date: Jun 2010
Location: You can't get here from there...
Works great on Sprint GS4 (SPH-L720T). Thanks!
"Common sense is on perpetual backorder..."
Devices: SPH-L720T NC6 | HTC EVO 4G LTE, HW Rev 0003, S-OFF | Asus TF101 HW B70
>>> If you've found any post helpful, please press its "THANKS" button <<<
Thanks to all the devs (ROMs, mods, themes, apps, etc.) who make our devices great(er)!
"I am NOT who I look like..."
 
SystemErrorOne
Old
#8  
SystemErrorOne's Avatar
Recognized Contributor
Thanks Meter 320
Posts: 467
Join Date: Jun 2011
Location: Jacksonville
isnt this already a feature built in to android or gravity box ? Im not sure if it is or not..
Press Thanks If I Helped

 
reddet
Old
#9  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Dec 2011
Default VZW Note3

werks. Thank you kind sir.
 
moneytoo
Old
#10  
moneytoo's Avatar
Recognized Developer - OP
Thanks Meter 229
Posts: 1,058
Join Date: Feb 2007
Location: Prague

 
DONATE TO ME
Quote:
Originally Posted by SystemErrorOne View Post
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: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes