Any way of preventing screen rotate to portrait ? - JASJAR, XDA Exec, MDA Pro General

Just wondering if there is a registry hack that stops the screen from automatically rotating and displaying in portrait mode when you flip the screen round ?
i.e. it should stay in landscape mode no matter if the screen is facing in/out or otherwise.
You can do it manually by clicking on the screen rotate icon, or going into Settings > Screen > Orientation, so I figure there must be a reghack to put it permanently into Landscape ?
tia

Ok, i've found the key at least which shows what mode is currently in use:
This is Landscape (Right-handed) mode:
HKEY_LOCAL_MACHINE\System\GDI\Rotation
Angle 0x5A (90)
HideOrientationUI 0x0 (0)
LanscapeMode 0x1 (1)
The question is, how do I stop those being overwritten or change it so when it's in Portrait mode, it actually uses those settings ?

gaspx: I'm an odd fellow. I'd written you a long post about basically:
rotation is achieved at OS level, and driver level, so althought it's possible to be notified of the screen being rotated, intercepting it would require, AFAIK, some fairly substantial low level code or a reg key I'm not aware of.
But then I remembered my work on the Universal Voice Command/External Key issue in another thread. I've written a test program called VJElectrify, which contains a hack called ClamHack. And I just tried clamhack, and amongst its other side effects, yes, it does allow you to prevent the system forcing a rotation. So system stays in landscape if you open in laptop mode, or rotait into portrait mode. You then manually choose your rotations.
VJElectrify isn't finished yet, still a lot more research to do, but yes, it is possible to prevent it Keep an eye out for when VJElectrify is released.
Anyone else know another way to do this? I can't think of any relevant reg settings.
V

Heh heh, I knew it probably wouldn't be as simple as a reg hack.. cheers for the reply Vijay, i'll keep a watch on your website for the forthcoming VJElectrify..

gaspx said:
Ok, i've found the key at least which shows what mode is currently in use:
This is Landscape (Right-handed) mode:
HKEY_LOCAL_MACHINE\System\GDI\Rotation
Angle 0x5A (90)
HideOrientationUI 0x0 (0)
LanscapeMode 0x1 (1)
Click to expand...
Click to collapse
Thats just the keys where the current state is stored.
the key you need is HKLM\Services\ScreenRotate (you can change the ShowIcon value here to enable/disable the today icon)
Ive tried just renaming the ScreenRotate but that failed then i tried changing the dll name stored in the key, after all if it cant find the dll surlly it'll stop the rotations.
NOPE, i know the dll rename is working as the icon failed to appear, but the auto rotates continue to happen, it must be OS, it must be!!
.....the search continues

Ive tried just renaming the ScreenRotate but that failed then i tried changing the dll name stored in the key, after all if it cant find the dll surlly it'll stop the rotations.
Click to expand...
Click to collapse
I did that as well.. sorry, should've mentioned it in my original post, but I had the same idea as you! - the screenrotate.dll just seems to be tied to the icon in the systray. sigh.
Have to wait patiently for the VJClamhack to be released..

The clam hack has, by design, side effects - it disables part of the system OS, which conveniently disables screen rotation detection and some other stuff on the hinge. However, the bugger refuses to enable hardware keys with lid closed.
Because clamhack is quite a big sledgehammer for a nut, I'm a little worried about putting it out - however, I've never seen any negative sideeffects, only positive
V

Load DinarSoft MemMaid on your Universal.
Just as you can delete Startup Items, you can also delete Start Up Services. I believe I saw a service related to screen rotation in there.
I don't have my Universal for another week (getting replaced), but I do recall seeing that in there.
As always, perform a backup in case you can't "add" it back in.

I don't think that Rotation service helps, I tried it a bit earlier, since it seems to be an obvious target.
V

However, the bugger refuses to enable hardware keys with lid closed.
Click to expand...
Click to collapse
Thats OK, i don't need to use hardware keys when it's closed -- I figure this is part of a bigger problem you're looking at..
ust as you can delete Startup Items, you can also delete Start Up Services. I believe I saw a service related to screen rotation in there.
Click to expand...
Click to collapse
Yeah, I think that was the one Carnivor and myself had found.. we just prevented the service starting manually by bodging the registry key, but all it does is stop the little screen rotate icon from appearing.. thanks though

