On Fri, 29 Oct 2021, RVP wrote:
On Fri, 29 Oct 2021, Riza Dindir wrote:In the source file "sbin/wsconsctl/display.c" there are options for the backlight and the brightness that could be used with wsconsctl. So it might be applicable in theory. If that would be possible, I could change the brightness of my laptop screen as well.Those don't work yet on amd64+DRM, unfortunately...
Well, it needn't be that bleak: 1. If you've got your Radeon DRM driver working, then you can hack the driver and call its BL-control functions like this (for Intel GPUs): https://mail-index.netbsd.org/current-users/2021/03/11/msg040446.html 2. Poke the PCI HW directly like sysutils/intel-backlight does for (again) Intel cards. Look through its source and also: sys/external/bsd/drm2/dist/drm/radeon/radeon_atombios_encoders.c sys/external/bsd/drm2/dist/drm/radeon/radeon_legacy_encoders.c Hope these help... -RVP