PDA

View Full Version : [APP][UPD: 2008.12.10.1]Gyrator 2: Auto Screen Rotation for *ALL* HTC Diamonds


Pages : [1] 2 3 4 5 6

brins0
19th September 2008, 04:59 AM
Now supports ALL HTC Diamond/HTC Diamond Pro variants!

Gyrator has an advanced graphical configuration interface which can be used to create
thousands of combinations of events to suit every users needs. Windows can be excluded
from all events, or only some of them. Customisable sound events can be triggered, and
the device can be made to vibrate for any event. The keypad can be locked, the screen
can be turned off, or the entire device can be instructed to suspend.

There's alot more information, too much to display here, along with advanced information
and guides on the project website which can be found at: http://gyrator.brins0.net

http://gyrator.brins0.net/screenshots/images/InformationScreen.jpg http://gyrator.brins0.net/screenshots/images/EventConfiguration.jpg

If you are interested in what's new, check the Version History (http://gyrator.brins0.net/?page=history) on the project site.

Hope you enjoy using this program and that it's useful to you in some way...
__________________________________________________ __________________________
Requirements:
- HTC Diamond / HTC Diamond Pro
- WM6+
- .NET Compact Framework v3.5

If you really like this program, and want to buy me a coffee, you can do so here (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=brins0%40gmail%2ecom&item_name=Generous%20Donation&no_shipping=1&no_note=1&tax=0&currency_code=GBP&lc=GB&bn=PP%2dDonationsBF&charset=UTF%2d8)

A big thanks to my beta tester "LucidObscurity" from the forums, who's helped me iron out some of the small bugs.
Also a big thanks to one of my kind users, "Kiekeboe100", for donating the webspace gyrator.brins0.net is hosted in.
Forum user "starbase64" has written a useful tutorial for German Gyrator users which can be found here: http://www.handy-faq.de/forum/windows_mobile_6_6_1_forum/54564-gyrator_screen_rotator.html
More information and download HERE (http://gyrator.brins0.net/)

Vulpix
19th September 2008, 05:37 AM
Doesn't rotate programs on the Touch Pro here, but it can somehow rotate the TouchFlo interface.

levka
19th September 2008, 05:44 AM
Same on HTC Diamond. Rotates main screen (messes up graphics for the icon tab) but still rotates it. Wont rotate anything else i tried so far.

Got an error 2 after few rotates

http://img227.imageshack.us/img227/5530/screen05sr9.png

brins0
19th September 2008, 06:02 AM
Same on HTC Diamond. Rotates main screen (messes up graphics for the icon tab) but still rotates it. Wont rotate anything else i tried so far.

Got an error 2 after few rotates

- Make sure you have the .NET Compact Framework v3.5 installed. It will work with 2.0, but can have issues (I've run my tests with 3.5)

Also, there are known issues with the touchflo interface. Normally screen rotation is completely disabled on the diamond to remove any possibilities of program messing up, so it's bound to cause issues i'm afraid. When I ran tests on my device, I didn't come across any errors, although I have completely removed TF3D from my diamond.

Can you try and make the error happen again, and record the steps you took to make it happen, as well as all the information the error window gives you, and i'll try and correct the problem.

Edit 1: Forgot to add that the library cannot retrieve orientation information on some devices with certain roms installed, but that's out of my control i'm afraid. It will affect all programs that rely on the "Sensors" sdk library.

Edit 2: Can you also tell me which roms (OS/Radio) you are using as well, as this will likely be related to the problem in some way (See Edit 1)

Röchelhilpert
19th September 2008, 04:47 PM
App works .... but manila freezed.
And i donīt can find any options to configure

brins0
19th September 2008, 05:55 PM
App works .... but manila freezed.
And i donīt can find any options to configure

As I mentioned in a previous post, Manilla (Touch Flo 3D) is known to cause problems in non-portrait orientations...

The options are in the top of the right softkey menu, there's 3 of them:

Enable Rotation
Enable Sounds
Enable Images

MightyMike
19th September 2008, 06:11 PM
Application is ver similar as gsen in regards to Telus Mobility Diamonds.

Rotation does not work except for within the programs list. Any where else (text messages, ie, etc) absolutely does not work :(

darn!

brins0
19th September 2008, 06:18 PM
Application is ver similar as gsen in regards to Telus Mobility Diamonds.

Rotation does not work except for within the programs list. Any where else (text messages, ie, etc) absolutely does not work :(

darn!

Yeah, i'm afraid that's a limitation of the library which has been made availabel to us. It Telus want to go and destroy the ROM/device, then unfortunately we have no control over it. It's like T-Mobile removing 64MB of the RAM when they changed the shell, it's only got 128MB now. I do wish I knew why companies like to bastardise perfectly good phones, then sell them on as if they were the same... It's quite insulting sometimes...

brins0
22nd September 2008, 07:43 PM
A new version has been released, so have added this post to bump the topic up.

This is a large update, and should be used instead of the older version as it confains various new options and features, as well as performance updates.

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.

owz206
22nd September 2008, 08:23 PM
Thanks for this mate,works like a charm.Tried the rotation out on most of my programs and it works flawlessly.My contacts rotate fine and the text message also,the text input even changes to full qwerty keyboard on rotation,amazing.:D

brins0
22nd September 2008, 08:29 PM
Thanks for this mate,works like a charm.Tried the rotation out on most of my programs and it works flawlessly.My contacts rotate fine and the text message also,the text input even changes to full qwerty keyboard on rotation,amazing.:D

Your welcome, hope it's not too hard to configure, I have put alot of thaught into how to make it simple for the end user to configure...

owz206
22nd September 2008, 08:33 PM
Your welcome, hope it's not too hard to configure, I have put alot of thaught into how to make it simple for the end user to configure...

No problems to configure at all,the only problem is when rotating touch flo 3d,but i know thats going to be a problem for any rotation app.thanks again

brins0
22nd September 2008, 08:36 PM
No problems to configure at all,the only problem is when rotating touch flo 3d,but i know thats going to be a problem for any rotation app.thanks again

I've disabled TouchFlo 3D on my device, so unfortunately I can't get the window title/class for it, to add it to the blacklist. If you would be kind enough to find the class for it (i'm guessing the entire today screen) then it can be added to the configuration file for all to see.

I've added the "Applications.ini" file to my server for folk to download. this will be updated more frequently than the application, so keep an eye out for changes :)

enrique999
23rd September 2008, 03:49 AM
I don't think it likes my Touch Pro. It works fine using File Explorer but that's it. After trying to test it out in the all settings and all programs menus it gives the error that Levka posted.

brins0
23rd September 2008, 03:55 AM
I don't think it likes my Touch Pro. It works fine using File Explorer but that's it. After trying to test it out in the all settings and all programs menus it gives the error that Levka posted.

As other users have stated, as well as myself in the first post, it suffers form the generic error what all programs using the GSensor library. It has been covered in the GSen program info page too...

Not working on HTC Touch Pro with ROM version 1.90.0.0 or newer and HTC Touch Diamond with Telus ROM.

As previously stated, i'm afraid this is out of my control, although hopefully in the near future, the library will be improved, and will be able to deal with these "different" devices. As soon as support has been improved, i'll be sure to include it in my latest build.

brins0
23rd September 2008, 04:13 AM
A new version has been released, so have added this post to bump the topic up.

This is only a small update which adds a few new features and improvements.

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.

nitty917
23rd September 2008, 06:57 AM
hope this works for Sprint ROM?

-Mr. X-
23rd September 2008, 07:01 AM
i liek this app and wish i could use it. im on a telus device.

Hit me up if you want anything to help out on getting this to work on telus/sprint devices i have all the rom files and can make reg dumps.

neonlite
23rd September 2008, 07:55 AM
how is the power consumption if i may ask? :)
awesome app tho, gonna try it today

hkpeople
23rd September 2008, 08:34 AM
I have some question...
1)Framework v3.5 is 35MB...need I install Framework v3.5(35MB) to my diamond...because my diamond free space only 40 MB....
2)install Framework v3.5 via ActiveSync?

roisagi
23rd September 2008, 09:32 AM
i donot want the devive to rotate while in main screen TF3D -
how to config that?

kultus
23rd September 2008, 09:35 AM
what about to compare to Gsen...stability, quickness, setup capabilities etc...
Im using Gsen just with success so dont wanna kick it only for test it...:p

tepss
23rd September 2008, 12:37 PM
roisagi just ad this line to applications.ini :
0,Manila,Start
And today screen would be disabled.

Its quite stable and faster in rotation than GSen. Can play sound when rotating and has two great options:
- turn off when face down (lock the device)
- keep awake when uneven

Any info how much battery life would be influenced?

dimisxxx
23rd September 2008, 02:43 PM
Hello thats a fantastic app but its crashing what i mean is when i turn the diamond is turning ......but after 2 sec is going back to today screen has someone solution for that_????? OTHERWISE IS FANTASTIC ANYONE?????:(

pencilcase
23rd September 2008, 03:28 PM
Hi,

I would also be willing to test this application with my 1.90 ROM on the Touch Pro including making any neccesary dumps/... pm me if you are interrested and if this is an option for you :)
I hope I can help to get this working!

thanks

hkpeople
23rd September 2008, 04:08 PM
i have problem ..TF3D rotate too.

vaiko666
23rd September 2008, 04:25 PM
Great App !!! It would be nice if an effect such as the one of the Omnia could be added when rotating ;)

Don't know how hard is it, but suggesting ;)

Propsy
23rd September 2008, 04:34 PM
Great app, works WAY faster than Gsen.

Mr_Gee
23rd September 2008, 04:48 PM
I'm going to try it now!

Maybe for the new version, could you include key sending based on rotation (per application)?

The reason I ask is TCPMP i'd like to be able to just rotate the phone to have TCPMP go full screen, unfortunatley this is (i think) not possible
therefor it would be nice if the screen rotation application could simulate the keypress when rotating...

:D
Thanks for considering

kultus
23rd September 2008, 05:34 PM
Why manila isnt in programs list...
One question... is it possible to choose from already instaled apps in device like list with checkbox which will indicate apps that will be rotated with your great app BTW...:) its simple that do list manually...

brins0
23rd September 2008, 07:33 PM
Why manila isnt in programs list...
One question... is it possible to choose from already instaled apps in device like list with checkbox which will indicate apps that will be rotated with your great app BTW...:) its simple that do list manually...

MAnilla isn't in the applications list, because I don't have it installed on my device, and hence I couldn't get the window title/class i'm afraid. HAve now added it to the Applications.ini, so you can download it, or add it yourself.

As Roisagi so kindly pointed out, the entry for Manilla is: 0,Manila,Start

brins0
23rd September 2008, 07:36 PM
Hi,

I would also be willing to test this application with my 1.90 ROM on the Touch Pro including making any neccesary dumps/... pm me if you are interrested and if this is an option for you :)
I hope I can help to get this working!

thanks

Thanks for the offer, but it's nothing to do with my program whether or not it rotates with the Telus device. It's down to the kind person who wrote the GSensor library. If you want to participate in any testing, I suggest you contact the person who provided it.

His name is Scott as far as I know, and his information can be found here: http://scottandmichelle.net/scott/comments.html?entry=784

brins0
23rd September 2008, 07:40 PM
I'm going to try it now!

Maybe for the new version, could you include key sending based on rotation (per application)?

The reason I ask is TCPMP i'd like to be able to just rotate the phone to have TCPMP go full screen, unfortunatley this is (i think) not possible
therefor it would be nice if the screen rotation application could simulate the keypress when rotating...

:D
Thanks for considering

Yes, it's very possible to do this, and it's very light on code and resources to add it. Performing a different action for each appliction would take time i'm afraid, but it's a possibility for future releases if there's sufficient interest...

I'm starting at university again shortly, so it may take time :)

pencilcase
23rd September 2008, 07:51 PM
Thanks for the offer, but it's nothing to do with my program whether or not it rotates with the Telus device. It's down to the kind person who wrote the GSensor library. If you want to participate in any testing, I suggest you contact the person who provided it.

His name is Scott as far as I know, and his information can be found here: http://scottandmichelle.net/scott/comments.html?entry=784

Thanks, posted in his blog just now, lets hope he answers :)

Matteo66
23rd September 2008, 10:04 PM
Which is the entry for Phone?

Thank you in advance and congratulation for your great work.

brins0
23rd September 2008, 10:23 PM
A new version has been released, so have added this post to bump the topic up.

New features in this release include a learning feature for easy rule creation, an about box, and minor cosmetic changes.

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.

brins0
23rd September 2008, 10:24 PM
Which is the entry for Phone?

Thank you in advance and congratulation for your great work.


Download the new version and use the new learning feature to get the class name required for the rule. Should work for any application you want to make a rule for :D

brins0
23rd September 2008, 10:49 PM
Hello thats a fantastic app but its crashing what i mean is when i turn the diamond is turning ......but after 2 sec is going back to today screen has someone solution for that_????? OTHERWISE IS FANTASTIC ANYONE?????:(

I have run through the code looking for where this could occur, as I have found it occasionally does this. I think it may be something to do with an object on the today screen, which "steals focus" when it redraws and is a different size, but i'm not certain.

The problem lies outside mmy program basically, I think it's purely to do with how windows rotates the screen.

I would suggest simply soft resetting your device, and running it again to see if it still happens. If you are able to provide any more information about what you have active on your today screen, it would be helpful in debugging...

Matteo66
23rd September 2008, 10:49 PM
Great, thank you

learning feature is very usefull. ;)

learning feature said that the entry for phone is dialog, but not work :(

brins0
23rd September 2008, 10:51 PM
I have some question...
1)Framework v3.5 is 35MB...need I install Framework v3.5(35MB) to my diamond...because my diamond free space only 40 MB....
2)install Framework v3.5 via ActiveSync?

The .NET framework installer is large, as it contains all of the different versions for different devices (ie with different CPUs). The actual library that will be installed is relatively small (2-3MB) and is installed over ActiveSync (XP)/Windows Mobile Device Center (Vista). It can also be removed afterwards if needed.

brins0
23rd September 2008, 10:58 PM
Great, thank you

learning feature is very usefull. ;)

learning feature said that the entry for phone is dialog, but not work :(

It does work, have just tested it myself. I should probably clear this up now as it may cause problems, and I don't think I've explained what i've done here (It will be changed in later versions i'm sure).

- When the checkbox is checked, that window will be rotated.
- When the checkbox is un-checked, that window will not be rotated.

I've looked around my documentation, and i've not actually mentioned this anywhere, which I apologise for.

Currently, if a window class is not present in the list, it will be rotated irrigardless. This functions like a blacklist
In later versions, windows will only rotate if they are checked in there. If a program is not in the list, it will not be rotated. This will function like a whitelist

