[noJailbreak,APP] Always-on mode - running desktop program with screen turned off - Windows RT Development and Hacking

Thank to lloydo in Halite thread. http://forum.xda-developers.com/showpost.php?p=44167211&postcount=18
As we know. Windows RT just suspend desktop program while it in sleep mode. Then we have to turn screen on all time that we running desktop program even some program favor to run when screen off (like Halite, Free Download Manager, CoolPlayer, TightVNC server or listen Youtube with desktop Internet Explorer). But Thank for lloydo help. Now we can turn screen off by a little config and flip a Surface RT cover.
I made a .bat file that done the config. What you have to do is run it and flip the cover.
This what each .bat file will do
- Always-on mode - This one turn Always-on mode on and pause. Press anykey afterthat to turn it off. Leave the window open to notice you Always-on mode is still turned on.
- start Always-on mode - This one only turn Always-on mode on and exit. If you want to turn if off you need the next file. (or manual config)
- stop Always-on mode - This one use for turn Always-on mode off.
To make sure it no risk. I will show the step in .bat file to config when turn on.
- Start Presentation mode (made device never goto sleep after a time)
- Change what closing the lid does to "Do nothing" for both AC and DC (made device not sleep when flip the cover. you can delete DC line if you want)
- Re-activate power plan (made device apply change in 2nd step)
And when turn if off
- Change what closing the lid does to "Sleep" for both AC and DC (you can delete DC line if you want)
- Re-activate power plan
- Stop Presentation mode
Currently this were only confirm on Surface RT but you can try it on other device (that can turn screen off with cover or lid) without risk. Please confirm this work if you try on other device.

Keen to try this - looks useful.
shame im at work at the mo

Hisoft -- great job! I tried making a separate power profile to do the same thing but switching between them was a pain. This works much better, thanks!

lloydo said:
Hisoft -- great job! I tried making a separate power profile to do the same thing but switching between them was a pain. This works much better, thanks!
Click to expand...
Click to collapse
Yeah, I have a same problem on my laptop with 3 power profile (that frequently use). It not only when I have to switching between them, but also for when I have to change something I have to do it and do it again for all profile.

Hey thank you soo much for sharing this
I first was afraid of, that the Screen would be still on when closing lid, and therefore the battery drain would be horrorable, But doing this is INDEED what I needed: Playing Music with "CoolPlayer" and then Close the cover: Music is still plaĆ½ing and the Screen is off!
Wonderful!

Great job
looks useful
thx:good:

Tank you Guy ! I love This Tools for my downloads...

Does this also work on Windows 8?
When my htpc screen locks all the apps go into powersafe mode. So for example the sound from IE stops playing.

funfair said:
Does this also work on Windows 8?
When my htpc screen locks all the apps go into powersafe mode. So for example the sound from IE stops playing.
Click to expand...
Click to collapse
Sure. This can work on Windows 8, 8.1, RT and RT 8.1. Maybe also on Windows Vista and 7 but I don't have one for test.

Related

A2DP / AVRCP wakes up device after screen toggle off?!

(This was posted in the Titan forum, but since I beleive it is not device specific, I'm re-posting it here... )
I love using a2dp in my car stereo... sound quality is great, and I love carrying my tunes wirelessly from my WM6 PPC (HTC Titan) to the car speakers (Sony BT25000 stereo head unit installed in car).
Only problem is that I try to keep the screen off to save battery power, but everytime I press a command on my stereo (pause, next, previous, etc...), it wakes up the phone and I need to screen toggle it off again each time!
This is very annoying, so I was wondering if anyone had any experience with this problem, and is there a workaround?
I was thinking of writing some sort of MortScript to constantly check if the screen is on, and if so apply a screen toggle command, but it seems like this may create the problem of an infinity loop when I DO want to use it (turn on device, mortscript turns off screen off right away, repeat). Any suggestions?
Thanks!
Dishe;1453299the screen off to save battery power said:
I have the same problem with my Hermes. With WM6 I can finally play music in suspend mode, but as you say as sson as I use AVRP it wakes up..
Click to expand...
Click to collapse
jompao said:
I have the same problem with my Hermes. With WM6 I can finally play music in suspend mode, but as you say as sson as I use AVRP it wakes up..
Click to expand...
Click to collapse
I have noticed that when I use Core Player, the screen wakes up for a split second when a command is received and then does back to sleep. Of course, you would have to go through the menu of core player to activate the 'screen off' feature. This was tested on a X7501 running WM6.

Screen off without sleep?

I've tried a search to no avail.
Is there a way to just have the screen turn off with putting the device to sleep? On my TP if I'm listening to music thru the HTC built in music player or Coreplayer (streaming media), the phone no longer sleeps after a time out. It simply stays on with the screen dimmed. This is wasting battery life in my pocket. Can I just turn the screen off and keep the device awake? Pressing the power button puts it to sleep and the music stops.
Is this normal or is it because I've enabled auto lock feature with advanced config?
On my old universal I could just close the lid to turn the screen off. Is there a way to do it on this - maybe something like press and hold the power button while it's locked (otherwise it'll turn off!). Or better still - for it to recognise music is playing and just turn the screen off automatically and not sleep.
Cheers,
LLOYDY
Am I being stupid and missing something ridiculously obvious or is this not possible?...
I am working on an app that can to do this.
The current development thread is here: http://forum.xda-developers.com/showthread.php?t=431328
You can be my VGA tester if you like . (Post and problems / findings / etc. in there)
Download 0v01c and change the settings to Lights Out, then press Sleep.
Ta
Dave
lloydcody said:
Am I being stupid and missing something ridiculously obvious or is this not possible?...
Click to expand...
Click to collapse
Try the excellent today plugin called DevState (Device State). Its has a "turn off screen" option which is what I think you are after.
http://www.freewarepocketpc.net/ppc-download-devstate-v1-5.html
It can be seen in my today screen below:
Cheers guys! Will look into these.
Stupid me - phone goes off by itself anyway. You just have to wait.
LLOYDY

