I am in despair. I got a Lenovo notebook with a 11th gen i7 and a RTX 3070 and tried to install Ubuntu on it. Originally Windows was installed but the notebook has to be used with ROS and therefore Ubuntu is required.
The notebook has Thunderbolt 4 and it is to be used on a docking station. After installing Ubuntu the notebook screen works but no external displays do. The driver is initially set to the open-source noveau driver. In the BIOS the graphics are set to "discrete", the other opportunity is "hybrid" but this works worse.
After installing the latest NVIDIA drivers via "Software&Update" the notebook's screen stays black but external displays work. My colleague has found out that after restarting the "systemd-logind.service" via
sudo systemctl restart systemd-logind.service
everything works just fine.
When running
systemctl status systemd-logind.service
before restarting the service everything seem just fine, after restarting it obviously too.
Now I am trying to find out how so solve this problem but I cannot figure it out for 3 days now.
I would be so glad if one could help me.
The Ubuntu version is 18.04 because our robots run on ROS melodic so we have to use that version. The Nvidia driver is 470 but older ones also do not change anything. Secure boot is disabled.