Matteo66
23rd September 2008, 11:12 PM
Thank you for clarification, was very clear for me before, "Dialog" entry is un-checked, but phone application continue to rotate from port to land :(

Any suggestion?

brins0
24th September 2008, 12:24 AM
Thank you for clarification, was very clear for me before, "Dialog" entry is un-checked, but phone application continue to rotate from port to land :(

Any suggestion?

I'm afraid I can't think why it still rotates i'm afraid. Do other applications which you have unchecked continue to be rotated, or is it only the phone application which seems to mis-behave?

bruce0126
24th September 2008, 03:42 AM
Thanks brins0!! It will be a great alternative to GSen.

There's one suggestion...
Is it possible to add an option that turns off the phone when it's up-side-down (not face down)? It's a neat feature to turn the phone off when you put it into your pocket up-side-down. This feature in GSen doesn't work sometimes....so I have to flip it up-side-down and then check if it's actually off, kind of stupid....LOL.

Thanks,
Bruce

brins0
24th September 2008, 05:44 AM
Thanks brins0!! It will be a great alternative to GSen.

There's one suggestion...
Is it possible to add an option that turns off the phone when it's up-side-down (not face down)? It's a neat feature to turn the phone off when you put it into your pocket up-side-down. This feature in GSen doesn't work sometimes....so I have to flip it up-side-down and then check if it's actually off, kind of stupid....LOL.

Thanks,
Bruce

Would it be better to have a turn off option, and then have another combo box to choose which orientation to turn off on, or do you feel that it would be better to be able to turn the device off when upside down OR face down (ie checkboxes to select which orientations to respond on)?

Either of these options sre simple enough to add, but it'll have to wait until morning, coz i'm in bed on my diamond right now, lol.

Also, for the next build, i'm going to change the application handling to exclude all windows from rotation, unless they are in the application list and checked. Does anyone think this is a bad idea considering how simple it is to add new wimdow classes to the application list now?

Edit: Would you want this to include the light sensor too, so it would only go off in your pocket, as opposed to when just rotated upside down anywhere?

Matteo66
24th September 2008, 06:00 AM
I'm afraid I can't think why it still rotates i'm afraid. Do other applications which you have unchecked continue to be rotated, or is it only the phone application which seems to mis-behave?
only the phone contine to rotate, the other application un-checked not rotate anymore, and all function working properly.

Wow, i like the idea to turn off the phone. I think that tis programm will be a must for our Diamond :)

rondol1
24th September 2008, 07:17 AM
Also, for the next build, i'm going to change the application handling to exclude all windows from rotation, unless they are in the application list and checked. Does anyone think this is a bad idea considering how simple it is to add new wimdow classes to the application list now?


To be honest, I wont like that. I think we use this app to rotate the screen where possible. Only when a program disbehave, we have a need to exclude it. In all other cases it is just fine. So, there is a need for an exclude list, but if I have to update an include list everytime I add a program, it loses its user-friendliness.

kultus
24th September 2008, 08:03 AM
agree...and as I suggest before if its possible we could choose from list of already installed apps but I dont know if its possible...and it will be always actual...

nitty917
24th September 2008, 08:26 AM
ill donate for a working Sprint version!

bozotheclown
24th September 2008, 08:48 AM
Hi,

it works great and fast on my TP. TF3D also rotates.
It'd be nice if TF3D resizes when it rotates and I wonder how to get this screenrotator to autostart (minimized).

Patrick

zonsoft
24th September 2008, 10:11 AM
Wonderful proggy.

That would be really helpful to have

1. configurable default value - all OTHER windows are rotated or not.
2. ability to start minimized without any messageboxes.
3. probably - configurable delay?

...and the icon is invisible in black theme menu...

Thanks!

timoline
24th September 2008, 10:32 AM
Hi,
I like your app

Could you make a option for:
- landscape sound
- portrait sound

here are some transformers sounds
http://forum.xda-developers.com/showpost.php?p=1784616&postcount=1

I'm lookin for some nice whoosh sounds

Thanks

bruce0126
24th September 2008, 10:57 AM
First....Thanks brins0 :D

Would it be better to have a turn off option, and then have another combo box to choose which orientation to turn off on, or do you feel that it would be better to be able to turn the device off when upside down OR face down (ie checkboxes to select which orientations to respond on)?
I would appreciate it if you could make them independent since it's kind of hard to flip the phone up-side-down while sitting on a chair but it's easy to have it faced down.

Either of these options sre simple enough to add, but it'll have to wait until morning, coz i'm in bed on my diamond right now, lol.

Also, for the next build, i'm going to change the application handling to exclude all windows from rotation, unless they are in the application list and checked. Does anyone think this is a bad idea considering how simple it is to add new wimdow classes to the application list now?
Just make that as an option if it's easy...just a box saying the list is a blacklist or a whitelist

Edit: Would you want this to include the light sensor too, so it would only go off in your pocket, as opposed to when just rotated upside down anywhere?

If you can make that as an option (still, independent from other option), it would be great because people can customize it based on their preferences. :D

Many Thanks,
Bruce

StyL3-Ivan
24th September 2008, 11:02 AM
Same on HTC Diamond. Rotates main screen (messes up graphics for the icon tab) but still rotates it. Wont rotate anything else i tried so far.

Got an error 2 after few rotates

http://img227.imageshack.us/img227/5530/screen05sr9.png
i have the same prob as u .... i using .NET Compact Framework 3.5
SwiftBL WWE Diamond v6.5 Full (16MB Pagepool) rom

bussc067
24th September 2008, 12:16 PM
Does this not work at windows 6.1?

schauol1
24th September 2008, 12:56 PM
Works great. Had the above Error as well. But after "blacklisting" manila it works fine now.

Thanks for this nice app. :-)

StyL3-Ivan
24th September 2008, 01:12 PM
Works great. Had the above Error as well. But after "blacklisting" manila it works fine now.

Thanks for this nice app. :-)

how u blacklist manila?

edit: manage to blacklist manila.

Well from my point of view.
- Can this program auto activate when i restart my hp?
- Make it can re-enter the program after i minimize it?
- Auto blacklist all application that is not added in the Application List? [Because alot of application will be affected e.g. teeter]

omega01
24th September 2008, 02:04 PM
On a lot of application does nothing and when i open my TouchPro I have the error message...

Still work to be be done for the TouchPro...

WMguy
24th September 2008, 03:26 PM
For those interested, you ensure the
window you want the rule to be made for is focused, then simply insert the stylus into the
device, and the rule is automatically added. Simple add a name to the rule, if you want to,
and it will become active when you apply the new settings.
Excellent application, thank you very much! Very fast and nice to configure.

It took me a few minutes to figure out the learning mode as I'm not the sharpest tool in the shed. May I make one suggestion? If this has been written already, I apologize but I couldn't find it.

In this direction, it may help some people to say somewhere in the above statement: "Using the stylus, navigate to the program you want to add to the list, then insert the stylus into the silo to apply the program to the list..."

Hope this helps somebody.:)

brins0
24th September 2008, 03:33 PM
Hey all, just a little update before I start work on the new version:

--- Compatability ---------------------------------------------------------------------

My application will work perfectly on ALL PDAs, even those without any kind of sensors. It
is the library which I have used which cannot get the values from the device, not my
application.

Devices which I have confirmed working:
- HTC Diamond
- O2 Diamond/XDA Ignito

Devices confirmed not working:
- HTC Touch Pro (ROM >v1.90)
- HTC Touch Diamond (Telus ROM)

I would assume that the T-Mobile MDA Compact IV will also not work, as this has
had the same modifications as the Telus version of the HTC Diamond.

I am afraid that support for these non-working devices is beyond my control, and there
is nothing I can do about compatability until a newer version of the library is made
available. As soon as the new one is available, I simply replace the one the program is
compiled with, and it works correctly immediately.

--- Features -------------------------------------------------------------------------

- I will make it so that you chose if unlisted windows are excluded or not, like what
"zonsoft" suggested. This seems like a logical way to handle it.

- I will make the light sensor a sub option of the power of option, as you won't want to
use the light sensor for turning off, unless the device is in such a position where it will be
dark.

- I have found a small place where I can increase performance a little

- I will try and wrap all of the exceptions concerning the library in catch statements, and
present the user with an error message stating that their device is not compatable (to
remove any confusion as to why the error occurred).

- I will adjust how the program is minimised, hidden and closed.

- I will try and make a feature that will auto-minimise the program on startup, user
configurable of course

- I will add a startup entry, which can be user configured, for those who like my program
so much they want it to start automatically. (Will most likely be disabled by default)

Whilst I go and get coffee before I start, mull over those points, and see if there's
anything you could suggest a better way of dealing with. Will most likely start coding
around 15:00 GMT (~30 minutes)

bozotheclown
24th September 2008, 03:54 PM
Um, I have a Touc Pro with the DCS14 rom and it works just great, rotating that is.

The application does crash every now and then.


Hey all, just a little update before I start work on the new version:

--- Compatability ---------------------------------------------------------------------

My application will work perfectly on ALL PDAs, even those without any kind of sensors. It
is the library which I have used which cannot get the values from the device, not my
application.

Devices which I have confirmed working:
- HTC Diamond
- O2 Diamond/XDA Ignito

Devices confirmed not working:
- HTC Touch Pro (ROM >v1.90)
- HTC Touch Diamond (Telus ROM)

I would assume that the T-Mobile MDA Compact IV will also not work, as this has
had the same modifications as the Telus version of the HTC Diamond.

I am afraid that support for these non-working devices is beyond my control, and there
is nothing I can do about compatability until a newer version of the library is made
available. As soon as the new one is available, I simply replace the one the program is
compiled with, and it works correctly immediately.

--- Features -------------------------------------------------------------------------

- I will make it so that you chose if unlisted windows are excluded or not, like what
"zonsoft" suggested. This seems like a logical way to handle it.

- I will make the light sensor a sub option of the power of option, as you won't want to
use the light sensor for turning off, unless the device is in such a position where it will be
dark.

- I have found a small place where I can increase performance a little

- I will try and wrap all of the exceptions concerning the library in catch statements, and
present the user with an error message stating that their device is not compatable (to
remove any confusion as to why the error occurred).

- I will adjust how the program is minimised, hidden and closed.

- I will try and make a feature that will auto-minimise the program on startup, user
configurable of course

- I will add a startup entry, which can be user configured, for those who like my program
so much they want it to start automatically. (Will most likely be disabled by default)

Whilst I go and get coffee before I start, mull over those points, and see if there's
anything you could suggest a better way of dealing with. Will most likely start coding
around 15:00 GMT (~30 minutes)

manuel_f2003
24th September 2008, 04:10 PM
on my diamond i have find out that it freeze the phone if i press the up/down volume button!. I have uninstaled the APP and it all the up/down button work agin fine.

brins0
24th September 2008, 04:17 PM
on my diamond i have find out that it freeze the phone if i press the up/down volume button!. I have uninstaled the APP and it all the up/down button work agin fine.

Thanks for pointing that out to me, all I can suggest for now until I find the cause, would be to add the volume application to the blacklist, and stop it being rotated.

joonsuan
24th September 2008, 04:27 PM
Somehow, launching this app changes my SIP from Full QWERTY (that I normally use) to Compact QWERTY...weird.

brins0
24th September 2008, 04:41 PM
Somehow, launching this app changes my SIP from Full QWERTY (that I normally use) to Compact QWERTY...weird.

I think this is most likely caused by the SIP detecting a change in resolution, and changing to the "suggested" SIP for the current orientation of the device. If you try it using the standard keyboard, the SIP should not be changed, and the keyboard will simply go into landscape mode.

evermick
24th September 2008, 04:43 PM
This is a great app, faster then gsen

However, I encounter a problem that when the screen rotates, the phone kin will pop up to foreground. I have already make phone window to disable on rule but it does not help.

Any suggestion?

brins0
24th September 2008, 04:47 PM
This is a great app, faster then gsen

However, I encounter a problem that when the screen rotates, the phone kin will pop up to foreground. I have already make phone window to disable on rule but it does not help.

Any suggestion?

I have also experienced this on occasion. All I can suggest is restarting your device, as it is nothing to do with my program. All my program does, is simply instruct windows to change the screen orientation to the one calculated is appropriate by my program.

Some programs feel they should show themselves when you change resolution. I have found that my device no longer has this problem, since I have disabled the skin on the dialer. The unfortunate side effect of this however, is tha tyou lose some of the advanced functionality of the HTC dialer.

evermick
24th September 2008, 05:00 PM
brins0

Thanks for reply.

Another question, how to make the auto screen rotation appl to start minimized when bootup?

AnnaW
24th September 2008, 05:04 PM
This is a great app, faster then gsen

However, I encounter a problem that when the screen rotates, the phone kin will pop up to foreground. I have already make phone window to disable on rule but it does not help.

Any suggestion?


The speed for GSen you can change in settings: #timeout(value) - default value 1000 ms

tepss
24th September 2008, 05:26 PM
The speed for GSen you can change in settings: #timeout(value) - default value 1000 ms

Yes, what we all meant is rotating process is faster when compared to GSen withtimeout set to 1.

brins0
24th September 2008, 05:35 PM
brins0

Thanks for reply.

Another question, how to make the auto screen rotation appl to start minimized when bootup?

In the current version you can't, but the next release (the one i'm working on now) will have this feature, i'm just testing it now to ensure it works correctly before releasing it...

manuel_f2003
24th September 2008, 05:51 PM
Thanks for pointing that out to me, all I can suggest for now until I find the cause, would be to add the volume application to the blacklist, and stop it being rotated.


But i have decide to donīt use this app becuase it donīt work on my diamond. I use Duttys ROm v1.8. It donīt rotate anything. (i donīt have test 3D touch flow). Do you know wy?? I have test also Gsen and it only rotate the programs list. Also do not work correctly

brins0
24th September 2008, 05:53 PM
But i have decide to donīt use this app becuase it donīt work on my diamond. I use Duttys ROm v1.8. It donīt rotate anything. (i donīt have test 3D touch flow). Do you know wy?? I have test also Gsen and it only rotate the programs list. Also do not work correctly

