matteodelabre/vnsee

macOS support

Opened this issue · 21 comments

Mac OS does have a built in VNC client, but it does not seem to support virtual screens.

lfuhr commented

I haven't found any way to make a virtual screen. With SwitchResX you can set the main screen size to a exact number of pixels.
I did not try, because I have a RM2.
A one-Screen setup would also be very useful.

Thanks for investigating that. If you want to try it out, check out the following thread for beta rM2 support: #15 (comment)

lfuhr commented

After some testing with rM2 and macOs: It is Partly working
Setting the Screen resolution (on the primary display) works fine using non-free SwitchResX.

macOS VNC-Server:

  1. Enable password in System Preferences (Screen Sharing)
  2. Enable Virtual keyboard in System Preferences (User Settings)
    => Could not login because virtual keyboard hangs (cannot type Passwort properly)

Vine VNC-Server
Screen sharing works (without mouse cursor, not usable as screen only).
When doing interactions with the rM the image did stop to display properly.

IMG_2194

Excited to see progress here! I'm looking forward to eventually using my rM2 as a mirrored screen on my Mac for terminal & emacs use.

The latest release (0.4.0) adds full reMarkable 2 support (@lfuhr) and no longer forces you to set the server resolution to have 1408 pixel columns. This should make setting up the VNC server easier. Unfortunately, I don’t own a device running macOS so I can’t help with the OS-specific part, but if you see things to implement in the client that would simplify setup, please let me know.

I've installed vnsee on my rM2 and I've set up the macOS screen sharing. When I run vnsee I get the following:

reMarkable: ~/ vnsee
Connecting to 192.168.2.194:5900...
Password: terminate called after throwing an instance of 'std::runtime_error'
  what():  Server uses an unsupported resolution (3584x2240). This client can only cope with a screen width of exactly 260 pixels and a screen height of 23936 pixels
Aborted

I installed Resolutionator to see whether it would help, and set my macbook's resolution to 1650x1050, but I see the same error:

reMarkable: ~/ vnsee
Connecting to 192.168.2.194:5900...
Password: terminate called after throwing an instance of 'std::runtime_error'
  what():  Server uses an unsupported resolution (1650x1050). This client can only cope with a screen width of exactly 260 pixels and a screen height of 23936 pixels
Aborted

Is there a way I can set the resolution & rotation of vnsee so I can use the rM2 in landscape?

@matteodelabre if it's any help, my rM2 is running version 2.7.0.51. I'm not running any mods other than renews, which doesn't affect the main OS anyway. Would love to get this running soon; really keen to be able to use my rM2 as an "outdoor" screen for development purposes.

Hello @OldhamMade! Sorry I missed your first message. You need to setup remarkable2-framebuffer on your reMarkable 2 before VNSee (and a lot of other apps) can work. The easiest way to do that is to install Toltec first and then run opkg install rm2fb, but you can also install it manually using the instructions in that repository if you prefer.

Note that VNSee is also available as a package in Toltec, but it’s not yet up to date unfortunately, so you’ll need to keep VNSee manually installed as you already did.

After some testing with rM2 and macOs: It is Partly working
Setting the Screen resolution (on the primary display) works fine using non-free SwitchResX.

macOS VNC-Server:

  1. Enable password in System Preferences (Screen Sharing)
  2. Enable Virtual keyboard in System Preferences (User Settings)
    => Could not login because virtual keyboard hangs (cannot type Passwort properly)

Made some progress on the OSX front. Some research I did lead me here, and running this command from that thread sudo defaults write /Library/Preferences/com.apple.RemoteManagement VNCAlwaysStartOnConsole -bool true bypasses the login screen completely, allowing the vnsee to connect using the built in screen sharing vnc server.

That being said, the actual performance is still pretty rough. The screen is displayed landscape on the portrait reMarkable, and it seems the screen doesn't update properly. I forced a lower resolution by using mirroring with an external monitor, allowing much more of the screen to be seen. I'm using an rm2, so I don't have a way of forcing a screen refresh. Here's an image showing what it looks like:
IMG_4992

hi there, sorry that I'm not familiar with ssh command. I've opened ssh access, like the picture showed.
WX20210816-143428@2x

but I don't know how to copy and install vnsee and vnsee-gui in to my device.

reMarkable: ~/ scp /Users/gamma/Downloads/vnsee root@remarkable:/root

Host 'remarkable' is not in the trusted hosts file.
(ssh-rsa fingerprint sha1!! 17:a7:bd:ed:dc:10:7d:0c:aa:3c:6e:b3:7d:84:73:e4:79:b9:e8:0a)
Do you want to continue connecting? (y/n) y
root@remarkable's password: 
/Users/gamma/Downloads/vnsee: No such file or directory

Can u kindly teach me how to?

lfuhr commented

hi there, sorry that I'm not familiar with ssh command. I've opened ssh access, like the picture showed.
WX20210816-143428@2x

but I don't know how to copy and install vnsee and vnsee-gui in to my device.

reMarkable: ~/ scp /Users/gamma/Downloads/vnsee root@remarkable:/root

Host 'remarkable' is not in the trusted hosts file.
(ssh-rsa fingerprint sha1!! 17:a7:bd:ed:dc:10:7d:0c:aa:3c:6e:b3:7d:84:73:e4:79:b9:e8:0a)
Do you want to continue connecting? (y/n) y
root@remarkable's password: 
/Users/gamma/Downloads/vnsee: No such file or directory

Can u kindly teach me how to?

It says that you have no vase file in the Download folder of the user gamma on your computer. You can drag the file into the terminal to prevent mistakes.

if I open the remote login from Mac preference, I could vnc to it showing the login windows bu that's it. No so practical for now. Is there a way to let vnsee auto-rescale?

I came across a tool to create dummy monitor in mac. The tool is made for a different reason but I don't know if it also helps here. https://github.com/waydabber/BetterDummy

Any progress?

Dismal. Trying everything suggested above. Can‘t get even past ‘Failed to innitialize VNC connection‘.
Wonder if anyone still trying? This needs to work.

bbrks commented

I've had some limited success getting it to work with the OSXvnc/Vine VNC server

You can use BetterDummy mentioned above to create a 1404x1872 display to match the reMarkable's aspect ratio. I'm still having problems getting a cursor to appear on the VNC client, and the stability of OSXvnc leaves a little to be desired... But it's so close to working well.

IMG_20220426_151931

@bbrks Good to see some progress!
Other workaround for mac users (perhaps only if really needed) is to dual boot linux.

@bbrks great work! Do you know whether your approach would work landscape also?

is Landscape possible yet?

is Landscape possible yet?

IMG_6205

is Landscape possible yet?

The landscape screen works now. But the cursor is not displayed. Any ideas?
IMG_6238