Hello all,
when updating nvidia-driver from 470 to 510.73.08 it seems there is a problem with the new driver. I discovered some stuff that I couldn’t find on the forums here so will include this, hopefully it is helpful. (everything else in Parrot works great, this is just the spot i get problems with). This was on a desktop model, not a laptop.
In my case, it works fine on the login screen then when the user session tries to start it crashes. /var/log/Xorg.1.log reports: “Segmentation fault at 0x0” with backtrace to OsLookupColor.
I got it working by going back to the older version driver after cleaning out the packages and rebooting a few times.
Workaround: The older driver that is working is nvidia-tesla-470-driver
. All of these are on parrot/non-free. Also nvidia-tesla-470-kernel-dkms
should be included.
I tried removing all the nvidia drivers and installing the 515 .run proprietary one and same result with segfault. In the process I noticed that unlike most of the other nvidia packages which are at 510.73, nvidia-persistenced is still at 470.103.
Note If nvidia-persistenced is still running as a service then the kernel extensions stay actively loaded and you cannot run the .run proprietary driver installer.
service nvidia-persistenced stop
This service apparently exists to reduce startup time for sessions. it has an option nvidia-persistenced --no-persistence-mode
to seemingly suppress it launching.
Check: lsof /dev/nvidia*
tells if something is still running.
Likewise you probably need to shudown lightdm service as well. And use init 3
to leave the graphic interface runlevel. or systemctl isolate multi-user.target
does this pretty slowly, but use checks to see if it has really worked.
to check the kernel: use lsmod | grep nvidia
modprobe -r nvidia
modprobe -r nvidia_drm
modprobe -r nvidia_modset
To clean out the packages:
dpkg -P $(dpkg -l | grep nvidia | awk '{print $2}')
(note ‘nvidia’ may be too broad a selection but it worked for me)
then:
apt remove nvidia-installer-cleanup nvidia-alternative nvidia-support nvidia-legacy-check
and apt autoremove
Other misc things: Apart from that everything seems to work out, possibly use dpkg-reconfigure lightdm
, check for missing ~/.Xauthority files, backup the /etc/X11/xorg.conf ,
What is really the problem? I am hardly sure but i may have found it in a linux mint thread. . It may involve xorg-server or marco issue related to MATE (link) - also Ubuntu MATE report similar problems w Nvidia 495 and 510.
Purportedly a bug in marco or xorg which can be patched this way. Something called “compositor uses present extension” (bug thread here
I seem to have xserver-xorg-core 1.20.11-1+deb11u1 and the mint people think this issue is fixed in xorg 21.1.3 . Or possibly per here fixed in marco - 1.26.0-3ubuntu0 . currently I have marco 1.24.1-3.
Seems like i should use timeshift to snapshot to rollback from this stuff.
-
Parrot version in use 5.0 Electric Ara
-
Kernel version 5.18.0-1parrot1-amd64