Switching Kernel to another version

Downgrading just the kernel, without also paying attention to the matching nvidia modules, will cause problems.

I think it’s better for me to stay out of here, @mithrial knows much better than me (I’m not even running Manjaro because this is one of the things that … annoyed me).

1 Like

Thanks for the flowers.

Do you actually have an Nvidia GPU? Your inxi suggests otherwise.

yes I do and I am additionally using optimus manager where I am just using integrated gpu for long battery. I tried switching to hybrid mode and even fully nvidia but the brightness issue still persists.
I think I should open up a new thread for this but back to original question why am I not able to downgrade. Can you help me with it ?

Your inxi doesn’t list the nvidia. Which one do you have?

Are you fully uo-to-date?

1 Like

I am pretty sure I am up-to-date. Given nvidia were too upgraded today in front of my eyes.

sudo pacman -S linux61-nvidia                                                                                                                                                                                       1 ✘  13s  
warning: linux61-nvidia-525.85.05-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)           Old Version  New Version  Net Change

extra/linux61-nvidia  525.85.05-1  525.85.05-1    0.00 MiB

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

:: Proceed with installation? [Y/n] 

Why don’t you use pamac or mhwd like you were instructed to?

I used it… the package is already installed. and I use pacman instead of pamac.
I just don’t get how even after using -U the kernel wasn’t downgraded.

To boot with a different kernel, you need to select it in the grub menu.

If you don’t see the grub menu on boot, edit /etc/default/grub, modify these values:

GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=menu

and run:

sudo update-grub
4 Likes

see above - you need to select the other kernel at boot time
you get to see it when you hit ESC shortly after the POST (manufacturer logo or … something)

list what is in the pacman cache:
ls -hl /var/cache/pacman/pkg

filter for files starting with “linux”
ls -hl /var/cache/pacman/pkg/linux*

what you did here:

sudo pacman -U /var/cache/pacman/pkg/linux515-5.15.89-1-x86_64.pkg.tar.zst

was not a downgrade - you simply told pacman to install this specific file from the pacman cache

If you have previous versions of it in the cache
(see the way to list them above)
then you can point pacman to them and install those in the same way.

Be careful especially with nvidia stuff, or you’ll end up not being able to boot.
… never just the kernel, always the matching nvidia modules too …

To summarize the thread, since beginning user says he wants to downgrade the kernel. In reality user wants to switch from kernel 6.x to kernel 5.15.

User has the 5.15 kernel installed and keeps saying he wants to downgrade the kernel. In reality, as user already has kernel 5.15 installed, he just needs to select it in GRUB as said already.

If user would actually downgrade (like in the real definition of the term) his kernel, he would have lot of “out of his skill” issues to manage all the modules (Nvidia, virtualbox, ethernet, and all) dependencies and his system would be broken. User doesn’t want to downgrade his kernel anyway in reality, as already mentioned.

User needs to access his GRUB menu when booting, and select his already installed kernel, then when booted on the wanted kernel, user can remove, using the appropriate tool (mhwd-kernel or Manjaro Settings GUI), his non wanted kernel.

//EDIT: I changed the thread title