I have covered your problem in a previous post, please read it (http://forum.xda-developers.com/showpost.php?p=2685144&postcount=60) for a detailed explanation.

kubetto
24th September 2008, 06:13 PM
Thanks for the offer, but it's nothing to do with my program whether or not it rotates with the Telus device. It's down to the kind person who wrote the GSensor library. If you want to participate in any testing, I suggest you contact the person who provided it.

His name is Scott as far as I know, and his information can be found here: http://scottandmichelle.net/scott/comments.html?entry=784

First of all, thanks for this great application, I love the user interface, its clear and easy, specially the window identification tool.

However it doesn't work for me. I have a Vodafone Diamond with the Diamond Project 3.3 ROM. I have run the Sensor Test program written by Scott and it works perfectly, I can see the orientation displayed correctly. However when I try your program, I just see the word "Orientation" and nothing else where, for what I've seen in the screenshots, I should see the orientation displayed.

I don't know if I have been clear enough, I could give you further details if you need to.

brins0
24th September 2008, 06:25 PM
First of all, thanks for this great application, I love the user interface, its clear and easy, specially the window identification tool.

However it doesn't work for me. I have a Vodafone Diamond with the Diamond Project 3.3 ROM. I have run the Sensor Test program written by Scott and it works perfectly, I can see the orientation displayed correctly. However when I try your program, I just see the word "Orientation" and nothing else where, for what I've seen in the screenshots, I should see the orientation displayed.

I don't know if I have been clear enough, I could give you further details if you need to.

Initially only the word Orientation is displayed, as the current orientation is not read until the device is rotated for the first time. I've done it like this to speed up initial loading times. Are you saying the program never displays the orientation, or only when you initially start it?

Check in the options that sutomatic rotation is enabled to be sure. It is enabled by default, but you may not have it enabled for some reason. If the problem still doesn't go away, i'll investigate it further.

kubetto
24th September 2008, 06:28 PM
Initially only the word Orientation is displayed, as the current orientation is not read until the device is rotated for the first time. I've done it like this to speed up initial loading times. Are you saying the program never displays the orientation, or only when you initially start it?

Check in the options that sutomatic rotation is enabled to be sure. It is enabled by default, but you may not have it enabled for some reason. If the problem still doesn't go away, i'll investigate it further.

Automatic rotation is enabled but only "Orientation" is displayed even when I rotate the device.

zenkinz
24th September 2008, 06:41 PM
can't do learning on my touch pro, can only rotate for those that's predefined in the configuration list, e.g. the window that shows all the programs (i.e. start > program)

brins0
24th September 2008, 06:54 PM
A new version has been released, so have added this post to bump the topic up.

New features in this release include startup entry, hide on startup, inclusion of light sensor information, performance and cosmetic changes.

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.

zenkinz
24th September 2008, 07:17 PM
unfortunately, the latest version still doesn't work for touchpro.

1. learning mode is now working

2. however, other than the "Start > Program" window, every other window doesn't auto rotate

3. It seems that once I close the Screenrotator window, I can't rerun the app again.

MasK
24th September 2008, 07:38 PM
Although I haven't tried this promising app yet,
I would like to suggest a few things, if it's suitable for your development:

1)Short vibrate during the "face down" & "upside down" function
2)Instead of power off during "face down" & "upside down", we could have screen off instead

For point (2): it's because when you're running a music player (pocket Music for me), it will stop the music when face down, as the app power off the device.

Thanks!!

whc
24th September 2008, 07:43 PM
Very nice app, very usefull.

Would it be possible to hit "cloose app" and not hav to manually exit the app in task man. but just open up the app again and from there exit? (if that makes sense).

StyL3-Ivan
24th September 2008, 08:48 PM
New Version Features (2008.09.24.0):

I have added new options to allow the device to be powered off when it is either upside
down, or face down, and also to only power off if it is dark, ie in your pocket. Since the
sensor is not terribly accurate, sometimes it thinks it's dark, even when it isn't, but this is
no fault of my program.
Ya i think it is better to put it as screen off than powered off, as mp3 player will be cut off.

I have also added a new option to start the application minimised. Unfortunately, due to
how the framework works, I cannot simply not show the window, so it is shown, and then
hidden again. This can produce a flickering effect if the device is busy at the time, but
that's acceptable, I hope...
Well, i think u can do it by not showing the window like GSen... u can do it manz. :p

The installer now adds a startup entry, so the program is started on boot. If you don't like
this, you can remove the shortcut from "\Windows\Startup" manually to disable the feature.
This is a gd function, so even reboot it will auto startup.:)

The application now has a minimise option in the menu, as well as the close and exit
options. This simply performs the same action as tapping on the "X" button at the top of
the window, but it's there anyway

brins0
24th September 2008, 09:09 PM
Although I haven't tried this promising app yet,
I would like to suggest a few things, if it's suitable for your development:

1)Short vibrate during the "face down" & "upside down" function
2)Instead of power off during "face down" & "upside down", we could have screen off instead

For point (2): it's because when you're running a music player (pocket Music for me), it will stop the music when face down, as the app power off the device.

Thanks!!

This would actually be relatively simple to do, but would require alot of small things changing behind the scenes. Still though, it's more than possible to implement in the new version. I could change the check boxes so they had 3 modes like they do in some windows applications. They would have off (no tick), on (full tick) and indeterminate (think it's a square in the box). Each could represent a different mode, coz you'll only want it to either turn the screen or the device off.

Nice suggestion, defenitely will implement for you...

brins0
24th September 2008, 09:14 PM
Very nice app, very usefull.

Would it be possible to hit "cloose app" and not hav to manually exit the app in task man. but just open up the app again and from there exit? (if that makes sense).

I don't think I've explained waht the different options are well enough as i've received a
few questions about it.

Exit:
This closes the applcation completely closing all child windows, and terminating the
process.

Close:
This disposes of the window to save on memory. This is here purely for folk who want it to
run after it's been configured, and there is no way of getting the window back afterwards
other than the applciation showing the window again itself.

Minimise:
This is how almost all aplications hide windows normally. The window is forced into the
background, but is not disposed of, so it can be braught back to the foreground by the
system. This is the option which you should select if you simply want to push the window
into the background out of view.

brins0
24th September 2008, 09:19 PM
Well, i think u can do it by not showing the window like GSen... u can do it manz.

It isn't possible to simply not show the window, as the window contains all of the code which
controls the rotation event handlers and such. If this window is not loaded, nothing will
happen. In future versions (which may infact require a ground-up rebuild) I may be able to
seperate the form completely, but I cna't think of any way you could invoke the configuration
window, if there's no menu to open it with...

Currently, when the application is started (Using "Application.Run()") the window is created, and
then forced to show. The window does not show itself during creation if that's what you thaught
happened. The Run method tells the window to show itself before it starts the application thread
going.

whc
24th September 2008, 10:56 PM
I don't think I've explained waht the different options are well enough as i've received a
few questions about it.

Exit:
This closes the applcation completely closing all child windows, and terminating the
process.

Close:
This disposes of the window to save on memory. This is here purely for folk who want it to
run after it's been configured, and there is no way of getting the window back afterwards
other than the applciation showing the window again itself.

Minimise:
This is how almost all aplications hide windows normally. The window is forced into the
background, but is not disposed of, so it can be braught back to the foreground by the
system. This is the option which you should select if you simply want to push the window
into the background out of view.
Yes I know, but would be nice if it would be possible to open the application after hitting "cloose", and not hva to kill it from task man, for easy turning off.

The minimize does still run in HTC task man, I personally would like it to run in background (completely in background) and still be able to open application to exit when you want to disable.

Or maybe just a seperate "tuggle" on/off icon?

brins0
25th September 2008, 02:02 AM
A new version has been released, so have added this post to bump the topic up.

New features in this release include cosmetic changes, large bug fix with light sensor, vibration on power off, handlers for future features.

This release fixes a large bug in the exiting procedure, where the application would not terminate correctly do to a fault in the library. I strongly recommend you update to the latest version!

Also added new feature on my site showing the version history to reduce the amount of text on the main page, it can be found HERE (http://projects.brins0.net/WM-Brins0net_ScreenRotator/history.html).

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.

Edit: Forgot to say a large thankyou to the generous donation from one of my users, who would rather remain anonymous. You know who you are ;)

Omareo
25th September 2008, 04:24 AM
New version (9-25) not working on my TP, only rotates TF3D..... i tried even capturing window id and added a program ... but no luck.... by the way brilliant idea when inserting the stylus to capture window id :)..... nice work

brins0
25th September 2008, 04:45 AM
New version (9-25) not working on my TP, only rotates TF3D..... i tried even capturing window id and added a program ... but no luck.... by the way brilliant idea when inserting the stylus to capture window id :)..... nice work

This issue has already been covered before a couple of times, more info on the issue here (http://forum.xda-developers.com/showpost.php?p=2685144&postcount=60)

techred
25th September 2008, 11:21 AM
Screenshots are out of date and will be replaced with newer ones as soon as I can get
SOTI to work correctly.

tried mymobiler? itīs free

http://my-mobiler.softonic.de/pocketpc/download

tepss
25th September 2008, 01:03 PM
Is there a possibility to ad something like delay? Because i got some issues when using it with sensorLock, when you turn around device manyt times screen switches off. Only if you do it quick enough Sensor lock would work. Or maybe you could ad locking solution to your application?

brins0
25th September 2008, 01:19 PM
tried mymobiler? itīs free

http://my-mobiler.softonic.de/pocketpc/download

Thanks, i'll give it a shot for the next version. No sense making new shots till then :D

brins0
25th September 2008, 01:22 PM
Is there a possibility to ad something like delay? Because i got some issues when using it with sensorLock, when you turn around device manyt times screen switches off. Only if you do it quick enough Sensor lock would work. Or maybe you could ad locking solution to your application?

Adding a locking feature is certainly a possibility. How does sensor lock work as far as locking is concerned? Is it gSensor based, or stylus based?

Irrigardless of how it works, how would you expect/want it to work in my program?

mst46
25th September 2008, 04:24 PM
I first have to say thanks for that great program of yours :-).

I especiall like the "enter standby when device is upside down" as the power button on
the Diamond is really far off ;-). This was the feature I was waiting for for a long time.

I also would like to see some kind of locking mechanism integrated into Screen Rotator
as I now use sensorlock in addition. But using more than one program acting on the
GSensor will be asking for trouble I am afraid. So it would be better to integrate all the
features into one program. Both other great programs (sensorlock
http://forum.xda-developers.com/showthread.php?t=422871&highlight=sensorlock and
Styluslock (based on source code from sensorlock)
http://forum.xda-developers.com/showthread.php?t=426730&highlight=sensorlock) are
under the GNU public license and so the source code is accessable.
Maybe you can even get together to make one program with all the features?

As for locking I would prefer to use "left turn face down" for locking.
How about "right turn face down" for muting the device ?
Upside down is just great for putting it into StandBy - please keep that.

Thanks,

mst

brins0
25th September 2008, 07:51 PM
I first have to say thanks for that great program of yours :-).

I especiall like the "enter standby when device is upside down" as the power button on
the Diamond is really far off ;-). This was the feature I was waiting for for a long time.

