Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to rotate the server image in VNSee #12

Open
oresk opened this issue Aug 30, 2020 · 9 comments
Open

Add option to rotate the server image in VNSee #12

oresk opened this issue Aug 30, 2020 · 9 comments
Labels
enhancement New feature or request

Comments

@oresk
Copy link
Contributor

oresk commented Aug 30, 2020

Another question from me :-)
What would be needed to do to enable horizontal use?

Just modifying the orientation in xrandr (or arandr) did nothing for me.

@stevenbell
Copy link

How are you setting up the display?

My use case is a little different (mirroring part of the screen with x11vnc so I can scribble on PDFs live), but I can do horizontal or vertical orientations with no issue:

# reMarkable screen is 1872x1408 (sideways)
# But my laptop is only 1080px high, so we need to scale
# 1408 / 1080 = 1.3037
# Round up to 1.3038 because x11vnc drops the fraction, giving exactly 1872x1408

# If reMarkable is vertical, then use
# 1872 / 1080 = 1.7333
# Width is then 812 (slightly less than half)
# Use 1.734 to get truncation/size right

# Start x11vnc
# Horizontal mode
#x11vnc -nocursor -clip 1436x1080+0+0 -scale 1.3038 -rotate -90 &

# Vertical mode
x11vnc -nocursor -clip 812x1080+0+0 -scale 1.734 &

@matteodelabre matteodelabre added the os-support Information about how to setup the server-side OS to work with VNSee label Nov 9, 2020
@matteodelabre
Copy link
Owner

Hi @oresk! Thanks @stevenbell for answering. Could you provide more details on what you are trying to achieve? In principle, setting up the virtual screen resolution as 3840x1408 instead of 1408x3840 and adding the -rotate 90 flag to the x11vnc command line should do the trick. Did you encounter a specific error in doing that?

@matteodelabre matteodelabre added the question Further information is requested label Nov 9, 2020
@Baccanno
Copy link

Baccanno commented Mar 13, 2021

Regarding the same issue, I did not manage to enable Horizontal rotation. It's not available in TightVNC on windows. Natively rotating the desktop does not change the rotation and I had no chance with fbdepth neither.

I thought doing fbdetph -r 1, would then make all the calls to FB rotated. But the settings do not stays. I'm not sure of how fbdepth works so maybe it's not even doing anythinf related to vnsee.

Thanks for your thoughts. Fbdepth could be a platform agnostic solution to orientation here.

@matteodelabre
Copy link
Owner

Thanks for the suggestion @Baccanno. Another solution would be to implement this directly in VNSee. I’ll look into it when I get some time and if enough people are interested.

@matteodelabre matteodelabre added enhancement New feature or request and removed os-support Information about how to setup the server-side OS to work with VNSee question Further information is requested labels Apr 24, 2021
@matteodelabre matteodelabre changed the title Horizontal use Add option to rotate the server image in VNSee Apr 24, 2021
@Baccanno
Copy link

Baccanno commented Apr 25, 2021

An option directly from vnsee to set rotation (90 => 270) would indeed be a great solution imo.
Thanks for your work on this

@roosemberth
Copy link

I'm interested in this feature, I'm running sway and when I try to transform 90, I get this warning in the client: Warning: The server resolution (1872x1404) does not fit in the screen (1404x1872).

@roosemberth
Copy link

Not a solution, but certainly a workaround: you can echo 0 >> /sys/class/graphics/fb0/rotate and then launch vnsee.

For some reason if you have launched and quit vnsee before this, sometimes it does not seem to work, but you can simply restart and stop xochtl, set the fb0 rotation to 0 (again) and start vnsee.

image

@Baccanno
Copy link

Not a solution, but certainly a workaround: you can echo 0 >> /sys/class/graphics/fb0/rotate and then launch vnsee.

For some reason if you have launched and quit vnsee before this, sometimes it does not seem to work, but you can simply restart and stop xochtl, set the fb0 rotation to 0 (again) and start vnsee.

image

I'll give it a try thanks

@D-a-r-n-o-l-d
Copy link

I'd also love to see this implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants