hanzelpeter / dispmanx_vnc

VNC Server for Raspberry PI using dispmanx
105 stars 52 forks source link

[Request] Support rotated displays #31

Closed Fordi closed 4 weeks ago

Fordi commented 2 years ago

Trying this out on a GPM280 (Pi CM3 based handheld), which uses the display_rotate=3 in config.txt to rotate the screen 270 degrees. Unfortunately, this makes the VNC client look like this:

image

...which is not ideal.

Sample CLI output

Open display[0]...
Display is 640 x 480
Server bpp:16
Server bigEndian:0
Server redShift:0
Server blueShift:10
Server greeShift:5
17/11/2021 01:47:38 Listening for VNC connections on TCP port 5900
17/11/2021 01:47:38 Listening for VNC connections on TCP6 port 5900
open /dev/uinput returned 6.
First write returned 1116.
ioctl UI_DEV_CREATE returned 0.
17/11/2021 01:47:47 Got connection from client 2601:44:8701:b330:a4a9:6525:bb7:5d42
17/11/2021 01:47:47   other clients:
17/11/2021 01:47:47 Normal socket connection
17/11/2021 01:47:47 Client Protocol Version 3.8y1=475
17/11/2021 01:47:47 Protocol version sent 3.8, using 3.8
17/11/2021 01:47:47 rfbProcessClientSecurityType: executing handler for type 1
17/11/2021 01:47:47 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
17/11/2021 01:47:47 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000018)
17/11/2021 01:47:47 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000F)
17/11/2021 01:47:47 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000016)
17/11/2021 01:47:47 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000015)
17/11/2021 01:47:47 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC6)
17/11/2021 01:47:47 Enabling full-color cursor updates for client 2601:44:8701:b330:a4a9:6525:bb7:5d42
17/11/2021 01:47:47 Enabling NewFBSize protocol extension for client 2601:44:8701:b330:a4a9:6525:bb7:5d42
17/11/2021 01:47:47 Using hextile encoding for client 2601:44:8701:b330:a4a9:6525:bb7:5d42
17/11/2021 01:47:47 Pixel format for client 2601:44:8701:b330:a4a9:6525:bb7:5d42:
17/11/2021 01:47:47   16 bpp, depth 15, little endian
17/11/2021 01:47:47   true colour: max r 31 g 31 b 31, shift r 0 g 5 b 10
hanzelpeter commented 2 years ago

Hello

I have added support for rotation 2 and 3. Could you please update from git, recompile and test?

I think support for mouse will need to be fixed also.

Fordi commented 2 years ago

Thanks! I'll test this out when I'm home on Monday.

On Thu, Nov 25, 2021, 8:40 AM Peter Hanzel @.***> wrote:

Hello

I have added support for rotation 2 and 3. Could you please update from git, recompile and test?

I think support for mouse will need to be fixed also.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hanzelpeter/dispmanx_vnc/issues/31#issuecomment-979224363, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4PRDSK7Z6AW7V5SHTYADUNY4EXANCNFSM5IFXTQ3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.