If you encounter a black screen during your screen sharing in a meeting, follow these steps to troubleshoot the issue.
The black screen during screen sharing could be caused by a graphics card with automatic-graphics switching (such as an Nvidia card).
The share screen feature requires compositing. Follow these steps to install the third-party compositor, xcompmgr.
Install xcompmgr using your Linux distro's package manager. If you have a graphical package manager (like Synaptics), search for xcompmgr in your package manger.
Alternatively, you can open the terminal on your Linux distro and run the relevant command:
Debian, Ubuntu, or Linux Mint
sudo apt install xcompmgr
zypper install xcompmgr
dnf install xcompmgr
See the Arch Linux wiki for instructions.
After installing, open the terminal and run this command:
xcompmgr -c -l0 -t0 -r0 -o.00