Can't use my dedicated gpu

I think I have to download kernel 5.4 from what I have searched so can anyone tell me how to download kernel 5.4

I don’t think that is a good idea, but this is the way if you would like to do it: Downgrading packages - ArchWiki You can also use the downgrade utility.

It would be better to switch to the LTS kernel instead, so your kernel can be up to date and in sync with your other packages. The LTS kernel runs a 6.1 version so it will probably work if your issue is with 6.5.

sudo pacman -S linux-lts linux-lts-headers
2 Likes

when i write this command it shows an error
sudo pacman -S linux-lts linux-lts-headers
warning: database file for ‘garuda’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘core’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘extra’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘community’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘multilib’ does not exist (use ‘-Sy’ to download)
warning: database file for ‘chaotic-aur’ does not exist (use ‘-Sy’ to download)
error: target not found: linux-lts
error: target not found: linux-lts-headers
and i don t know how to downgrade from the link u send me
but u said there is a downgrade utility where it is and how to use it?

nevermind i fixed it by adding a y to -Sy
but where is the downgrade utility?

Probably something went wrong restoring a snapshot.
Try

update remote fix

Then install the linux-lts.

1 Like

im installing sudo pacman -S linux-lts linux-lts-headers
the problem was the y was missing in -Sy

This command didn’t work
sudo pacman -S linux-lts linux-lts-headers
So the only choicei have is kernel 5.4 but can anyone tell me how to download it or how to downgrade

Please, post the input and output from

sudo pacman -S linux-lts linux-lts-headers

as text.

It is -Sy not -S

Update first your system with garuda-update.

there is an error at the end

sudo pacman -Sy linux-lts linux-lts-headers
:: Synchronizing package databases...
garuda                                 95.7 KiB  82.0 KiB/s 00:01 [------------------------------------] 100%
core                                  126.9 KiB  69.8 KiB/s 00:02 [------------------------------------] 100%
extra                                   8.2 MiB  1658 KiB/s 00:05 [------------------------------------] 100%
community                              45.0   B  57.0   B/s 00:01 [------------------------------------] 100%
multilib                              141.2 KiB  68.5 KiB/s 00:02 [------------------------------------] 100%
chaotic-aur                             2.6 MiB  1141 KiB/s 00:02 [------------------------------------] 100%
resolving dependencies...
looking for conflicting packages...

Packages (2) linux-lts-6.1.55-1  linux-lts-headers-6.1.55-1

