damentz / liquorix-package

Liquorix Debian Package
https://liquorix.net
GNU General Public License v2.0
288 stars 23 forks source link

Nvida-DKMS error with Linux 5.14 #72

Closed varlesh closed 2 years ago

varlesh commented 2 years ago

KDE Neon (Ubuntu 20.04)

DKMS make.log for nvidia-495.44 for kernel 5.14.0-19.2-liquorix-amd64 (x86_64)
Сб 20 ноя 2021 09:57:03 +04
make[1]: вход в каталог «/usr/src/linux-headers-5.14.0-19.2-liquorix-amd64»
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
echo >&2;                           \
echo >&2 "  ERROR: Kernel configuration is invalid.";       \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
echo >&2 ;                          \
/bin/false)

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make[1]: *** [Makefile:747: include/config/auto.conf] Ошибка 1
make[1]: выход из каталога «/usr/src/linux-headers-5.14.0-19.2-liquorix-amd64»
make: *** [Makefile:80: modules] Ошибка 2
varlesh commented 2 years ago

I try reinstall dkms package but it's not solved:

Настраивается пакет nvidia-dkms-495 (495.44-0ubuntu0.20.04.1) …
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Loading new nvidia-495.44 DKMS files...
Building for 5.14.0-19.2-liquorix-amd64
Building for architecture x86_64
Building initial module for 5.14.0-19.2-liquorix-amd64
Error! Bad return status for module build on kernel: 5.14.0-19.2-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/nvidia/495.44/build/make.log for more information.
dpkg: ошибка при обработке пакета nvidia-dkms-495 (--configure):
 installed nvidia-dkms-495 package post-installation script subprocess returned error exit status 10
varlesh commented 2 years ago

nvidia-dkms-495 successful compiled without errors with 5.14.0-10.1-liquorix-amd64.

cd /tmp
wget -c https://launchpadlibrarian.net/562526116/linux-image-5.14.0-10.1-liquorix-amd64_5.14-12ubuntu1~focal_amd64.deb
wget -c https://launchpadlibrarian.net/562526113/linux-headers-5.14.0-10.1-liquorix-amd64_5.14-12ubuntu1~focal_amd64.deb
sudo dpkg -i linux-*.deb

Also tested other kernels:

varlesh commented 2 years ago

Also INFO for nvidia users. Driver 495-version spamming to dbus (and KWin too on KDE) and overflows system logs and which makes dbus consume a lot of RAM. For solve this create dbus config: /etc/dbus-1/system.d/nvidia-fake-powerd.conf

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
        <policy user="root">
                <allow own="nvidia.powerd.server"/>
        </policy>
        <policy context="default">
                <allow send_destination="nvidia.powerd.server"/>
                <allow receive_sender="nvidia.powerd.server"/>
        </policy>
</busconfig>

Create systemd service: /etc/systemd/system/nvidia-fake-powerd.service

[Unit]
Description=NVIDIA fake powerd service

[Service]
Type=dbus
BusName=nvidia.powerd.server
ExecStart=/usr/bin/dbus-test-tool black-hole --system --name=nvidia.powerd.server
User=root
Group=root
LimitNPROC=2
ProtectHome=true
ProtectSystem=full

[Install]
WantedBy=default.target
Alias=dbus-nvidia.fake-powerd.service

Install dbus-test-tool: sudo apt install dbus-tests

Enable and start it:

sudo systemctl daemon-reload
sudo systemctl enable nvidia-fake-powerd.service
sudo systemctl start nvidia-fake-powerd.service
sudo systemctl status nvidia-fake-powerd.service

More info here

damentz commented 2 years ago

The first 5.15 kernel should be out soon for you, can you try it when you get the chance?

varlesh commented 2 years ago

upgrade to 5.15 all fine, DKMS: install completed.