stay in landscape after sleep and waking up. - Windows Mobile Development and Hacking General

how do you make it so my device remembers what mode it's in (portrait or landscape) after it sleeps and wakes up? if i switch it to landscape and it falls asleep, when i wake it up, it switches back to portrait mode. I want to keep it in that state that it fell asleep in.

Related

What does HD2 do in sleeping mode?

I guess probably a lot of people here have the auto rotate app installed. it make the screen go landscape at anytime when you rotate the phone, even with lock screen.
I noticed that if i turn off the phone(or go to sleeping mode), then rotate the phone, then click any buttom, the screen comes on in landscape mode!! !!!
This means even when it is in sleep mode the app is still working!! So if you put it in your pocket walking or something, it may have rotated itself hundreds of times!!!!!
What i want say is, if there's any program running when you turn it off, they may be still running in sleeping model???
No, it does not mean that. It only means, that when the key is pressed, before the screen is turned on, the orientation is detected and screen refreshed.
There are several levels of sleep mode. Generally in sleep mode everything which can be turned off is turned off. If no application is working at the moment (all applications wait for input), even the CPU should be on standby.
GSM module is usually on.
But if some application is running, and you enter sleep mode, it is not really sleep mode, only screen is off. WM do not suspend running applications.
They can however close data connection and AFAIK HD2 is configured that way. But it can be changed in the registry, and on my X1 it is not like that (only WIFI is turned off). So for example if I run skype, and then 'sleep' the device, it runs, and it communicates, and it can eat battery in few hours.
Which applications runs and when, if the G-sensor is on, or if the lock screen is drawn and refreshed, it is really hard to tell. I guess some software for this might exist, but I don't know about it.
asdadbz said:
I guess probably a lot of people here have the auto rotate app installed. it make the screen go landscape at anytime when you rotate the phone, even with lock screen.
I noticed that if i turn off the phone(or go to sleeping mode), then rotate the phone, then click any buttom, the screen comes on in landscape mode!! !!!
This means even when it is in sleep mode the app is still working!! So if you put it in your pocket walking or something, it may have rotated itself hundreds of times!!!!!
What i want say is, if there's any program running when you turn it off, they may be still running in sleeping model???
Click to expand...
Click to collapse
Following your logic, It should come back in portrait mode if the device was sleeping and you hold it up vertically. So the fact that it wakes up in landscape mode means that the device was not in completely in standby when you did rotate it.
first the sleeping mode or 'turn off' mode i mean is pressing the 'hang up' buttom. The software is called Gryator 2
What I found was, when the phone is on, if I rotate the phone there is approx 1 sec delay. But if I rotate the screen in sleeping mode and then press any buttom few seconds later, the screen comes on instantly as normal and is in landscape. If it is as per you said, there woud be a 1 sec delay, woundn't it?
And also if listeniing to music, press the the 'hang up' bottom, the music stays. I had a XDAIIi, very old.. if press the on/off buttom, music won't stay. i had to just turn of the screen.
This make me wonder, what stays on, what gos off in the sleeping mode.
As HD2 does not have the true 'on/off' buttom like the XDA IIi where all the PDA application is literally turned off.....
Xeon said:
Following your logic, It should come back in portrait mode if the device was sleeping and you hold it up vertically. So the fact that it wakes up in landscape mode means that the device was not in completely in standby when you did rotate it.
Click to expand...
Click to collapse
yes, correct!! Vise versa, I tried both....
So it does start in landscape every time ? I guess I still don't get it ..
hi,
i use changescreen to rotate, and have the same isue. eg.
1. have the device in portrait and switch it of
2. then (screen is off) turn it to landscape for a while
3. after that turn it back to portrait and immediately turn on the screen
i see the screen in landscape and then after some delay turning to portrait. you can proof this by telling the program to delay the rotation for some sec., wich is my default setting. i used gsen, changescreen and gyrator (gsen only on my old advatage) and they all behave the same.
mad.
Dr.Sid said:
So it does start in landscape every time ? I guess I still don't get it ..
Click to expand...
Click to collapse
Basicly if you rotate the phone, there is a small delay for the screen to rotate. when you rotate the phone in sleep mode and wait 2 seconds then turn on the screen, it comes on instantly and is rotated already. This means the 'screen rotation' has been already done when it is on sleeping mode. Otherwise the screen should be on as what it was before and then rotate with the small delay.
So if the rotation program is working in sleeping mode, other programs could be working as well? !!!
It isn't really sleep mode. There is (as mentioned above) no suspended mode for WM.
Most running apps won't actually be doing anything though, because you're not making them do anything. Obviously, the usual form of user interaction is via the screen. In sleep mode, this isn't happening, so most apps will just sit there waiting. Anything that runs periodically, or reacts to other events (such as orientation changes) will still do what it does when the phone is not in sleep mode.
Basically, the screen is turned off. That's it.

No alarm buttons in landscape mode!

As title says. At night the phone sits in a desk stand in landscape orientation. Alarm goes off in morning, big clock in middle of screen, digital time underneath, no buttons for snooze/stop. Unlock the phone, turn it to portrait and back to landscape, then next time it goes off the buttons are there! Anyone else had this?

[Q] Wake up from sleep using touchscreen

I am wondering if it is possible to configure my hermes to wake up from sleep using the touch screen.
After the phone went to sleep, by pressing the power button for example, I could just touch the device to wake it up. I don't think pocket dial is such a big deal, I could use a lock screen to prevent that.
Only solution I found is to configure windows not to turn the device off. But I think the battery will drain faster if the device can't go to sleep mode.
Any thoughts?

Accelerometer Auto-Rotate Issues

Has anybody experienced issues with turning the screen on and having whatever app you had opened last be in landscape mode?
Like I turned the screen off with the phone in portrait,, then laid the phone down flat on its back, not on any angle,, then turn the phone on and have the screen be in landscape mode.
This has so far happened a lot on texting and messaging apps.
If I have Messenger (stock SMS) open in Portrait and shut the screen off, then rotate to Landscape and turn the screen back on, it is in portrait, but immediately switches to landscape. It is not already in landscape mode.
I generally use Tasker to lock everything into portrait and use the Quick Settings toggle to turn autorotate on if needed for an app. Games that only work in landscape will override to landscape automatically when they launch.
Yesterday, i had the messenger app stuck in landscape mode. I couldn't make it go into portrait mode no matter what i did. I'm not sure how i got it to that state, but a reboot fixed it

Sleep - how to set it to 'never'?

Does anyone know a way to prevent P9lite from going into sleep mode? By default, we have a choice of a maximum of 10 minutes. My point is that the phone should not go into sleep mode when the screen goes blank.

Categories

Resources