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

Create virtual screen to use as second screen #7

Closed
vidister opened this issue Jan 20, 2020 · 7 comments
Closed

Create virtual screen to use as second screen #7

vidister opened this issue Jan 20, 2020 · 7 comments

Comments

@vidister
Copy link

Is there a way to automatically create a virtual screen as vnc source?
The background is that I want to use my iPad as a second screen for my computer.

@any1
Copy link
Owner

any1 commented Jan 20, 2020

This is currently not possible, but might be in the future when virtual displays are added to wlroots.

@any1 any1 closed this as completed Jan 22, 2020
@rhysperry111
Copy link

rhysperry111 commented May 8, 2020

The feature for virtual displays has just been merged into Sway. It involves creating a new display and specifying it's backend as headless and will be included in the 1.5 release.

See here: swaywm/sway#5216. There currently isn't any documentation (that I could find) but you might be able to derive the options by reading the relevant code here:https://github.com/swaywm/sway/blob/master/sway/commands/create_output.c

@genofire
Copy link

It works with sway \o/ ...

swaymsg create_output
swaymsg output "HEADLESS-1" resolution 3840x2160
wayvnc -o HEADLESS-1 0.0.0.0

(Importent change the resolution before starting wayvnc ... there are some errors ....)
(alternative for line 2, you could put something equal into .config/sway/config or use kanshi, wdisplays)

It is really slow + sometime it closed the connection without reason, and sometimes it crashed.
(is there a option to get logs in wayvnc?)

@any1
Copy link
Owner

any1 commented Jul 11, 2020

There's not a lot of logging, but there is some debug logging available if you run meson with --buildtype=debug. A debugger backtrace would help to know why it crashes, in which case it would be better to open a new issue.

It could be "slow" for multiple reasons: network connection, poor client, slow computer or poorly chosen encoding method.

@ldelossa
Copy link

@vidister I found this because I'm trying to use wayvnc to extend a screen to my Ipad, did this ever work for you?

@martinetd
Copy link

@ldelossa #7 (comment) a few comments above (swaymsg commands to create display and use it with wayvnc) should be what you're trying to do, what's wrong with it?

@ldelossa
Copy link

More looking for, what app and how did you connect via IPad. Maybe some docs related to getting it to work with a new IPAD.

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

No branches or pull requests

6 participants