[APP/OPEN SOURCE]Screen Standby ♯ Root [2.0]-Screen off while keeping device active

Search This thread

jgaf

Senior Member
Aug 14, 2011
1,229
389
Tampa
Re: [APP/09 FEB/2.0+]Screen Standby ♯ Root [2.0α3]-Screen off while keeping device ac

2.0 α3

- New feature added: BLUETOOTH DETECTOR. Auto turn screen off / on with bluetooth device pairing / unpairing. Ability to filter device to trigger the app using device name. Auto app launching / closing feature (similar to other detector) are present

- Attempt to fix Volume rockers problem with samsung s3 us

- Enhanced UI. Bigger button for Tablet. True black background to consume even less power

- Small bug fixes here and there


-----------------------

P/s: Lunar New Year is coming tomorrow, so I wish all of you to have a nice, happy and successful year ahead! :good: :highfive:

Volume rockers now working on s3, awesome work like always :good:

ZOMG root method is also working, didn't work for me before

Sent from my ASUS Transformer Pad TF300T using Tapatalk HD
 
Last edited:
  • Like
Reactions: nkahoang

rm001

Senior Member
Oct 24, 2009
271
58
2.0 α3

- New feature added: BLUETOOTH DETECTOR. Auto turn screen off / on with bluetooth device pairing / unpairing. Ability to filter device to trigger the app using device name. Auto app launching / closing feature (similar to other detector) are present

- Attempt to fix Volume rockers problem with samsung s3 us

- Enhanced UI. Bigger button for Tablet. True black background to consume even less power

- Small bug fixes here and there

- (Nearly forgot). I added two hidden activities (EnableActivity and DisableActivity) for those who are using automated apps like Setting Profiles to be able to trigger my app
-----------------------