Total Download Size:   142.86 MiB
Total Installed Size:  264.08 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
linux-lts-headers-6.1.55-1-x86_64      26.7 MiB  1123 KiB/s 00:24 [------------------------------------] 100%
linux-lts-6.1.55-1-x86_64             116.1 MiB  2.03 MiB/s 00:57 [------------------------------------] 100%
Total (2/2)                           142.9 MiB  2.49 MiB/s 00:57 [------------------------------------] 100%
(2/2) checking keys in keyring                                     [------------------------------------] 100%
(2/2) checking package integrity                                   [------------------------------------] 100%
(2/2) loading package files                                        [------------------------------------] 100%
(2/2) checking for file conflicts                                  [------------------------------------] 100%
(2/2) checking available disk space                                [------------------------------------] 100%
:: Running pre-transaction hooks...
(1/2) Performing snapper pre snapshots for the following configurations...
IO Error (subvolume is not a btrfs subvolume).
==> root:
(2/2) Saving Linux kernel modules...
:: Processing package changes...
(1/2) installing linux-lts                                         [------------------------------------] 100%
Optional dependencies for linux-lts
wireless-regdb: to set the correct wireless channels of your country [installed]
linux-firmware: firmware images needed for some devices [installed]
(2/2) installing linux-lts-headers                                 [------------------------------------] 100%
:: Running post-transaction hooks...
( 1/11) Restoring Linux kernel modules...
++ uname -r
+ KVER=6.2.13-zen-1-zen
+ test -e /usr/lib/modules/backup/6.2.13-zen-1-zen
+ rsync -AHXal --ignore-existing /usr/lib/modules/backup/6.2.13-zen-1-zen /usr/lib/modules/
+ rm -rf /usr/lib/modules/backup
( 2/11) Arming ConditionNeedsUpdate...
( 3/11) Updating module dependencies...
( 4/11) Updating initramfs...
:: Building initramfs for linux-lts (6.1.55-1-lts)
:: Building fallback initramfs for linux-lts (6.1.55-1-lts)
( 5/11) Updating linux initcpios...
( 6/11) Foreign/AUR package notification
exa 0.10.1-7
firedragon-extension-xdm-browser-monitor 2.2-1.1
libsidplay 1.36.59-10
mangohud-common 0.6.9.1-1
networkmanager-fortisslvpn 1.4.0-2
python-xdg 6.0.0-2
qgpgme 1.20.0-1
youtube-dl 2021.12.17-1
( 7/11) Orphaned package notification...
=> No orphans found.
( 8/11) Checking for .pacnew and .pacsave files...
( 9/11) GRUB update after transactions...
/usr/bin/grub-probe: error: failed to get canonical path of `overlay'.
error: command failed to execute correctly
(10/11) Performing snapper post snapshots for the following configurations...
Invalid snapshot '--type'.
==> root:

between why will i run garuda-update?
i am using garuda live from my usb trying to fix my boot system

I read this, you must chroot your system and install the kernel.

paste what in chroot?
nvm i know

is there an error at the end?

sudo pacman -S linux-lts linux-lts-headers
warning: linux-lts-6.1.55-1 is up to date -- reinstalling
warning: linux-lts-headers-6.1.55-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) linux-lts-6.1.55-1  linux-lts-headers-6.1.55-1

Total Download Size:   142.86 MiB
Total Installed Size:  264.08 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
linux-lts-headers-6.1.55-1-x86_64      26.7 MiB  1816 KiB/s 00:15 [------------------------------------] 100%
linux-lts-6.1.55-1-x86_64             116.1 MiB  2.49 MiB/s 00:47 [------------------------------------] 100%
Total (2/2)                           142.9 MiB  3.05 MiB/s 00:47 [------------------------------------] 100%
(2/2) checking keys in keyring                                     [------------------------------------] 100%
(2/2) checking package integrity                                   [------------------------------------] 100%
(2/2) loading package files                                        [------------------------------------] 100%
(2/2) checking for file conflicts                                  [------------------------------------] 100%
(2/2) checking available disk space                                [------------------------------------] 100%
:: Running pre-transaction hooks...
(1/3) Performing snapper pre snapshots for the following configurations...
==> root: 77
(2/3) Saving Linux kernel modules...
(3/3) Remove upgraded DKMS modules
==> dkms remove --no-depmod nvidia/390.157 -k 6.1.55-1-lts
:: Processing package changes...
(1/2) reinstalling linux-lts                                       [------------------------------------] 100%
(2/2) reinstalling linux-lts-headers                               [------------------------------------] 100%
:: Running post-transaction hooks...
( 1/12) Restoring Linux kernel modules...
++ uname -r
+ KVER=6.2.13-zen-1-zen
+ test -e /usr/lib/modules/backup/6.2.13-zen-1-zen
+ rm -rf /usr/lib/modules/backup
( 2/12) Arming ConditionNeedsUpdate...
( 3/12) Updating module dependencies...
( 4/12) Install DKMS modules
==> dkms install --no-depmod nvidia/390.157 -k 6.1.55-1-lts
==> depmod 6.1.55-1-lts
( 5/12) Updating initramfs...
:: Building initramfs for linux-lts (6.1.55-1-lts)
:: Building fallback initramfs for linux-lts (6.1.55-1-lts)
( 6/12) Updating linux initcpios...
( 7/12) Refreshing PackageKit...
Error connecting: Could not connect: No such file or directory
error: command failed to execute correctly
( 8/12) Foreign/AUR package notification
firedragon-extension-xdm-browser-monitor 2.2-1.1
libsidplay 1.36.59-10
youtube-dl 2021.12.17-1
( 9/12) Orphaned package notification...
gptfdisk 1.0.9-2
kjs 5.110.0-1
libindicator-gtk3 12.10.1-10
libsidplay 1.36.59-10
lua52 5.2.4-6
lua53 5.3.6-2
nlohmann-json 3.11.2-2
openfortivpn 1.20.5-1
python-future 0.18.3-2
re2 1:20230901-2
sysfsutils 2.1.1-1
tinycompress 1.2.8-2
(10/12) Checking for .pacnew and .pacsave files...
.pac* files found:
/etc/shells.pacnew
/etc/pamac.conf.pacnew
/etc/pacman.conf.pacnew
/etc/pacman.d/mirrorlist.pacnew
Please check and merge
(11/12) Performing snapper post snapshots for the following configurations...
fatal library error, lookup self
==> root: 78

You should not run pacman -Sy [package] because you will end up with a partially upgraded system. If you sync with the repos (with -y) you should immediately update all packages (with u). See here:

System maintenance - ArchWiki

Partial upgrades are unsupported

Arch Linux is a rolling release distribution. That means when new library versions are pushed to the repositories, the developers and Trusted Users rebuild all the packages in the repositories that need to be rebuilt against the libraries. For example, if two packages depend on the same library, upgrading only one package might also upgrade the library (as a dependency), which might then break the other package which depends on an older version of the library.

That is why partial upgrades are not supported. Do not use:

  • pacman -Sy package
  • pacman -Sy followed by pacman -S package (Note the absence of -Su in the installation of the package.)
  • pacman -Syuw (Note that pacman -Syuw does imply the same risks like pacman -Sy, as it will update the pacman sync database without installing the newer packages.)

When refreshing the package database, always do a full upgrade with pacman -Syu. Note that if pacman -Syu does not perform the upgrade because of an error, the end result is the same as running pacman -Sy. Therefore, the error must be resolved and the upgrade operation completed as soon as possible.

The correct way to install these packages if you need to sync with the repos would have been:

sudo pacman -Syu linux-lts linux-lts-headers

At this point you should bring your system fully up to date with this command:

garuda-update

Installing the kernel doesn’t immediately switch you to that kernel, it only makes it available. To boot with the kernel, you need to restart your computer and find the LTS kernel in the advanced boot options in the Grub menu.

Before you reboot you should bring your system fully up to date. Until you do, your computer could be essentially broken.

2 Likes

well thx for your information about pacman -Syu

but why do i have to download 3gb on my live usb?

It sounds like there has been a misunderstanding. You should not be installing packages in the live environment, unless you have set up a chroot.

wait what?
so i have to use all the commands in chroot?
im confused :-:

The live environment is not persistent, and isn’t directly connected to your actual system unless you force it to be through chroot.

It looks like you already have the LTS kernel installed anyway, according to your inxi:

Try booting the LTS kernel instead of Zen.

i did like 2 times

and i tried hardened but still
so what do i do?