Use external monitor and laptop screen together with discrete nvidia card.
System information where the below tutorial has worked:
CPU i7-9750H.
GPU GTX 1650 ( Mobile ).
HDMI Output hardwired to NVIDIA card.
Parrot OS 5.0.1 freshly installed
INSTRUCTIONS:
It is HIGHLY recommended to CLEAN install ParrotOS 5.0.1 Electro Ara
Install Nvidia Drivers:
- From the GRUB loader select Parrot Linux and press E
- Now navigate the cursor to the row starting with Linux, then at the end of the row replace
quiet splash
withnouveau.modeset=0
(without quote marks). Then press F10. sudo parrot-upgrade
sudo apt install linux-headers-$(uname -r)
echo -e "blacklist nouveau\noptions nouveau modeset=0\nalias nouveau off" > /etc/modprobe.d/blacklist-nouveau.conf
update-initramfs -u && reboot
sudo apt install nvidia-driver -t parrot-backports
sudo apt install nvidia-smi
sudo apt install bumblebee-nvidia primus-nvidia primus-vk-nvidia nvidia-smi nvidia-cuda-dev nvidia-cuda-toolkit
Configure Bumblebee
sudo nano /etc/bumblebee/bumblebee.conf
- Look for the string
Driver=
and addnvidia
, then look for the stringKernelDriver=
and addnvidia-current
. - Save the file and reboot.
Upgrade again
sudo parrot-upgrade
SETUP EXTERNAL MONITOR ON LAPTOP WITH DISCRETE GRAPHIC CARD
Output wired to the INTEL chip:
-
sudo nano /etc/X11/xorg.conf
-
copy this : Section "Screen" Identifier "Screen0" Device "intelgpu0" - Pastebin.com
-
You need to probably change the BusID for both the Intel and the NVIDIA card.
-
lspci | grep VGA
-
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
-
The BusID is
0:2:0
. Note thatlspci
outputs hexadecimal values, but Xorg expects decimal values. -
Reboot
-
Connect HDMI cable
Output wired to the NVIDIA chip
-
sudo nano /etc/X11/xorg.conf.d/20-intel.conf
-
copy this :
https://pastebin.com/Z1WzhX7A
-
sudo nano /etc/bumblebee/xorg.conf.nvidia
-
erase the content of
/etc/bumblebee/xorg.conf.nvidia
-
copy this: Section "ServerLayout" Identifier "Layout0" Option "AutoAddDevic - Pastebin.com
-
Reboot
-
Connect HDMI cable
-
optirun intel-virtual-output
The external monitor will now be recognized and you can adjust it. Preferences->Hardware->Displays