Has anyone figured this out yet?
Thanks

Related

Totally prevent soft keyboard SIP in landscape mode?

a042349 at HowardForums wrote this post:
OK,
I hate that pop-up KB as well. I tried all the reg hacks and nullkb's I could find and on both my HP6515 and now on my 8125 it would always revert to the software screen KB and pop up at the most annoying times.
Well in doing some poking around I discovered a reg key that COMPLETELY elimnates the soft KB from popping up - great news. The bad news (there's always bad news) is that it completely prevents ANY of the SIP panels from coming up when you want them to, or from working in general.
So if you do this hack you are completely dependent on the 8125/9100 hardware keyboard. Now I've been running like this for over a year on two different devices and it works for me. The one thing I did was extract the "cut, copy and paste" icons out of an old "PHM Keys" I had and put them on the Start Menu so that I can now use those instead of the Ctrl-C, Ctrl-X, Ctrl-P when I need to. Works fine, but takes up three slots on my Start Menu.
You could also create a backup reg file, and one with the setting I'll give you, and then import them and reboot to turn the hack on or off. It does require a reboot so it's not an ideal solution, and I know the key by heart so i do it manually if I ever need it - which I never have:
HKEY_CURRENT_USER\ControlPanel\Sip\AllowChange=1
Change that entry from a 1 to a 0 and reboot. No more KB, Block Recognizer, Transcriber - nothing but the HW keyboard.
Try it you'll like it!
Click to expand...
Click to collapse
From what I know (I didn't try it yet), it totally prevents the SIP from appearing, and that would probably include portrait mode when the hardware keyboard is not available. A soft-reset may be required between changes, too.
Is there a way someone can make a program to prevent the SIP from appearing in landscape mode at all, yet make it available in portrait mode?
I use my device in both modes, so I wouldn't want to lose complete functionality of the SIP.
Any ideas?
Hi everybody!
I may have an alternative to killing SIPs altogether:
All SIP DLLs are registered under HKEY_CLASSES_ROOT\CLSID, each with its unique identifier. The name of the SIP (which you see in the menu is stored in the default value) SIP key has two sub keys: InProcServer which tells the system where to find the DLL and IsSIPInputMethod with it's default value set to one.
One idea is to create a fake SIP key that will point to a non existent DLL and then select that SIP in the menu. The system will try to call up the SIP but it will fail until you select a valid one.
Hope this will help
Hardware Keyboard only in Landscape
On the Universal the combination of PQZ (to assign different SIPs to landscape and portrait, should work on other devices too) and PHMs "NoDoSIP" (registers a SIP that does nothing) works perfectly. Disable all SIPs not needed at all by setting the Reg Value (search for the SIP by name in the registry) Default under IsSIPInputMethod for that method to 0. You can rename your remaining SIPs there as well.
I'm skeptical, but willing to try...
As the originator of the quoted post in this thread I'm skeptical but certainly open minded that this solution would work.
And yes my method does require a reboot to enable/disable, so it's certainly not for the occasional use of the SIP.
In the past I had tried all manner of null kb's, and UID registry string swaps and other things to prevent unwanted SIP pop-ups.
What I would like is to have it ONLY come up when I invoke it - and NEVER on it's own. I wouldn't use it much (and haven't on two HW keyboard devices over the past year) but sure it would be handy for the odd time I need to type in portrait mode.
I may give this a shot after dinner tonight and see how it goes - at the very least I can always go back to my admittedly draconian total elimination of the SIP's that I have now.
I'll post my results later tonight.
-Joel (a042349)
And??
Works like a charm, right?
In landscape it just displays the hardware keyboard icon and the arrow to even allow to manually invoke any other SIP "on the fly".
And in portrait the selected SIP gets activated automatically.
Works flawlessly for me (on my Universal) since month.
Right man, works like a charm! Thanks for this hint!
GREAT
Its the little things that make my tilt a better device to use. I tried phmppcpt.rpr_arm_siponly.cab on my tilt with dutty's pre April 29th cab and it works to eliminate the landscape keyboard in messaging, notes and contacts, however I have a beta version of opera mobile 9.5 and it seems to have mind of its own, doing the exact oposite and making both keyboards nearly unusable. Anyone else experience this?, hopefully Opera will provide users with a choice of hardware keyboard only and not having the SIP popping up. I presume that Opera had a feature to do exactly what .cab does just for that application and now the .cab is reversing it. Seems to do about the same thing in Internet Explorer.
im using opera 9.5 too.. and nothing seems any different after installing the cab... SIP still pops up.. any idea how i could solve it?
Thanks.
the ironic part is that ez imput kb does an automatic switch between keaboards when flipped from portrait to landscape, is there a script or a reg hack edit that does this??? cuz we can use that engine to make the sip automatically change to null kb when switched to landscape, fully eliminating pop ups and soft keyboards when using your querty
no2chem nueslidingkb
i use no2chem's nueslidingkb on my mogul. it allows you to set different SIPs on protrait and landscape as well as customizing the sliding sounds. it works very well, i have intellipad on portrait and nullKB on landpscape.
It however does not work on my Fuze, it doesn't change the SIP to the set one when switched to landscape, maybe needs an update? i hope no2chem checks it out.

Clear type in Lanscape mode...how to make it stay?

When I enable clear type in landscape mode by editing the registery :
Changing the value of HKLM\System\GDI\ClearTypeSettings\OffOnRotation from 1 to 0 it works BUT only for a while, then it reverts back to 0 and
I don't have clear type when I pull out the keyboard. Does anyone know how to make it stay? (it worked in the wizard without any problems)
Thanks.
Ken
I use nScriptm freeware from www.s-k-tools.com and a simple script. I made a shortcut in the startup folder to run this script w/o showing the console window.
BTW the same script sets PIE cache size to 4096MB for me - a value that is reset every boot as well.
Easy peasy...why make things harder
Download TwkCL from here...
http://www.tweaks2k2.com/portal/staticpages/index.php?page=2005022517002183
or if you can't just searchfor it.
Place it in your Windows - Startup folder.
Select it to run it, nothing will happen but it HAS ben enabled.
Then you simply soft-reset your device.
Et Voila! You have Cleartype always enabled in landscape mode.
It wouldnt work properly anyway... MS Cleartype counts on horizontal orientation of R-G-B triplet in LCD matrix, it can not do "vertical subpixel rendering", only horizontal.
So if you forcefully enable it in landscape, it would smooth text in perpendicular direction, making it more blurry instead of actual resolution enhancement.
Actually it works perfectly...the text looks EXACTLY the same either way.
Been using it ever since I had my JAM.
It doesnt. Surely, you see the difference, but only in Portrait it actually works as intended. In Landscape you get same result youll get if you grab a screenshot from Cleartype text and rotate it - if you'll read how cleartype actually works, you'll understand that this would obliterate the main idea of it.
Even MS said that numerous times. The only advantage you get in landscape is "smoother" fonts, but that came with drawback of reduced sharpness and also more visible "color outlines" on letters (while in portrait when cleartype works as intended sharpness is not reduced and color outlines is a lot less visible).
Read this article - http://en.wikipedia.org/wiki/Cleartype
It would help you to undestand the mechanics of it.
I actually found the answer to my own question. For the TyTN, you have to change HKLM\System\GDI\ClearTypeSettings\ROTATION\LandscapeMode from 1 to 0 and it'll stay. It works. No need to load any programs in the startup folder.
Ken
under gdi?
I can't find it, there's cleartypesetting and rotation, not rotation undercleartype.
Please clarify
Actually, don't you mean change the HKLM/System/GDI/ClearTypeSettings/ROTATION value from 0 to 1? ClearType will be on in landscape mode then.
@Ingvarr: you are correct but it still looks better when ClearType is enabled IMO
Sleuth255 said:
@Ingvarr: you are correct but it still looks better when ClearType is enabled IMO
Click to expand...
Click to collapse
I guess its up to personal preferences... Iam very color sensitive, I guess thats why I cant bear visible color smudges at fonts edges in landscape
I've just used Magic SS to take screenshots of each and it looks the same even after a side by side zoomed in comparison down to the last pixel.
It looks the same to me. Maybe I'm losing it.
kittiyut;1034773 said:
I actually found the answer to my own question. For the TyTN, you have to change HKLM\System\GDI \ClearTypeSettings \ROTATION\LandscapeMode from 1 to 0 and it'll stay. It works. No need to load any programs in the startup folder.
Ken
Click to expand...
Click to collapse
Hi, does this actually stay for you?, I had that set awhile back, and it would revert to the oem settings after a few soft resets or shutdowns.
I also like cleatype in landscape on, I do understand why its off by default, but I guess its really up to ones own prefrences, I changed the system font, and the cleartype makes the font look much better, It could possibly be that I need to up the font size.
Just a tip..if anyone decides to play with the system font, put the font in your windows directory, not the fonts folder, maybe everyne else already knew this, but I used the fonts folder at first...and it worked, but caused glitches.
Sorry to ramble off topic for a bit.
No, I do mean change the value from 1 to 0
If it is at 1, Clear Type would not be enabled in Landscape mode
If it is at 0, Clear Type WOULD be ENABLED in Lanscape mode
Ken
Sleuth255 said:
Actually, don't you mean change the HKLM/System/GDI/ClearTypeSettings/ROTATION value from 0 to 1? ClearType will be on in landscape mode then.
@Ingvarr: you are correct but it still looks better when ClearType is enabled IMO
Click to expand...
Click to collapse
This doesn't work for me.
At first, I made the new key as kittiyut instructed because there was no key in defalut:
HKLM/System/GDI/ClearTypeSettings/ROTATION/LandscapeMode and set its value to 1
But this didn't work anything.
And then, I changed registries as follows and it seems OK before I soft-reset with stylus.
[HKEY_LOCAL_MACHINE\System\GDI\ClearTypeSettings]
"OffOnRotation"=dword:00000000
[HKEY_LOCAL_MACHINE\System\GDI\ROTATION]
"LandscapeMode"=dword:00000000
But after stylus reset, OffOnRotation=1 comes alive again.
I think TwkCL is the only solution for Hermes now.
athiqueahmed said:
I've just used Magic SS to take screenshots of each and it looks the same even after a side by side zoomed in comparison down to the last pixel.
It looks the same to me. Maybe I'm losing it.
Click to expand...
Click to collapse
Well, thats exactly what is wrong - you see, you take screenshots, that doesnt capture actual micro-lamp layout on your LCD screen - and this is what ClearType uses to actually _enhance_ resolution. To correctly see it, you should take _photos_ of screen
Read the Wikipedia page, you'll understand it It it would work properly, landscape one would be different from portrait - in landscape LCD triplets go in "vertical" way relatively to the text, while in portrait they go in horizontal way relatively to the text.
shugoh;1035107 said:
This doesn't work for me.
At first, I made the new key as kittiyut instructed because there was no key in defalut:
HKLM/System/GDI /ClearTypeSettings /ROTATION/LandscapeMode and set its value to 1
But this didn't work anything.
And then, I changed registries as follows and it seems OK before I soft-reset with stylus.
[HKEY_LOCAL_MACHINE \System\GDI \ClearTypeSettings]
"OffOnRotation"=dword :00000000
[HKEY_LOCAL_MACHINE \System\GDI\ROTATION]
"LandscapeMode"=dword :00000000
But after stylus reset, OffOnRotation=1 comes alive again.
I think TwkCL is the only solution for Hermes now.
Click to expand...
Click to collapse
the correct tweak is HKLM/System/GDI /ClearTypeSettings and setting the onoffrotatation dword from 1 to 0
I myself just realized after your post that the key people had been changin doesn't exist, and it hadn't been mentioned to create one...no wonder people were sayin they couldn't find it, and it will revert back to 1 after a few resets anyhow, like you mentioned.
After much gnashing of teeth and fudging around with registry settings, I agree that TwkCL in startup seems to be the only way to get ClearType in landscape mode currently....
But none of these solutions does not work with AKU 3.3...
Edit: Works, works,... Need to
[HKEY_LOCAL_MACHINE \System\GDI\ROTATION] "LandscapeMode"=dword :00000000
and copy TwkCL to startup.

disallow screen rotation

Hello!
I need to write software that disallows any screen rotation on my Wizard.
How can I do it? I didn’t found any registry settings for this. The best way
that I see is hooking ChangeDisplaySettingsEx. But unfortunately, SetWindowsHookEx
doesn’t works on WM 5.0, at least it said on some topics. Please, give me any solution for this problem or example code to hook some API function.
wm5: [HKLM\System\GDI\Rotation]
Angle=dword:0
00000000 portrait
0000005a righthanded landscape
0000010e lefthanded landscape
then RegistryNotifyCallback will do
tanks a lot
I will try this way.
But I afraid it will be notified after screen rotation starting.
Adjusting this registry value in regedit tool did't help.
So I suppose this value is changing after rotation is done.
You can delete the start up service of ScreanRotate.
Go to HKLM/Services/ScreanRotate and delete it.
I think before you doing this,you can export it to a reg file
It's not bad idea.
but delete this key leading to system restart for apply
I just try to stop this service.
Not luck : (
This key not present in the registry storage.
I am under WM 5.0
Maybe you talk about some early system.
Hi hoblano, I'm experiencing the same problem, did you find a solution ?
thanks,
Scalposcarno
use task manager 2.7 and stop service...if you know it is service...
same way to stop kbd lights...btw,
I tried, but the result is the same as the one obtained by manually deleting the Screen Rotate voice within the services voices in the registry: avoiding the load of the service providing the icon on the task bar enabling the user to rotate the sceen one or more times by tapping on it.
I still don't understand ... at this point the most probable thing is that the service that rotate the OS screen when rotating by hand the HW screen, is invisible with respect to registry voices and to applications like Task Manager 2.7 or MemMaid. Apart from criticizing the constructor choice (why didn't they thought that someone should have been more comfortable using only one view mode ? e.g. landscape one), is there a way to obtain a list of core services and to avoid one of those to be loaded ? or, otherway, is there a way to intercept the event thrown when manually rotating the screen of the terminal ?
By the way, I'll have to do it with Java ...
thanks all

Full rotation

Could one of you experts guide me on how I'll make my HD2 to rotate in alla directions?? By default it rotates only 90 to the left.
I've "played" with Advanced Config but haven't manage to make it
I've tried locating posts explaining this but had no luck
Thanks in Advance
You can use either:
BSBTweaks (http://forum.xda-developers.com/showthread.php?t=589305) or
ChangeScreen (http://forum.xda-developers.com/showthread.php?t=468488)
I think BSB only allows other screens to rotate portrait to landscape, the OP wants full 360 rotation I think.
Pretty handy for riding rollercoasters
Yes, I'm talking about 360 rotation
THX
install gyrator 2
Dear Oblivion Gyrator is a pain in the *** to setup and I can't see why should I as the device follows the G-Sensor. The problem is that it does so only for 90 to the left and not all around. Any solution to this??
ChangeScreen allows an easy way to apply rotation in all directions in all programs.
Furthermore, and in order to avoid some undesirable rotations in phone, screen lock, camera..., you better add these applications to exceptions: cprog, manila, shell32, gwes, camera, digicompass, services
MarketElf said:
I can't see why should I as the device follows the G-Sensor. The problem is that it does so only for 90 to the left and not all around. Any solution to this??
Click to expand...
Click to collapse
Because HTC decided it would only follow on the left side, period. So, as there's no way to change that, there are programs like Gyrator (messy) or ChangeScreen (a bit less messy) to overcome the limitation. I'm afraid you'll have to do with that. They take a few minutes to configure and you're done, It's not too bad.
But Advanced Config, in the "screen" section, has two parameters that, supposedly, "fix" this. One is for defining if the rotation is fixed and the other arranges the angle by whitch the rotation functions. Unfortunately they don't seem to work
Can I use Changescreen along with Advanced Config and BsB Tweaks??
Yes, from what I can see ChangeScreen will simply override the rotating settings from the other programs.
ChangeScreen is a good alternative, but, like I said, configure the exceptions, otherwise some rotations could be very annoying
Thank you all for your help. Could you please give me a hand with the exceptions?? I.e. camera seems not to be possible to be excepted!!!
Igo8 and lock screen turn the screen off (simply needs to press button to "re-enlight" but it is prety annoying).... Igo anyhow seems to be excepted.
Could you guide me what to write precisely in the exceptions??
Tekflow said:
ChangeScreen allows an easy way to apply rotation in all directions in all programs.
Furthermore, and in order to avoid some undesirable rotations in phone, screen lock, camera..., you better add these applications to exceptions: cprog, manila, shell32, gwes, camera, digicompass, services
Click to expand...
Click to collapse
Do you know how to prevent the lock screen from rotating?
Open changescreen, click show app names, open the program you want to add to exceptions, its name will show up in the middle of the screen. Enter that in the exception list, tick the portrait icon only, done.
Works fine with camera here.
I do think I'll go back to gyrator though, changescreen rotates too "early" to my liking, and this is not configurable.
Thank you. I had tried that before on the Lock Screen without success. For some reason it works now. Maybe I misspelled before.
Run the program.
In "General" tab, check all options available on this page.
In "Exceptions" tab, add the following (each separately): cprog, manila, shell32, gwes, camera, digicompass, services, commanager. Check only the first option for all these applications (usual portrait direction), and save.
Restart.
By the way, since I started using the "Proximity sensor off" application (http://forum.xda-developers.com/showthread.php?t=624206), I disabled the lock screen. It has become useless.
kilrah sensitivity IS configurable.... 3rd tab "Advanced" the slider down the page

[Q] Screen Rotation Issue, Erisin ES788G

Hi, looking for some help after searching everywhere to try and solve this.
Problem is with a Chinese AIO unit (erisin.com/erisin-es788g-7-1-din-in-dash-touchscreen-in-car-dvd_p323.html) running WinCE 6.0.
I'm trying to permanently rotate the screen 180 degrees.
I'm locked out of the wince desktop and any programs i use i have to launch from setting the sat nav path to a diffrent .exe.
I started by trying to change the registry value [HKEY_LOCAL_MACHINE\System\GDI\Rotation] but this had no effect :/ Might be the unit resetting the value or the crappy regedit tool i used.
I then popped ceFFM on the SD card and installed that (a few couldn't create shortcut errors), when running CEMenu.exe the rotate button (helpers\CeScreenRotate.exe) will set the screen rotation how i want it (when pressed twice) but will not stay like it if the unit is restarted.
Any help with making the unit boot up with an already rotated screen will be very much appreciated as it's starting to make me go insane!
Cheers, Rory
Don't know whether this is useful: http://forum.xda-developers.com/showpost.php?p=42996841&postcount=8
jwoegerbauer said:
Don't know whether this is useful: http://forum.xda-developers.com/showpost.php?p=42996841&postcount=8
Click to expand...
Click to collapse
I don't think my issue is with the driver, as the CeScreenRotate.exe that comes with ceFFM will rotate my screen, not really had much experiance with winCE and i just feel like i'm missing something really obvious to lock the screen in the position i want.
Is there a standalone .exe for 'Solution Explorer' available? as that is was Microsoft say to use to change project.reg, seeing as i'm having no luck with a standalone reg editor? (msdn.microsoft.com/en-us/library/ee504554%28v=winembedded.60%29.aspx)
Would seem to be alot easier if they didn't make these units so awkward to modify. :/
Cheers, Rory
RoryLG said:
I don't think my issue is with the driver, as the CeScreenRotate.exe that comes with ceFFM will rotate my screen
Click to expand...
Click to collapse
If it's not the display driver that handles screen orientation, then what else?

Categories

Resources