I also would like to see some kind of locking mechanism integrated into Screen Rotator
as I now use sensorlock in addition. But using more than one program acting on the
GSensor will be asking for trouble I am afraid. So it would be better to integrate all the
features into one program. Both other great programs (sensorlock
http://forum.xda-developers.com/showthread.php?t=422871&highlight=sensorlock and
Styluslock (based on source code from sensorlock)
http://forum.xda-developers.com/showthread.php?t=426730&highlight=sensorlock) are
under the GNU public license and so the source code is accessable.
Maybe you can even get together to make one program with all the features?

As for locking I would prefer to use "left turn face down" for locking.
How about "right turn face down" for muting the device ?
Upside down is just great for putting it into StandBy - please keep that.

Thanks,

mst

Thanks for the comments...

In all ohnesty, it's simpler to implement those features from scratch than it would be to decipher someone elses code, plus I'm really only making this to keep my mind active. I get so bored sitting here with nothing much to do, so I thaught i'd make this, and it's grown much more than I could have hoped. It really does make me happy knowing people actually like it.

When you say locking, do you mean, lock to the password screen, or lock the same way as the today locking plugin works? I can do both, but which would you profer. As for stylus locking, that's also very simple to do, as it works in the same way as the learning feature i've implemented.

I was thinking of simply extending the combo boxes with the options in, to include more options including:

"Do Nothing"
"Lock Device"
"Lock Device (only when stylus is inserted)"
"Enter Standby"
"Enter Standby (only when stylus is inserted)"
"Lock Device and Enter Standby"
"Lock Device and Enter Standby (only when stylus is inserted)"

And then have a seperate tab concerning stylus control, such as, When stylus is inserted:

"Do Nothing"
"Lock Device"
"Enter Standby"
"Lock Device and Enter Standby"

These ideas would be very simple to add to the program, but the configuration screen would have to have more tabs, as it's getting a little crowded for all of these options folk want adding :D

Is this the kind of thing you had in mind before I begin? (Gotta go eat first of course, it's 19:00 here)

tepss
25th September 2008, 08:07 PM
Well, new version of program solves my problem as i can power off taking phone upside down. Great. And my SensorLock does the job then. It would be very nice if this function might be integrated with your app. One app runing in background instead of two....

Could you please tell me how app consumes energy? Is it active while device is in standby mode? I do a lot of browsing and charging during the day and can't do proper battery consumption test.

brins0
25th September 2008, 08:33 PM
Well, new version of program solves my problem as i can power off taking phone upside down. Great. And my SensorLock does the job then. It would be very nice if this function might be integrated with your app. One app runing in background instead of two....

Could you please tell me how app consumes energy? Is it active while device is in standby mode? I do a lot of browsing and charging during the day and can't do proper battery consumption test.

My application does absolutely nothing when the device is in standby, and when the device is action, there is a simple poll every 5000ms (5 seconds) to see if an internal option is enabled (Specifically the "Keep awake when un level" option). If this is enabled, the device's idle timer is reset, if it is not enabled, nothign happens. The rest of the program is purely event based, and no sensor polling techniques are used.

Hope this answers your question.

Also: I'm currently intergrating stylus usage into the application as mentioned in my previous post, and all is going well with development so far. You can probably expect a new version with it included before the end of the day.

roisagi
25th September 2008, 10:02 PM
i donot understand - how can i add exception program in which the screen will not rotate( (programs which are not on the list...)
how can i prevent the screnn from rotating in TF3D?

how do i use the learning mode?

roisagi
25th September 2008, 10:10 PM
what happens when i check "automatic rotation"?

H3x
25th September 2008, 10:40 PM
Firstly, well done, mate. Your program is by far the most user-friendly one I've seen thus far. I really like the customization options and the app-detection mechanism is truly ingenious!

That being said, it is frustrating to have such a good front-end when the back-end disappoints. Rotation on my phone is haphazard at best (and from the videos I've seen online I fear that this is the norm). The phone sometimes needs to be given a little shake before the screen rotates and all to often rotation simply refuses to realize.

Since GSen had exactly the same problems, I suspect that the culprit is definitely the library. Would I be too much of an imposition to ask someone to write a better library/back-end? I know way to little about programming to know if this is a realistic request or not. In any case, when compared to HTC's rotation-sensing (ct. the Album program), I'd say there is a lot a room for improvement.

brins0
25th September 2008, 11:12 PM
Firstly, well done, mate. Your program is by far the most user-friendly one I've seen thus far. I really like the customization options and the app-detection mechanism is truly ingenious!

That being said, it is frustrating to have such a good front-end when the back-end disappoints. Rotation on my phone is haphazard at best (and from the videos I've seen online I fear that this is the norm). The phone sometimes needs to be given a little shake before the screen rotates and all to often rotation simply refuses to realize.

Since GSen had exactly the same problems, I suspect that the culprit is definitely the library. Would I be too much of an imposition to ask someone to write a better library/back-end? I know way to little about programming to know if this is a realistic request or not. In any case, when compared to HTC's rotation-sensing (ct. the Album program), I'd say there is a lot a room for improvement.

Firstly, i'm really glad you like my application, and i'm glad you find it easy to use, I ahve spent alot of time thinking of how best to store and present information. It's comments like these that make a body want to continue work :p

I fear you may be right as far as the library is concerned with rotation. It's all down to how often the information is polled in the library, because when I have tried manually polling the sensors with a simple timer, i've managed to get far more detailed and accurate measurements, but it's quite costly on the CPU unfortunately. Hopefully a newer version of the library will be released shortly, which may allow me to use more of the diamond's features and sensors.

H3x
26th September 2008, 12:01 AM
Then, from my side maybe a few suggestions:
1) Does the system have to be poll-based? Or would an interrupt/event-based one work as well? I suspect this is impossible, but I thought I'd start with the obvious.

2) Maybe a few optimizations to the polling algorithm/heuristic:
2.1) Fully utilize a white-list and only poll for indicated apps (i.e. when white-listed apps are in focus/the foreground.
2.2) Keep the polling interval low/absent with obvious user activity:
- typing/inputing text
- scrolling
- menu navigation
- nav pad utilization

Just a few ideas, don't know whether any of them would be implementable.

EDIT: TIP FOR OTHER USERS - In the mean time, to overcome the disadvantages of a long polling interval, use *slow*, deliberate rotation. This will ensure that the slow polling does not 'miss' the rotation.

brins0
26th September 2008, 03:38 AM
Right, before I go completely skitzo here, and delete this entire application and give up on it. does anyone know how on earth you use the GetSystemPowerState (not GetSystemPowerStatus) P/Invoke function, and what it's header looks like. I've scoured the entire internet looking for how to find the power state. Setting it is immensely easy, yet getting it is almost impossible. who's ever heard of being able to turn a light switch on, but have no idea of whether it's on or not in the first place.

I'm doing all of this in c#, and all I can find is VB.NET code which is almost impossible to read. It doesn't help that there's 1000s of suggested ways of doing this.

As for the rest of the application, it's almost ready for release bar the irritating missing function mentioned above. stylus events ahve been added and work perfectly, although because of how the library handles orientation change, the idea of having "face down from left" as mst46 suggested is not going to happen, unless folk are happy with large polling delays, and a very long wait for me to make a polling system to accurately get the device orientation.

brins0
26th September 2008, 05:20 AM
A new version has been released, so have added this post to bump the topic up.

New features in this release include stylus usage for orientation events and other events. Performance fixes. Added delay to make it easier to flip the device over without it entering landscape mode.

New actions are available including screen off, power off and password protection (must have password set on device to use). These can be used for both stylus and orientation

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.

StyL3-Ivan
26th September 2008, 07:52 AM
New Version Features (2008.09.26.0):

I have added a new set of options allowing you to get the device to do various things
when the stylus is inserted or removed form the device, as well as other things you can
make it do when you flip it over, or turn it into reverse portrait mode.

The asterisks (*) next to some of the options denote that the stylus must be inserted
before the event will fire. This makes it easier to turn the device around without triggering
unwanted effects.

I have added a new delay option to make it easier to flip the device over without triggering
landscape mode. This can be customised in the config panel on the options tab. the value
is in milliseconds, so 1000 would be a second. Default value is 250ms (1/4 of a second),
personally i've got the delay disabled.


Note: When the screen is off, but the device is still on, although no buttons can be
pressed, and the screen will not respond, if the device is rotated, the screen will rotate
and other events will still ocurr. I'm working on a fix for this, but i'm having serious issues
finding the API to hook into. Any help would be greatly appreciated.


I believe when "screen off", our screen display should go back to Today screen am i right?... If it is back to Today Screen and we disabled Manilla from rotating, I doubt the screen will rotate
and other events will still ocurr. By going back to Today Screen & disabled Manilla, everything should be fixed. :)

roisagi
26th September 2008, 08:27 AM
can someone explain:
how can i add a rule to exclude rotation while in phone mode + TF3D ?

Blazeitup123
26th September 2008, 08:40 AM
every time i goto landscape, the phone pad comes up. its the large green talk button then switches to the dialer. very frustrating right now.... ima goto bed.

tepss
26th September 2008, 11:54 AM
I've just realized i don't use autorotation option often. What i use every minut is gestures control. When in the car, on the street etc i can use phone with one hand only. Thats why i suggested integrating SensorLock into it. Stylus locking still needs 2 hands. Still need 2 apps as your doesn't have a locking system and SensorLock doesn have a switching screen off option...

How does the LOCK option work? It doesnt do anything in my case?

mst46
26th September 2008, 12:40 PM
I've just realized i don't use autorotation option often. What i use every minut is gestures control. When in the car, on the street etc i can use phone with one hand only. Thats why i suggested integrating SensorLock into it. Stylus locking still needs 2 hands. Still need 2 apps as your doesn't have a locking system and SensorLock doesn have a switching screen off option...

I believe this is perfectly solved with the options menu. I.e. locking and standby at the
upside down or face down gesture should also solve your needs I believe?

But somehow the screen lock does not always work the way I would expect it to ...
Using "lock and standby" the device screen is never locked when switched back on
with the power button. Using "lock" only locks the device but how will I unlock it
again then ? How about using a toggle switch here ?
Also without any large tests I have the feeling that the gestures do not work as well
as in the last version. There seem to be times when I am just not able to get
"upside down" recognised as a gesture.

mst

tepss
26th September 2008, 02:29 PM
I meant locking like SensorLock: touchscreen and keys are inactive so you won't answer a call in your pocket by self pressing screen - not security lock ;)

Krzysiec
26th September 2008, 02:57 PM
This aplication is GREAT !!! But ... one think ... how to disable it in TF3D ? BEcause after rotating TF3D the error pops up :/

sakky
26th September 2008, 03:00 PM
This aplication is GREAT !!! But ... one think ... how to disable it in TF3D ? BEcause after rotating TF3D the error pops up :/

same problem......:(

Krzysiec
26th September 2008, 03:14 PM
thats the reason why for now... (of course if rotating in TF3D can`t be disabled) ... this aplication is useles ... GREAT but until i can disable somehow tf3D like in gsen ... useless ... so is it possible ? ;)

tepss
26th September 2008, 03:23 PM
On page 3 of this topic it was said already how to disable tf3d rotation (adding information to applications.ini in apps folder). You can always add it to apps lists from configuration (using stylus method).

619619
26th September 2008, 03:58 PM
On page 3 of this topic it was said already how to disable tf3d rotation (adding information to applications.ini in apps folder). You can always add it to apps lists from configuration (using stylus method).

TF3D was the only program that was rotating for me :/
Rotation doesn't work on any program on my touch pro (except manila :D )

canthonyza
26th September 2008, 04:24 PM
Hi,

Does this work on the HTC Touch Pro? Is there an added app I should be installing in order for it to work?

No matter how I flip and twirl this darn phone... nothing happens :eek:

sakky
26th September 2008, 04:49 PM
On page 3 of this topic it was said already how to disable tf3d rotation (adding information to applications.ini in apps folder). You can always add it to apps lists from configuration (using stylus method).

i know, but not working :rolleyes:

roisagi
26th September 2008, 04:51 PM
TF3D was the only program that was rotating for me :/
Rotation doesn't work on any program on my touch pro (except manila :D )

does not work:
i added manila to apps list, checked it, unchecked it - screen still rotates..

tepss
26th September 2008, 05:35 PM
does not work:
i added manila to apps list, checked it, unchecked it - screen still rotates..

For me it works as demanded. Got some issue with adding apps by stylus method thus preffer editing ini file. Try to make a change (don't forget to press ACCEPT button <- Left Function Key menu) and if it is still not working restart application.

brins0
26th September 2008, 06:09 PM
Yes, locking invokes the full password protected device lock, not the same function as the today screen lock. I'm still working out how to efficiently gain access to this, without having to sumulate a keypress, which is messy.

For all of the people who still can't work out how to add TF3D/Manilla to the blacklist, here is the option to add:

0,Manilla,Start

You can either create a new entry by hand in the Applications.ini file, or tap and hold in the list, and select "Add" and add it to the list through the configuration panel. The class is "Start", you can call the rule whatever you like, doesn't matter.

I think that the problem with the code I use to get the current window, is that it gets the today screen window, rather than the TF3D/Manilla one, and hence thinks that the today screen isn't active, even though it is. I don't have manilla on my device anymore, (didn't like it so got a rom without it) so I can't test this theory unfortunately.

sakky
26th September 2008, 06:39 PM
For all of the people who still can't work out how to add TF3D/Manilla to the blacklist, here is the option to add:

0,Manilla,Start

You can either create a new entry by hand in the Applications.ini file, or tap and hold in the list, and select "Add" and add it to the list through the configuration panel. The class is "Start", you can call the rule whatever you like, doesn't matter.

I think that the problem with the code I use to get the current window, is that it gets the today screen window, rather than the TF3D/Manilla one, and hence thinks that the today screen isn't active, even though it is. I don't have manilla on my device anymore, (didn't like it so got a rom without it) so I can't test this theory unfortunately.

ok through the same, for me not working on original rom 1.93 :(
I uninstalled and I came back to the gsen.....:rolleyes:

EDIT:

I found a solution!!!!!!!!!!!
in the file configurations.ini write 0,Start,Manila NOT 0,Manila,Start

now it works fine!!!

brins0
26th September 2008, 07:35 PM
ok through the same, for me not working on original rom 1.93 :(
I uninstalled and I came back to the gsen.....:rolleyes:

EDIT:

I found a solution!!!!!!!!!!!
in the file configurations.ini write 0,Start,Manila NOT 0,Manila,Start

now it works fine!!!

I looks like the classname was actually "Manila" then, and the person posted the config line incorrectly. As I said before, i've not got manilla to test it with, so I rely on observent people likeyourself to point these things out :D

I've added the line to the default Applications.ini file in the project, which will be disabled by default (so it won't rotate). Thanks again...

StyL3-Ivan
26th September 2008, 07:42 PM
brins0 in your current ver. those class not stated in application.ini will it still be rotated?...

cause i feel that we should disable all applications from rotating that is not stated in the application.ini

therefore, we will manually add the applications we wanna to rotate to the application.ini, do u think this idea is gd?

brins0
26th September 2008, 07:44 PM
A new version has been released, so have added this post to bump the topic up.

New features in this release include the addition of Manila to the apllication blacklist. This is a very simple interim update to stop people asking how to disable rotation in Manila.

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.

brins0
26th September 2008, 09:34 PM
brins0 in your current ver. those class not stated in application.ini will it still be rotated?...

cause i feel that we should disable all applications from rotating that is not stated in the application.ini

therefore, we will manually add the applications we wanna to rotate to the application.ini, do u think this idea is gd?

I have asked this pressing question in the past to ask what people felt about it, and the people, at the time, wanted it to rotate all applications, unless specifically excluded. With the end user (you) being able to add new entries so simply, I felt it would be best to leave it how it was at the time.

Does anyone else have any opinions on whether the default action should be changed, or whether it should be left how it is now?

brins0
26th September 2008, 09:36 PM
A new version has been released, so have added this post to bump the topic up.

New features in this release include key locking the device when the stylus is inserted or when the screen is rotated. The original method for choosing this is still the same. Minor performance and cosmetic increases, such as making sound notifications play asynchronously so th eprogram doesn't halt whilst the sound is played.

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.

Krzysiec
26th September 2008, 10:16 PM
so in that relase there is bug ... because it was very usefull to learn this aplication some options but now STYLUS dosen`t confirm our choice ... now it do nothing :/ Can i get previus version where stylus was working with learn very well and i will add manila manualy to ini ...

EDIT: My mistake ;) I forgot to press OK in program and then insert stylus ;) Is working fine :)

SO NOW I CAN SAY ... THIS APLLICATION IS ONE OF THE BEST !! ;) THANK YOU !

maximo88
26th September 2008, 11:24 PM
Sorry, I want to understand: what is the difference with gsensor?? a beautiful interface? I can't understand. Thank you all!

bigruss
27th September 2008, 12:24 AM
I have asked this pressing question in the past to ask what people felt about it, and the people, at the time, wanted it to rotate all applications, unless specifically excluded. With the end user (you) being able to add new entries so simply, I felt it would be best to leave it how it was at the time.

Does anyone else have any opinions on whether the default action should be changed, or whether it should be left how it is now?

Great app, thankyou. I agree that rotation should be off by default, and that apps should be opted in. cheers

Krzysiec
27th September 2008, 12:51 AM
Sorry, I want to understand: what is the difference with gsensor?? a beautiful interface? I can't understand. Thank you all!

this one works faster like for me ...

rondol1
27th September 2008, 02:58 AM
I have asked this pressing question in the past to ask what people felt about it, and the people, at the time, wanted it to rotate all applications, unless specifically excluded. With the end user (you) being able to add new entries so simply, I felt it would be best to leave it how it was at the time.

Does anyone else have any opinions on whether the default action should be changed, or whether it should be left how it is now?

I still feel it should stay the way it is. this makes the app more transparent.

brins0
27th September 2008, 05:05 AM
I'm thinking of changing the name of my project, because "Brins0net_ScreenRotator" sounds immensely boring, even if it does accurately describe what it does...

I'd like to ask for people opinions on the following name and logo if I may...

I'm thinking of renaming it to: Gyrator

http://pictures.brins0.net/Gyrator_Mini.png

Larger version HERE (http://pictures.brins0.net/Gyrator.png).

This will still give peopel a rough idea as to what it does, and it certainly sounds very cool. I'll change the names internally which will be no hassle, and you'll not see any difference int he way it works, but it will sound somewhat cooler.

Note: This will most likely not be the final logo, as it's using the Microsoft Vista "Sync Center" icon at the moment, and i'm sure they won't take too kindly to me using it in the final version.

Blazeitup123
27th September 2008, 05:37 AM
Rotate synonyms: alternate, circle, circulate, circumvolve, gyrate, orbit, oscillate, pirouette, pivot, revolve, roll, spin, swivel, turn, twirl, wheel, whirl.

i like gyrator :)

revolver and swivel i also like.

screen swivler or diamond revolver.... meh i don't know. brainstorming lol :o

Drybonz
27th September 2008, 09:02 AM
Yeah... how about The Pirouette-or?

Just kidding... Gyrator is cool. Nice logo.

