Add backlight function to linuxkpi.
Graphics drivers expose the backlight of the panel directly so allow them to use the backlight subsystem so
user can use backlight(8) to configure them.
Sponsored-by: The FreeBSD Foundation.
Paths
| Differential D26253 Authored by manu on Aug 31 2020, 2:56 PM.
Tags None Referenced Files
Details
Summary Add backlight function to linuxkpi. Sponsored-by: The FreeBSD Foundation. Test Plan Tested using https://github.com/freebsd/drm-kmod/tree/backlight on intel and amd laptop.
Diff Detail
Event TimelineHerald added a subscriber: imp. · View Herald TranscriptAug 31 2020, 2:56 PM2020-08-31 14:56:09 (UTC+0) Comment Actions
See https://reviews.freebsd.org/D26251
Yes I think so, I'll not commit before making a PR (if required).
This revision is now accepted and ready to land.Aug 31 2020, 4:09 PM2020-08-31 16:09:44 (UTC+0)
This revision now requires review to proceed.Sep 3 2020, 12:35 PM2020-09-03 12:35:32 (UTC+0)
• hselasky added inline comments.
This revision is now accepted and ready to land.Sep 3 2020, 12:44 PM2020-09-03 12:44:22 (UTC+0) This revision now requires review to proceed.Sep 3 2020, 12:45 PM2020-09-03 12:45:34 (UTC+0) This revision is now accepted and ready to land.Sep 3 2020, 12:51 PM2020-09-03 12:51:29 (UTC+0) This revision now requires review to proceed.Sep 16 2020, 4:33 PM2020-09-16 16:33:06 (UTC+0) This revision is now accepted and ready to land.Sep 16 2020, 5:17 PM2020-09-16 17:17:13 (UTC+0) Herald added a subscriber: linuxkpi. · View Herald TranscriptOct 5 2020, 2:14 PM2020-10-05 14:14:24 (UTC+0)
Revision Contents
Diff 76405 sys/compat/linuxkpi/common/include/linux/backlight.h
sys/compat/linuxkpi/common/include/linux/device.h
sys/compat/linuxkpi/common/src/linux_kmod.c
sys/compat/linuxkpi/common/src/linux_pci.c
|
Note that this may cause a subtle change in behaviour if either the ports tree is not present on a system or if javavmwrapper is otherwise instructed to use it's own internal logic (e.g. if JAVAVM_FALLBACK_ONLY is set).
This will depend on what versions the user has installed. This is actually more of a bug in javavmwrapper which I'll look into (it doesn't understand JDK 13 yet). It also doesn't have a default version (e.g. 8) and uses the "newest" one if no version is supplied. If a version is supplied then it uses the newest version that it understands.
An alternative to all these script changes would be to have bsd.java.mk always add JAVA_VERSION to SUB_LIST, using the version it ends up deciding on if none is set.