| 
			
			 | 
		#1 | 
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	
	
		
		
			
			 
				
				5.1.0 firmware & orientation
			 
			
			
			Good evening! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I hope this interests someone... I just updated my Kindle Touch to 5.1.0 and I found out that orientation now doesn't works with browser and WAF applications. Playing around, I managed to make the GUI launcher orientation script to work even in the home screen. I changed the value of this entry in appreg.db to URL (instead of U): ![]() Anyway, creating a similar entry for the browser or any of the WAF doesn't work. Any clue?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I investigated a little more.... 
		
	
		
		
		
		
		
		
		
		
		
		
	
	It seems like something is preventing to send the orientationLock event... While displaying the browser, or a WAF, I can't get this in the log file: Code: 
	I lipc:evts:name=orientationChange, origin=com.lab126.winmgr, fparam=R:Event sent Code: 
	I lipc:evts:name=orientationChange, origin=com.lab126.winmgr, fparam=U:Event sent  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I found something in browser JS... 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	// set orientation // eventually can get this information from webkit's orientation // implementation, but it is not currently enabled Anyway it seems that everything is ready to receive a rotation support! Maybe in the next firmware release....  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 (offline) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,907 
				Karma: 6736094 
				Join Date: Dec 2011 
				
				
				
				Device: K3, K4, K5, KPW, KPW2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Shamelessly plugging in here: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	https://www.mobileread.com/forums/sho...6&postcount=49 contains a method to support all orientations (including upside-down) in the Reader, the Home screen, and even Kindlets. (Not WAF applications though). No changes required (except for installing the jbpatch thing   )!
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks a lot for all your work! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I'll try it this evening! I'm really thinking of converting my ImageGallery (WAF) to a kindlet as WAF have so many limitations...  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Finally rotation is back even for WAFs!!! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	You have to add this to your config.xml file: Code: 
	<kindle:messaging>
       	<kindle:app name="com.lab126.pillow" value="yes"/>
</kindle:messaging>
Code: 
	kindle.dev.setOrientation(state); Have fun!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 396 
				Karma: 33660 
				Join Date: Jul 2011 
				
				
				
				Device: Kindle 3, Kindle 4, Kindle PW, Nexus7 3G 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@silver: which config.xml file please. I am lost between "extensions" of GUI and ixtabs version. And how to activate pls, could you add a sentence to make it clear?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | |
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 You need to edit the config.xml file of your WAF adding these lines: Code: 
	<kindle:messaging>
       	<kindle:app name="com.lab126.pillow" value="yes"/>
</kindle:messaging>
Code: 
	kindle.dev.setOrientation(state); - auto - portrait - landscape Here are examples: config.xml from ImageGallery: click how to change orientation from ImageGallery: click You're welcome! ![]()  
		Last edited by silver18; 06-10-2012 at 11:13 AM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I'm here again to share another finding... 
		
	
		
		
			You can use the old: Code: 
	kindle.dev.setOrientation(state); Code: 
	state Code: 
	portraitUp portraitDown landscapeLeft landscapeRight LandscapeRight and landscapeLeft work, but I had some UI problems I didn't have with Code: 
	state="landscape" All in all, we have 4 direction rotation now...  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | 
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			My Kindle just update itself to 5.1.2, and it seems that the UI problems are solved! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I don't know if this is related to the update (I didn't managed to test the 4-way-rotation deeply).  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | |
| 
			
			
			
			 Carpe diem, c'est la vie. 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433 
				Karma: 10773670 
				Join Date: Nov 2011 
				Location: Multiverse 6627A 
				
				
				Device: K1 to PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Going Viral 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212 
				Karma: 18210809 
				Join Date: Feb 2012 
				Location: Central Texas 
				
				
				Device: No K1, PW2, KV, KOA 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			oops.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | |
| 
			
			
			
			 hub 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 715 
				Karma: 2151032 
				Join Date: Jan 2012 
				Location: Iranian in Canada 
				
				
				Device: K3G, DXG, Kobo mini 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 THE NOOB 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 708 
				Karma: 1545649 
				Join Date: Jan 2012 
				Location: Italy 
				
				
				Device: Kindle Touch 5.3.2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Well, it works in 5.3.7 firmware! 
		
	
		
		
		
		
		
		
		
		
		
		
	
	It is also included in the Mesquite API (check in /var/local/mesquite/shared/javascripts/device.js). Code: 
	kindle.dev.setOrientation(orientation); Code: 
	orientations = {
    auto: 'auto',
    portrait: 'portrait',
    portraitUp: 'portraitUp',
    portraitDown: 'portraitDown',
    landscape: 'landscape',
    landscapeLeft: 'landscapeLeft',
    landscapeRight: 'landscapeRight'
};
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Thread Tools | Search this Thread | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| PRS-T1 orientation | FinancialWar | Sony Reader | 14 | 05-17-2012 11:38 AM | 
| Orientation lock | zktiera | PocketBook | 4 | 06-12-2011 01:49 AM | 
| Landscape Orientation For Ebooks? | Kurt | Barnes & Noble NOOK | 2 | 04-21-2011 08:32 AM | 
| How to keep always-portrait orientation? | Nexutix | Android Devices | 4 | 02-02-2011 09:28 PM | 
| PRS-950 Fix Browser Orientation | jessie102 | Sony Reader | 0 | 12-11-2010 01:01 PM |