Have been following the thread. App looks awesome... much more accessible than Gsen.

Can't wait to try... I'm on Sprint... hoping for the new library.

Dpakrawal
27th September 2008, 09:34 AM
A new version has been released, so have added this post to bump the topic up.

New features in this release include key locking the device when the stylus is inserted or when the screen is rotated. The original method for choosing this is still the same. Minor performance and cosmetic increases, such as making sound notifications play asynchronously so th eprogram doesn't halt whilst the sound is played.

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.


Could somebody tell me... How do I "ADD" Applications to the configuration menu ??.. I wanted to this to work for only my email accounts.. not for the SMS/MMS... Can anybody tell me how do I do this !!?

mst46
27th September 2008, 10:06 AM
Hey Brins0 well done. All the features work as designed :-).

It's just that I don't like the way to unlock now - never did :-( for WM5/6.
Personally I would prefer a (new?) gesture for unlocking.

I quite like the "activate keylock and suspend" on a gesture though - great feature.
I also like the second gesture for suspending without lock as this gives me the choice
betweeen locking and not locking - especially for times when I know I will need the
diamond again in short time.

As for the new name ... I like GYRATOR quite a lot, sounds kinda cool.

Keep up that great work of yours :-).

mst

mst46
27th September 2008, 10:22 AM
Could somebody tell me... How do I "ADD" Applications to the configuration menu ??.. I wanted to this to work for only my email accounts.. not for the SMS/MMS... Can anybody tell me how do I do this !!?

There are two ways to add Apps to the menu ( in fact even three ;-) )

1.) In the configuration - Application screen click and hold with the stylus anywhere
on the screen until the menu shows up. Choose Add Rule - this adds a default rule
at the bottom which you can now edit with the Edit Rule in the same menu.

2.) In the configuration - Application screen press Tools - there shows up
"Find Windows ID" click on that - now check that the application you want a rule
for is visible on the screen and active - now remove the stylus (if it isn't already
removed) and put it back in.
Putting the stylus in here adds a rule at the bottom to the application rules.

3.) Find out the window you want a rule for with a taskmanager (i.e. free TaskMgr
from Dotfred (http://www.dotfred.net/) ) and add this to the
Applications.ini file with an editor.

HTH,

mst

benko286
27th September 2008, 10:52 AM
how to remove vibrate when stylus is putting in?
i love that when stylus is in diamond device goes off but i hate vibrating.

StyL3-Ivan
27th September 2008, 12:19 PM
So far no big issue on this appz. Gd job brins0.

Can i give a comment about the Right bottom menu
[Configure, Exit, Close Window,...]

It is possible when we select "Close Window", we can re-enter the program again. As currently, we could not re-enter the program when selecting "Close Window". I guess most of us hope not to see the program in the task manager and at the same time we hope to re-enter the program to do some configuration?

I believe [X] & [Exit]..is close the program without running the program.
Therefore [Close Window].. should be close the program and having it running as hidden background.

tepss
27th September 2008, 12:35 PM
Lock function works great. SensorLock is gone and Gyrator is back in business. However there is one bug:
When locked and the screen is dimmed rotation is still active and rotates even manila which is disabled when unlocked ?!

Wolfblood
27th September 2008, 02:33 PM
Thanks, This is a great app for me :)

If the appliaction rule can also support control the rotate screen how many angle can change for each apps like 90, 180, 270 will be super great! :)

brins0
27th September 2008, 03:54 PM
Lock function works great. SensorLock is gone and Gyrator is back in business. However there is one bug:
When locked and the screen is dimmed rotation is still active and rotates even manila which is disabled when unlocked ?!

Thanks for that little bug, i'll look into it now, it's most likely a rule which is being skipped because the device is locked...

how to remove vibrate when stylus is putting in?
i love that when stylus is in diamond device goes off but i hate vibrating.

This isn't currently an option, but i'll make it an option for the next version. To keep it simple, i'll have a global option to turn all vibration off. There would be far too many checkboxes or otion in combo boxes otherwise. It'd confuse me trying to work out all of the logic behind it, and would make it far more difficult for you all to use.

As for the rename, that will take effect for the next version hopefully. I should have finalised a logo for it which will be seen in the next version, along with a new icon most likely. I'm gonna set up a new sub-domain on my server, gyrator.brins0.net, which will hold information about the program. It'll make it much simpler to find out what's going on. Support will still be offered here though, as well as via email.

Keep those suggestions coming in :D

roisagi
27th September 2008, 04:18 PM
There are two ways to add Apps to the menu ( in fact even three ;-) )

1.) In the configuration - Application screen click and hold with the stylus anywhere
on the screen until the menu shows up. Choose Add Rule - this adds a default rule
at the bottom which you can now edit with the Edit Rule in the same menu.

2.) In the configuration - Application screen press Tools - there shows up
"Find Windows ID" click on that - now check that the application you want a rule
for is visible on the screen and active - now remove the stylus (if it isn't already
removed) and put it back in.
Putting the stylus in here adds a rule at the bottom to the application rules.

3.) Find out the window you want a rule for with a taskmanager (i.e. free TaskMgr
from Dotfred (http://www.dotfred.net/) ) and add this to the
Applications.ini file with an editor.

HTH,

mst

what is the string/rule to prevent rotation in phone mode? )cprog? what is the exact string?

brins0
27th September 2008, 04:24 PM
what is the string/rule to prevent rotation in phone mode? )cprog? what is the exact string?

It depends which skin you ahve active I think. If you have disabled the carrier string, it's one thing, if you havn't it's another. Use the stylus learning tool to get the correct string for your device.

roisagi
27th September 2008, 04:55 PM
It depends which skin you ahve active I think. If you have disabled the carrier string, it's one thing, if you havn't it's another. Use the stylus learning tool to get the correct string for your device.

how to "use the stylus..." if i do not know which application is the phone one?

brins0
27th September 2008, 06:36 PM
how to "use the stylus..." if i do not know which application is the phone one?

Enter the stylus learning mode using "Find Window ID" from the tools menu in the configuration screen. Follow the on-screen instructions.

Basically, when in this mode, you make sure the phone application is currently visible on the screen, and insert the stylus into the device. My program will then display a message box with the class ID of the currently focused window in it. This will then be added to the Applciation List (and also the applications.ini file when saved) and will default to "do not rotate" or unchecked.

(I really should write a readme... but it'll be on the new site i'm setting up for it)