P/s: Lunar New Year is coming tomorrow, so I wish all of you to have a nice, happy and successful year ahead! :good: :highfive:
nkahoang, Than you, it`s fantastic. While I looked for some another way to do it, you just added it to your application.
Now a question: Samsung`s AllShare Cast (it streams wirelessly video to a TV) exists only as toggle (like WiFi on/off, GPS on/off and so on in the notification bar) and as a widget, and it is not visible in the "Run app on Bluetooth connection" list. For example, in the Setting Profiles when I look for a list of apps to launch, I can see an Allshare Cast`s widget, I press it and then I see AllShare Cast(.AllShareCastWidget), and I choose it as I choose any other application. But I can`t find the same AllShare Cast(.AllShareCastWidget) in your application. Is there any way to switch ON an AllShare Cast in "Auto Bluetooth detection" mode? If I could launch (or switch ON, or toggle ON) an AllShare Cast, then the Setting Profiles wuold became unnecessary. Also, now I can`t use the new BT Autodetection feature in your app, because I can`t find an AlShare Cast in it`s list of applications. A deadlock.

P.S. BT autodetection (with device filtering) works, I already cheked it!
 
Last edited:
  • Like
Reactions: nkahoang

mnsk

Senior Member
Aug 12, 2012
507
88
Hey! man buttons for tablet are bigger but they are still on left side, could you bring them in center.
 

Dragonpet

Member
Dec 9, 2012
16
0
Volume rockers now working on s3, awesome work like always :good:

ZOMG root method is also working, didn't work for me before

Sent from my ASUS Transformer Pad TF300T using Tapatalk HD

are you talking about GS3? Which root method worked for you?! It would be amazing if this app works for GS3. :D
 

jgaf

Senior Member
Aug 14, 2011
1,229
389
Tampa
Re: [APP/09 FEB/2.0+]Screen Standby ♯ Root [2.0α3]-Screen off while keeping device ac

Thanks!! How were you able to get the screen to come back on? For me it just kinda stayed black, I have Tmobile Galaxy S3.

It worked for me using the volume rocker method up for on and down for off. I'm on att s3 don't know if that makes a difference. Just tried proximity and it works too.

Sometimes it takes a couple of seconds to react.

Sent from my ASUS Transformer Pad TF300T using Tapatalk HD
 
Last edited:
  • Like
Reactions: Dragonpet

Dragonpet

Member
Dec 9, 2012
16
0
It worked for me using the volume rocker method up for on and down for off. I'm on att s3 don't know if that makes a difference. Just tried proximity and it works too.

Sometimes it takes a couple of seconds to react.

Sent from my ASUS Transformer Pad TF300T using Tapatalk HD

Thanks yeah! I got it to work as well using the volume rocker method. However, does your phone freeze after using it, not immediately but after a bit of usage? Also, video and some app doesn't work when Screenstandby is enabled :( For example, the stock video app will list videos but doesn't actually play them. I have "Disabled HW overlay" enabled per the dev's suggestion as well. Still, this is a promising improvement, can't wait for this app to work 100%! I will be more than happy to purchase a license to support the developer.
 
Last edited:

jgaf

Senior Member
Aug 14, 2011
1,229
389
Tampa
Re: [APP/09 FEB/2.0+]Screen Standby ♯ Root [2.0α3]-Screen off while keeping device ac

Thanks yeah! I got it to work as well using the volume rocker method. However, does your phone freeze after using it, not immediately but after a bit of usage? Also, video and some app doesn't work when Screenstandby is enabled :( For example, the stock video app will list videos but doesn't actually play them. I have "Disabled HW overlay" enabled per the dev's suggestion as well. Still, this is a promising improvement, can't wait for this app to work 100%! I will be more than happy to purchase a license to support the developer.

Only used it for playing ingress while walking around town. I haven't had any freeze ups.

Sent from my ASUS Transformer Pad TF300T using Tapatalk HD
 
  • Like
Reactions: Dragonpet

nkahoang

Senior Member
Jan 23, 2011
273
626
Melbourne, Victoria
www.nkahnt.com
Re: [APP/09 FEB/2.0+]Screen Standby ♯ Root [2.0α3]-Screen off while keeping device ac

Lol

"User: It doesn't work
Dev: I have no clue
User: It works!
Dev: I still have no clue!"

Seriously, I am as confused as you guys. I am sure that I haven't fixed anything. It is just that jgaf's use does not involve graphic rendering with vsync so it doesn't freeze.

The Galaxy s3 US variant is really unique. For the input devices, this device has 13 (it even seperates the volume up and volume down buttons into two seperate devices)! Compare to a HTC One X with 6 or Motorola Xoom with 7. This device also has 3 framebuffers! While some devices only have 2 (one for screen and one for external display) or just one for older devices.

Sent from my MZ601 using Tapatalk HD
 
Last edited:

rm001

Senior Member
Oct 24, 2009
271
58
P.S. BT autodetection (with device filtering) works, I already cheked it!
on Samsung Galaxy Note 2 the BT autodetection works and I see black box in the bottom of the screen with "One Two dim mode"....But One Two dim mode actually doesn`t work, the screen doesn`t dim
It works and the screen dims only if I manually press on its button in the main menu.
 
Last edited:

keeper22

Senior Member
Dec 1, 2008
218
20
Lol

"User: It doesn't work
Dev: I have no clue
User: It works!
Dev: I still have no clue!"

Seriously, I am as confused as you guys. I am sure that I haven't fixed anything. It is just that jgaf's use does not involve graphic rendering with vsync so it doesn't freeze.

The Galaxy s3 US variant is really unique. For the input devices, this device has 13 (it even seperates the volume up and volume down buttons into two seperate devices)! Compare to a HTC One X with 6 or Motorola Xoom with 7. This device also has 3 framebuffers! While some devices only have 2 (one for screen and one for external display) or just one for older devices.

Sent from my MZ601 using Tapatalk HD

I am glad you are on it, and look forward to some progress for the S3. Thank you for the hard work.
 

Dragonpet

Member
Dec 9, 2012
16
0
Lol

The Galaxy s3 US variant is really unique. For the input devices, this device has 13 (it even seperates the volume up and volume down buttons into two seperate devices)! Compare to a HTC One X with 6 or Motorola Xoom with 7. This device also has 3 framebuffers! While some devices only have 2 (one for screen and one for external display) or just one for older devices.

Sent from my MZ601 using Tapatalk HD

I noticed that! I am just a script kiddy, so I poke around with what I find on Google. The third frame buffer seems to have virtual size of 1920x1080. My guess is, It might be for Allshare cast wireless dongle.
 

nkahoang

Senior Member
Jan 23, 2011
273
626
Melbourne, Victoria
www.nkahnt.com
Re: [APP/09 FEB/2.0+]Screen Standby ♯ Root [2.0α3]-Screen off while keeping device ac

Hey, so has anyone tested screen Standby with the all share cast on US SGS3 ? It may not work with mhl but perhap it will work with all share?

Sent from my Nexus S using Tapatalk 2
 

keeper22

Senior Member
Dec 1, 2008
218
20
Could you add an option to run another app on disconnect instead of just closing the "on connection app". Tasker allows you to make apps from tasks and I think it would be beneficial to run something different on disconnect.

---------- Post added at 07:20 AM ---------- Previous post was at 07:17 AM ----------

Hey, so has anyone tested screen Standby with the all share cast on US SGS3 ? It may not work with mhl but perhap it will work with all share?

Sent from my Nexus S using Tapatalk 2

I tried it with Allshare with the same results as plugging it in to mhl. It would work once or twice but eventually freeze up the phone. Another symptom I noticed is that I could not play videos with the screen off. The video would just hang while loading but as soon as I turned on the screen the video would play then I could turn off the screen and the video would continue to play.
 

nkahoang

Senior Member
Jan 23, 2011
273
626
Melbourne, Victoria
www.nkahnt.com
Re: [APP/09 FEB/2.0+]Screen Standby ♯ Root [2.0α3]-Screen off while keeping device ac

Could you add an option to run another app on disconnect instead of just closing the "on connection app". Tasker allows you to make apps from tasks and I think it would be beneficial to run something different on disconnect.

---------- Post added at 07:20 AM ---------- Previous post was at 07:17 AM ----------



I tried it with Allshare with the same results as plugging it in to mhl. It would work once or twice but eventually freeze up the phone. Another symptom I noticed is that I could not play videos with the screen off. The video would just hang while loading but as soon as I turned on the screen the video would play then I could turn off the screen and the video would continue to play.

It is possible to do that, and if I would, the launch app on disconnect must be implemented on all auto detector. I currently implement all of them seperately. I know it is a bad design but initially, I didn't think that one day my app would ever be extended to this much (only HDMI detection without poolling the kernel was a big achievement back then, and Dock detection with Motorola dock sensing thank to jjwatmyself's big help. Then epolaris suggested the auto-run feature).

Thus, let me restructure the app design first; then it would have the potential to chain tasks and events together like Tasker does in an easy and more maintainable way. Thanks for your suggestion though.

-----

Just to let you guys know that I have just received my Google Nexus 4. So much better support for this device is coming. I would have bought an US SGS3 if it is available here as it is the device needs much care atm.

Another news is that probably I would be able to showcase the remote control feature this weekend.

Until then, Happy Valentine to all of you guys!

Sent from my MZ601 using Tapatalk HD
 
  • Like
Reactions: Magissia

gloscherrybomb

Senior Member
Nov 8, 2010
265
159
Hi,

I have a voice assistant in my car, but I am currently stuck for a way to activate it regardless of what the front app is. I pass the display to the in car display and use Screen Standby to hide the phone screen. This works fine.

What I would like, is if when it is in the mode, any click of the screen at all would activate my voice assistant (or any chosen application).

Is this possible?

Thanks
 

Old faithful

Senior Member
Dec 31, 2008
595
204
Wentworth-Nord
Unnecessarily complex and buggy :(

OK, so I REALLY wanted to get this thing going and working as it is supposed to, as an app to simply turn the screen and digitizer off.

After trying this thing for weeks, I still can't get it to work reliably. In other words, sometimes it works, sometimes it literally drains the battery in a matter of an hour, noticeably overheating the phone in the process (Unrooted Galaxy Note 2, Jelly Bean 4.1.1.)

Furthermore, and a bit of advice for people who would turn the screen off and CAN'T REMOVE THEIR BATTERY... How are you supposed to be able to press the ON button if the screen is OFF and the digitizer DEACTIVATED???

Maybe someone can shed a light on this, but I cannot understand why a simple screen on / screen off switch can not be implemented, as in "press the power button to turn screen on or off"???

Maybe we should be looking into how android manages to play music with the screen off and use that same function as the basis for this utility!

Don't hesitate to fire away... I'm looking for answers here!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 238
    [APP/OPEN SOURCE]Screen Standby ♯ Root [2.0]-Screen off while keeping device active

    SCREEN STANDBY ♯ ROOT 2.0
    TURN OFF SCREEN AND AVOID OVERHEATING PROBLEM FROM PROLONGED STREAMING/GAMING OVER HDMI / MHL | DOWNLOADING DATA OVER WIFI
    SAVE YOUR SCREEN AND BATTERY WHILE PHONE IS STILL RUNNING!
    OPEN SOURCE!
    AUTO SCREEN OFF / ON WITH HDMI CONNECTION / DISCONNECTION

    Git Repo: https://github.com/nkahoang/screenstandby

    promonew_xda_zpsbfbcbdd2.png


    Remote Controller Feature - Public Review
    remoteBanner_zps56ef2600.png


    Setting Wizard
    settingwizard_zps62df3a35.png


    Search Plugin
    searchplugin_zpsc15ab8ca.png


    Selectable UI
    toggleui_zpsa8d122ab.png


    Outgoing call automator
    automator_zpse7d250b0.png


    TURN YOUR SCREEN INTO TOUCHPAD, NO NEED FOR BUYING AN EXTERNAL MOUSE!​
    REMOTE CONTROLLER FEATURE!​
    SCREEN STANDBY IS NOW LIVE ON GOOGLE PLAY STORE!
    The app is published under the name "Screen Standby ♯ Root"



    INTRODUCTION
    Hi everyone,
    This is originally for HTC One X, however, I have ported it to the Galaxy Nexus and now it could work on all devices! (Galaxy S3 / Moto Razr / etc). "Screen Standby" will completely turn off the backlight while keeping the phone running for MHL / HDMI streaming|gaming. That means you can now watch movie / play games on big screen and can still turn off the screen (touch screen still works!).

    ROOT REQUIRED (Non-root method also available but not as effective & battery saving as root)

    FEATURES
    - Switch off the screen temporarily without actually putting the phone into 'sleep mode'. The phone is still running! It saves your battery, avoids heating to prolong battery life
    - Since 1.96, screen can be optionally turned into touchpad!
    - It has a nice little widget that let you quickly turn the screen off from your homescreen
    - Since version 1.5 beta 2, shaking your device will temporarily toggle between complete screen off and lowest brightness level (so that you can perform quick action without playing a blind guessing game)
    - Non-root method now available with 1.98 Beta 7
    - One two dimmer: Turn off screen automatically after an idling time (no user interaction)
    - Simple interface

    WHY?

    This little app will temporarily turn off screen backlight, however, unlike putting the phone to sleep, the phone is kept running. It is perfect for keeping the phone from heating from prolonged HDMI streaming over Medialink HD or MHL connection (the screen is off yet image/movie/games continue to be streamed) / or wifi data downloading, etc.


    HOW DOES IT WORK?

    It attempts to perform various actions (cutting screen voltage / brightness / light switch / writing a blank image to frame buffer, etc)
    (Since 1.5, the voltage method is temporarily disabled)
    For some devices, the screen may shutter a bit if Automatic Brightness is turned on. However, the app will automatically detect it and put the backlight into sleep again. So if you want to avoid the problem, set Automatic Brightness to false.. Since 1.7, enable auto brightness handling in app setting helps preventing this flickering


    HOW TO TURN ON THE SCREEN AGAIN?
    + Click on the app notification on your status bar (since version 1.3) or
    + Simply put the phone into true sleep (short press power button) then turn it on (power button again)
    + Temporarily lid the light a bit by shaking the device (since 1.5b2, enable it in Menu -> Settings)
    + If you can't turn on using any of the above methods, press emergency button (in main app interface) to turn on / or use 2 by 1 widget

    SCREENSHOTS (Updated for version v1.97)

    ss001_resized_zps6e8366ab.jpg
    ss002_resized_zps69f173f3.jpg
    ss003_resized_zpse4c7e153.jpg


    Installation
    Install as normal apk :) No big deal
    Remember, install and use as your own risk, even though I can't think of any damage this little app can cause to your phone

    Changelogs:
    ßeta 2 Changelog:
    Add toggable UI: Metro and Android Dark Holo (in Settings -> Extra)
    New feature: Outgoing call automator !

    First ßeta Changelog:
    - New! Setting Wizard to help user quickly and easily set up Screen Standby. Simply select your known-supported device (the list is expanding!
    Please help me) and your use-case (Streaming movie / Playing ingress / Playing Youtube etc) and the wizard will automatically select the optimised preset for you!
    - New! Screen Standby Search Plugin to help automate Screen Standby from Search key (long press search hardware-key or softkey) or Google Now gesture (swipe up from Home softkey on Jellybean device). The plugin can now open Screen Standby interface, activate / deactivate / toggle screen off or launch Remote Controller
    - Added better Root & BusyBox checker and helper
    - Added new Tasker intent to control screen standby:
    com.nkahoang.screenstandby.action.TOGGLE : to toggle screen on and off automatically
    com.nkahoang.screenstandby.action.REMOTE_CONTROL: to launch Remote Control from tasker
    - Added new option to broadcast an intent to Tasker when HDMI is detected (go to my app's settings -> HDMI Detection -> Enable broadcast on HDMI Connection/Disconnection. Specify intent action (case-sensitive) for each case. Go to tasker, add New System Event -> Intent Received, type exactly the action intent you provided in Screen Standby). The best part is, HDMI Intent can also be broadcast without activating Screen Standby (yeah, so you can use SS as a HDMI sensor for tasker)
    - Added ability to use Remote Controller with Wifi-Direct (if a warning message is shown, just click 'Continue Anyway')
    Optimizations:
    - Continued optimisation for Nexus 4
    - Added wake-lock to One Two Dimmer
    - Slightly tuned sensors

    From user report:
    Normally, with the same amount of time watching movie, battery drain drops from 30% down to just 2%!!!!!!!!!!!

    Please report bugs / feedbacks / suggestions.
    To help me solving your issue faster, since version 1.31, you may want to open the app, hit "Menu" key -> Print debug info. It will then generates a log file containing the required information. Please send that file over pm to me. Thank you


    Special thanks to:
    - ppmeis (helps with S2, now S3 / Transformer and lots of other stuffs)
    - winsettr (helps with Galaxy Nexus compatibility and constant reports)
    - mnsk (helps with his Sony and Iconia)
    - cocatriz (helps with S2)
    - TheDarkLux (helps with Galaxy S3)
    - evilmtv (helps with problems on GB devices)

    Coffee buyers:
    Styles Vancleave
    - agronick from AppRadio / ARLiberator forum
    - jjwatmyself (and also thanks for his mention of my app on his thread)
    - jdbaldi
    - jhanson
    - MichaelMotes
    Youtube clip:
    - Doctor.Krouch

    Tutorial: Setup app to work with tasker / Llama
    Follow the instruction of this post:
    http://xdaforums.com/showpost.php?p=33073452&postcount=92 (Tasker)
    http://xdaforums.com/showpost.php?p=33073452&postcount=565 (Llama, thank Buzzthebuzzsaw)

    DOWNLOAD
    Stable version of app can be downloaded in attachments section on through Google Play Store. In addition, this thread will receive beta / experimental build in the future.

    Archived build (1.1 to 1.96) can be downloaded from here
    9
    [Tutorial] Making Screen Standby works with Tasker

    This tutorial will help you setup tasker to automatically turn off / on screen based on your defined profiles.

    Step 1. Download and install my app (only works with version 1.5 and above), then open Tasker, of course
    Step 2. Switch to Tasks tab, click on the Add button (plus icon)
    Step 3. Type "Screen off" as Name or up to you /* creating action to enable my app to turn off the screen */
    Step 4. Click on the Add action button (plus icon)
    Step 5. Select Misc -> Send Intent
    Step 6. In the action box, type in com.nkahoang.screenstandby.action.ENABLE
    (case sensitive)
    Step 7. Click on OK (check icon button)

    Step 8. Add another task
    Step 9. Type "Screen on" as Name or up to you /* creating action to disable the app to turn the screen on again */
    Step 10. Click on the Add action button
    Step 11. Select Misc -> Send Intent
    Step 12. In the action box, type in com.nkahoang.screenstandby.action.DISABLE
    (case sensitive)
    Step 13. Click on OK (check icon button)

    Step 14 (Optional). Go to Screen Standby -> Menu -> Settings and set all the options you want the app to behave like

    Now you can add action "Screen off" and "Screen on" in your Tasker profile. Have fun!
    9
    Screen Standby is now OPEN SOURCE

    Hi everyone, sorry for the long long response. Many things happened and I'm extremely sorry for any issues and lack of my feedback.

    Today, I finally have some free time and open sourced Screen Standby to everyone under GNU GPL v2 license

    Every developer will be able to access the codebase of the app for the first time (with screen off, remoting, HDMI, everything!) and contribute directly to it. I would like to apologize for being late in open sourcing the app. I recognise my biggest problem was the ambitious of making the app compatible with all devices, which did prove that it is an impossible task. Screen Standby is too hardware specific and I, myself cannot maintain it to work on all devices.

    The app should be able to compatible with 4.4 devices (4.3 device please wait for an update to 4.4)

    Github repository is at the following URL:
    https://github.com/nkahoang/screenstandby

    If the app is not working on your devices, please ask your device developer to contribute in the app project. I, myself, will contribute in the following devices:
    - Google Nexus 4 (4.0+)
    - Google Nexus 5 (4.4+)
    - Samsung Galaxy S4 i9505 (4.4+, which is broken as I dropped it after having it for about 1 month... )

    Cheers and glory to Open Source community
    8
    promo_xda_newyear_zps97da5785.png

    New year Release: 1.99 R2
    - Add new feature: "Auto app detection". If enabled, this feature will turn off screen when the selected app is launched (Youtube, Ingress, MX Player, etc) and screen will be turned on again if none of the selected app is active. Select up to 4 apps, disabled by default.
    - Much much better One Two Dim. The handler is completely rewritten and should be more stable and battery friendly
    - Attempt to fix Nexus 10 bugs
    - Squash some small bugs

    I would like to thank you to Styles Vancleave with his very generous donation that is enough to buy me more than a year worth of daily coffee. It greatly helps further development of this app. Thanks again!
    8
    Everyone, I would like to make an announcement
    ...
    fanfare.play();

    SCREEN STANDBY IS NOW LIVE ON GOOGLE PLAY STORE!
    The app is published under the name "Screen Standby ♯ Root" with version v1.75 (also updated on this thread), which has the following changelogs:

    - New icon !!!
    - Proximity sensor (experimental, please test for me! )
    - Even better stability & faster off time
    - I also implemented an ads banner with this (don't worry guy, there is an option in Settings to turn it off :highfive:.)


    Both XDA Thread and Google Play will receive constant update from me (for those who don't use Google Service can download the app directly from this thread). Moreover, XDA Thread will receive more frequent update (like what I have been doing)

    Please spend time checking it out and give me some reviews :p It would encourage me a lot in further development of the app.

    --------------------

    One more thing, as I mentioned, my MHL adapter is broken. So can anyone with MHL adapter make a short Youtube demonstration clip for this little app so that I could add it to the Google Play page? I would be very very grateful.

    Once again, I would like to express my deepest appreciation to everyone for helping me. Without you, this app is still a lost orphan thread sinking down somewhere in XDA.

    CHEERS!