I have an old ipad. I'm wondering if I can make it a secondary display for my Ubuntu laptop. Here records my efforts.
Basically, this involves:
This involves:
Result:
1. Find out display & GPU:
2. Tools:
3. Desired resolution (match the ipad): 1024X768
4. Make a headless display:
# nvidia/nouveau/amdgpu device should be configured first before Intel GPU
Section "Device"
Identifier "amdgpu0"
Driver "amdgpu"
EndSection
# Then configure intel internal GPU
Section "Device"
Identifier "intelgpu0"
Driver "intel"
# You may put Option "VirtualHeads" "1" here but it seem you don't need to put this for Ubuntu 18.04.
It prevent user from login from graphic login interface. Failed.
Only record the steps, more details see links above
1. Find PCI address (records down "02:00.0")
$ lspci | grep -E 'VGA|Display|3D'
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
02:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] (rev c0)
2. Create virtual display
$ cat /etc/modprobe.d/amdgpu.conf
options amdgpu virtual_display=0000:02:00.0,1
3. Restart, set virtual display in settings
4. Check with command xrandr, find line similar to this:
Virtual-1-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
5. Export display with x11vnc, '-multiptr' to make pointer visible (but it lags badly, so maybe just don't use)
x11vnc -clip xinerama0 -nopw -multiptr
6. I used RealVNC on an iPad2. It works ok.