[SOLVED]Fully working grub on totally black screen after nvidia-340xx-dkms build and install

It seems that my grub graphics don’t work (Grub itself installs, updates and works fine!). The screen is totally black, however, since I remember the entries, I can triple boot as before.

I tried setting lower res but no luck.:
GRUB_GFXMODE=640x480
Work around:
GRUB_TERMINAL_OUTPUT=console
gives small (roughly 360x360) but usable console output.

/etc/default/grub:

GRUB_DEFAULT=saved
GRUB_TIMEOUT=2
GRUB_TIMEOUT_STYLE=menu
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/usr/share/grub/background.png"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to ensure that the root filesystem is mounted read-only so that
# systemd-fsck can run the check automatically
#GRUB_ROOT_FS_RO=false

Two possible reasons:

1. When I recovered my system re-installing nvidia I followed (ultimately successful) instructions which included blacklisting some graphics drivers. Can someone spot if one of those could be causing this issue.

/etc/modprobe.d/blacklist.conf
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
blacklist nv

2. Other than that, might there be an issue with the ‘new’ nvidia-340xx-dkms drivers?
Arch wiki: “Users who use NVIDIA proprietary driver might wish to disable GRUB’s framebuffer as it can cause problems with the binary driver”

Has anyone encountered this? Also, for people who think their grub has recently broken; check! It may be ‘invisible’ but it actually works!

As always, thanks for any pointers.

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information in your posts - Tutorials - Manjaro Linux Forum
    and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies…

    An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)

  2. As we have no kernel version, have you tries 5.4 LTS (=Long Term Support) yet?

  3. What’s the output to:

    pamac list | grep nv
    

:+1:

P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which CPU/GPU or kernel you have, …

Hi, thanks for the reply.
I am on the linux54 LTS kernel, the manjaro live usb with linux59 works fine with the free drivers.

The output toinxi --admin --verbosity=7 --filter --no-host --width is:

System:
  Kernel: 5.4.95-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 
  root=UUID=511bb7eb-b8ad-49e9-a989-697db8a253d8 rw quiet udev.log_priority=3 
  Desktop: MATE 1.24.1 info: mate-panel wm: marco 1.24.1 dm: LightDM 1.30.0 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Apple product: MacBookPro5,4 v: 1.0 serial: <filter> 
  Chassis: type: 10 v: Mac-F22587A1 serial: <filter> 
  Mobo: Apple model: Mac-F22587A1 v: MacBookPro5,4 serial: <filter> 
  UEFI: Apple v: MBP53.88Z.00AC.B03.0906151647 date: 06/15/09 
Battery:
  ID-1: BAT0 charge: 78.1 Wh condition: 78.2/77.8 Wh (101%) volts: 12.6/10.8 
  model: Newer Tech A1321 type: Li-ion serial: N/A status: Full cycles: 3 
Memory:
  RAM: total: 3.59 GiB used: 1.53 GiB (42.6%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Dual Core model: Intel Core2 Duo P8700 bits: 64 type: MCP arch: Penryn 
  family: 6 model-id: 17 (23) stepping: A (10) microcode: A0B L2 cache: 3 MiB 
  bogomips: 10087 
  Speed: 796 MHz min/max: 798/2527 MHz Core speeds (MHz): 1: 796 2: 796 
  Flags: acpi aperfmperf apic arch_perfmon bts clflush cmov constant_tsc cpuid 
  cx16 cx8 de ds_cpl dtes64 dtherm dts est flexpriority fpu fxsr ht lahf_lm lm 
  mca mce mmx monitor msr mtrr nopl nx pae pat pbe pdcm pebs pge pni pse pse36 
  pti rep_good sep smx sse sse2 sse4_1 ssse3 syscall tm tm2 tpr_shadow tsc vme 
  vmx vnmi xsave xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
  Type: l1tf mitigation: PTE Inversion; VMX: EPT disabled 
  Type: mds 
  status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass status: Vulnerable 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 
  mitigation: Full generic retpoline, STIBP: disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA C79 [GeForce 9400M] vendor: Apple driver: nvidia v: 340.108 
  alternate: nouveau bus ID: 03:00.0 chip ID: 10de:0863 class ID: 0300 
  Device-2: Apple Built-in iSight type: USB driver: uvcvideo bus ID: 1-4:3 
  chip ID: 05ac:8507 class ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.10 compositor: marco v: 1.24.1 driver: 
  loaded: nvidia display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1440x900 s-dpi: 110 s-size: 333x212mm (13.1x8.3") 
  s-diag: 395mm (15.5") 
  Monitor-1: LVDS-0 res: 1440x900 hz: 60 dpi: 111 size: 331x207mm (13.0x8.1") 
  diag: 390mm (15.4") 
  OpenGL: renderer: GeForce 9400M/integrated/SSE2 v: 3.3.0 NVIDIA 340.108 
  direct render: Yes 
Audio:
  Device-1: NVIDIA MCP79 High Definition Audio driver: snd_hda_intel v: kernel 
  bus ID: 00:08.0 chip ID: 10de:0ac0 class ID: 0403 
  Sound Server: ALSA v: k5.4.95-1-MANJARO 
Network:
  Device-1: NVIDIA MCP79 Ethernet driver: forcedeth v: kernel port: 21e0 
  bus ID: 00:0a.0 chip ID: 10de:0ab0 class ID: 0200 
  IF: enp0s10 state: up speed: 100 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Broadcom BCM4322 802.11a/b/g/n Wireless LAN 
  vendor: Apple AirPort Extreme driver: wl v: kernel modules: ssb port: 1000 
  bus ID: 04:00.0 chip ID: 14e4:432b class ID: 0280 
  IF: wlp4s0 state: down mac: <filter> 
  IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
  IP v4: <filter> type: noprefixroute scope: global broadcast: <filter> 
  IP v6: <filter> virtual: stable-privacy scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Apple Bluetooth Host Controller type: USB driver: btusb v: 0.8 
  bus ID: 4-1.1:3 chip ID: 05ac:8213 class ID: fe01 serial: <filter> 
  Message: Required tool hciconfig not installed. Check --recommends 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 141.51 GiB used: 77.78 GiB (55.0%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT120M500SSD3 
  size: 111.79 GiB block size: physical: 4096 B logical: 512 B speed: 3.0 Gb/s 
  rotation: SSD serial: <filter> rev: MU05 scheme: GPT 
  ID-2: /dev/sdc maj-min: 8:32 type: USB vendor: Apple model: SD Card Reader 
  size: 29.72 GiB block size: physical: 512 B logical: 512 B serial: <filter> 
  rev: 1.00 scheme: GPT 
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure? 
  Message: No Optical or Floppy data was found. 
Partition:
  ID-1: / raw size: 51.82 GiB size: 50.89 GiB (98.19%) used: 36.9 GiB (72.5%) 
  fs: ext4 dev: /dev/sda3 maj-min: 8:3 label: N/A 
  uuid: 511bb7eb-b8ad-49e9-a989-697db8a253d8 
  ID-2: /boot/efi raw size: 512 MiB size: 511 MiB (99.80%) 
  used: 3.7 MiB (0.7%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A 
  uuid: 115B-875A 
  ID-3: /run/media/jaro/17e929f7-ea19-4787-a4be-060f0759fee7 
  raw size: 19.6 GiB size: 19.17 GiB (97.79%) used: 15.43 GiB (80.5%) fs: ext4 
  dev: /dev/sda4 maj-min: 8:4 label: N/A 
  uuid: 17e929f7-ea19-4787-a4be-060f0759fee7 
  ID-4: /run/media/jaro/4f28e87f-959b-4589-9baa-fefeaf8199c0 
  raw size: 35.6 GiB size: 34.91 GiB (98.08%) used: 25.42 GiB (72.8%) fs: ext4 
  dev: /dev/sda2 maj-min: 8:2 label: N/A 
  uuid: 4f28e87f-959b-4589-9baa-fefeaf8199c0 
  ID-5: /run/media/jaro/MX-Frugal raw size: 29.72 GiB size: 29.09 GiB (97.86%) 
  used: 24 KiB (0.0%) fs: ext4 dev: /dev/sdc1 maj-min: 8:33 label: MX-Frugal 
  uuid: fb8359f3-deb1-4053-8b95-48cb6d2d3ab8 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 3.95 GiB used: 24.4 MiB (0.6%) 
  priority: -2 dev: /dev/sda5 maj-min: 8:5 label: N/A 
  uuid: 4cfa1194-4c56-4458-8143-7122cdc15096 
Unmounted:
  Message: No Unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 7 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Device-1: 1-4:3 info: Apple Built-in iSight type: Video driver: uvcvideo 
  interfaces: 3 rev: 2.0 speed: 480 Mb/s chip ID: 05ac:8507 class ID: 0e02 
  serial: <filter> 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 5 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Device-1: 2-5:4 info: Apple Internal Memory Card Reader type: Mass Storage 
  driver: usb-storage interfaces: 1 rev: 2.0 speed: 480 Mb/s 
  chip ID: 05ac:8403 class ID: 0806 serial: <filter> 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 7 rev: 1.1 speed: 12 Mb/s 
  chip ID: 1d6b:0001 class ID: 0900 
  Device-1: 3-1:4 info: Logitech Unifying Receiver type: Keyboard,Mouse 
  driver: logitech-djreceiver,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  chip ID: 046d:c534 class ID: 0301 
  Device-2: 3-5:2 info: Apple Built-in IR Receiver type: HID 
  driver: appleir,usbhid interfaces: 1 rev: 2.0 speed: 1.5 Mb/s 
  chip ID: 05ac:8242 class ID: 0300 
  Device-3: 3-6:3 info: Apple Internal Keyboard/Trackpad (ANSI) 
  type: Keyboard,HID,Mouse driver: apple,bcm5974,usbhid interfaces: 3 rev: 2.0 
  speed: 12 Mb/s chip ID: 05ac:0236 class ID: 0301 
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 5 rev: 1.1 speed: 12 Mb/s 
  chip ID: 1d6b:0001 class ID: 0900 
  Hub-5: 4-1:2 
  info: Broadcom BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth) ports: 3 
  rev: 2.0 speed: 12 Mb/s chip ID: 0a5c:4500 class ID: 0900 
  Device-1: 4-1.1:3 info: Apple Bluetooth Host Controller type: Bluetooth 
  driver: btusb interfaces: 4 rev: 2.0 speed: 12 Mb/s chip ID: 05ac:8213 
  class ID: fe01 serial: <filter> 
Sensors:
  System Temperatures: cpu: 58.0 C mobo: N/A gpu: nvidia temp: 61 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 158 Uptime: 1d 21h 54m wakeups: 17 Init: systemd v: 247 
  Compilers: gcc: 10.2.0 Packages: pacman: 1273 lib: 371 Shell: Zsh v: 5.8 
  running in: mate-terminal inxi: 3.3.01

The output to pamac list | grep nv is:

caja-image-converter              1.24.1-1                    community  79.4 kB
double-conversion                 3.1.5-2                     extra      172.6 kB
java-environment-common           3-3                         extra      
lib32-nvidia-340xx-utils          340.108-1                   AUR        109.1 MB
lib32-opencl-nvidia-340xx         340.108-1                   AUR        40.3 MB
libxnvctrl                        460.39-1                    extra      467.5 kB
mhwd-nvidia                       460.39-1                    core       1.6 kB
mhwd-nvidia-340xx                 340.108-1                              2.5 kB
mhwd-nvidia-390xx                 390.141-1                   core       1.9 kB
networkmanager-openvpn            1.8.12-1                    extra      1.3 MB
nvidia-340xx-dkms                 340.108-1                   AUR        15.4 MB
nvidia-340xx-utils                340.108-1                   AUR        139.3 MB
opencl-nvidia-340xx               340.108-1                   AUR        39.3 MB
openvpn                           2.5.0-3                     extra      1.5 MB

Hello @6x12 ,
I use the nvidia-340-dmks ( on k 5.4LTS and 5.10 ) and have no problems. I don’t know what tutorial have you done, but have you tired to rename blacklist.conf to nvidia.conf and also remove blacklist nv from the file and see what happens, just an idea. Also double check the tutorial that you did, maybe you’ve missed something…

1 Like

I would not rename blacklist.conf to nvidia.conf but I would also remove blacklist nv from blacklist.conf though.

:crossed_fingers:

I got the tip for the blacklist from the forum at archlinux but had already taken uvcvideo off since I recognized it as my camera driver. After taking nv off the blacklist there are no changes and the problem persists.

1 Like

What were the exact commands you used to install the driver and what’s the output of:

mhwd --listinstalled

:question:

Are you sure? Have you tried booting the other kernel?

I am on 5.4LTS with nvidia-340xx-dkms. I have an update for this pkg but this update forces me to pick either 59, 510 or 511 kernel which would mean the package that works on 5.4LTS would be removed and hence 5.4LTS would not boot any more, or am I missing something?

Thanks,.

I followed the pinned post.

~ >>> mhwd --listinstalled                                                     
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!

Ok… there is no nvidia because the mhwd profile has been removed with the legacy drivers, right? My inxi -G

~ >>> inxi -G                                                                  
Graphics:
  Device-1: NVIDIA C79 [GeForce 9400M] driver: nvidia v: 340.108 
  Device-2: Apple Built-in iSight type: USB driver: uvcvideo 
  Display: x11 server: X.Org 1.20.10 driver: loaded: nvidia 
  resolution: 1440x900~60Hz 
  OpenGL: renderer: GeForce 9400M/integrated/SSE2 v: 3.3.0 NVIDIA 340.108

Yes, I am sure. I just tweaked the package a little bit to accept 5.4 LTS and I have no problems.

$ pacman -Qs nvidia-
local/lib32-nvidia-340xx-utils 340.108-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia-340xx 340.108-1
    OpenCL implemention for NVIDIA (32-bit)
local/mhwd-nvidia-340xx 340.108-1
    MHWD module-ids for nvidia 340.108
local/nvidia-340xx-dkms 340.108-13        <----  the relevant package
    NVIDIA driver sources for linux, 340xx legacy branch
local/nvidia-340xx-utils 340.108-1
    NVIDIA drivers utilities
local/opencl-nvidia-340xx 340.108-1
    OpenCL implemention for NVIDIA
 
$ uname -r
5.4.95-1-MANJARO
~ >>> pacman -Qs nvidia-                                                       
local/lib32-nvidia-340xx-utils 340.108-1
    NVIDIA drivers utilities (32-bit)
local/lib32-opencl-nvidia-340xx 340.108-1
    OpenCL implemention for NVIDIA (32-bit)
local/mhwd-nvidia-340xx 340.108-1
    MHWD module-ids for nvidia 340.108
local/mhwd-nvidia-390xx 390.141-1
    MHWD module-ids for nvidia 390.141
local/nvidia-340xx-dkms 340.108-1
    NVIDIA driver sources for linux, 340xx legacy branch
local/nvidia-340xx-utils 340.108-1
    NVIDIA drivers utilities
local/opencl-nvidia-340xx 340.108-1
    OpenCL implemention for NVIDIA

Hmm, looks different. What do you mean by ‘tweaked the package a little’? You mean edit the build file during the update?

~ >>> uname -r                                                                 
5.4.95-1-MANJARO

Well, you don’t have the nVidia driver installed then…

Also: you have an Apple, and I don’t know anything about their hardware, so I’m bailing…

Sorry!

:sob:

~ >>> inxi -G                                                                  
Graphics:
  Device-1: NVIDIA C79 [GeForce 9400M] driver: nvidia v: 340.108 
  Device-2: Apple Built-in iSight type: USB driver: uvcvideo 
  Display: x11 server: X.Org 1.20.10 driver: loaded: nvidia 
  resolution: 1440x900~60Hz 
  OpenGL: renderer: GeForce 9400M/integrated/SSE2 v: 3.3.0 NVIDIA 340.108 

I believe I am on the nvidia-340xx-dkms driver. I can use the nvidia settings app to raise the clock speed and my conky shows those changes. Just forget that it’s a MBP, this model gives no problems with any distro, there is no macOS left, drive replaced, acts like any pc.

Yes. I updated the package with pamac-gui so it was easier to edit the build file.

Did you try renaming the blacklist.conf and removing the blacklist nv ??

This won’t show that you are using nvidia-340-xx.
It doesn’t show for me either.

However inxi -G show that the driver is loaded. So only look at that.

What is the output of lspci -v | grep 'nvidia'
Mine is Kernel driver in use: nvidia Kernel modules: nouveau, nvidia.

Maybe someone with more knowledge can help.

Yes, did that, still no grub graphics. And I also get:

Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia

What did you edit on the build files?
If I get 5.4LTS to accept the updated nvidia-340xx-dkms I’m happy. I can then try 5.10. At least I’d have a working fall back.

Ok, this is the file that helped me, its from philm’s repo.
This is the file

PKG Build File

# Maintainer: Jerry Xiao 
# Maintainer: graysky 
# Contributor: Giancarlo Razzolini 
# Contributor: Eric Bélanger 

pkgbase=nvidia-340xx
pkgname=(nvidia-340xx-dkms) → here you will have another package remove it.
pkgver=340.108
pkgrel=1
pkgdesc=“NVIDIA drivers for linux, 340xx legacy branch”
arch=(‘x86_64’)
url=“https://www.nvidia.com/
makedepends=(“nvidia-340xx-utils=${pkgver}” ‘linux>=5.4’ ‘linux-headers>=5.4’) → this must be like this
conflicts=(‘nvidia’)
license=(‘custom’)
options=(!strip)
source=(“https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/NVIDIA-Linux-x86_64-${pkgver}-no-compat32.run
0001-kernel-5.7.patch
0002-kernel-5.8.patch
0003-kernel-5.9.patch
0004-kernel-5.10.patch
)

b2sums ommited because is different

_pkg=“NVIDIA-Linux-x86_64-${pkgver}-no-compat32”

stuff here you don’t need it comment it with #

prepare() {
sh “${_pkg}.run” --extract-only

cd “${_pkg}”
patch -Np1 -i …/0001-kernel-5.7.patch
patch -Np1 -i …/0002-kernel-5.8.patch
patch -Np1 -i …/0003-kernel-5.9.patch
patch -Np1 -i …/0004-kernel-5.10.patch

cp -a kernel kernel-dkms
}

Stuff to commet here as well

package_nvidia-340xx-dkms() {
pkgdesc=“NVIDIA driver sources for linux, 340xx legacy branch”
depends=(‘dkms’ “nvidia-340xx-utils=$pkgver” ‘libgl’ ‘linux>=5.4’) <–> Here you add this linux >= 5.4
optdepends=(‘linux-headers: Build the module for Manjaro kernel’)
provides=(“nvidia-340xx=$pkgver”)
conflicts+=(‘nvidia-340xx’)

cd "${_pkg}"

install -dm 755 "${pkgdir}"/usr/src
cp -dr --no-preserve='ownership' kernel-dkms "${pkgdir}/usr/src/nvidia-${pkgver}"
cat "${pkgdir}"/usr/src/nvidia-${pkgver}/uvm/dkms.conf.fragment >> "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf

echo "blacklist nouveau" |
    install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"

}

If you run in compiler mismatch error add this export IGNORE_CC_MISMATCH=1 to /etc/profile

Good luck and tell me how it went.

P.S. Don’t copy - paste just walk through, and do.

@6x12 How did it go ??? Is it success ?? :thinking:
I made copy - paste file from the original package build file from AUR.

Absolutely! Almost there.
After doing the update in pamac using the philmmanjaro PKGBUILD the 5.10 kernel was installed successfully.

However, this installs the new kernel with the old 340.108-1 version; the build of the new 340.108-13 pkg fails and the 340.108-1 is reinstalled and I’m in an update loop.

 Preparing...
Cloning nvidia-340xx build files...
Checking nvidia-340xx-dkms dependencies...
Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...

Building nvidia-340xx...
/tmp/pamac-build-jaro/nvidia-340xx/PKGBUILD: line 32: /usr/src/linux/version: No such file or directory
==> Making package: nvidia-340xx 340.108-13 (Fri 19 Feb 2021 09:07:57 AM EAT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading NVIDIA-Linux-x86_64-340.108-no-compat32.run...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  5 36.9M    5 2080k    0     0   791k      0  0:00:47  0:00:02  0:00:45  791k
 15 36.9M   15 6032k    0     0  1663k      0  0:00:22  0:00:03  0:00:19 1662k
 26 36.9M   26 9920k    0     0  2143k      0  0:00:17  0:00:04  0:00:13 2143k
 35 36.9M   35 13.1M    0     0  2399k      0  0:00:15  0:00:05  0:00:10 2732k
 45 36.9M   45 16.6M    0     0  2576k      0  0:00:14  0:00:06  0:00:08 3612k
 54 36.9M   54 20.1M    0     0  2705k      0  0:00:13  0:00:07  0:00:06 3712k
 63 36.9M   63 23.6M    0     0  2807k      0  0:00:13  0:00:08  0:00:05 3637k
 73 36.9M   73 27.1M    0     0  2886k      0  0:00:13  0:00:09  0:00:04 3574k
 82 36.9M   82 30.6M    0     0  2952k      0  0:00:12  0:00:10  0:00:02 3574k
 92 36.9M   92 34.1M    0     0  3003k      0  0:00:12  0:00:11  0:00:01 3571k
100 36.9M  100 36.9M    0     0  3043k      0  0:00:12  0:00:12 --:--:-- 3578k
  -> Found 0001-kernel-5.7.patch
  -> Found 0002-kernel-5.8.patch
  -> Found 0003-kernel-5.9.patch
  -> Found 0004-kernel-5.10.patch
==> Validating source files with b2sums...
    NVIDIA-Linux-x86_64-340.108-no-compat32.run ... Passed
    0001-kernel-5.7.patch ... Passed
    0002-kernel-5.8.patch ... Passed
    0003-kernel-5.9.patch ... Passed
    0004-kernel-5.10.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-340.108-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 340.108...........................................................................................................................................................................................................
patching file kernel/Makefile
patching file kernel/conftest.sh
patching file kernel/dkms.conf
patching file kernel/nv-drm.c
patching file kernel/nv-linux.h
patching file kernel/nv-procfs.c
patching file kernel/nv-time.h
patching file kernel/nv.c
patching file kernel/os-interface.c
patching file kernel/uvm/Makefile
patching file kernel/uvm/conftest.sh
patching file kernel/uvm/nvidia_uvm_lite.c
patching file kernel/nv-linux.h
patching file kernel/nvidia-modules-common.mk
patching file kernel/os-mlock.c
patching file kernel/uvm/nvidia_uvm_lite_api.c
patching file kernel/nv-drm.c
patching file kernel/nv-linux.h
patching file kernel/nv.c
patching file kernel/uvm/nvidia_uvm_linux.h
patching file kernel/nv-drm.c
Hunk #1 succeeded at 364 (offset 42 lines).
==> Starting build()...
NVIDIA: calling KBUILD...
make[1]: *** /usr/src/linux: No such file or directory.  Stop.
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:202: nvidia.ko] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Preparing...
Cloning nvidia-340xx build files...
Checking nvidia-340xx-dkms dependencies...
Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...
Edit nvidia-340xx build files

Cloning nvidia-340xx build files...
Checking nvidia-340xx-dkms dependencies...
Warning: nvidia-340xx-dkms-340.108-1 is up to date -- reinstalling
Resolving dependencies...
Checking inter-conflicts...

Building nvidia-340xx...
==> Making package: nvidia-340xx 340.108-1 (Fri 19 Feb 2021 09:11:01 AM EAT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found NVIDIA-Linux-x86_64-340.108-no-compat32.run
  -> Found 0001-kernel-5.7.patch
  -> Found 0002-kernel-5.8.patch
  -> Found 0003-kernel-5.9.patch
  -> Found 0004-kernel-5.10.patch
==> Validating source files with b2sums...
    NVIDIA-Linux-x86_64-340.108-no-compat32.run ... Passed
    0001-kernel-5.7.patch ... Passed
    0002-kernel-5.8.patch ... Passed
    0003-kernel-5.9.patch ... Passed
    0004-kernel-5.10.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-340.108-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 340.108...........................................................................................................................................................................................................
patching file kernel/Makefile
patching file kernel/conftest.sh
patching file kernel/dkms.conf
patching file kernel/nv-drm.c
patching file kernel/nv-linux.h
patching file kernel/nv-procfs.c
patching file kernel/nv-time.h
patching file kernel/nv.c
patching file kernel/os-interface.c
patching file kernel/uvm/Makefile
patching file kernel/uvm/conftest.sh
patching file kernel/uvm/nvidia_uvm_lite.c
patching file kernel/nv-linux.h
patching file kernel/nvidia-modules-common.mk
patching file kernel/os-mlock.c
patching file kernel/uvm/nvidia_uvm_lite_api.c
patching file kernel/nv-drm.c
patching file kernel/nv-linux.h
patching file kernel/nv.c
patching file kernel/uvm/nvidia_uvm_linux.h
patching file kernel/nv-drm.c
Hunk #1 succeeded at 364 (offset 42 lines).
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package_nvidia-340xx-dkms()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "nvidia-340xx-dkms"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: nvidia-340xx 340.108-1 (Fri 19 Feb 2021 09:11:09 AM EAT)
==> Cleaning up...

Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
==> dkms remove --no-depmod -m nvidia -v 340.108 -k 5.4.95-1-MANJARO
==> dkms remove --no-depmod -m nvidia -v 340.108 -k 5.10.15-1-MANJARO
Reinstalling nvidia-340xx-dkms (340.108-1)...
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Install DKMS modules
==> dkms install --no-depmod -m nvidia -v 340.108 -k 5.4.95-1-MANJARO
==> dkms install --no-depmod -m nvidia -v 340.108 -k 5.10.15-1-MANJARO
==> depmod 5.4.95-1-MANJARO
==> depmod 5.10.15-1-MANJARO
A restart is required for the changes to take effect.
Transaction successfully finished.

Will check PKGBUILD for hints and do some more checking around. Did you do any other editing on it to get the updated pkg to install?

Thanks for the help, very grateful.

Ok, done.

Two things I needed doing:

  1. Reinstalled both my kernel-headers.
  2. Using pamac with @philm PKGBUILD I edited line 9
    pkgrel=1
    to the correct version number
    pkgrel=13

My grub graphics are still screwed but I can live with the console output for now. My main issue was the messed up nvidia driver install and the update loop and since that’s fixed I’m happy to mark this as solved.

Thanks to all, keep your heads up and stay safe.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.