Switching Kernel to another version

How can I share my system information or any information ?
Please tell me the command for it

Please tell us the problem you are trying to solve.
There can’t be a solution when there is no problem. :nerd_face:

The command would be:
inxi -Fazy
for example

I want to downgrade my kernel to lts version forever.
here is inix -Fazy

inxi -Fazy                                                                                            ✔ 
System:
  Kernel: 6.1.7-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=3dfdcc41-9c4a-41af-ac86-482f5873436b rw quiet
    udev.log_priority=3 acpi_backlight=video
  Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm:
    1: LightDM v: 1.32.0 note: stopped 2: SDDM Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 82B1 v: Lenovo Legion 5 15ARH05H
    serial: <superuser required> Chassis: type: 10 v: Lenovo Legion 5 15ARH05H
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN
    serial: <superuser required> UEFI: LENOVO v: FSCN14WW date: 08/26/2020
Battery:
  ID-1: BAT0 charge: 50.4 Wh (100.0%) condition: 50.4/60.0 Wh (84.1%)
    volts: 17.2 min: 15.4 model: Celxpert L19C4PC0 type: Li-poly serial: <filter>
    status: full cycles: 599
CPU:
  Info: model: AMD Ryzen 7 4800H with Radeon Graphics bits: 64 type: MT MCP
    arch: Zen 2 gen: 3 level: v3 note: check built: 2020-22
    process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x60 (96) stepping: 1
    microcode: 0x8600104
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
    desc: 2x4 MiB
  Speed (MHz): avg: 2716 high: 2900 min/max: 1400/2900 boost: enabled
    scaling: driver: acpi-cpufreq governor: performance cores: 1: 2900 2: 2049
    3: 2900 4: 2900 5: 2900 6: 2900 7: 1724 8: 2900 9: 2900 10: 2900 11: 1992
    12: 2900 13: 2900 14: 2900 15: 2900 16: 2900 bogomips: 92659
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5.1
    code: Vega-2 process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 4
    speed: 16 GT/s lanes: 16 ports: active: eDP-1 empty: none bus-ID: 05:00.0
    chip-ID: 1002:1636 class-ID: 0300 temp: 34.0 C
  Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo
    bus-ID: 3-3:2 chip-ID: 13d3:56ff class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.6 compositor: kwin_x11 driver: X:
    loaded: modesetting dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: LG Display 0x0657 built: 2019 res: 1920x1080
    hz: 144 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: max: 1920x1080 min: 640x480
  API: OpenGL v: 4.6 Mesa 22.3.3 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.7 DRM 3.49 6.1.7-1-MANJARO) direct render: Yes
Audio:
  Device-1: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A
    alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x,
    snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir,
    snd_sof_amd_rembrandt pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 05:00.5
    chip-ID: 1022:15e2 class-ID: 0480
  Device-2: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 05:00.6
    chip-ID: 1022:15e3 class-ID: 0403
  Sound API: ALSA v: k6.1.7-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.21 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.64 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 2000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp4s0 state: up mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 5-3:3
    chip-ID: 8087:0029 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 157.44 GiB (33.0%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix
    model: HFS512GD9TNI-L2A0B size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 11010C10 temp: 31.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
    used: 157.44 GiB (33.6%) fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p2
    maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 57.1 C mobo: N/A gpu: amdgpu temp: 34.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 341 Uptime: 6m wakeups: 12639 Memory: 15 GiB
  used: 2.77 GiB (18.5%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: 1666
  pm: pacman pkgs: 1661 libs: 420 tools: pamac,yay pm: flatpak pkgs: 5
  Shell: Zsh v: 5.9 running-in: terminator inxi: 3.3.24

It’s not a downgrade - it’s just a matter of installing another kernel so you’ll be able to choose which one you want to use.
You install the kernel through the Manjaro settings manager - and then choose it at the Grub prompt.

2 Likes

That’s a long time.

The latest current LTS is 5.15: pamac install linux515

(or with mhwd: mhwd-kernel --install linux515)

However, it will be EOL in October this year: The Linux Kernel Archives - Releases

At least then you have to update.

But which problem do you actually have that you think you need 5.15?

just the brightness issue !!
I think the non-lts which gets new releases in short time.
I would love to have none of these issue for a long time.
I am just a basic manjaro user and don’t really know how to deal with stuff.

I tried this out but it didn’t downgrade…

It is not a downgrade.

What is the output?

Can’t you use the GUI? - it may be easier for you.

There seems to be a dependency issue, I guess, so the terminal output might be important.

sudo mhwd-kernel --install linux515                                                                   ✔ 
[sudo] password for robert: 
:: Synchronizing package databases...
 core                                      161.7 KiB   259 KiB/s 00:01 [---------------------------------------] 100%
 extra                                    1857.8 KiB  2.26 MiB/s 00:01 [---------------------------------------] 100%
 community                                   7.5 MiB  3.22 MiB/s 00:02 [---------------------------------------] 100%
 multilib                                  169.6 KiB   404 KiB/s 00:00 [---------------------------------------] 100%
warning: linux515-5.15.89-1 is up to date -- reinstalling
warning: linux515-nvidia-525.85.05-1 is up to date -- reinstalling
warning: linux515-virtualbox-host-modules-7.0.6-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (3)                             Old Version  New Version  Net Change

core/linux515                           5.15.89-1    5.15.89-1      0.00 MiB
extra/linux515-nvidia                   525.85.05-1  525.85.05-1    0.00 MiB
extra/linux515-virtualbox-host-modules  7.0.6-2      7.0.6-2        0.00 MiB

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

:: Proceed with installation? [Y/n] 
(3/3) checking keys in keyring                                         [---------------------------------------] 100%
(3/3) checking package integrity                                       [---------------------------------------] 100%
(3/3) loading package files                                            [---------------------------------------] 100%
(3/3) checking for file conflicts                                      [---------------------------------------] 100%
(3/3) checking available disk space                                    [---------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/3) reinstalling linux515                                            [---------------------------------------] 100%
(2/3) reinstalling linux515-nvidia                                     [---------------------------------------] 100%
(3/3) reinstalling linux515-virtualbox-host-modules                    [---------------------------------------] 100%
In order to use the new version, reload all virtualbox modules manually.
:: Running post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Updating module dependencies...
(3/6) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.89-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.89-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla2xxx
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> Image generation successful
(4/6) Updating Kernel initcpios for Nvidia-DRM...
(5/6) Refreshing PackageKit...
(6/6) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-6.1-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.1-x86_64.img
Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
Found linux image: /boot/vmlinuz-6.0-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.0-x86_64.img
Found initrd fallback image: /boot/initramfs-6.0-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

If that is not how to downgrade then what is it ?
I think I will open a issue on brightness because this screen is killing my eye.

It is you, re-installing a kernel you already had.

Don’t know where you described that issue.

Sorry for that but I am just trying to downgrade my kernel and nothing else

I think I mentioned it above … anyways I just wanted to know the command of how to downgrade the kernel !!

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