Go to /etc/default/grub.conf
Add the grub.conf parameters below after checking they are ok for your system.
( They should be fine - but check)
At a later stage youll need to set the correct acpi profile but 2009 will do for now.
read the links.
Exit grub.conf > now install the blacklisting and modesetting as shown below grub.
Now in terminal run.
dpkg --add-architecture i386 && update-initramfs -u
apt-get update && apt-get install --reinstall apt apt-utils aptitude ppa-purge build-essential pkg-config libglvnd0 libglvnd-dev dkms dh-modaliases linux-headers-$(uname -r) lm-sensors pciutils pci.ids vulkan-tools mesa-utils && update-pciids && update-initramfs -u
apt-get full-upgrade --allow-downgrades ( dont worry if this doesnt run. )
Now go to :
nano /usr/lib/udev/rules.d/40-vm-hotadd.rules
and comment out every line and then copy to
nano /etc/udev/rules.d/40-vm-hotadd.rules
cp -R /usr/lib/udev/rules.d/40-vm-hotadd.rules /etc/udev/rules.d/40-vm-hotadd.rules
update-initramfs -u && sudo shutdown
Now reboot into GRUB “friendly kernel recovery” for your latest kernel.
Select [ grub] > select [ network ] > select [ root ]
As root run: telinit3
Login in and then log in as root
run:
apt-get update && apt-get remove --purge nvidia* libnvidia* nvidia-driver-515 && apt-get autoremove && apt-get remove && apt-get autoclean && apt-get clean && apt-get install --reinstall --install-recommends libnvidia-gl-515 nvidia-driver-515 nvidia-utils-515 nvidia-compute-utils-515
create xorg.conf:
nvidia-xconfig && mv /etc/X11/xorg.conf /etc/X11/xorg.conf.d/20-nvidia.conf && chmod +x /usr/share/screen-resolution-extra/nvidia-polkit
sudo shutdown
ALWAYS USE THE NATIVE DISTRO PROVIDED REPACKAGED NVIDIA DRIVER.
( Unless you know how not to)
READ!!! The Official nVidia-Driver-README-515. and the Arch Linux Grub and nvidia Wiki
GRUB CONF.
Kernel Parameters Example Only!!! ( Intel / nVidia )
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=8
GRUB_CMDLINE_LINUX_DEFAULT=“acpi_osi=‘Windows 2009’ acpi_enforce_resources=lax acpi_sleep=s3_mode mem_sleep_default=deep ipcmni_extend gpio-mockup.gpio_mockup_named_lines intel_idle.max_cstate=0 apparmor=0 mitigations=off nmi_watchdog=0 numa=off iommu=memaper vmalloc=256M pci=noaer nvidia-drm.modeset=1 nouveau.modeset=0 module_blacklist=‘nouveau’ noplymouth nosplash”
GRUB_CMDLINE_LINUX=“enable_mtrr_cleanup mtrr_spare_reg_nr=4 nvidia-drm.modeset=1 nouveau.modeset=0 module_blacklist=‘nouveau’”
GRUB_TERMINAL=console
GRUB_GFXMODE=1920x1080x24,auto
GRUB_GFXPAYLOAD_LINUX=text
Blacklist and modeset.
https://askubuntu.com/questions/841876/how-to-disable-nouveau-kernel-driver
Also add
[ install nouveau /bin/false ]
to
[ nano /etc/modprobe.d/nv_blacklist_xserver-xorg-video-nouveau.conf ]
In terminal type:
man apt
man dpkg
try…
apt-get --fix-broken install
apt-get --fix-missing install
dpkg --configure -a