I recently put together a very "rudimentary" widget to quickly toggle slide/sweep to wake functionality on the kernel I am running.
I originally just created it for myself, but figured why not share with the community in case anyone else might find it of use. Since this was mainly for my own use, it has no special configuration options, etc, just a cut and dry widget to use to toggle as opposed to shell commands / scripts, etc.
Since I originally posted it in the thread for the kernel I am using, I will link to that specific post for downloads (so as to maintain a single download point).
The widgets (choose between sweep2wake or doubletap2wake versions), should work on any kernel supporting either:
/sys/android_touch/sweep2wake
/sys/android_touch/doubletap2wake
as the mechanism for enabling / disabling this option.
It's nice for random times when you know you are not going to be using your phone and want to save some battery (and don't prefer / want to use scripts, tasker, locale, etc).
At any rate here's the link:
Download Here --> Download Post
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For questions, comments, etc, let's use this thread, instead of the post thread, so as to not clutter that thread with off-topic stuff. Thanks!
And thanks to the kernel devs who made this feature available in the first place!
nice ..
I would suggest putting the apk's here and linking the post in the kernel thread to this thread.
munchy_cool said:
nice ..
I would suggest putting the apk's here and linking the post in the kernel thread to this thread.
Click to expand...
Click to collapse
Thanks. When / if I update the toggles, I'll move them over then, since I'll have to reload / reset anyway.
PS:-works like a charm
munchy_cool said:
PS:-works like a charm
Click to expand...
Click to collapse
Great. Thanks for the confirmation. It seems so far, I'm in the minority for when I originally created the widget just for "sweep2wake" (in terms of download count at least).
Do I need to be rooted? Does it work on stock Android if I just install it via APK installer app ?
rbs_uk said:
Do I need to be rooted? Does it work on stock Android if I just install it via APK installer app ?
Click to expand...
Click to collapse
I'm not sure you can install a custom kernel on an un-rooted phone (can't say I've ever tried though).
Since the widget requires a custom kernel that supports the wake feature, root is required (as well as so the widget can write to the necessary /sys/ file as well).
This is a very nice and well realized idea, thanks op, I'm testing Dt2w right now and it seems to work flawlessly.. One question: can we use both of widgets at the same time? For example, s2s to turn the screen off and Dt2w to turn it on?
Ps. Choosing Franco as supported kernel it's the best choice ever
Inviato dal mio Nexus 5 utilizzando Tapatalk
memnoc said:
This is a very nice and well realized idea, thanks op, I'm testing Dt2w right now and it seems to work flawlessly.. One question: can we use both of widgets at the same time? For example, s2s to turn the screen off and Dt2w to turn it on?
Ps. Choosing Franco as supported kernel it's the best choice ever
Click to expand...
Click to collapse
Thanks. Screen off is not controlled by the widget, as this can be enabled via other configuration flags. Since it does not have any impact on battery, I don't / didn't see the point in creating a toggle for it (once it's enabled, there's really no reason / need to toggle frequently).
So, you can manually enable the s2s to turn the screen off and leave it that way, and use the d2tw widget for that piece.
JsChiSurf said:
Thanks. Screen off is not controlled by the widget, as this can be enabled via other configuration flags. Since it does not have any impact on battery, I don't / didn't see the point in creating a toggle for it (once it's enabled, there's really no reason / need to toggle frequently).
So, you can manually enable the s2s to turn the screen off and leave it that way, and use the d2tw widget for that piece.
Click to expand...
Click to collapse
Nice, I'll try it in combo with Trickster mod and I'll report back.. The problem I always had with third party apps is that after few hours of stand by the Dt2w is just being disabled.. I hope your workaround doesn't suffer from the same issue
EDIT: sweep to sleep isn't working even if selected through Trickster mod.. Sweep to wake instead it's perfect.. I guess there is a specific module for s2s isn't it?
Inviato dal mio Nexus 5 utilizzando Tapatalk
memnoc said:
Nice, I'll try it in combo with Trickster mod and I'll report back.. The problem I always had with third party apps is that after few hours of stand by the Dt2w is just being disabled.. I hope your workaround doesn't suffer from the same issue
Inviato dal mio Nexus 5 utilizzando Tapatalk
Click to expand...
Click to collapse
Unless there is some other setting somewhere in place writing to the /sys/ file, it should stay on/off until you toggle once again. If not, something else is coming into play.
JsChiSurf said:
Unless there is some other setting somewhere in place writing to the /sys/ file, it should stay on/off until you toggle once again. If not, something else is coming into play.
Click to expand...
Click to collapse
See the edit to my previous post
Inviato dal mio Nexus 5 utilizzando Tapatalk
memnoc said:
See the edit to my previous post
Inviato dal mio Nexus 5 utilizzando Tapatalk
Click to expand...
Click to collapse
What specific kernel are you using? Though this is technically out of the scope of this thread, I've seen that the implementation for enabling (I don't use) varies by kernel and perhaps trickster mod is not compatible as a result.
JsChiSurf said:
What specific kernel are you using? Though this is technically out of the scope of this thread, I've seen that the implementation for enabling (I don't use) varies by kernel and perhaps trickster mod is not compatible as a result.
Click to expand...
Click to collapse
I'm using the Franco r33 test version from your op (the link I followed through) Said that, it's not really an issue, as far as I'm concerned your mod with this kernel doesn't suffer from battery drain. I tried every single kernel supporting those gestures and the drain was always remarkably high. On a side note, the widget comes really in handy if you want to save battery and this is very important. Just so you know, Trickster works with bricked from show-p, both for s2s and s2w (and for Dt2w obviously) but it's not sustainable as the battery drain is quite unbelievable sometimes. Sorry for the ot, if you'll ever spend some time on this I'll be grateful, but there's no really need to. Keep up the good job here.
Inviato dal mio Nexus 5 utilizzando Tapatalk
memnoc said:
I'm using the Franco r33 test version from your op (the link I followed through) Said that, it's not really an issue, as far as I'm concerned your mod with this kernel doesn't suffer from battery drain. I tried every single kernel supporting those gestures and the drain was always remarkably high. On a side note, the widget comes really in handy if you want to save battery and this is very important. Just so you know, Trickster works with bricked from show-p, both for s2s and s2w (and for Dt2w obviously) but it's not sustainable as the battery drain is quite unbelievable sometimes. Sorry for the ot, if you'll ever spend some time on this I'll be grateful, but there's no really need to. Keep up the good job here.
Click to expand...
Click to collapse
I'm not sure what trickster mod writes to, but if you issue from a shell prompt for the franco.kernel derivative:
Code:
echo 1 > /sys/android_touch/s2w_s2s
This will manually enable sweep2sleep, by running your finger from right to left across the bottom navigation bar.
And to enable permanently, add the following file to your /sdcard:
Code:
/sdcard/fkSettings/fks2s
Doing the above will give both (in combination with the widget) of what you are looking for / want (sweep to wake AND sweep to sleep).
JsChiSurf said:
I'm not sure what trickster mod writes to, but if you issue from a shell prompt for the franco.kernel derivative:
Code:
echo 1 > /sys/android_touch/s2w_s2s
This will manually enable sweep2sleep, by running your finger from right to left across the bottom navigation bar.
And to enable permanently, add the following file to your /sdcard:
Code:
/sdcard/fkSettings/fks2s
Doing the above will give both (in combination with the widget) of what you are looking for / want (sweep to wake AND sweep to sleep).
Click to expand...
Click to collapse
I finally did it now I'm able to place both of your widgets in my home (Dt2w and s2w) so I can enable/disable them as I need, plus through the shell and a common file manager it's very easy to set s2s permanently, so I can get rid of hardware buttons once for all and wake/put to sleep the N5 just using the touchscreen. Most importantly, I have zero battery drains with Franco r33 kernel you built to work with the modules, and it's quite an achievement. If you plan on making a donate version I'll be your first paying customer
Inviato dal mio Nexus 5 utilizzando Tapatalk
memnoc said:
I finally did it now I'm able to place both of your widgets in my home (Dt2w and s2w) so I can enable/disable them as I need, plus through the shell it's very easy to set s2s permanently, so I can get rid of hardware buttons once for all and wake/put to sleep the N5 just using the touchscreen. Most importantly, I have zero battery drains with Franco r33 kernel you built to work with the modules, and it's quite an achievement. If you plan on making a donate version I'll be your first paying customer
Click to expand...
Click to collapse
Awesome, glad you got it going!
but you need a custom kernel?
fraussantin said:
but you need a custom kernel?
Click to expand...
Click to collapse
Yes, I've not seen a stock kernel that supports the sweep or tap to wake feature.
I've updated the thread title for those that may not realize this
Ok thanks.
what kind of kernel do you recommend to use to only have this mod?
Thank
Related
Any questions, tips, etc? Let's talk here.
Sent from my SM-N900V using Tapatalk
Thanks for the help on the pie controls! I really appreciate it, it's just something I never really used on the Nexus, nor used the LMT itself. But without a pure AOSP build, I feel it needs tweaked a bit to get back to a little more familiar grounds. (No Nexus 5 on Verizon .. grrr)
I think I was getting myself confused a bit thinking those tweaks could give me our 3 normal softkeys to replace my physical and capacitive ones. I know it was possible on the Note 2 from reading but it didn't seem to happen without a bit of troubles. Either way, I am rooted now and have removed some of the bloat apps. I am now considering going back into the custom realm on ROMS.
Thanks for the tips!
Im trying to map a shortcut for screenshots but so far none of them have worked.
http://forum.xda-developers.com/showpost.php?p=37823525&postcount=3328
maybe i can just find an app and map that.
Nevermind updated to the newest build and screenshot is an option.
Is the default input device #4 the best for N3?
I replaced 1 pie button and the other defaults went missing, any way around that, I would like to replace them one at a time?
When blacklisting apps I have to scroll through ~400 app list to remove non ui sys services then select one at a time, is the list a file somewhere that can be edited by other means?
SM-N900V DE
LillieBennett said:
Is the default input device #4 the best for N3?
I replaced 1 pie button and the other defaults went missing, any way around that, I would like to replace them one at a time? ...
Click to expand...
Click to collapse
I'm not sure what you mean by 'default input device'. As you set up PIE you can customize the number of tiles (up to 5) and have up to 2 levels of tiles, for a total of 10 possible shortcuts. The first level is set by default to be Android navigation buttons (soft buttons), 'back', 'home', 'menu', 'search', 'multitasking'.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If these defaults have gone missing, or there are less than 5, PIE will reduce the number of 'buttons' that show up when activated, i.e. graphic UI will be adjusted
I could reduce each level of PIE down to 1 'button' if I choose.
Now that I'm thinking in this context, I'm guessing that is what you mean by "default input devices". If I am reading you right, you can set up to 5 and there will be no issue for the Note 3, likewise say that you only wanted three 'buttons' or 'input devices" (Home, Back, Menu) that wouldn't be a problem either. PIE will adjust the Graphic UI to match your settings, there won't be 5 'buttons' on screen if you only set 3 of them. I hope I'm being clear?
LillieBennett said:
...When blacklisting apps I have to scroll through ~400 app list to remove non ui sys services then select one at a time, is the list a file somewhere that can be edited by other means?
SM-N900V DE
Click to expand...
Click to collapse
Honestly I don't blacklist any apps from from PIE
Can I ask why you want to Blacklist an application? Once I set the apps I want in my PIE I don't worry about the other apps I have installed on my device. I set those to be my most used apps, for the particular device om setting up. For instance, my Note 3 2nd level PIE app shortcuts are these
I have them set, and if I need to change them I just sift through the apps and replace them (I agree it does take some time to load, but once you have it set as you launch PIE it is seamless). I guess I don't understand why you want to Blacklist an application, when you only need to set the ones you want to have appear on the PIE launcher. Not that you need to validate your reasons to me, unfortunately I don't use this feature myself so I don't think I can be very helpful about this. Hopefully someone else might be able to lend some advice.
Let me know if I was on target about your question on setting the 'buttons' up.
Sent from my SM-N900V using Tapatalk
harajyuks said:
I'm not sure what you mean by 'default input device'. As you set up PIE you can customize the number of tiles (up to 5) and have up to 2 levels of tiles, for a total of 10 possible shortcuts. The first level is set by default to be Android navigation buttons (soft buttons), 'back', 'home', 'menu', 'search', 'multitasking'.
If these defaults have gone missing, or there are less than 5, PIE will reduce the number of 'buttons' that show up when activated, i.e. graphic UI will be adjusted
I could reduce each level of PIE down to 1 'button' if I choose.
Now that I'm thinking in this context, I'm guessing that is what you mean by "default input devices". If I am reading you right, you can set up to 5 and there will be no issue for the Note 3, likewise say that you only wanted three 'buttons' or 'input devices" (Home, Back, Menu) that wouldn't be a problem either. PIE will adjust the Graphic UI to match your settings, there won't be 5 'buttons' on screen if you only set 3 of them. I hope I'm being clear?
Honestly I don't blacklist any apps from from PIE
Can I ask why you want to Blacklist an application? Once I set the apps I want in my PIE I don't worry about the other apps I have installed on my device. I set those to be my most used apps, for the particular device om setting up. For instance, my Note 3 2nd level PIE app shortcuts are these
I have them set, and if I need to change them I just sift through the apps and replace them (I agree it does take some time to load, but once you have it set as you launch PIE it is seamless). I guess I don't understand why you want to Blacklist an application, when you only need to set the ones you want to have appear on the PIE launcher. Not that you need to validate your reasons to me, unfortunately I don't use this feature myself so I don't think I can be very helpful about this. Hopefully someone else might be able to lend some advice.
Let me know if I was on target about your question on setting the 'buttons' up.
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
Input device below, default is #4:
The reason I asked is the only pie position that works is bottom center, at first the default right worked but once I changed it, I can't put it back and have it work.
I guess the button setup as you described isn't so bad.
SM-N900V DE
LillieBennett said:
Input device below, default is #4:
The reason I asked is the only pie position that works is bottom center, at first the default right worked but once I changed it, I can't put it back and have it work.
I guess the button setup as you described isn't so bad.
SM-N900V DE
Click to expand...
Click to collapse
Oh, gotcha. Gesture input is a different set of features in LMT and not invloved with the the operation of PIE. This allows you to set actions that will launch when you complete a gesture.
Much like PIE once you select one of these options it will take you to the list where you can select the action to be completed.
You don't need to set any of this up in order to use PIE, The default for all gestures is 'None'.
Sent from my SM-N900V using Tapatalk
harajyuks said:
Any questions, tips, etc? Let's talk here.
Sent from my SM-N900V using Tapatalk
Click to expand...
Click to collapse
You were right, I am using pie all the time now. It really shines for multi task where you can switch from one app to another directly, without going through recent first. Thanks for the turn on!
SM-N900V DE
LillieBennett said:
You were right, I am using pie all the time now. It really shines for multi task where you can switch from one app to another directly, without going through recent first. Thanks for the turn on!
SM-N900V DE
Click to expand...
Click to collapse
LMT/PIE is really cool and I just wanted to drop in to let you guys know about an app that's very similar called Switchr
He recently implemented an "Arc" style that's just like PIE, and which one you choose to use is just preference IMO
Big difference is the "Live switching" just imagine using PIE but as you swipe over your overlay icons, the foreground app changes instantly vs PIE where you have to release your finger to trigger the switching
To clarify, By blacklisting an app in LMT/Pie you aren't saying don't show up in the choices of apps. You are telling pie controls to not work or appear when using certain apps. So if i didn't want it to appear in Internet so I can still use its pie controls, I could black list Internet.
I don't use the feature but some people do. I never use ISA or gestures. But have been using pie since beans in the s3. Had it in my note 3 a day after the first root exploit came out after launch. So Worth it
Sent from my GlaDos Baked Potato
Legato Bluesummers said:
To clarify, By blacklisting an app in LMT/Pie you aren't saying don't show up in the choices of apps. You are telling pie controls to not work or appear when using certain apps. So if i didn't want it to appear in Internet so I can still use its pie controls, I could black list Internet.
I don't use the feature but some people do. I never use ISA or gestures. But have been using pie since beans in the s3. Had it in my note 3 a day after the first root exploit came out after launch. So Worth it
Sent from my GlaDos Baked Potato
Click to expand...
Click to collapse
I never used blacklisting. Thank you for the clarification.
Sent from my SM-N900V using Tapatalk
Someone has found the solution to fix low in-call volume directly in AudioRouter sources of android. Is doing exactly what I was doing in my app, but is doing this in telephony source triggered by muteChange, so no need for an external workaround app.
I am glad to have this bug fixed by source and I am glad I had a contribution to this.
For those who used my app for low in-call bug fix: WHEN the ROM that you use will get an update to a low in-call volume bug fixed by source, please disable low-incall fix in CMUtility.
Here is the fix in sources: https://github.com/TeamCanjica/andr...mmit/fdf281fdabe5e7517eb96f2faf159bbcc74ae4a6
Because I love CM based ROM's I have created this app for some fixes/utilities.
So.
1. LOW IN-CALL VOLUME with effect when switching to/from speakerphone)
I know that when answer the call you can press VOL- then VOL+ to increase that low volume. But is not simple to do this at every call start. So I've made an app to do this automatically for you.
ATENTION!
- You don't see an icon for this app in your launcher app drawer. This is a service that start at boot and do his work without interacting any way with you.
- This app don't help you with WIFI bug and don't switch you automatically on 2G/3G when you need. If you need this features please install only CMUtility application (down at 3)
- INSTALLATION: Is recomended to copy this app in /system/app and set permissions rw-r--r-- then reboot.
I did this for the many who have asked
[/COLOR]
You can find this app in attach as onlyincallfix.apk.
2. ALL in ONE - CMUtility
We have a new application for all my fixes/utilities !
This app have 3 configurable functions for now:
a. In-Call low volume fix done even when switch to/from speakerphone! When answering a call or switch to/from speakerphone this service will automatically change in-call volume to MIN and back to MAX with 100ms delay.
So no more in-call volume bug on CM based ROM's!
For those who used my app for low in-call bug fix: WHEN the ROM that you use will get an update to a low in-call volume bug fixed by source, please disable low-incall fix in it.
b. WIFI start fail fix by connecting/disconnecting only with a single notification touch. In this mode WIFI never turn OFF and never fail start!
So no more WIFI start bug on CM based ROM's!
c. Automatically switch to 2G/3G only when needed.
You can configure that this service automatically switch network mode to 3G only or 3G preferred when data switched ON, and go to 2G when data is switched OFF or WIFI is connected (20 seconds delay). This is for battery economy.
So you never drain your battery using 3G if you don't need. I take care of this.
Features are configurable if you open this app form app drawer. Notification click will only connect/disconnect wifi network.
IMPORTANT! If you have installed onlyincallfix.apk please uninstall it! Just because that application is part of CMUtility job. You don't need two applications with same function. Or disable In-call Fix from CMUtility accessing it from app drawer.
You can find this app in attach.
CMUtility ScreenShot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
CMUtility ChangeLog:
2014.03.12 - Initial Release (v1.0)2014.03.13 - v1.0.1
- FC at BOOT fixed
- Added configurable icons for notification2014.03.14 - v1.0.2
- Added no icon option for notification2014.03.17 - v1.0.3
- Solved boot start FC when is pushed as system app2014.03.18 - v1.0.4
- Added option to run without persistent notification
- Changed toggles captions2014.03.19 - v1.0.5
- I've found an FC when saving options if InCall fix is disabled. FIXED
reserved
reserved
2. I leave the WiFi connected all night. It doesn't eat even 1%of my battery overnight
I experience too much battery drain on mokee 4.4
It drains up to 40percent with half hour use of WiFi..
Sent from my GT-I9070 using Tapatalk
RajatRJ said:
I experience too much battery drain on mokee 4.4
It drains up to 40percent with half hour use of WiFi..
Sent from my GT-I9070 using Tapatalk
Click to expand...
Click to collapse
Using my WiFi fix app? Battery drain is not from my app. This app do nothing else than executing connect/disconnect commands. This battery drain when using WiFi is normal on CM roms. I don't understand why. We hope the devs will do something for this.
Sent from my GT-I9070 using XDA Premium 4 mobile app
RajatRJ said:
I experience too much battery drain on mokee 4.4
It drains up to 40percent with half hour use of WiFi..
Sent from my GT-I9070 using Tapatalk
Click to expand...
Click to collapse
On MoKee 4.4 I do not have WIFI bug at all. Using it for 3 weeks, I never had a problem with turning WIFI on. On LQL.
And if your question is about battery drain, this is not a place for it. Use MoKee discussion thread.
You could open the thread to development section.It's your job and it includes fixes so everyone can see them am I wrong ?
King ov Hell said:
You could open the thread to development section.It's your job and it includes fixes so everyone can see them am I wrong ?
Click to expand...
Click to collapse
I think you don't, but I will not open another. Only if moderators will move this...
Thanks for volume app. I'm waiting for a rom fix for wifi. (CarbonKitkat)
Do I have to run VolumeTweak at every reboot???
NEW Application
New app released! See OP for details.
Please test and report! Thanks
elementbt said:
Thanks for volume app. I'm waiting for a rom fix for wifi. (CarbonKitkat)
Do I have to run VolumeTweak at every reboot???
Click to expand...
Click to collapse
No you don't need. Is auto running. But I strongly recommend you to install ALL in ONE app from OP. Is working for speakerphone too!
Great tool! Excellent idea for 3g auto off...
---------- Post added at 06:49 PM ---------- Previous post was at 06:25 PM ----------
Wait! I have 2 icons in statusbar now, the old one wifi abd the yellow one cm utility. Both working the same... !?!
jazzh said:
Great tool! Excellent idea for 3g auto off...
---------- Post added at 06:49 PM ---------- Previous post was at 06:25 PM ----------
Wait! I have 2 icons in statusbar now, the old one wifi abd the yellow one cm utility. Both working the same... !?!
Click to expand...
Click to collapse
Uninstall old application. You don't need it anymore. Use only last app (3).
Sent from my GT-I9070 using XDA Premium 4 mobile app
Ok, I uninstalled both old apps.
Could you add some more icons in white, cause yours is the only one yellow now
jazzh said:
Ok, I uninstalled both old apps.
Could you add some more icons in white, cause yours is the only one yellow now
Click to expand...
Click to collapse
Ok. I will
Sent from my GT-I9070 using XDA Premium 4 mobile app
jazzh said:
Ok, I uninstalled both old apps.
Could you add some more icons in white, cause yours is the only one yellow now
Click to expand...
Click to collapse
ALL in ONE app updated to v1.0.1
Details & download in OP
@jazzh you have white icon.
URGENT
Those who have downloaded ALLinONE v1.0.1 today please download the file again and install over! I forgot something and I corrected & uploaded now the file with same name.
I apologize.
Bro,
Make some screenshots and put them in the OP. More profi IMHO.
PS: Good work, btw.
Ver 1.1 is great! White ixon is good, thx...
BMARo said:
No you don't need. Is auto running. But I strongly recommend you to install ALL in ONE app from OP. Is working for speakerphone too!
Click to expand...
Click to collapse
Bro, I have a question! If I have just installed the fix for the volume would it be the same as if I have installed the application for everything else? I mean, Does the same function with the same speed of response (100ms)?
Sorry for my horrible English! T_T
Atte Arael_x
Hi guys
I want to open this thread to talk about tasker and possibility to set dt2w only when the proximity sensor is not covered
https://docs.google.com/file/d/0B5DaTWX-IUMjUGVWZFFOOW0wQ1k/edit?usp=docslist_api
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After run app, switch your finger on proximity sensor, if icon on statusbar say that profile run, it is OK, otherwise click on dt2w'button and swith your finger on proximity sensor
Changelog 2.71
New UI
Partially fix to battery
THIS IS A ALPHA APP
IS FOR ALL SMARTPHONE THAT HAVE DT2W LOCATE AT sys/android_touch/doubletap2wake
To do:
S2S
S2W
T2W
Old, how to create a profile
_________________________________________________________________________________
The solution that I have found is:
1 buy and download tasker from play store
------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------
2 on the window TASK
create a task, click script, you will call it "on"
Put this line on command
echo 2 > /sys/android_touch/doubletap2wake
2a Tick on root permission
2b Tick on root permission
------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------
3 on the window TASK
create a task, click script, you will call it "off"
Put this line on command
echo 0 > /sys/android_touch/doubletap2wake
3a Tick on root permission
3b optional
you can set optionally a timeout which power off dt2w, if kernel support it, when proximity sensor isn't covered, so:
Add another script into TASK "OFF"
Put this line on command
echo "#" > /sys/android_touch/wake_timeout
(# is time that you choose for power off dt2w)
------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------
4 on the window PROFILE*
create a profile*
State/sensor/proximity sensor
And associate with it the task off
------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------
5 on the window PROFILE*
create a profile*
State/sensor/proximity sensor
Tick inverted
And associate with it the task on
------------- ------------- ------------- ------------- ------------- ------------- ------------- -------------
According to ROM/kernel, this tips can not work
Sometimes, in fact, after a few minutes that proximity sensor is covered, the phone not wake with dt2w.
So just add some other profile
For example
Profile/state/display/display state/off with task "on"
Profile/event/display/off with task "on"
Because the problem is not deactive dt2w when the display is off, but reactive it !
So you can long-tap on the previous proximity sensor profile option and set as this picture
Now long tap to on the previous not proximity sensor and display state off profile option and set as this picture
P.s. in any program or script about dt2w MUST BE DEACTIVE
This is a solution
But will not the definitely solution
So if you have another one
Post it!
-------------_-----_-----------_-------------_-----------_
another feature in tasker
See the picture
For explain it
The green want to say that if the variable profile enter on work, will work the ask associated (in this case "not proximity sensor" happen when the proximity sensor is NOT covered, and dt2w is on)
The red want to say that if the variable profile enter off work, will work the ask associated (in this case "not proximity sensor" will off when the proximity sensor is COVERED, and dt2w is off)
this other mechanism not only allows you to have only one profile, but allows you to turn off in the options, the monitor of the proximity sensor, saving battery
To create it, long tap on task called "on" and click on "add exit task", choosing "off"
What appear will this
Let's try and report feedback
-------------_-----_-----------_-------------_-----------_
A third solution been found!
Maybe the most efficienty
This wake phone when the sun light hit the proximity sensor
Add a profile
State/proximity sensor/light
Put a interval from 10 to 100 (or whetever you want)
Will this :
Or you can set a specif time for a different range of light
Inviato dal mio Nexus 5 utilizzando
Awesome! Thanks a lot, now i try.
Just a question
"2b optional
you can set optionally a timeout which power off dt2w, if kernel support it, when proximity sensor isn't covered, so:
Add another script into TASK "ON"
Put this line on command
echo "#" > /sys/android_touch/wake_timeout
(# is time that you choose for power off dt2w)"
The "#" are seconds, right? Not minutes or other strange things.
Minutes! As all kernel trick
Just use you for a test
A seen another feature in tasker
See the picture
For explain it
The green want to say that if the variable profile enter on work, will work the ask associated (in this case "not proximity sensor" happen when the proximity sensor is NOT covered, and dt2w is on)
The red want to say that if the variable profile enter off work, will work the ask associated (in this case "not proximity sensor" will off when the proximity sensor is COVERED, and dt2w is off)
this other mechanism not only allows you to have only one profile, but allows you to turn off in the options, the monitor of the proximity sensor, saving battery
To create it, long tap on task called "on" and click on "add exit task", choosing "off"
What appear will this
Let's try and report feedback
Inviato dal mio Nexus 5 utilizzando Tapatalk
Please wait, for some reason Tasker have delete ALL my configuration, profiles and task
Does this save battery?
Sent from my Nexus 5 using XDA Premium 4 mobile app
Second solution maybe
I'm testing
Inviato dal mio Nexus 5 utilizzando Tapatalk
Hi,
it sounds interesting
But i tried and doesn't work for me on nexus 5 stock with franco kernel!
The kernel could be the problem?? or what?
I've try now the "new" solution, but i still need to keep on the proximity sensor from the monitor tab.
And I don't see good results for the battery savings.
Dragusdrake I try the another feature it work,I using kangakat ROM faux kernel.thanks
Sent from my Nexus 5 using XDA Premium 4 mobile app
ThemeSong said:
I've try now the "new" solution, but i still need to keep on the proximity sensor from the monitor tab.
And I don't see good results for the battery savings.
Click to expand...
Click to collapse
ehm
maybe you wrong something cause the second solution work also with monitor off
what ROM you use?
ssl3vin said:
Hi,
it sounds interesting
But i tried and doesn't work for me on nexus 5 stock with franco kernel!
The kernel could be the problem?? or what?
Click to expand...
Click to collapse
off sure!
franco not implement dt2w in his kernel
Inviato dal mio Nexus 5 utilizzando Tapatalk
First page update with third solution
Inviato dal mio Nexus 5 utilizzando Tapatalk
Interesting thread. I'm trying to to setup dt2w so that it activates when a notification received and then turns off after a couple of minutes. This works when the screen is on but doesn't when it's turned off. Basically, writing '2' into /sys/android_touch/doubletap2wake does not turn on dt2w, unless I wake the phone with the power button. It seems you had a similar problem but I'm not sure how you solved this?
Ok
You need to see the settings
For example if you use profile that work with proximity sensor, you need to activate it by monitor off
Or
Just move parameters to turn on dt2w
Now i come back to first solution
But with this preference
Keep on My test
Hmm, did not manage to get it working. I want to enable DT2W when a notification is received, I don't want to use proximity sensor or anything else. For some reason it doesn't work, I can't enable DT2W while the screen is off.
Good idea!
I try and work!
For example
If you not work, check if task have root permission
The "use root" checkbox is checked, I don't know why it doesn't work Here's what happens. When I receive a notification, DT2W doesn't work. If I wake up the phone with power button, and immediatelly turn it off, then DT2W works. What kernel are you using, perhaps it has something to do with that?
I use elementalX and i try also other kernel
But
With charizardX , labodj's kernel, and bricked kernel , for me , tasker not work
I also use elementalX but can't get it to work. Damn! At least I know it's possible.
When you receive a notification you set task "on" or whatever you called it on enter task?
Or maybe set different time to monitoring off in the preference
@Dragusdrake
Oi!
[emoji16]
I downloaded your app and set up.
but, don't seems to work [emoji15]
something else to do?
n5sk7.8.1.Robbie09.08gapps239art
CD350twrp2.7.1.0rd2.08v4a
----------------------------------------------------------------------------
have doubts about Slim? click here:
http://slimroms.net/index.php/faqandmanual
So I know I'm not the only one having problems with notifications. The issues I have found with every firmware up to 137 are:
1. Regardless of Doze settings, enters IDLE in five minutes.
2. Sometimes, regardless of Doze settings, never gets out of IDLE into IDLE_MAINTENANCE
So to work around these issues, the only way to do it is to disable Doze. Disabling Doze will potentially cost you battery life, but you will get notifications from email client and any other software, as if it were Lollipop.
So what's a good way to do this easily? Tasker is the best answer I've come up with.
Here are the instructions which worked for me. This has solved all the notification issues I have had, but it's a little bit of a pain.
1. Make sure your phone is rooted. Purchase and install Tasker.
2. Create a task. Action category is Code-> Run Shell. Command is -- dumpsys deviceidle disable --. Check Use Root. Then click the lower right hand corner to make an icon, and go back to Tasks menu. Long press the task you made to highlight it, then choose the menu in the upper right and choose export. Export it 'As App' (it may prompt you to install something)
Run this app every time you start up your phone, or set it to auto run in the app settings. Make sure it has root permission. If you did this correctly, it will disable doze until the phone reboots, and Doze won't interfere with notifications anymore.
Hopefully all these issues get fixed soon!
duraaraa said:
So to work around these issues, the only way to do it is to disable Doze.
Click to expand...
Click to collapse
Have you also tried selecting the Performance plan?
Performance setting still won't work.
Sent from my HUAWEI NXT-AL10 using XDA Premium 4 mobile app
Maybe it can help.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my HUAWEI NXT-L29 using Tapatalk
somboons said:
Maybe it can help.
View attachment 3632622
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
How did you get in that setting? I can't find it in my phone 'setting'
snugroho3 said:
How did you get in that setting? I can't find it in my phone 'setting'
Click to expand...
Click to collapse
That is greenify app.
Sent from my HUAWEI NXT-L29 using Tapatalk
Is greenify working ok without xposed?
sure thing, xposed only enables some extra functions. been using greenify without xposed for a long time now
I have to hand it to you. This worked. I was skeptical, but as soon as I disabled doze using this method, all of my notifications became instant. Absolutely no delay. It's a shame to have to give up doze to get notifications to work correctly, but it makes the phone 100% more usable. Thanks, man. This thread hasn't had anywhere near enough attention.
Making apps system apps, whitelisting, performance mode, locking apps in memory, and turning off doze for individual apps (not to mention tweaking the doze settings) - None of that worked. Doze is seriously broken on this phone. None of my other phones on 6.0 have this issue. Thanks for figuring this out. I was going to park the phone until an ASOP or Cyanogenmod ROM came out.
duraaraa said:
So I know I'm not the only one having problems with notifications. The issues I have found with every firmware up to 137 are:
1. Regardless of Doze settings, enters IDLE in five minutes.
2. Sometimes, regardless of Doze settings, never gets out of IDLE into IDLE_MAINTENANCE
So to work around these issues, the only way to do it is to disable Doze. Disabling Doze will potentially cost you battery life, but you will get notifications from email client and any other software, as if it were Lollipop.
So what's a good way to do this easily? Tasker is the best answer I've come up with.
Here are the instructions which worked for me. This has solved all the notification issues I have had, but it's a little bit of a pain.
1. Make sure your phone is rooted. Purchase and install Tasker.
2. Create a task. Action category is Code-> Run Shell. Command is -- dumpsys deviceidle disable --. Check Use Root. Then click the lower right hand corner to make an icon, and go back to Tasks menu. Long press the task you made to highlight it, then choose the menu in the upper right and choose export. Export it 'As App' (it may prompt you to install something)
Run this app every time you start up your phone, or set it to auto run in the app settings. Make sure it has root permission. If you did this correctly, it will disable doze until the phone reboots, and Doze won't interfere with notifications anymore.
Hopefully all these issues get fixed soon!
Click to expand...
Click to collapse
I made and run this app but i dont know If it has root permission and doze gets disable or not. How can i control if it has root permission and doze gets disable or not after i run this app?
HUAWEI NXT-AL10 cihazımdan Tapatalk kullanılarak gönderildi
johnweber7375 said:
I made and run this app but i dont know If it has root permission and doze gets disable or not. How can i control if it has root permission and doze gets disable or not after i run this app?
HUAWEI NXT-AL10 cihazımdan Tapatalk kullanılarak gönderildi
Click to expand...
Click to collapse
You can check using adb.
I don't have the phone now (it's bricked) so I'm sorry to say I can't be sure the command is right, but I think you should see something like disabled if you run
adb shell dumpsys deviceidle
Then you will know that it worked.
greyhulk said:
I have to hand it to you. This worked. I was skeptical, but as soon as I disabled doze using this method, all of my notifications became instant. Absolutely no delay. It's a shame to have to give up doze to get notifications to work correctly, but it makes the phone 100% more usable. Thanks, man. This thread hasn't had anywhere near enough attention.
Making apps system apps, whitelisting, performance mode, locking apps in memory, and turning off doze for individual apps (not to mention tweaking the doze settings) - None of that worked. Doze is seriously broken on this phone. None of my other phones on 6.0 have this issue. Thanks for figuring this out. I was going to park the phone until an ASOP or Cyanogenmod ROM came out.
Click to expand...
Click to collapse
I spend a LOT of time figuring it out, but it was definitely Doze.
The dead giveaway is that Hangouts (high priority message so Doze doesn't matter) worked fine.
I'm happy it works for you. Let's hope Huawei fixes this. Most Chinese users don't really care about Google Cloud Messaging and get their notifications through other services which Doze doesn't affect, so I'm thinking they're not likely to fix it, but we'll see.
Anyone that disabled doze can check how big of an impact it is on battery life?
Also anyway to fix without root?
I solve this issue by giving priority to the important apps notification and all warking perfect now
My device is L29 with kangvip rom
somboons said:
Maybe it can help.
View attachment 3632622
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
Thanks mate it helped me solving the notification issue without needing to root my phone.
This does indeed work. Have a look at this thread as well.
http://forum.xda-developers.com/android/apps-games/root-doze-settings-editor-android-t3235130
I wonder if there is some parameter in an apk or in the kernel I can edit so when you flash a ROM doze is disabled by default.
Thanks buddy for that doze thread!
I disabled hangouts and the battery life got much much better
Other notifications I have set via the settings--->notification panel---->notification manager and set according to the app use
bibiner said:
Anyone that disabled doze can check how big of an impact it is on battery life?
Click to expand...
Click to collapse
No difference at all for me. Standby time is just as good. Huawei's own "Doze" still works if you want it to, also.
bibiner said:
Also anyway to fix without root?
Click to expand...
Click to collapse
Yes you can run that command with ADB without root and it will work just as well. Just be sure to have USB debugging enabled in developer options. The part about root is so that you can use Tasker to automate the process instead.
somboons said:
That is greenify app.
Sent from my HUAWEI NXT-L29 using Tapatalk
Click to expand...
Click to collapse
Thanks for the greenify hint mate!
Quick question for everyone that has installed xposed on their s7 edge - I'm looking for recommendations on modules to use...
I'm coming from a Sony Z3 compact so not sure if there are any must-have modules that people typically use for Samsung...
1. Anyone try Gravitybox on S7 Edge yet? Or should I stick to the one provided by Wanam
2. Any other recommendations for modules?
Thanks in advance!
I found "XTouchWiz" to be the most useful if you haven't tried it yet
lightvu said:
Quick question for everyone that has installed xposed on their s7 edge - I'm looking for recommendations on modules to use...
I'm coming from a Sony Z3 compact so not sure if there are any must-have modules that people typically use for Samsung...
1. Anyone try Gravitybox on S7 Edge yet? Or should I stick to the one provided by Wanam
2. Any other recommendations for modules?
Thanks in advance!
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
All working extremely well. No crashing or reboots
Sent from my Blackberry Bold
gravity box; lots of tweaks causing bootloops so jus have the xposed uninstaller zip...
ahamed.rafi135 said:
gravity box; lots of tweaks causing bootloops so jus have the xposed uninstaller zip...
Click to expand...
Click to collapse
Thanks for all the info - do you have a short list of the tweaks in gravitybox that doesn't work?
Reasonably long list incoming;
CrappaLinks - Fixes link clicking
Disable Instagram Double Tap - what it says on the tin
GravityBox - Needs no description
MinMinGuard - Ad blocker
NoSafeVolumeWarning - Doesn't appear to work
RootCloak - Again, what it says on the tin
Swiftkey Goodness on More Fields - more swiftkey predictions
XInsta - Download IG photos
Xposed Additions - Reprogram buttons - Very useful, I use double click power to toggle my bedroom lights
YouTube AdAway - Guess
Youtube Background Playback - Great tool
Zoom For Instagram - Again pretty self explanatory.
---------- Post added at 09:27 PM ---------- Previous post was at 09:27 PM ----------
ahamed.rafi135 said:
gravity box; lots of tweaks causing bootloops so jus have the xposed uninstaller zip...
Click to expand...
Click to collapse
Out of interest what are you running into problems with?
Most of the things I've chosen appear to work fine.
I have more in my sgs5, but now in this working :
Amplify - with the app to limit alarms ecc.
AppOpsXposed - to controls apps more (i love LBE but still doesn't working on that crap marshmallow)
Greenify - with the app to extend it
Intelli3G - to control switch to slow\fast radio gsm ecc.
MinMinGuard - AdsBlocker
Play Store Changelog - Put changelogs on top when u open an app on playstore
SNAPPREFS - Snapchat tools
Youtube AdAway - self explain
Youtube Background Playback - self explain
Chooo
Xprivacy works ?
Envoyé depuis mon SM-G925K avec Tapatalk
StonedPanda said:
Xposed Additions - Reprogram buttons - Very useful, I use double click power to toggle my bedroom lights
Click to expand...
Click to collapse
Does this work on the capacitive buttons also?
peachpuff said:
Does this work on the capacitive buttons also?
Click to expand...
Click to collapse
Yup!
StonedPanda said:
Yup!
Click to expand...
Click to collapse
How do you turn on bedroom lights lol?
Sent from my Blackberry Bold
Brava27 said:
How do you turn on bedroom lights lol?
Sent from my Blackberry Bold
Click to expand...
Click to collapse
Phillips hue bulb, with Tasker and the "AutoHue" plugin, task to 'toggle' light, task actioned by double press of power button.
I love it.
StonedPanda said:
Phillips hue bulb, with Tasker and the "AutoHue" plugin, task to 'toggle' light, task actioned by double press of power button.
I love it.
Click to expand...
Click to collapse
Haha awesome. I am gonna buy this.
Sent from my Blackberry Bold
After putting in gravitybox (and enabling a few tweaks - including updating the long press behavior of the back button) - I noticed that vibrate for my capacitive buttons have stopped working (even though it is enabled in the settings).
I also noticed that when using gravitybox, I ended up seeing 2 "PM"s appended to the end of my time, I had to manually hide it in.
Can any one confirm similar findings?
FYI - I do have xtouchwiz and gravitybox enabled at the same time....
StonedPanda said:
Yup!
Click to expand...
Click to collapse
No way... awesome!
So you can program the recents button switch back to the previous app with a long press?
lightvu said:
I also noticed that when using gravitybox, I ended up seeing 2 "PM"s appended to the end of my time, I had to manually hide it in.
Click to expand...
Click to collapse
Gravitybox puts its own pm and touchwiz puts the other pm, you have to disable one of them.
I remember having a rom with a built in center clock, then enabling another center clock with gravitybox... guess how many clocks i had?
wattx said:
I found "XTouchWiz" to be the most useful if you haven't tried it yet
Click to expand...
Click to collapse
XTouchWiz or Wanam?
EDIT: XTouchWiz is much much much better than Wanam
Amplify, Greenify, Powernap and Smart Network for some crazy battery life.
Follow this guide over here: http://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884
Would love to see a specific Amplify guide for the S7.
lightvu said:
After putting in gravitybox (and enabling a few tweaks - including updating the long press behavior of the back button) - I noticed that vibrate for my capacitive buttons have stopped working (even though it is enabled in the settings).
I also noticed that when using gravitybox, I ended up seeing 2 "PM"s appended to the end of my time, I had to manually hide it in.
Can any one confirm similar findings?
FYI - I do have xtouchwiz and gravitybox enabled at the same time....
Click to expand...
Click to collapse
I figured out that it was [xposed additions] module that was disabling my haptic feedback for capacitive buttons =P
silly me..
That being said - does anyone know of a good module to disable the led notification after a certain time?
kimern said:
Amplify, Greenify, Powernap and Smart Network for some crazy battery life.
Follow this guide over here: http://forum.xda-developers.com/android/general/guide-extreme-battery-life-t3095884
Would love to see a specific Amplify guide for the S7.
Click to expand...
Click to collapse
What app have you withelisted because i have sleep of death with powernap on!
I just need to ask. Now I'm on EchoeRom v4, on previous versions of this ROM when I've installed Xposed from time to time phone just reboot even when it was laying on the desk. It was because of the Xposed or not? Anyone noticed it? By the way: what ROM are you using?