Score:1

How can I use my old laptop as a virtual monitor for my main laptop? both are running ubuntu 20.04

mx flag

I am looking for a simple way to use my old laptop as a second monitor for my main computer, this would be very useful to me.

I'm not that tech savvy that's why I said a simple way, or maybe a very well documented way...I can follow detailed instructions.

Thanks

Score:2
sa flag

You can use x11vnc to make a virtual screen and connect to it from the second machine through a vnc client. For extended desktop, you can use a dummy male VGA or HDMI (I used the ones of a broken monitor not plugged to the electrical network) connected to your main computer and add a "virtual screen" with xrandr.

  1. From terminal, run: xrand
    and take note of one of the disconnected devices that appear in the output, i.e. "DP-2" or "HDMI-2".
  2. Generate the modeline for the resolution to beam in the monitor of second machine, i.e. for my smartphone: 1200x540 at 120 Mhz. Run in terminal: gtf 1200 540 120
  3. Make a new resolution mode based on the notes taken in the first step. In terminal, run: xrandr --newmode "1200x540_120.00" 112.28 1200 1280 1408 1616 540 541 544 579 -HSync +Vsync
  4. Add the created mode as an output option to a dummy that will be plugged into a port not used in the main machine, in my case "DP-2". Run: xrandr --addmode DP-2 1200x540_120.00
  5. Plug the dummy and set the output to extend the desktop, run: xrandr --output DP-2 --mode 1200x540_120.00 --right-of eDP-1.
  6. Run: x11vnc -localhost -usepw -forever -bg -geometry 1200x540 -shared -noprimary -auth /var/run/lightdm/root/:0 -display :0 -clip 1200x540+3520+450 -threads -noxdamage -noxwarppointer
    (remember that the device names and resolution values are just for my case).
  7. Run any vnc client in the second machine for connect to main machine.

The steps were taken from a post in my old blog (spanish).

Also, you can use Deskreen.

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.