Pro Power Behavior

Just got the pro and have some questions about the power behavior. Does it behave like a laptop where after a certain amount of time it hibernates? What are the optimal settings to save battery say I carry it around all day and don't want the power draining while its sleeping. Sometimes I hit th epower button and it turns right on, sometimes the Surface splash screen comes on and it takes a little longer to turn on.
Thanks
It behaves exactly how you set it in the Windows power configuration tools... which by default is similar to a laptop, yes. Surface Pro is basically just a standard Windows portable computer (such as a laptop) with a touchscreen and a really nice chassis. Treat it like one.
GoodDayToDie said:
It behaves exactly how you set it in the Windows power configuration tools... which by default is similar to a laptop, yes. Surface Pro is basically just a standard Windows portable computer (such as a laptop) with a touchscreen and a really nice chassis. Treat it like one.
Click to expand...
Click to collapse
So it is not really something to use as a tablet, where you are constantly turning it on and off as you would an ipad? If I am going to treat it like a laptop then it's more like turn it on to use, and leave it running? Because I certainly would not wake and put my laptop to sleep as I would a tablet.
puma1 said:
So it is not really something to use as a tablet, where you are constantly turning it on and off as you would an ipad? If I am going to treat it like a laptop then it's more like turn it on to use, and leave it running? Because I certainly would not wake and put my laptop to sleep as I would a tablet.
Click to expand...
Click to collapse
If you go into the power settings you can set the power button on the surface (it is a power button btw) to hibernate or sleep instead. Windows 8 resumes from sleep near instantaneously (like a tablet) or from hibernate within a matter of a second or 2.
Plunging in and out of hibernate wont do it any harm. You can then just use the shutdown option already on the system for when you want to shut down normally.
Sleep makes more sense than hibernate for this use; even with solid-state storage resuming from hibernate does take a bit of time. Sleep, ever since Win7, has been instant for me on modern hardware. I see no notable difference in wake-from-sleep times between my phone, my (RT) tablet, my (x86 Win7) laptop, and my Win8 desktop.
The main reasons one would use hibernate instead of sleep are either if you aren't going to be using the machine for a day or two (hibernate draws no power, sleep still uses a tiny bit) or if you use BitLocker and need the device to be secure against DMA attacks (in sleep mode, it's possible to pull the storage decryption keys out of memory with the right hardware; in hibernate those keys are wiped and can't be recovered by an attacker.

Surface 3 Screen Off During Video Playback

