You are not logged in.
I followed the instructions to switch from radeon to amdgpu in a MacbookPro11,5, but the display goes black on boot and only a secondary monitor works.
The errors at boot read:
$ journalctl -p 3 -xb
ACPI Error: Needed type [Reference], found [Integer] (____ptrval____) (2023033>
ACPI Error: AE_AML_OPERAND_TYPE, While resolving operands for [Store] (2023033>
ACPI Error: Aborting method \_PR.CPU0._PDC due to previous error (AE_AML_OPERA>
kfd kfd: amdgpu: VERDE not supported in kfd
Not sure if those ACPI errors have anything to do with it.
Some people claim a similar problem solved by switching on the backlight manually via "echo 1 > /sys/class/backlight/amdgpu_bl0/brightness", but that file/folder does not exist in my system.
Others add kernel parameter "acpi_backlight=native", but this didn't make a change on me either.
Any idea how to diagnose this problem further?
$ sudo dmesg | grep amdgpu
[ 0.000000] Command line: root=PARTLABEL=root rw mitigations=off amdgpu.ppfeaturemask=0xffffffff radeon.si_support=0 amdgpu.si_support=1 acpi_mask_gpe=0x17 acpi_backlight=native initrd=\initramfs-linux.img
[ 0.045800] Kernel command line: root=PARTLABEL=root rw mitigations=off amdgpu.ppfeaturemask=0xffffffff radeon.si_support=0 amdgpu.si_support=1 acpi_mask_gpe=0x17 acpi_backlight=native initrd=\initramfs-linux.img
[ 2.794568] [drm] amdgpu kernel modesetting enabled.
[ 2.794789] amdgpu: CRAT table not found
[ 2.794792] amdgpu: Virtual CRAT table created for CPU
[ 2.794803] amdgpu: Topology: Add CPU node
[ 2.795070] amdgpu 0000:01:00.0: amdgpu: Fetched VBIOS from VFCT
[ 2.795073] amdgpu: ATOM BIOS: 113-C567A1-006
[ 2.795080] kfd kfd: amdgpu: VERDE not supported in kfd
[ 2.824474] amdgpu 0000:01:00.0: vgaarb: deactivate vga console
[ 2.824480] amdgpu 0000:01:00.0: amdgpu: Trusted Memory Zone (TMZ) feature not supported
[ 2.825538] amdgpu 0000:01:00.0: amdgpu: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF (2048M used)
[ 2.825541] amdgpu 0000:01:00.0: amdgpu: GART: 1024M 0x000000FF00000000 - 0x000000FF3FFFFFFF
[ 2.825738] [drm] amdgpu: 2048M of VRAM memory ready
[ 2.825740] [drm] amdgpu: 7936M of GTT memory ready.
[ 2.826277] amdgpu 0000:01:00.0: amdgpu: PCIE GART of 1024M enabled (table at 0x0000000001400000).
[ 2.827201] [drm] amdgpu: dpm initialized
[ 2.827428] [drm] amdgpu atom DIG backlight initialized
[ 3.326407] amdgpu 0000:01:00.0: amdgpu: SE 1, SH per SE 2, CU per SH 5, active_cu_number 10
[ 3.595307] [drm] Initialized amdgpu 3.52.0 20150101 for 0000:01:00.0 on minor 1
[ 4.217019] fbcon: amdgpudrmfb (fb0) is primary device
[ 5.284087] amdgpu 0000:01:00.0: [drm] fb0: amdgpudrmfb frame buffer device
[ 7.019929] amdgpu 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 14.163785] amdgpu 0000:01:00.0: amdgpu: Disabling VM faults because of PRT request!
The discrete GPU was activated by spoof_osx_version in REFind.
$ glxinfo | grep "OpenGL renderer" && DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD Radeon R9 M370X (verde, LLVM 15.0.7, DRM 3.52, 6.4.12-arch1-1)
OpenGL renderer string: Mesa Intel(R) Iris(R) Pro Graphics P5200 (HSW GT3)
$ cat /proc/cmdline
root=PARTLABEL=root rw mitigations=off amdgpu.ppfeaturemask=0xffffffff radeon.si_support=0 amdgpu.si_support=1 acpi_mask_gpe=0x17 acpi_backlight=native initrd=\initramfs-linux.img
The radeon module is blacklisted and lsmod shows no signs of it.
Any suggestions will be gladly followed and highly appreciated!
Offline
Sorted out.
Once the kernel parameter is set "acpi_backlight=native", the kernel updated and a reboot, the file '/sys/class/backlight/amdgpu_bl1/brightness' comes to exist. Setting "echo 1 > /sys/class/backlight/amdgpu_bl1/brightness" then works and brings the display to life
Brightness control then didn't work, until I downgraded to kernel 6.1LTS-RT.
In summary, a combination of both reddit posts did it. May this serve someone else or myself in the future.
Offline