Nvidia driver update issue

It is in /usr/share/libalpm/hooks/eos-nvidia-fix.hook.

It can be tested by reinstalling your nvidia driver, e.g.

sudo pacman -S nvidia-dkms

I just updated and it’s not there yet.

Installed and ready here

yay -Si nvidia-hook
Repository      : endeavouros
Name            : nvidia-hook
Version         : 1.0-1
Description     : pacman hook for nvidia
Architecture    : any
URL             : https://github.com/endeavouros-team/PKGBUILDS/tree/master/nvidia-hook
Licenses        : GPL3
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Conflicts With  : None
Replaces        : None
Download Size   : 12,11 KiB
Installed Size  : 0,22 KiB
Packager        : EndeavourOS <info@endeavouros.com>
Build Date      : sáb 01 may 2021 13:47:09
Validated By    : MD5 Sum  SHA-256 Sum  Signature

cat /usr/share/libalpm/hooks/eos-nvidia-fix.hook

[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = nvidia-dkms
Target = nvidia
Target = nvidia-lts

[Action]
Depends = mkinitcpio
When = PostTransaction
Exec = /usr/bin/mkinitcpio -P

And I did remove the manually installed hook.

1 Like

Did you dare to reinstall nvidia?

I just installed the hook manually since it wasn’t coming down in updates.

It is a new package, and not a dependency. So to use it you must install nvidia-hook:

sudo pacman -S nvidia-hook

Okay i did that. Now if you want me to test it i am on nvidia-dkms so to reinstall the drivers?

sudo pacman -S nvidia-dkms?

Yes, but without the question mark! :joy:

1 Like

I got the this output?

[ricklinux@eos-xfce ~]$ sudo pacman -S nvidia-dkms
[sudo] password for ricklinux: 
warning: nvidia-dkms-465.27-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-dkms-465.27-1

Total Installed Size:  46.68 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                               [--------------------------------] 100%
(1/1) checking package integrity                             [--------------------------------] 100%
(1/1) loading package files                                  [--------------------------------] 100%
(1/1) checking for file conflicts                            [--------------------------------] 100%
(1/1) checking available disk space                          [--------------------------------] 100%
:: Running pre-transaction hooks...
(1/2) Creating Timeshift snapshot before upgrade...
Another instance of this application is running (PID=687)
Unable to run timeshift-autosnap! Please close Timeshift and try again. Script will now exit...
error: command failed to execute correctly
error: failed to commit transaction (failed to run transaction hooks)
Errors occurred, no packages were upgraded.
[ricklinux@eos-xfce ~]$ 

Okay i ran it again and it seemed to work. Must have been iin the middle of something running.

[ricklinux@eos-xfce ~]$ sudo pacman -S nvidia-dkms
[sudo] password for ricklinux: 
warning: nvidia-dkms-465.27-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-dkms-465.27-1

Total Installed Size:  46.68 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                               [--------------------------------] 100%
(1/1) checking package integrity                             [--------------------------------] 100%
(1/1) loading package files                                  [--------------------------------] 100%
(1/1) checking for file conflicts                            [--------------------------------] 100%
(1/1) checking available disk space                          [--------------------------------] 100%
:: Running pre-transaction hooks...
(1/2) Creating Timeshift snapshot before upgrade...
Using system disk as snapshot device for creating snapshots in BTRFS mode

/dev/dm-0 is mounted at: /run/timeshift/backup, options: rw,relatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=5,subvol=/

Creating new backup...(BTRFS)
Saving to device: /dev/dm-0, mounted at path: /run/timeshift/backup
Created directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-05-01_11-18-20
Created subvolume snapshot: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-05-01_11-18-20/@
Created control file: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-05-01_11-18-20/info.json
BTRFS Snapshot saved successfully (0s)
Tagged snapshot '2021-05-01_11-18-20': ondemand
------------------------------------------------------------------------------

/dev/dm-0 is mounted at: /run/timeshift/backup, options: rw,relatime,compress=zstd:3,ssd,space_cache,autodefrag,subvolid=5,subvol=/

------------------------------------------------------------------------------
Removing snapshot: 2021-04-29_21-20-08
Deleting subvolume: @ (Id:802)
Deleted subvolume: @ (Id:802)

Destroying qgroup: 0/802
Destroyed qgroup: 0/802

Deleted directory: /run/timeshift/backup/timeshift-btrfs/snapshots/2021-04-29_21-20-08
Removed snapshot: 2021-04-29_21-20-08
------------------------------------------------------------------------------
Generating grub configuration file ...
Found theme: /boot/grub/themes/EndeavourOS/theme.txt
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Found Windows Boot Manager on /dev/nvme0n1p2@/efi/Microsoft/Boot/bootmgfw.efi
Detecting snapshots ...
Info: Separate boot partition not detected 
Found snapshot: 2021-05-01 11:18:20 | timeshift-btrfs/snapshots/2021-05-01_11-18-20/@
Found snapshot: 2021-05-01 11:16:02 | timeshift-btrfs/snapshots/2021-05-01_11-16-02/@
Found snapshot: 2021-05-01 11:02:45 | timeshift-btrfs/snapshots/2021-05-01_11-02-45/@
Found snapshot: 2021-05-01 10:54:12 | timeshift-btrfs/snapshots/2021-05-01_10-54-11/@
Found snapshot: 2021-04-30 08:38:07 | timeshift-btrfs/snapshots/2021-04-30_08-38-07/@
Found snapshot: 2021-04-15 19:43:03 | timeshift-btrfs/snapshots/2021-04-15_19-43-03/@
Found snapshot: 2021-04-10 01:00:02 | timeshift-btrfs/snapshots/2021-04-10_01-00-02/@
Found snapshot: 2021-03-19 16:43:29 | timeshift-btrfs/snapshots/2021-03-19_16-54-59/@
Found snapshot: 2021-02-25 23:48:30 | timeshift-btrfs/snapshots/2021-03-19_16-43-28/@
Found 9 snapshot(s)
done
(2/2) Remove upgraded DKMS modules
==> dkms remove --no-depmod -m nvidia -v 465.27 -k 5.11.16-arch1-1
:: Processing package changes...
(1/1) reinstalling nvidia-dkms                               [--------------------------------] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Install DKMS modules
==> dkms install --no-depmod -m nvidia -v 465.27 -k 5.11.16-arch1-1
==> depmod 5.11.16-arch1-1
(3/4) eos-nvidia-fix.hook
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.11.16-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
  -> Running build hook: [filesystems]
  -> Running build hook: [resume]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.11.16-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: qat_4xxx
  -> Running build hook: [filesystems]
  -> Running build hook: [resume]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
(4/4) Inform user to reboot after certain system package upgrades.
Reboot is recommended because of recent core system package upgrades.
[ricklinux@eos-xfce ~]$ 

Looks like timeshift is doing something bad there.
Hopefully it is not messing with your backups.

Edit: the second try looks better.
I don’t use timeshift so I’m not sure why it caused the failure.
Maybe the scheduling of timeshift just was now?

I don’t know what this is?

/dev/dm-0

Must be something with timeshift.

I guess only @2000 could tell me if there was or is a problem but i think it is okay. I think it was running a snapshot at the time? Maybe?

Likely, but as I mentioned, I’m not using timeshift, so I don’t know much about it.

I don’t know much about it either but i have it installed on here. :wink:

1 Like

We already have some threads about backup and timeshift in this forum. Maybe they provide more info about the pros and cons.

Not yet, I have just got wine working with an old game so in the middle of that. Not willing to overlap two projects ,-)

1 Like

I can understand that! :smile:

All worked here, as far as I can see, a reboot worked.

sudo pacman -S nvidia
[sudo] password for simon:
warning: nvidia-465.27-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-465.27-2

Total Installed Size:  23,40 MiB
Net Upgrade Size:       0,00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                                [--------------------------------------------] 100%
(1/1) checking package integrity                                              [--------------------------------------------] 100%
(1/1) loading package files                                                   [--------------------------------------------] 100%
(1/1) checking for file conflicts                                             [--------------------------------------------] 100%
:: Processing package changes...
(1/1) reinstalling nvidia                                                     [--------------------------------------------] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) eos-nvidia-fix.hook
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.11.16-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.11.16-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
(4/4) Inform user to reboot after certain system package upgrades.
Reboot is recommended because of recent core system package upgrades.
1 Like