wingwindw
27th September 2008, 07:07 PM
sigh :(
Same problem like gsen running no my P3702(Victor)
It only avaliable for the last program before open screenRotator
(Ex.. Open Explorer(Program)-> open screenRotator-> only Explorer can auto rotate..)
what's wrong with it??
And If I open ScreenRotator and open Opera(can rotator by HTCGsensor)
The ScreenRotator will be crash after the Opera rotated by HTCGsensor
is it the problem maker?
sorry for my poor English..

below is my reg for GSensor
[HKEY_LOCAL_MACHINE\Software\HTC\HTCSensor\GSensor]
"CheckingTime"=dword:000000C8
"EventChanged"=dword:00010002
"DeviceControlVersion"="0.50.0.0"
"KBDSlideOut_To_Stop_GSensor"=dword:00000000
"DeviceAvailability"=dword:00000001
"DeviceVendor"="Kionix KXSD9"
"PhonecallMute"=dword:00000001
"TilingAngleThresholdEx"=dword:00000028
"FaceupAngleThreshold"=dword:0000001E
"RotateAngleThresholdEx"=dword:0000001E
"LandscapeToP0Threshold"=dword:00000028
"FaceupToLandscape"=dword:00000000
"FaceupAsPortrait"=dword:00000001
"NotifyAppRotationMask"=dword:0000003F
"TilingAngleThreshold"=dword:00000014
"RotateAngleThreshold"=dword:0000002D


[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\GSensor]
"Dll"="Gsensor.dll"
"Calibrate3-3"=dword:00000062
"Calibrate3-2"=dword:0000000A
"Calibrate3-1"=dword:0000001A
"Calibrate2-3"=dword:00000000
"Calibrate2-2"=dword:00000000
"Calibrate2-1"=dword:00000000
"Calibrate1-3"=dword:00000000
"Calibrate1-2"=dword:00000000
"Calibrate1-1"=dword:00000000
"EnableShaking"=dword:00000001
"CalibrateMethod"=dword:00000231
"IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"
"ShakingThreshold"=dword:00000003
"PollingInterval"=dword:000000C8
"Order"=dword:0000000C
"Index"=dword:00000001
"Prefix"="ECS"

DomSim
27th September 2008, 07:43 PM
is the g sensor different on the sprint version? or is there something i am not doing right to get this to work? neither this or gsen works for me :(

benko286
27th September 2008, 08:38 PM
another problem:
i set that when is face down to turn off device(again irritating vibrate). but every time diamond is faced down it vibrate(screen is shouted down).
cant wait to remove vibrate;)

brins0
27th September 2008, 09:27 PM
is the g sensor different on the sprint version? or is there something i am not doing right to get this to work? neither this or gsen works for me :(

sigh :(
Same problem like gsen running no my P3702(Victor)
It only avaliable for the last program before open screenRotator
(Ex.. Open Explorer(Program)-> open screenRotator-> only Explorer can auto rotate..)
what's wrong with it??
And If I open ScreenRotator and open Opera(can rotator by HTCGsensor)
The ScreenRotator will be crash after the Opera rotated by HTCGsensor
is it the problem maker?
sorry for my poor English..

I refer you both to one of my previous posts stating why it does not work with all devices:

http://forum.xda-developers.com/showpost.php?p=2685144&postcount=60

This will help you know if it is a simple incompatability error, or if it's somehting wrong on my end.

DomSim
27th September 2008, 11:43 PM
I refer you both to one of my previous posts stating why it does not work with all devices:

http://forum.xda-developers.com/showpost.php?p=2685144&postcount=60

This will help you know if it is a simple incompatability error, or if it's somehting wrong on my end.

i can tell you, when the program loads and shows "orientation" it does not show anything. it is just a blank white screen. whether its an incompatibility or something wrong i have no clue.

brins0
28th September 2008, 12:32 AM
i can tell you, when the program loads and shows "orientation" it does not show anything. it is just a blank white screen. whether its an incompatibility or something wrong i have no clue.

Do any of the of the option in the menus do anything? If they do not appear, or do not function, then you have a problem with your device or the version of the comapct framework you ahve installed is not modern enough. This program requires .NET CF v3.5 as stated in the opening post.

Please ensure you have the prerequisites, and then try again. If you still have problems, feel free to contact me again.

roisagi
28th September 2008, 12:37 AM
Enter the stylus learning mode using "Find Window ID" from the tools menu in the configuration screen. Follow the on-screen instructions.

Basically, when in this mode, you make sure the phone application is currently visible on the screen, and insert the stylus into the device. My program will then display a message box with the class ID of the currently focused window in it. This will then be added to the Applciation List (and also the applications.ini file when saved) and will default to "do not rotate" or unchecked.

(I really should write a readme... but it'll be on the new site i'm setting up for it)

exactly my question: what is the phone application name?? i cannot recognize it in the application list..

brins0
28th September 2008, 12:39 AM
For all of those who are interested in what the Gyrator dedicated website will look like, you are welcome to preview it here, although remember... it is in development, so will not do much at the moment.

http://downloads.brins0.net/[gyrator]/ (http://downloads.brins0.net/%5Bgyrator%5D/)

Note: It's designed to work well in Firefox, not in Internet Explorer, so it may not work how you expect it to...

I'm open to suggestions at this time. I want to make it both look pretty, as well as provide you with useful information and downloads.

brins0
28th September 2008, 12:41 AM
exactly my question: what is the phone application name?? i cannot recognize it in the application list..

Ah, sorry, mis-read your original question...

I think it's called soemthing strange like "Dialog" for some reason. I remember trying to find it myself when I first added it.

Semi666
28th September 2008, 12:51 AM
Would it be possible to add function from Sensor Lock ?
http://forum.xda-developers.com/showthread.php?t=422871
to your program so you could lock it with flip ?? Ive tried to use both programs at once but there seems to be some conflicts :( So sometimes i have trouble to unlock it

brins0
28th September 2008, 12:56 AM
Would it be possible to add function from
http://forum.xda-developers.com/showthread.php?t=422871
to your program so you could lock it with flip ?? Ive tried to use both programs at once but there seems to be some conflicts :( So sometimes i have trouble to unlock it

You can already lock the phone by turning it on it's end into reverse portrait mode, or flipping it so it's face down. Make sure you have set the options up for "Activate Key Lock" for "Face Down" in the Orientation tab of the configuration screen.

I've released alot of versions recently, so make sure you have the most recent one as the feature was not added too long ago.

DomSim
28th September 2008, 01:50 AM
Do any of the of the option in the menus do anything? If they do not appear, or do not function, then you have a problem with your device or the version of the comapct framework you ahve installed is not modern enough. This program requires .NET CF v3.5 as stated in the opening post.

Please ensure you have the prerequisites, and then try again. If you still have problems, feel free to contact me again.

i have .net cf 3.5 installed already. menus work and i can go through them. stylus controls work as well. just nothing to do with reading the g sensor.

techred
28th September 2008, 01:59 AM
great program, unfortunately I donīt manage to exclude g-alarm or klaxon from rotating ;-(
i love the turn over suspend function - but somehow it doesnīt work with S2U2
when I turn the phone back on, S2U2 is not activated
as my lovely xda recently called 3 numbers while it was in my pocket and S2U2 not activated, I canīt afford S2U2 not working ...

brins0
28th September 2008, 02:27 AM
great program, unfortunately I donīt manage to exclude g-alarm or klaxon from rotating ;-(
i love the turn over suspend function - but somehow it doesnīt work with S2U2
when I turn the phone back on, S2U2 is not activated
as my lovely xda recently called 3 numbers while it was in my pocket and S2U2 not activated, I canīt afford S2U2 not working ...

With the Key Lock activated, there should be no way it can call anyone, or actually do anything unless you unlock it first by removing the stylus. Make sure you have the keylock activated, and that the stylus sensor on your device is functioning correctly.

Remember to make sure that the program's most frequently shown window is in the blacklist, as a program may have more than one window, and hence more than one entry needs to be added. I have yet to find a program which will not work with my stylus learning technique

brins0
28th September 2008, 02:28 AM
i have .net cf 3.5 installed already. menus work and i can go through them. stylus controls work as well. just nothing to do with reading the g sensor.

Have you checked to make sure that your device is not on the "known not working" list. There are some phones which will not work correctly with the gSensor library completely.

DomSim
28th September 2008, 03:36 AM
didnt see sprint diamond on a list but it it is cdma like the telus so im pretty sure your app and others designed for cdma are just incopatible

Wolfblood
28th September 2008, 04:49 AM
Hi brins0,

Is it possible to make a option for goniometer like how many degree is change then rotate the screen. I feel now the app look like each 45 degree to change. But I hope can set to 60-75 degree then change. That's will make the screen rotate not too sensitive.

What's did you think? :)

Thank you for your good work!

brins0
28th September 2008, 04:54 AM
Hi brins0,

Is it possible to make a option for goniometer like how many degree is change then rotate the screen. I feel now the app look like each 45 degree to change. But I hope can set to 60-75 degree then change. That's will make the screen rotate not too sensitive.

What's did you think? :)

Thank you for your good work!

This is not likely to be implemented for a short while i'm afraid, although the thaught has crossed my mind, and i've got a basic idea as to how to do it. It would take alot of work, and require continual polling of the gSensor, which lowers battery life, and increases CPU usage to the point where it's not actually worth the change.

I'll be starting at university again soon, so time will be limited unfortunately. I will still try to fix minor bugs that people find, but large overhauls such as this are not likely to happen quickly, sorry :)

Wolfblood
28th September 2008, 06:17 AM
Understand that. Thank you. ^o^

es_wychk
28th September 2008, 06:57 AM
I refer you both to one of my previous posts stating why it does not work with all devices:

http://forum.xda-developers.com/showpost.php?p=2685144&postcount=60

This will help you know if it is a simple incompatability error, or if it's somehting wrong on my end.



brins0, I have to say I LOVE your app, it is perfectly what i have been looking for.:)

The bad news is: it does NOT work on my device(Raphael/Touch Pro, unbranded). Other apps using g-senors works well though.

The good news is: After tons of reading, I have "nearly" find a solution that will help you in your next build.

The library you are using, sensors.dll, monitors the
HKLM\Software\HTC\HTCSensor\GSensor\EventChanged to obtain info on orientation of the device and update it in its HTCGSensor.Orientation property . In Raphael, possibly due to the addition of keyboard, EventChanged does not update automatically by default.

I wouldnt expect sensors.dll to be updated in the near future, as it appear to be a self-written SDK.

(Long-term) Solution-1: Abandon the SDK and Directly invoke the HTCSensorSDK.dll
Sensortest.exe written by Scott Seligman(Source Code in cpp + exe attached), is able to use (Officially preinstalled by HTC, found under \Windows\) HTCSensorSDK.dll to obtain correct orientation information of my raphael. You can modify your program by taking it as an example.
Pros:
A. Raphael Compatibility
B. Performance, nothing is quicker than invoking the official dll directly
C. Using official dll improves compatibility with other device as well.

Cons:
Does Diamond has this dll as well? I am not sure as i dun have access to Diamond. Attached the dll just in case.

(Mid-term) Solution-2-Maybe only an additional function call?
I am no programming expert, but i can see that Scott's code is also monitoring the HKLM\Software\HTC\HTCSensor\GSensor\EventChanged registry to update its orientation information. MAYBE, it only takes an extra function call to begin G-Sensor's automatic update of the registry key. I am not sure on this as I cant compare Scott's code with the source code of your project.
Pros:
A. Raphael Compatibility
B. Only Minor modification is needed
Cons:
We are still using the old SDK, other problems may still exist: e.g. the Opera crash stated above?

(Short term) Solution-3: Use GetVector
Do not rely on the HTCGSensor.Orientation property for getting the device orientation. Use HTCGSensor.GetVector to obtain the raw output from G-sensor, and programmatically translate it into orientation.
(I have tested with the GSensorTest.exe from the SDK, HTCGSensor.GetVector should be working.
Pros:
A. Raphael Compatibility
B. Option to user-define the angle needed to trigger Landscape/Portrait mode.

Cons:
A. Performance. I am not sure how fast the G-Sensor respond, but this option may impair performance a little.

es_wychk
28th September 2008, 07:23 AM
Hi brins0,

Is it possible to make a option for goniometer like how many degree is change then rotate the screen. I feel now the app look like each 45 degree to change. But I hope can set to 60-75 degree then change. That's will make the screen rotate not too sensitive.

What's did you think? :)

Thank you for your good work!


I GUESS this can be achieved through changing registry.
HKLM\Software\HTC\HTCSensor\GSensor\
There are a few "Threshold" that you can try to modify.

I cannot test this as my Touch Pro is incompatible><

es_wychk
28th September 2008, 07:42 AM
This is not likely to be implemented for a short while i'm afraid, although the thaught has crossed my mind, and i've got a basic idea as to how to do it. It would take alot of work, and require continual polling of the gSensor, which lowers battery life, and increases CPU usage to the point where it's not actually worth the change.

I'll be starting at university again soon, so time will be limited unfortunately. I will still try to fix minor bugs that people find, but large overhauls such as this are not likely to happen quickly, sorry :)

The device does internal continual polling to know about the orientation anyway(if it doesnt, the program wont work, as in my Raphael :p), so I believe the change in performance/battery drainage is minimal.

A simple way of doing it is adding a Timer to call GVector, and interpret the data using a pre-defined threshold.

I think many here are willing to help as your university life get tight(including me:)).

roisagi
28th September 2008, 08:01 AM
Ah, sorry, mis-read your original question...

I think it's called soemthing strange like "Dialog" for some reason. I remember trying to find it myself when I first added it.

sorry - there is ni dialog or any other thing you might think is the phone application -
any ideas?

steveianson
28th September 2008, 09:53 AM
Great application. Solves the problems with Gsen.

Is there any way to lose the listing on task manager?

zonsoft
28th September 2008, 10:50 AM
Thank you, brins0! Just wonderful. And stable, too.

1. I definitely miss the ability to assign the default behaviour to unlisted windows.

2. When started from StartUp, program can be minimized but anyway shows up during bootup - can it be avoided? It would be really nice if there would be totally silent start.

3. Can you make an inverted screen as an option - white-on-black?

And thanks again - this program is really useful.

DomSim
28th September 2008, 04:13 PM
brins0 i will help in anyway possible to get this working on the cdma versions. since you obviously do not have one on hand, let me know anything you would need to know such as registry values, etc to get it working. if more complex info is needed just explain how to obtain it and i will gladly do so. feel free to pm me if interested.

oscahie
28th September 2008, 04:37 PM
I tried this app yesterday and I like it, but we definitely need the ability to configure whether to rotate or not the unlisted windows. Indeed in the middle of a phone call it rotated the screen and I was constantly pushing the "on hold" button with my ear :D

brins0
28th September 2008, 09:35 PM
I tried this app yesterday and I like it, but we definitely need the ability to configure whether to rotate or not the unlisted windows. Indeed in the middle of a phone call it rotated the screen and I was constantly pushing the "on hold" button with my ear :D

Why don't you simply add the phone application window to the application list, and disable the rule?

The class name to enter in the lower box is "Dialog". Clear the checkbox for the rule, and then it won't be rotated.

brins0
28th September 2008, 09:42 PM
In the next version, which co-incidentally will be the first release under the new name "Gyrator", will most likely contain the option to control the default action for unlisted windows as so many of you have asked for it. However, due to the amount of time i'm going to have to devote to my studies, adding to the fact that it's my birthday on friday, will mean that it may be a short while until i've got time to release a new version.

Zonsoft, unfortunately it's not possible for me to control the device's internal colouring to create a "high contrast white on black" theme as with a Windows desktop system. Also, for now, I do not know how to make it so there is no window shown for an application. A console application is not designed to be constantly working in the background, so it would ahve to be written as a service, and I don't know how to do this in c#.

brins0
28th September 2008, 09:51 PM
brins0, I have to say I LOVE your app, it is perfectly what i have been looking for.:)

The good news is: After tons of reading, I have "nearly" find a solution that will help you in your next build.

(Long-term) Solution-1: Abandon the SDK and Directly invoke the HTCSensorSDK.dll
(Mid-term) Solution-2-Maybe only an additional function call?
(Short term) Solution-3: Use GetVector

I'm glad you like the application, I only wish it worked for more people...

Thanks for the run-down of available options. I have thaught about changing how it worked, but i've struggled to find information about how the HTCSensorSDK library works. It would most likely be simple enough to convert idea C into idea A when I work out how it all functions.

The first logical step would be to become less reliant on the Orientation enumeration in the library i'm using at the moment, and manually polling the sensors through the DLL I'm using now. With simple tweaking i'm sure I would be able to find a suitable polling rate, and as another reader proposed, the system polls the sensors anyway, so any performance hit would be negligable.

As soon as I got to the stage of polling the sensors myself, it wouldn't require too much effort to poll them directly through the HTCSensorSDK library instead. I don't see how it would be alot more efficient, but it would allow the user to tune the orentation bounds for the best feel.

Semi666
28th September 2008, 09:54 PM
Sorry if it was written somewhere else but would it be possible on incoming call to lock screen and answer just with hw buttons ? Ive tried AnswerkeysDisabler and Rotator but it wont work ie screen is not locked or both screen/buttons are locked

NYRican
28th September 2008, 11:10 PM
this program will not work with my gsensor the stylus options will work but none of the options involving the gsensor have any effect on my diamond. other programs work perfectly with the gsensor but this one wont even recognize the orientation on the first screen of the program unless i use an app which does use my gsensor but then as soon as i close that app your program wont recognize my sensor anymore.

brins0
28th September 2008, 11:30 PM
this program will not work with my gsensor the stylus options will work but none of the options involving the gsensor have any effect on my diamond. other programs work perfectly with the gsensor but this one wont even recognize the orientation on the first screen of the program unless i use an app which does use my gsensor but then as soon as i close that app your program wont recognize my sensor anymore.

I think this does actually prove that es_wychk was right about how the sensor reading sare recorded. It would appear that the registry entry the library uses to check if the orientation has changed, is not updated automatically on some of the devices, unless it is invoked to by a certain application. Unfortunately, due to the way I use the library in current versions, it won't work cirrectly on all devices.

As I mentioned earlier on this evening, I will attempt to get the readings myself and calculate the orientation. This will mean that it *should* work with all devices.

NYRican
28th September 2008, 11:53 PM
do you think a ROM change would effect how it works? right now im running the stock ROM on the US Diamond i was thinking of switching to one of Dutty's ROMs. after i hardresetted i got it so it rotates the screen but only in Programs and nowhere else. to change the orientation detected on the screen in your program i have to back out go to programs use the gsensor then open your program again and it will detect the change otherwise nothing happens.

El_Mariachi
29th September 2008, 12:02 AM
I love this, but have one problem. I've set the screen to turn off when I turn the device upside down, but I've noticed if WiFi is on, it just won't turn off, also, if I'm running Opera and try it, it just crashes.

The other thing is it still vibrates when I put it upside down even if the screen is already off.

Keep it up though :D

brins0
29th September 2008, 01:10 AM
do you think a ROM change would effect how it works? right now im running the stock ROM on the US Diamond i was thinking of switching to one of Dutty's ROMs. after i hardresetted i got it so it rotates the screen but only in Programs and nowhere else. to change the orientation detected on the screen in your program i have to back out go to programs use the gsensor then open your program again and it will detect the change otherwise nothing happens.

A rom change may do it, but I can't confirm it i'm afraid. If you're willing to test the idea for me, it'd help myself and others work out what the exact problem is and possibly how to fix it.

brins0
29th September 2008, 01:13 AM
I love this, but have one problem. I've set the screen to turn off when I turn the device upside down, but I've noticed if WiFi is on, it just won't turn off, also, if I'm running Opera and try it, it just crashes.

The other thing is it still vibrates when I put it upside down even if the screen is already off.

Keep it up though :D

Sorry, the "other thing" was mentioned in previous release notes, I should probably have left it as a known bug. I can't get the current power state of the device to tell if the screen is turned off but the device is still powered on. I'm sure there has to be a way, but i'm not quite sure what it is at the moment.

As far as the wifi is concerned, the wifi drivers may be over-riding the power off feature that I access when I want to change the power state. If this is the case, there's very little I can do.

es_wychk
29th September 2008, 02:27 AM
With simple tweaking i'm sure I would be able to find a suitable polling rate, and as another reader proposed, the system polls the sensors anyway, so any performance hit would be negligable.


THXX~~I really look forward to your next build.

For your information, the system's default poll rate can be found under registry:
HKLM\Software\HTC\HTCSensor\GSensor\CheckingTime = 500

I suppose this mean once every 500ms

Krzysiec
29th September 2008, 10:19 AM
I got a sugesstion :

Isn`t it better to make exactly the same program but (inversed) with list of aplications U want to rotate not U don`t want to. It is easier to add aplication that U want to rotate ... Not everyone want to rotate everything so i think it`s better to change this list in program to list of programs which will be rotated :)
I hope U know what i mean :)

What do U think about it ?

Kurdminator
29th September 2008, 10:43 AM
Has any of you programmers considered disabling landscape mode when sliding out the keyboard? Maybe that is the problem, we (TP users) don't need that if the programs will work by disabling that.

Maby its that tiny little code inserted by HTC that prevents those programs working on the Touch Pro... maybe....

techred
29th September 2008, 04:46 PM
I got a sugesstion :

Isn`t it better to make exactly the same program but (inversed) with list of aplications U want to rotate not U don`t want to. It is easier to add aplication that U want to rotate ... Not everyone want to rotate everything so i think it`s better to change this list in program to list of programs which will be rotated :)
I hope U know what i mean :)

What do U think about it ?

I support the idea ...
I kicked S2U2 and am using the "suspend + key lock" function now (+answerkeydisabler)

one thing is strange about the "suspend-mode" - some programs (for example g-alarm) keep awake (and ringing), although the phone seems to be off

is a "suspend-mode" activated by software different than when I press the off key?

oh, by the way, I got the impression that with a calibrated Gsensor gyrator runs better (well, kind of logical, but the official gsensor calibrator for the diamond has been released a short time ago)

nevertheless - great piece of soft!

best regards,
tr

p.s.: calibrating the gsensor is recommended

Seifer
29th September 2008, 05:01 PM
this software is really great. But it has some flaws that makes you uninstall it.

1. i do not want to screen rotate everything. as in other replies add rule system should be for adding rotate things.

2. i have changed face down to activate key lock and suspend. but when there is a call if i face down system breaks. And i have to remove battery to soft reset.

3. i did not find it battery and cpu friendly or something with my usage.

techred
29th September 2008, 06:06 PM
something else is also strange:

when I turn the face down twice - every time there is a vibration
how can it vibrate, when it is suspended?

dyter
29th September 2008, 06:12 PM
Hi,

Great app for replacement of GSen, no bugs for me but I suggest 2 updates:

- Separatly Config and Resident programs (for a windows ghost app and save memory)
- Vibrate mode option when screen face down

fxvxca
29th September 2008, 10:03 PM
very nice app!!!!

stilla couple of bugs...

with the charger in even with manila unflagged the screen rotate always.

with teeter goes in conflict and the marble doesn move..

and a suggestion if possible to let people choose wich app keep out of the rotation

anycase i'll wait for the next version!

StyL3-Ivan
30th September 2008, 08:33 AM
no more updates??

roisagi
30th September 2008, 10:25 AM
Ah, sorry, mis-read your original question...

I think it's called soemthing strange like "Dialog" for some reason. I remember trying to find it myself when I first added it.

i added a new rule: "dialog" to prevent phone from rotating - nothing. the phone application still rotetes - any ideas?

tepss
30th September 2008, 10:25 AM
Last version is really great. All the options. Only bugs i found is:
- yesterday program got error and crashed 3 times, always after being keylocked and in sleep mode and when some event occured (message, mail - my phone is set not to wake up on new messages, only give a sound). And after one of those crashes notification sound (new smses) disappear - so that might help to find the reason - and soft reset was needed
- when keylocked and screen is dimmed it rotates even manila, so if i have to unlock it back its messed out and as manila is disabled to rotate got some problems to put it back in portait ... and uses energy - could you please dissable rotation when dimmed/locked?

One more thing is i think last version uss much more battery in standby mode. I mean when i was using previous version and sensorlock during the night for 6hrs it took ab 14% and last night with screenrotator only it took 31% ?!

thank you for your effort

brins0
30th September 2008, 01:53 PM
Sorry about the lack of updates and replies. I've had family problems, and that's obviously taken priority overr everything else.

I've found the problem when screen is locked, I think, needs more testing. I'm not at home right now, so development is on hold at the moment.

Battery usage in standby from my program should be zero... When the system is in standby, all .NET program activity is suspended. During runtime, all activity in my program is purely event based, so power usage is completely down to how often you trigger an event.

I'll keep you posted on updates when possible. My site is offline currently, just changed internet providers. Should be active later this evening if all is well in the family.

tepss
30th September 2008, 02:19 PM
Family's definetly more important so you'd better take your time. Hope all will be OK.

roisagi
30th September 2008, 09:54 PM
anythinh to stop the phone from rotating ("dialog" not working....)??

Matteo66
30th September 2008, 10:10 PM
I hope your solve your family problems ;)

es_wychk
1st October 2008, 02:23 PM
(Mid-term) Solution-2-Maybe only an additional function call?
I am no programming expert, but i can see that Scott's code is also monitoring the HKLM\Software\HTC\HTCSensor\GSensor\EventChanged registry to update its orientation information. MAYBE, it only takes an extra function call to begin G-Sensor's automatic update of the registry key. I am not sure on this as I cant compare Scott's code with the source code of your project.
Pros:
A. Raphael Compatibility
B. Only Minor modification is needed
Cons:
We are still using the old SDK, other problems may still exist: e.g. the Opera crash stated above?


After looking into Scott's code, i discovered how to enable Raphael's auto-update of orientation: (in C++)

hEvent = CreateEvent(NULL, TRUE, FALSE, _T("HTC_GSENSOR_SERVICESTART"));
if (hEvent == NULL || GetLastError() != ERROR_ALREADY_EXISTS)
{
MessageBox(hWnd,
_T("Unable to create Sensor Event"),
_T("Error"), MB_TOPMOST);
return false;
}
SetEvent(hEvent);


Basically it is just starting the HTC GSensor Service.

Before the next build is available, we can temporarily workaround this by starting the service with Windows (by registering the dll as startup service)

Add Key: HKLM\Services\htcsensorservice\
Dll(String)=htcsensorservice.dll
Keep(DWORD) = 1
Order(DWORD) = 255
Prefix(String) = SEN

Be aware though, I am suspecting this work-around is causing some lag on my Raphael. But the good news is: IT WORKS

(Brins0, wishes all the best in solving your family issues)

Seifer
1st October 2008, 03:00 PM
hope you solve your problems soon and live happily ever after

brins0
1st October 2008, 06:54 PM
anythinh to stop the phone from rotating ("dialog" not working....)??

It's case sensetive, so you must enter "Dialog".

roisagi
1st October 2008, 07:10 PM
tried - phone still rotates...

any ideas?

shamasis
1st October 2008, 09:50 PM
New version works like a charm.

brins0
2nd October 2008, 02:00 AM
Just an interim report, family matters are resolved in the main, so development will be continuing now. There are alot of things people have asked for, so it may take a day or two to get the new release out.

In the main time, please take a look at the project's new website, http://gyrator.brins0.net/, where new releases can be downloaded. I will be removing the project folder on my projects site when the next version is released, as it will adopt the new name "Gyrator".

I'm still open to suggestions on both the new site and the program in the mean time, so pelase feel free to comment. Remember, I despise Internet Explorer, so 90% of the time, websites I make won't display correctly on anything other than Mozilla Firefox. I will be making a mobile version of the site when i've got time, to make downloading a new version that little bit simpler.

Seifer
2nd October 2008, 04:41 AM
Thats good news.

Let's get to business ;)

i have something in my mind. As some people want to choose what not to rotate and some want choose what to rotate there can be 2 versions. As you have already made what not to rotate version. of course this is possible if you had in mind of developing a way for what to rotate version.

Other than that i have one last thing in mind. Your locking component is great. A seperated version of it would be great for "%0.01 more performance hurray" guys like me. Because there is already gsensor lock and stylus lock components but in my opinion they are not very practical.
Your lock component would rule those :D

take care

Mandragore
2nd October 2008, 01:05 PM
Just an interim report, family matters are resolved in the main..
Good to hear that!

Eminos
2nd October 2008, 02:54 PM
Download link doesn't work for me :(

/E

blink182fka6
2nd October 2008, 04:50 PM
the cab doesnt seem to work for me. it just brings up the internet on my diamond.

brins0
2nd October 2008, 08:15 PM
Download link doesn't work for me :(

/E

Your DNS provider may not have updated their records, and the new domain name may not have become active. Try again later in the day.

the cab doesnt seem to work for me. it just brings up the internet on my diamond.

I have just tested the cab file my download script provides on my diamond, and it installs correctly. Ensure that you followed the correct link on my site, and that it downloaded correctly to your device.

bugeyes
2nd October 2008, 09:00 PM
hi brinso
great app love the gesture locking. turn vertical works so well! any chance of implementing gesture unlocking ie repeating an upside down vertical gesture????

brins0
3rd October 2008, 12:05 AM
hi brinso
great app love the gesture locking. turn vertical works so well! any chance of implementing gesture unlocking ie repeating an upside down vertical gesture????

Do you mean if the device was locked by turning it upside down only (ie not through stylus input), reverse the action by rotating it upside down again?

This may be a pain to build into it, but it's certainly possible. The logic behind the rules is getting complex now. I'm trying to keep it lean, as I want to keep it's rule processing time down to a minimum.

brins0
3rd October 2008, 01:15 AM
A new version has been released, so have added this post to bump the topic up.

New features in this release include the addition of default actions for applciations which do not have rules, and the option to disable vibration.

Link to information post (http://forum.xda-developers.com/showthread.php?t=427805) concerning the updates, as well as download information.

By the way, It's my birthday today, and this is my "Anniversary Release". If any of you would like to "congratulate" me on my hard work, today would be the ideal day to send a small donation to show your thanks. The link is in my signature if you need it.

tepss
3rd October 2008, 11:36 AM
Have been using app from very begining and never was able to use it with iGo8... Worth trying if you said so in first post. Will try and get back shortly.

Also, have you seen SensorLock in action? Is there possibility to add lock of touchscreen like this app does?

Mandragore
3rd October 2008, 11:52 AM
By the way, It's my birthday today, and this is my "Anniversary Release". If any of you would like to "congratulate" me on my hard work, today would be the ideal day to send a small donation to show your thanks. The link is in my signature if you need it.
Happy birthday and thanks for developing Gyrator! :)

I know this sounds cheesy, but last week my Paypal account was hacked and abused for several large transactions without my authorization. Coincidentally after buying software for my Diamond and donating to other developers here :(

Thankfully PayPal noticed this, restricted my account, alerted me, forced me to change my credentials and rolled back the transactions after my request for investigation. Now I have to authenticate my identity and address to their Luxemburg office, so they can lift the restriction. As soon as that is done, you can expect a small donation :o

brins0
3rd October 2008, 12:39 PM
Happy birthday and thanks for developing Gyrator! :)

I know this sounds cheesy, but last week my Paypal account was hacked and abused for several large transactions without my authorization. Coincidentally after buying software for my Diamond and donating to other developers here :(

Thankfully PayPal noticed this, restricted my account, alerted me, forced me to change my credentials and rolled back the transactions after my request for investigation. Now I have to authenticate my identity and address to their Luxemburg office, so they can lift the restriction. As soon as that is done, you can expect a small donation :o

Well thankyou for that gesture. I hope they find out who hacked into your account and deal out some harsh justice to them. It does aggrivate me when people break into other peoples things.

I'm glad you still like using Gyrator, you can expect a new improved version in a short while. I'm thinking of re-creating the orientation class from scratch rather than using the one in the Sensors library, so I can tweak the angles used to detect the orientation. Once I start this, I won't be able to re-release it until it's complete, so it may take a while i'm afraid.

brins0
3rd October 2008, 12:42 PM
Have been using app from very begining and never was able to use it with iGo8... Worth trying if you said so in first post. Will try and get back shortly.

Also, have you seen SensorLock in action? Is there possibility to add lock of touchscreen like this app does?

I havn't seen sensor lock, so I don't know what kind of locking is implemented. Does it not use the standard windows locking system, or the one seen in the today screen plugin?

If it simple prevents the touch screen from responding, then there are many ways this can be achieved, although some carry their risks. I could power doen the touch screen, but leave the LCD part active, and do the same with the keypad, but this may cause problems if another program causes conflicts. I'll do some more research into more ways of locking the screen.

nopt
3rd October 2008, 01:58 PM
thank you so much

Krzysiec
3rd October 2008, 08:11 PM
This apllication is almost great now ... ALMOST because ... I wanted to add rotate only when typing sms but ... after learning new window (new rule) and tick it ... nothing rotating :/ After accept and so on ... Every default programs on list are beeing rotated. But after learn new rule nothig happen ... if U fix this problem This will be the best apllication in this case EVER !! :) (of course there is set up "while no rule do not rotate" ;) but this is what i want do to ... rotate onl;y programs from list :) Thanks for answer and fix ;)

