MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Kindle Developer's Corner (https://www.mobileread.com/forums/forumdisplay.php?f=150)
-   -   PW4 Kindle PaperWhite 4 Screen Rotation 180 Degree (https://www.mobileread.com/forums/showthread.php?t=328623)

dnmmx 04-04-2020 07:33 AM

Kindle PaperWhite 4 Screen Rotation 180 Degree
 
Hi,

I have Kindle PaperWhite 4 (10th Generation)(2018) WiFi
JB with FW 5.10.1.3 Factory installed.

I have KUAL, KOReader and kterm installed.

Is there any way to enable screen rotation to say 180 degree.

Any help regarding this would be much appreciated.

Thank you all.

dnmmx 04-04-2020 07:48 AM

I mean landscape upside down mode.

PoP 04-04-2020 07:57 AM

I haven't tested on recent devices but this used to work.

NiLuJe 04-04-2020 01:09 PM

That's certainly how the Oases did it, worth a try ;).

hius07 04-04-2020 03:43 PM

Tried on PW2, all rotations work, except D (inverted portrait).

dnmmx 04-04-2020 04:19 PM

For others visibility here's the content of the post suggested by PoP:

Some useable tweaks I've found:

-To stop the browser from using an large font, edit /var/local/waf/browser/config.xml and delete the line that says "<setting name="defaultFontSize" value="20"/>" (must be done at each reboot as the device resets the settings)
-To rotate the device (in books and the browser but not home screen), type (in ssh)
# lipc-set-prop com.lab126.winmgr orientationLock L
for landscape left
# lipc-set-prop com.lab126.winmgr orientationLock R
for landscape right
# lipc-set-prop com.lab126.winmgr orientationLock U
for portrait
# lipc-set-prop com.lab126.winmgr orientationLock D
for inverted portrait
-To enable accelerator (no point except allow the Kindle to see rotate event, it does nothing with those events though), edit "/etc/upstart/makexconfig" and on line 120, edit "IS_ACCEL=0" to "IS_ACCEL=1"

Do I need to run this command in kterm ?
Just wanted to know is there any possibility of brick as we are dealing with com.lab26.winmgr

Thank you PoP, NiLuJe and hius07 for your responses.

PoP 04-04-2020 04:58 PM

Quote:

Originally Posted by dnmmx (Post 3972340)
...
Do I need to run this command in kterm ?
Just wanted to know is there any possibility of brick as we are dealing with com.lab26.winmgr
...

Many ways, in kterm, or from a ssh Secure Shell, or from a KUAL extension, or from a ;log runme (storing the commands in /mnt/us/RUNME.sh ...

No danger, rotations (not accelerator) don't modify the file system. Worst case, just reboot the device.

dnmmx 04-05-2020 02:21 AM

Hi,

I have tried those commands and hius07 you are right, option D is not working.

Is there any other way?

Thank you all for your support.

NiLuJe 04-05-2020 03:15 AM

Not really, depending on what you want to do, exactly.

I can certainly rotate the fb myself (either via sysfs or fbdepth, see the K4 thread right next to this one), but neither X nor the stock UI like that very much.

Stuff isn't too broken if you start from U (which happens to be 3 on my PW2, which gets us 1 for the Inverted variant. Look into linuxfb rotate constants for the maths). The UI and a book will actually render Inverted, but touch input won't be translated properly (i.e., still expects to be Upright).

If I do that from any other orientation, things go kablooey real quick, and ligl gets its panties in a twist until I restart x (meaning don't play with this outside of an USBNet shell session).

dnmmx 04-11-2020 08:58 AM

Thank you Niluje :)

Eures 12-06-2020 05:47 AM

Quote:

Originally Posted by PoP (Post 3972352)
Many ways, in kterm, or from a ssh Secure Shell, or from a KUAL extension, or from a ;log runme (storing the commands in /mnt/us/RUNME.sh ...

i tried in kterm but the command has no effect on the browser.

In an older thread someone said:

Quote:

Originally Posted by knc1 (Post 3141656)
That may only be, because your trying to use it from inside of Kterm... Try it from a regular command line prompt (ssh, telnet, or serial port) being sure that the command:
whoami
returns the name: root

Sounds a bit complicated

Eures 12-06-2020 02:25 PM

Actually, however, I would like to rotate the browser 90°, ie landscape mode, as it was very easy to do in the Kindle Keyboard

Eures 12-08-2020 01:13 PM

So, I think I have now a regular command line prompt ssh with USB Network enabled and Putty connected:

192.168.15.244
login as: root
Pre-authentication banner message from server:

Welcome to Kindle!

End of banner message from server
root@192.168.15.244's password:
[root@kindle root]# libc-set-prop com.lab126.winmgr orientationLock R
-sh: libc-set-prop: not found
[root@kindle root]#

Some advice?...

EDIT:

Ok, I wrote b instead of p

EDIT:

[root@kindle root]# lipc-set-prop -- com.lab126.winmgr orientationLock R
[root@kindle root]#

But the browser doesn't want to rotate in landscape mode ...

EDIT:

Not even with:

[root@kindle root]# lipc-set-prop com.lab126.winmgr orientationLock R
[root@kindle root]#


All times are GMT -4. The time now is 11:32 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.