2 Likes
ls -hl /var/cache/pacman/pkg/linux*                                                                   ✔ 
-rw-r--r-- 1 root root 101M Dec 22 05:38 /var/cache/pacman/pkg/linux515-5.15.85-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Dec 22 05:38 /var/cache/pacman/pkg/linux515-5.15.85-1-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 101M Jan 19 13:11 /var/cache/pacman/pkg/linux515-5.15.89-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Jan 19 13:11 /var/cache/pacman/pkg/linux515-5.15.89-1-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root  52M Dec 22 05:39 /var/cache/pacman/pkg/linux515-nvidia-525.60.11-6-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Dec 22 05:39 /var/cache/pacman/pkg/linux515-nvidia-525.60.11-6-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root  52M Jan 20 01:39 /var/cache/pacman/pkg/linux515-nvidia-525.85.05-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  310 Jan 20 01:39 /var/cache/pacman/pkg/linux515-nvidia-525.85.05-1-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 264K Dec 22 05:39 /var/cache/pacman/pkg/linux515-virtualbox-host-modules-7.0.4-7-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Dec 22 05:39 /var/cache/pacman/pkg/linux515-virtualbox-host-modules-7.0.4-7-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 263K Jan 19 13:12 /var/cache/pacman/pkg/linux515-virtualbox-host-modules-7.0.6-2-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Jan 19 13:12 /var/cache/pacman/pkg/linux515-virtualbox-host-modules-7.0.6-2-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 166M Dec 22 05:38 /var/cache/pacman/pkg/linux60-6.0.15-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Dec 22 05:38 /var/cache/pacman/pkg/linux60-6.0.15-1-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 166M Jan 18 16:30 /var/cache/pacman/pkg/linux60-6.0.19-3-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Jan 18 16:30 /var/cache/pacman/pkg/linux60-6.0.19-3-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root  52M Dec 22 05:39 /var/cache/pacman/pkg/linux60-nvidia-525.60.11-6-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Dec 22 05:39 /var/cache/pacman/pkg/linux60-nvidia-525.60.11-6-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root  52M Jan 20 01:39 /var/cache/pacman/pkg/linux60-nvidia-525.85.05-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  310 Jan 20 01:39 /var/cache/pacman/pkg/linux60-nvidia-525.85.05-1-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 294K Dec 22 05:39 /var/cache/pacman/pkg/linux60-virtualbox-host-modules-7.0.4-7-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Dec 22 05:39 /var/cache/pacman/pkg/linux60-virtualbox-host-modules-7.0.4-7-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 293K Jan 18 16:30 /var/cache/pacman/pkg/linux60-virtualbox-host-modules-7.0.6-2-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Jan 18 16:30 /var/cache/pacman/pkg/linux60-virtualbox-host-modules-7.0.6-2-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 166M Dec 22 05:54 /var/cache/pacman/pkg/linux61-6.1.1-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Dec 22 05:54 /var/cache/pacman/pkg/linux61-6.1.1-1-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 167M Jan 19 13:11 /var/cache/pacman/pkg/linux61-6.1.7-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Jan 19 13:11 /var/cache/pacman/pkg/linux61-6.1.7-1-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root  52M Dec 22 05:54 /var/cache/pacman/pkg/linux61-nvidia-525.60.11-2-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Dec 22 05:54 /var/cache/pacman/pkg/linux61-nvidia-525.60.11-2-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root  52M Jan 20 01:39 /var/cache/pacman/pkg/linux61-nvidia-525.85.05-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  310 Jan 20 01:39 /var/cache/pacman/pkg/linux61-nvidia-525.85.05-1-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 294K Dec 22 05:54 /var/cache/pacman/pkg/linux61-virtualbox-host-modules-7.0.4-2-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Dec 22 05:54 /var/cache/pacman/pkg/linux61-virtualbox-host-modules-7.0.4-2-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 294K Jan 19 13:12 /var/cache/pacman/pkg/linux61-virtualbox-host-modules-7.0.6-3-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  438 Jan 19 13:12 /var/cache/pacman/pkg/linux61-virtualbox-host-modules-7.0.6-3-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 1.2M Aug  2 23:29 /var/cache/pacman/pkg/linux-api-headers-5.18.15-1-any.pkg.tar.zst
-rw-r--r-- 1 root root  215 Aug  2 23:29 /var/cache/pacman/pkg/linux-api-headers-5.18.15-1-any.pkg.tar.zst.sig
-rw-r--r-- 1 root root 143M Dec 16 21:06 /var/cache/pacman/pkg/linux-firmware-20221214.f3c283e-1-any.pkg.tar.zst
-rw-r--r-- 1 root root  310 Dec 16 21:06 /var/cache/pacman/pkg/linux-firmware-20221214.f3c283e-1-any.pkg.tar.zst.sig
-rw-r--r-- 1 root root 149M Jan 20 20:23 /var/cache/pacman/pkg/linux-firmware-20230117.7e4f0ed-1-any.pkg.tar.zst
-rw-r--r-- 1 root root  310 Jan 20 20:23 /var/cache/pacman/pkg/linux-firmware-20230117.7e4f0ed-1-any.pkg.tar.zst.sig
-rw-r--r-- 1 root root  36K Dec 16 21:06 /var/cache/pacman/pkg/linux-firmware-whence-20221214.f3c283e-1-any.pkg.tar.zst
-rw-r--r-- 1 root root  310 Dec 16 21:06 /var/cache/pacman/pkg/linux-firmware-whence-20221214.f3c283e-1-any.pkg.tar.zst.sig
-rw-r--r-- 1 root root  36K Jan 20 20:24 /var/cache/pacman/pkg/linux-firmware-whence-20230117.7e4f0ed-1-any.pkg.tar.zst
-rw-r--r-- 1 root root  310 Jan 20 20:24 /var/cache/pacman/pkg/linux-firmware-whence-20230117.7e4f0ed-1-any.pkg.tar.zst.sig

Dude, you became obsessed with weird useless kernel downgrades.

Please stick to your thread of your actual problem (the brightness issue).

Like @omano said - and others before:
what you actually want is to select the 515 kernel at the grub prompt and boot using that.

It is already installed - you just need to use it.

This is what you actually want - instead of “downgrading”!

If you insist on downgrading - and you manage to do it - you still have to the choose that kernel at boot time.
You will be in the exact same situation you are in now.
Just with the added “benefit” of having done a lot more work and the much increased potential for this to go wrong. :sunglasses:

… the list you posted shows what is in your pacman cache, what you could use.
You know the currently installed version - if you insist on installing an older one … look at the version numbers.
I demonstrated how you can look for possible candidates in your cache.
I’ll not make the decision for you.

1 Like

Couldn’t he remove all the other kernels and let 5.15 be the only one installed?

pamac remove -co linux60 linux61

It would be a solution to a non existing problem - and one can’t remove the running kernel, which is the 6.1.7.1 version.
IMO

Oh right, I apologize.

not to me - what for? (rhetorical) :slightly_smiling_face:

You actually can :nerd_face:, I made a post about it and to my knowledge it hasn’t been fixed in the tool, I didn’t even receive an answer about the issue officially being an issue or intended (which I highly doubt as you can have one running kernel, and be able to remove it following my instruction :crazy_face: ).

//EDIT: apparently Unbeknownst selected the Solution so I guess he eventually went to the GRUB menu.

The question is what happens if you actually go through with it. I would guess nothing bad for your current session.

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