There are times I want to turn off the screen without stopping the video playing (so audio continues). I used to do this all the time with my Android tablet using bsplayer, but have yet to find a way to do this with the Surface 3. I have tried a couple different ways to do this, and the closest I get is closing the touch cover over the screen while Media Player Classic is playing, but it doesn't actually turn off the screen. It turns the screen off, but almost instantly MPC turns the screen back on, albeit the lockscreen shows. The two problems I have with this is that since the screen is still technically on it is still draining the battery, and after 10 minutes the playback stops completely. If anybody has a workaround that can help with this I would greatly appreciate it.
1. Go to Windows 8 Start Screen
2. Search for "Windows mobility center" and select settings
3. Click on "Windows Mobility Center"
4. There will be an option called "Presentation mode". Turn it off
I found this via a website. Need to go back home to see if it works.
TileCreator said:
1. Go to Windows 8 Start Screen
2. Search for "Windows mobility center" and select settings
3. Click on "Windows Mobility Center"
4. There will be an option called "Presentation mode". Turn it off
I found this via a website. Need to go back home to see if it works.
Click to expand...
Click to collapse
Nope. On my S3 the option isn't there.
TileCreator said:
1. Go to Windows 8 Start Screen
2. Search for "Windows mobility center" and select settings
3. Click on "Windows Mobility Center"
4. There will be an option called "Presentation mode". Turn it off
I found this via a website. Need to go back home to see if it works.
Click to expand...
Click to collapse
I do not think this does what you think it does...
On my Surface RT, turning on "Presentation mode" keeps it from going to sleep or turning the screen off... basically switches it to the equivalent of an always on power profile. Turning presentation mode off resumes the selected profile (in my case I left it with the settings it came with).
Presentation mode is great for doing the opposite of what the OP is trying to accomplish, without having the mess with power profiles.
http://www.howtogeek.com/howto/windows-vista/create-a-shortcut-or-hotkey-to-turn-off-the-monitor/ this helped me. I didn't want to stream video but I wanted to turn off the screen without putting the tablet to sleep when I closed my type cover.

Screen having 'Phantom Touch' problems

A while back, My old Stylo 2 stopped working due to a very strange (I assume hardware-related) bug that made the phone constantly press the same spots over and over and over, and the screen was entirely unresponsive otherwise. Only those few spots ( 1. About 25% up the bottom right side, 2. The very top right corner, and most prominently 3. Just right of the multitasking button, within its 'hitbox'.) have any effects on the screen at all, and I cannot find places on the screen that are 'touchable' due to the multitasking button being hit over and over and it constantly switching me between apps.
More than anything, I just want to change my USB mode to file transfer to get my pictures off the phone, but even as easy as that is in Android 7 (pull down the top menu, select USB settings, change to file transfer right?) I can't even get the top menu down most of the time, let alone get to the USB settings. On the rare occasion that I do get all the way there, either the multitasking button starts acting up again or the screen stops responding to everything altogether, making the one thing I need to select un-selectable. Much to my dismay, it also seems that I have USB Debugging turned off (I honestly have no idea why or how this was turned off, as I use ADB frequently), so I can't even use ADB to get a screen control app to run. Are there any ways to either force USB Debugging to be on via console (Win8) or otherwise, or control the screen and disable touch without the need for a third-party app?
Yes
007manyo said:
A while back, My old Stylo 2 stopped working due to a very strange (I assume hardware-related) bug that made the phone constantly press the same spots over and over and over, and the screen was entirely unresponsive otherwise. Only those few spots ( 1. About 25% up the bottom right side, 2. The very top right corner, and most prominently 3. Just right of the multitasking button, within its 'hitbox'.) have any effects on the screen at all, and I cannot find places on the screen that are 'touchable' due to the multitasking button being hit over and over and it constantly switching me between apps.
More than anything, I just want to change my USB mode to file transfer to get my pictures off the phone, but even as easy as that is in Android 7 (pull down the top menu, select USB settings, change to file transfer right?) I can't even get the top menu down most of the time, let alone get to the USB settings. On the rare occasion that I do get all the way there, either the multitasking button starts acting up again or the screen stops responding to everything altogether, making the one thing I need to select un-selectable. Much to my dismay, it also seems that I have USB Debugging turned off (I honestly have no idea why or how this was turned off, as I use ADB frequently), so I can't even use ADB to get a screen control app to run. Are there any ways to either force USB Debugging to be on via console (Win8) or otherwise, or control the screen and disable touch without the need for a third-party app?
Click to expand...
Click to collapse
Yes, but I'd appreciate a thanks for the solution! I give and give ...
First, what model number is your Stylo? For instance I have the Cricket variety (H634). Once you figure that out check out my link below with particular attention paid to the "how to enable usb debugging via dialup" step. I just tried it with my Stylo (H634), works great. The link pertains to the LG G6 but it will work on your LG Stylo as well.
https://forum.xda-developers.com/tmobile-g6/how-to/frp-unlock-lg-g6-using-headphone-jack-t3616166
Or just try this ...
Dial *#546368#*_ _ _# (Field Test Mode). Enter your devices model number in the three blanks. Mine for instance would be *#546368#*634# (H634 being the Cricket model number). Go to SVC>LDB> Enable usb debugging
Happy USB'n!

Categories

Resources