Thread: Kindle browser
View Single Post
Old 01-07-2022, 03:24 PM   #2
katadelos
rm -rf /
katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.katadelos ought to be getting tired of karma fortunes by now.
 
Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
Quote:
Originally Posted by Eures View Post
I want the Kindle browser to be usable
Might be waiting a while on that one

The orientation thing on the other hand: I had a look on my PW4 and was able to replicate your post from last year showing that the browser ignores the orientation when set using lipc-set-prop com.lab126.winmgr orientationLock.

You can force the orientation by making this change to /var/local/mesquite/browser/javascripts/browser.js:
Code:
diff --git a/javascripts/browser.js b/javascripts/browser.js
index 50b51fb..6215a3f 100755
--- a/javascripts/browser.js
+++ b/javascripts/browser.js
@@ -72,9 +72,10 @@ Kindle.use(function (b) {
             }
 
             // set orientation if needed
-            if (settings.orientation !== b.enums.orientations.auto) {
-                b.device.orientation = settings.orientation;
-            }
+            //if (settings.orientation !== b.enums.orientations.auto) {
+            //    b.device.orientation = settings.orientation;
+            //}
+            b.device.orientation = b.enums.orientations.landscape
         }
         else {
             // save settings
The other orientation options are:
Code:
enums.orientations = {
        auto: 'auto',
        portrait: 'portrait',
        portraitUp: 'portraitUp',
        portraitDown: 'portraitDown',
        landscape: 'landscape',
        landscapeLeft: 'landscapeLeft',
        landscapeRight: 'landscapeRight'
};
katadelos is offline   Reply With Quote