From: Tomasz M. <li...@ex...> - 2011-07-28 16:56:11
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, Short summary: is it possible to simulate an X monitor in x11vnc, that would be visible to desktop environment as monitor? Long version: I've got a Linux Thinkpad X61 notebook, which has a small screen (1024x768) and one VGA output. At work I've got another Windows PC with two big screens (both 1920x1080). Sometimes I need to work on my notebook, and being able to use PC's screens would be wonderful. I connected one of them using a standard VGA cable. I thought that I could use VNC to use another screen: launch a VNC client on the Windows PC and somehow use it to extend a standard X session. So I firstly extended my virtual screen space: xrandr --fb 4864x1080 and then used x11vnc to act as server for VNC: x11vnc -clip 1920x1080+2944+0 Now I've got something that looks as if the second big screen was connected directly to my notebook. E.g. I can drag windows from directly connected monitors to the VNC-relayed one, and the performance is good enough (there's 1Gbps connection between PC and notebook). However, it seems that my GNOME does not know that the screen space which is relayed over VNC is displayed. I cannot maximize windows on that monitor, nor can I put gnome panels there. Nautilus does not show its icons there, and no background image is displayed. I assume this is because both the internal screen and the VGA-connected one are handled as hardware monitors, and the x11vnc one not (output from xrandr): #v+ Screen 0: minimum 320 x 200, current 4864 x 1080, maximum 8192 x 8192 LVDS1 connected 1024x768+0+312 (normal left inverted right x axis y axis) 246mm x 184mm [...] VGA1 connected 1920x1080+1024+0 (normal left inverted right x axis y axis) 521mm x 293mm [...] #v- Question: how to tell X server that this space is being displayed on x11vnc? I did a little of Xlib coding in the past, so I could try a little hacking--but in this case I don't even know where to start. Thanks, Tomasz Melcer -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk4xjz0ACgkQ0lIV1xJbVqr22QCbBXZK1lEPWSg2ZsYM3fNlwhxh qDcAn1AW3ypUH0Utdo2IgR0W2+rCehxD =pY64 -----END PGP SIGNATURE----- |