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?
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
If you use amdgpu driver on Linux is more probably that is not supported by haiku. Driver amdgpu on Linux is for never Radeon cards. For older Linux uses Radeon by default.
We don’t use linux drivers…
I was misunderstood and was my fault. If this person using Linux the drivers he are using on his computers are amdgpu. Normally under haiku the driver Will be radeon_hd which seems to no support his card. That was i am telling… But my fault on omitting some words
Yes, that the card is not supported by radeon_hd was already established. The next part is trying to get the driver to run for the card. Our driver shoulf already do whatever the linux driver does, so the brightness should work if the driver can attach and control the card.