Score:1

How to see content of another screen?

us flag

I use laptop with xubuntu 20.04, and have another screen, connected through VGA. But that screen placed not on my deck, this display placed on another room, so I can't see content of screen. Is there was a method, so I can see whats going on that second screen? Can I start another xserver on that screen and look on that through some client? Because it's a little difficult to use second screen with xfce. I often miss my mouse pointer, and because screens have different resolutions - some widgets looks ugly.

Sorry for my English!

in flag
what's the output of `xrandr --listmonitors`?
us flag
`Monitors: 2 0: +*LVDS 1280/331x800/207+0+0 LVDS` `1: +VGA-0 1920/509x1080/286+0+0 VGA-0`
Score:1
in flag

Try this:

xrandr --listactivemonitors\
|awk -- 'BEGIN { getline } { gsub(/\/[[:digit:]]+/,"",$3) ; print $3 }'\
|while read GEOMETRY
do
    x11vnc -clip $GEOMETRY &
done

or if you know geometry of your target monitor acquired by xrandr --listmonitors

mine is as follows:

xrandr --listmonitors 

Monitors: 2
 0: +*LVDS1 1280/330x800/210+0+0  LVDS1
 1: +VIRTUAL1 1280/339x800/212+1280+0  VIRTUAL1

and I ran :

 x11vnc  -clip 1280x800+1280+0

in your case for second monitor:

 x11vnc -clip 1920/509x1080/286+0+0
    

then

 vncviewer -shared localhost

EDIT: There is a simple way with xrandr:

To switch to next monitor:

 xrandr --output VGA-0  --left-of LVDS 

To switch back to default monitor:

 xrandr --output VGA-0 --right-of LVDS

Check out:

https://unix.stackexchange.com/questions/530126/x11vnc-only-show-one-display-with-dual-monitor-guest

https://www.tightvnc.com/vncviewer.1.php

https://wiki.archlinux.org/title/x11vnc

us flag
Thanks a lot, that works! But I cant see my cursor on vncviewer. I try to start x11vnc with some options, like -overlay but thats doesn't help. Is there a way to show cursor too?
in flag
@КрошкаРу It shows pointer. In two monitor setup mouse exceeds boundaries. I think it stays in the first monitor. Try moving mouse far right or left. It should be visible. Or try `vncviewer -clip xinerama1`. https://unix.stackexchange.com/questions/357959/vnc-server-as-a-virtual-x11-monitor-to-expand-screen-problem
us flag
I start x11vnc with `-multiptr` and it fix this. Thanks again.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.