Amd stoney ( radeon r2/r3/r4 ) brightness

brightness is not available.
laptop with integrated graphics [amd stoney (radeon r2/r3/r4)]
Is there any workarounds to solve this?
If none, where can i look to port existing driver for this specifc feature ?
X512 has radeonGfx. will it work? But, It doesn’t compile on haiku r1 beta5

Hi Muzraf,
I added support for brightness in the readon_hd driver with @Anarchos.

Does your card use this or the radeon driver?

1 Like

I don’t know.
I think it is framebuffer.
maybe these could help.
listdev: listdev
listimage kernel: listimage kernel

Check the screen prefererences, if it is framebuffer and the vesa way to set brightness doesn’t work there is not much we can do however

can i port this feature from linux? if so, can you please tell me where should i look?

First check what driver you are using in the screen preferences.

Framebuffer Driver (Framebuffer)

In that case,
first you’d have to make the radeon or radeon_hd driver to support your card. I don’t know which one is relevant dor this card.

Afterwards brightness might “just” work. In linux you can check the path if the brightness file to figure out which driver it loaded.

In Linux,

lspci -k | grep -A3 VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] (rev ea)
	Subsystem: Lenovo Stoney [Radeon R2/R3/R4/R5 Graphics]
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

It just says amdgpu.
the brightness file is located at

/sys/class/backlight/amdgpu_bl0/brightness