brins0
3rd October 2008, 08:49 PM
This apllication is almost great now ... ALMOST because ... I wanted to add rotate only when typing sms but ... after learning new window (new rule) and tick it ... nothing rotating :/ After accept and so on ... Every default programs on list are beeing rotated. But after learn new rule nothig happen ... if U fix this problem This will be the best apllication in this case EVER !! :) (of course there is set up "while no rule do not rotate" ;) but this is what i want do to ... rotate onl;y programs from list :) Thanks for answer and fix ;)

I can't make what you say happen. If I do not have a rule for a certain application, then the default action is performed (either rotate or don't, dependant on the sertting in the options). If there is a rule, then if the rule is active, it's rotated, otherwise not, the default is over-ridden in all cases if the rule is valid. Please confirm that you have entered the rule correctly, and that it is enabled (checked) else that program will not be rotated.

Also check that other applications rotate correctly, as it may be an issue with the device and/or the rom version which is running on it.

Krzysiec
3rd October 2008, 09:01 PM
I`ve noticed that only few programs of your default list are rotated after set in When no rule exist for an aplication: Do not rotate i thicked File explorer and calender and only File Explorer rotated.
After set Rotate ... everything is rotated fine.

There is something wrong with this new awsome option
"When no rule exist for an aplication:"

I made a shor movie to show that program from your list disen`t rotate :/ I mean: Phone Dialog

download link http://www.sendspace.com/file/oel60c

vaiko666
3rd October 2008, 10:16 PM
Wow... Tried for the first time and I'm impressed !!! Thank for this great work ;)

The only question is, maybe I'm dreaming, but could it be possible to introduce the landscape mode of TF3D extracted from the Raphael ROM to finaly use it with this great app on our Diamond ??? ;)

brins0
3rd October 2008, 10:52 PM
I`ve noticed that only few programs of your default list are rotated after set in When no rule exist for an aplication: Do not rotate i thicked File explorer and calender and only File Explorer rotated.
After set Rotate ... everything is rotated fine.

There is something wrong with this new awsome option
"When no rule exist for an aplication:"

I made a shor movie to show that program from your list disen`t rotate :/ I mean: Phone Dialog

download link http://www.sendspace.com/file/oel60c

I cna't view that video i'm afraid, don't ahve quicktime, and i'm not planning on installing it any time soon.

From what i've seen, it's simply a case of the Window Class names being incorrect. I compiled the original list from registry entries I found in the rom i'm using. It may be that these are incorrect, or not what I thaught they were, and not all of them work correctly.

For the next version i'll start the list from scratch, to ensure they all work. Thanks for pointing the problem out to me, but I can confirm this is not a problem in my program, ust the list of applications. If ou delete the calender entry, and then use the learning feature, you'll find that it then works correctly :)

Edit: the reason the calender doesn't work, is simply because of the spelling of the word. I had used "Calender" when the actual class name is "Calendar". If you change this it works correctly.

brins0
3rd October 2008, 10:58 PM
Wow... Tried for the first time and I'm impressed !!! Thank for this great work ;)

The only question is, maybe I'm dreaming, but could it be possible to introduce the landscape mode of TF3D extracted from the Raphael ROM to finaly use it with this great app on our Diamond ??? ;)

I'm afraid this is not my area of expertise, but from what I have seen in the past, this could be possible. I'll go and have a look around to see if I can see any reports of it being done, and report back when/if I find anything.

vaiko666
3rd October 2008, 11:08 PM
So prompt answer and so great work BrinsO... The support is effective here ;) lol

Krzysiec
3rd October 2008, 11:17 PM
For the next version i'll start the list from scratch, to ensure they all work. Thanks for pointing the problem out to me, but I can confirm this is not a problem in my program, ust the list of applications. If ou delete the calender entry, and then use the learning feature, you'll find that it then works correctly :)

I`ve already learned a sms window which is called DIALOG (i`m sure it is DIALOG ) and dosen`t work :/ But when i set Rotate in Options works fine.

Check DIALOG on yours ... i can`t get it work :/ even after learn or ewaen after thick from your list. Dialog is the window where you type SMS Calender after learned works FINE but DIALOG NOT :/ Is there any other way to check name of window where typing SMS ?

And confirmed all other programs from list work fine after learned ... but not this F... Dialog

brins0
4th October 2008, 02:02 AM
I`ve already learned a sms window which is called DIALOG (i`m sure it is DIALOG ) and dosen`t work :/ But when i set Rotate in Options works fine.

Check DIALOG on yours ... i can`t get it work :/ even after learn or ewaen after thick from your list. Dialog is the window where you type SMS Calender after learned works FINE but DIALOG NOT :/ Is there any other way to check name of window where typing SMS ?

And confirmed all other programs from list work fine after learned ... but not this F... Dialog

I have just checked the window class on mine, and I can confirm that it is indeed "Dialog". Unfortunately, "Dialog" tends to be used alot as the window class. It is the class name for the SMS composition window, the lock screen and the Phone screen. "Dialog" is already in the application list by default, and has been assigned the name "Phone". Ensure that this is rule is enabled, as if any instance of a rule is detected, and it is disabled, all other instances of the rule in the list are ignored.

I will make another page on the Gyrator website with application class names for reference so that folk can look for class names to work out why things may not be working as expected.

I would reccomend that you remove all rules form the application list, then add one instance of "Dialog", and enable it. You should find that SMS composition window will then rotate, but if you disable it, it won't, and neither will the lock screen, or the phone screen.

zonsoft
4th October 2008, 09:16 AM
brins0,
probably if you could also make an ability to check (and select) the application name including path, the problem with single class for multiple applications becomes solvable.
And - once again - is it absolutely impossiblr to make the Orientation screen black as an option?..

bugeyes
4th October 2008, 09:46 AM
Do you mean if the device was locked by turning it upside down only (ie not through stylus input), reverse the action by rotating it upside down again?

This may be a pain to build into it, but it's certainly possible. The logic behind the rules is getting complex now. I'm trying to keep it lean, as I want to keep it's rule processing time down to a minimum.

yes vertically upside down to lock,not screen down though that's just my preferred method ! this would really be an amazing addition if you could implement it brinso :)

wildorchid
4th October 2008, 09:51 AM
Basically it is just starting the HTC GSensor Service.

Before the next build is available, we can temporarily workaround this by starting the service with Windows (by registering the dll as startup service)

Add Key: HKLM\Services\htcsensorservice\
Dll(String)=htcsensorservice.dll
Keep(DWORD) = 1
Order(DWORD) = 255
Prefix(String) = SEN

Be aware though, I am suspecting this work-around is causing some lag on my Raphael. But the good news is: IT WORKS



Hmm I've tried your workaround on my Touch Pro (German version) with the latest Gyrator version and absolutely nothing happens when I turn the phone neither in TF3D nor in any other app. Not even the orientation demo seems to turn. I did also set the option "When no rule exists" to "Rotate".

The only thing that does work on my Touch Pro seems to be the Stylus options.

This is such a cool app and it is beyond my understanding why HTC didn't include such functionality (as an option) to their phones.

When it works on the HTC Touch Pro I promise to donate!

Krzysiec
4th October 2008, 10:18 AM
I have just checked the window class on mine, and I can confirm that it is indeed "Dialog". Unfortunately, "Dialog" tends to be used alot as the window class. It is the class name for the SMS composition window, the lock screen and the Phone screen. "Dialog" is already in the application list by default, and has been assigned the name "Phone". Ensure that this is rule is enabled, as if any instance of a rule is detected, and it is disabled, all other instances of the rule in the list are ignored.

I will make another page on the Gyrator website with application class names for reference so that folk can look for class names to work out why things may not be working as expected.

I would reccomend that you remove all rules form the application list, then add one instance of "Dialog", and enable it. You should find that SMS composition window will then rotate, but if you disable it, it won't, and neither will the lock screen, or the phone screen.

I`m sorry but it doesn`t work :/ I deleted all progams from list and then added sms window (Dialog) by stylus insert learning and nothig is rotating :/

The "funny" think is that after enable Dialog on list only lock screen is rotated ... phone and sms not :/

I rotated only once phone ... but only just after TF3D disable and enable ... then nothing happens :/ Lock screen works perfect everytime.

brins0
4th October 2008, 05:17 PM
brins0,
probably if you could also make an ability to check (and select) the application name including path, the problem with single class for multiple applications becomes solvable.
And - once again - is it absolutely impossiblr to make the Orientation screen black as an option?..

I had thaught about doing it using the application executable, but i've yet to find a way of getting the execution path, or even the executable name of the currently focused application. It was originally my intention to do it using executable path, and it still is, but I just can't make it work...

Also, it wouldn't remove the problem completely anyway, because some applications have multiple screens, for example the phone. It's got the dialer, missed calls, options an all sorts, all contained within a single executable. And some of the configuration screens in the settings panel don't have their own executables, they are run by a single application, which is told which panel to display from a dll, similar to how it is managed in Windows (think of svchost.exe and how many of those are runing in the typical desktop installation of Windows, they are all the same executable file)

When you say to make it black, do you mean only the orientation screen, or the entire device's OS. I think I may have mis-interpreted what you asked for before. What would be the use of such a feature anyway? I can't see it...

zonsoft
4th October 2008, 09:39 PM
When you say to make it black, do you mean only the orientation screen, or the entire device's OS. I think I may have mis-interpreted what you asked for before. What would be the use of such a feature anyway? I can't see it...
Only the orientation screen (maybe setup screen too) - mostly because it shows up anyway, even being hidden...
The reason is quite simple: if someone uses, let's say, yellow theme and wants your application look exactly like system one ('cause it deserves) - would be nice to clorize it accordingly via color selection... Not a big deal IMHO, but makes the application feel even more professional.

brins0
4th October 2008, 10:00 PM
Only the orientation screen (maybe setup screen too) - mostly because it shows up anyway, even being hidden...
The reason is quite simple: if someone uses, let's say, yellow theme and wants your application look exactly like system one ('cause it deserves) - would be nice to clorize it accordingly via color selection... Not a big deal IMHO, but makes the application feel even more professional.

Well currently, the background fo the windows is set to the system colour "window" which is typically white, and the text is set to "system text" which is typically black. Getting the program to match every theme isn't possible, as some theme makers don't create their themes correctly according to the specification. If you were to send me a theme similar to the one you want it to look to, i'll try and make the theme of the program more closely match the system theme .

psvillars
5th October 2008, 12:57 AM
hi I tried your program on my sprint diamond and it works, kinda. it only works if the applications you want to rotate are already open when gyrator is launched so if i for example load gyrator and then load internet explorer, internet explorer will not rotate until i quit gyrator and then reload it again.

brins0
5th October 2008, 02:11 AM
hi I tried your program on my sprint diamond and it works, kinda. it only works if the applications you want to rotate are already open when gyrator is launched so if i for example load gyrator and then load internet explorer, internet explorer will not rotate until i quit gyrator and then reload it again.

Hmm, this is odd behaviour which i've not seen before, or heard of either actually. Is there any chance that you could reboot your Diamond, and see if the same thing continues to happen please. Sometimes it's simply because another program has started to do strange things. It may also be a good idea to check what the option for windows without rules is set to, try it on both settings.

Gyrator gets the class name of the currently focused window on the fly, rather than getting a list of open windows when it is initially started, so unless there is another application which is preventing Gyrator from getting the new windows class name, I cannot think what the problem is.

Please keep me informed about the problem, and i'll keep an eye out for it when i'm testing the next build.

Blazeitup123
5th October 2008, 03:28 AM
one major issue i have is when in landscape and closing the prog, home screen is rotated and cannot be changed. i have this rotation disabled so i have to go back into an associated prog, goto portrait and then close. you need to find how to auto portait on close for the home screen.

psvillars
5th October 2008, 03:43 AM
Hmm, this is odd behaviour which i've not seen before, or heard of either actually. Is there any chance that you could reboot your Diamond, and see if the same thing continues to happen please. Sometimes it's simply because another program has started to do strange things. It may also be a good idea to check what the option for windows without rules is set to, try it on both settings.

Gyrator gets the class name of the currently focused window on the fly, rather than getting a list of open windows when it is initially started, so unless there is another application which is preventing Gyrator from getting the new windows class name, I cannot think what the problem is.

Please keep me informed about the problem, and i'll keep an eye out for it when i'm testing the next build.

yeah i tried rebooting and both options and nothing if the program is running prior to starting gyrator then it works great but if it's not running then nothing so when you reboot then it doesn't do anything.

zonsoft
5th October 2008, 05:39 PM
Well currently, the background fo the windows is set to the system colour "window" which is typically white, and the text is set to "system text" which is typically black. Getting the program to match every theme isn't possible, as some theme makers don't create their themes correctly according to the specification. If you were to send me a theme similar to the one you want it to look to, i'll try and make the theme of the program more closely match the system theme .
As I tried to say from the very beginning, I'm talking about default HTC Black theme - I'd like Gyrator to have white letters on black background, as far as it has to peek out during startup. Someone would prefere different colors - why not make them selectable and changeable?..
Thanks, anyway - I do like your program.

colonel00
5th October 2008, 06:31 PM
Sorry if this has been suggested before...

How about the option for when the stylus is removed for the SIP to be changed to a user selected one. For instance, I use the standard diamond qwerty most of the time for simple SMS and so on. However, if I need to write a long message or type something more technical, I use Block Recognizer (old palm habits die hard). Anyway, I usually only remove the stylus when I am using block recognizer so it would be great if your app would switch the SIPs based on stylus sensor.

arctic@1m
5th October 2008, 08:08 PM
I'm having the same issue as PSVillars
Screen wont rotate unless screen is already open. I must stop and restart gyrator.

I updated .net to 3.5.

See PSvillars post below.
hi I tried your program on my sprint diamond and it works, kinda. it only works if the applications you want to rotate are already open when gyrator is launched so if i for example load gyrator and then load internet explorer, internet explorer will not rotate until i quit gyrator and then reload it again.

licht77
5th October 2008, 09:22 PM
Tried it and here my feedback: Like the tool, but stops working in an unreconstructable way...
It seems to work when i close gyrator, launch any sensor-using tool like a bubble-meter and restart gyrator again. But after suspending, its functions are gone again. Is there any power-saving function for that sensor?

brins0
5th October 2008, 09:24 PM
Sorry if this has been suggested before...

How about the option for when the stylus is removed for the SIP to be changed to a user selected one. For instance, I use the standard diamond qwerty most of the time for simple SMS and so on. However, if I need to write a long message or type something more technical, I use Block Recognizer (old palm habits die hard). Anyway, I usually only remove the stylus when I am using block recognizer so it would be great if your app would switch the SIPs based on stylus sensor.

This is an excellent idea, although i'm not sure how easy it would be to execute. I'll look into it for the next release (...excellent, can't believe I didn't think of that). To choose the SIP i'd simply have 2 combo boxes which would be filled with the currently available SIPs, then switch to the selected one when the stylus state changes.

I'm sure i've seen the SIP lists somewhere in the registry, i'll go ahve a look again later on to see if I can find them. I've also seen a P/Invoke method around somewhere for getting and setting the current SIP. Should be too hard to do thinking about it.

I'm having the same issue as PSVillars
Screen wont rotate unless screen is already open. I must stop and restart gyrator.

Unfortunately, I can't seem to make this happen with my device, or an an emulator whilst invoking the rotation events. Unless I can experience the problem and insert breakpoints into the code, I cannot find out what is causing this odd behaviour.

colonel00
5th October 2008, 09:30 PM
I'm sure i've seen the SIP lists somewhere in the registry, i'll go ahve a look again later on to see if I can find them. I've also seen a P/Invoke method around somewhere for getting and setting the current SIP. Should be too hard to do thinking about it.



Yeah, its in the registry. However, I am not sure that by itself a registry change will do the trick. However, you might look at the app SIPChange. This app has the function that you want.

A2E
5th October 2008, 10:07 PM
Unfortunately, "Dialog" tends to be used alot as the window class.
Yes, and that's quite a problem. Because I do want a lot of windows with "Dialog" as the class the rotate, but I don't want the phone window to rotate, which is also "Dialog"... I realize this can't be solved with the way Gyrator currently works -- but does anyone know of a way to actually change the class of a program? That way the Phone application could be rewritten to use a unique class, and the problem would be sloved.

ahirshfield
6th October 2008, 02:38 AM
Wow... Tried for the first time and I'm impressed !!! Thank for this great work ;)

The only question is, maybe I'm dreaming, but could it be possible to introduce the landscape mode of TF3D extracted from the Raphael ROM to finaly use it with this great app on our Diamond ??? ;)

It seems Swtos and Alphazero have succeeded in implementing the Manila TouchFlo3D Landscape Menu on the Diamond. They have a Rotation-controlling application called Flip_It which sounds similar to Bepe's Gnes.

Here is my post to them for assistance on understanding this solution:

http://forum.xda-developers.com/showthread.php?p=2737372#post2737372

Best regards,
Adam R. Hirshfield

T-Mobile (UK) Ltd.
Core Networks

OzzH
6th October 2008, 12:52 PM
last version works on touch pro with rom 1.90.0.0 ?

zenkinz
6th October 2008, 02:44 PM
Hmm, this is odd behaviour which i've not seen before, or heard of either actually. Is there any chance that you could reboot your Diamond, and see if the same thing continues to happen please. Sometimes it's simply because another program has started to do strange things. It may also be a good idea to check what the option for windows without rules is set to, try it on both settings.

Gyrator gets the class name of the currently focused window on the fly, rather than getting a list of open windows when it is initially started, so unless there is another application which is preventing Gyrator from getting the new windows class name, I cannot think what the problem is.

Please keep me informed about the problem, and i'll keep an eye out for it when i'm testing the next build.

hi, I actually have this problem and I thought it's because the program is not compatible with my Touch Pro.

I didn't test all the applications, but just simple file explorer. When I run Gyrator, and then file explorer, it'll not rotate. however, if I run explorer, and then Gyrator, then it works.

please let us know if you have found the bug.

brins0
6th October 2008, 05:23 PM
hi, I actually have this problem and I thought it's because the program is not compatible with my Touch Pro.

I didn't test all the applications, but just simple file explorer. When I run Gyrator, and then file explorer, it'll not rotate. however, if I run explorer, and then Gyrator, then it works.

please let us know if you have found the bug.

As I mentioned before a few times, this is not a bug in my program. If anything it is a problem with the library. If my program is not informed about orientation changes, then it can't rotate the screen...

colonel00
6th October 2008, 07:08 PM
As I mentioned before a few times, this is not a bug in my program. If anything it is a problem with the library. If my program is not informed about orientation changes, then it can't rotate the screen...

I actually experience this on a Diamond_C. It seems to be true for all applications. For example, I know gyrator is running because the stylus sensor still works to perform the chosen function. However, if I open Programs, it will not rotate the screen or perform the face down function until I turn gyrator off and back on. Then it will function fine but only it that (Programs) app. If I exit out to manila or another app, I must then toggle gyrator again for the rotation to work.

I guess my question would be, isnt the orientation status independent of the application running? Meaning, gyrator should always be receiving the orientation information correct?

Blazeitup123
6th October 2008, 07:27 PM
i can't get this prog to rotate sms anymore. its learnt and checked, but no rotation. many closes and SRs. it used too. :(