Amdgpu and radeon Kernel Modules

Yeah kinda of a mess, but it’s worth it I guess

to check if that was correct:

type this:

cat /etc/modprobe.d/amdgpu.conf
cat /etc/modprobe.d/radeon.conf

This will show the content of the files.

I removed the residual files but when running

sudo mkinitcpio -P

The errors about 5.7 still appeared.

This is the output for amdgpu.conf:

options amdgpu si_support=1
options amdgpu cik_support=1

And this is for radeon.conf:

options radeon si_support=0
options radeon cik_support=0

1 Like

That is correct.

But what about the errors about kernel 5.7 when I ran:

sudo mkinitcpio -P

I tried this command twice and the error persisted even when removing residual files.

What shows…

mhwd-kernel -li

This

The following kernels are installed in your system:

  • linux419
  • linux510
  • linux54
  • linux59

5.10 is not showing and I am runinng it

Also delete the presets for linux57 in: /etc/mkinitcpio.d/ :wink:

Ok I reboot and everything went fine, however during the advanced options in GRUB there was a option to select 5.7.
Maybe a update-grub should work?

Also check if really linux57 is not listed here:

pamac list --installed | egrep "linux[0-9]{2,3}"

Yeah that should update the menu.

Here’s the output for pacmac list:

linux419 4.19.163-1 core 127,0 MB
linux419-virtualbox-host-modules 6.1.16-11 extra 153,8 kB
linux510 5.10.2-2 core 156,9 MB
linux510-virtualbox-host-modules 6.1.16-8 extra 156,3 kB
linux54 5.4.85-1 core 147,0 MB
linux54-virtualbox-host-modules 6.1.16-13 extra 161,6 kB
linux59 5.9.16-1 core 162,5 MB
linux59-virtualbox-host-modules 6.1.16-14 extra 163,5 kB

Also is it safe to remove the 5.7 files from /etc/mkinitcpio.d/

Normally yes, but for whatever reason, idk, it has not been deleted when linux57 has been removed.

And it loaded the amdgpu module?

inxi -Gazy

The output form inxi -Gazy:

Graphics:
Device-1: AMD Cape Verde PRO [Radeon HD 7750/8740 / R7 250E]
vendor: PC Partner Limited driver: amdgpu v: kernel alternate: radeon
bus ID: 01:00.0 chip ID: 1002:683f
Display: x11 server: X.Org 1.20.10 driver: amdgpu,ati
unloaded: modesetting,radeon alternate: fbdev,vesa display ID: :0.0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: DVI-I-0 res: 1920x1080 hz: 60 dpi: 102
size: 477x268mm (18.8x10.6") diag: 547mm (21.5")
OpenGL: renderer: AMD Radeon HD 7700 Series (VERDE DRM 3.40.0
5.10.2-2-MANJARO LLVM 11.0.0)
v: 4.6 Mesa 20.3.1 direct render: Yes

Normally yes, but for whatever reason, idk, it has not been deleted when linux57 has been removed.

Will it cause any issues if I just leave it there?

After you removed the residual files with 5.7 in the filename from /etc/mkinitcpio.d/ (yes it’s safe) you should run

sudo mkinitcpio -P
sudo update-grub

and reboot.

I guess you removed the kernel 5.7 after it was removed from list of maintained kernels or with pacman command instead of (what is recommended) using mhwd-kernel or the GUI tool in Manjaro setting manager. That’s most likely the reason for the residual files.

I don’t remember how I removed kernel 5.7 but the thing is that now when I ran sudo mkinitcpio -P no error was found, but even when I updated grub kernel 5.7 still was there it even recognized the kernel image don’t know how.
Also there is no option to download kernel 5.7 on the GUI anymore.
Oh now I realized that I forgot to remove vmlinuz-5.7-x86_64, I have to remove this too right?
Sorry I am a noob at this things still.

Because it’s not maintained any longer. First, kernels are marked EOL at the end of their “life” but then they get non-maintained. Everything to be found in #announcements. You should remove them before they get non-maintained.

Oh ok thanks, also I edited my response because of this:

Oh now I realized that I forgot to remove vmlinuz-5.7-x86_64, I have to remove this too right?
Sorry I am a noob at this things still.

Because it’s not maintained any longer. First, kernels are marked EOL at the end of their “life” but then they get non-maintained. Everything to be found in #announcements. You should remove them before they get non-maintained.

This includes 5.9?

Yes. 5.9 is EOL already. So, if 5.10 is running fine for you it’s not a bad idea to remove 5.9. Nevertheless, choose at least one other still maintained kernel in addition to be installed, e.g. 5.4 or 4.19 to have a backup kernel. This will be indicated in Advance Optons on grub’s boot menu.

I already have both 5.4 and 4.19 as backups so yeah.
Anyway thanks for the help, greatly appreciated! :slightly_smiling_face: