Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2023 21:52:40 -1000
From:      "parv/FreeBSD" <parv.0zero9+freebsd@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Could not change brightness anymore with i915kms & acpi_video modules c 202211
Message-ID:  <CABObuOoUDHrUF6FyTwEXTrnt3ztkoAR4x5vzjcNp7H-4F4XE7A@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi there,

Since around 2022-11, I am unable to change display brightness
of the display of a Framework laptop (Intel i5-1135G7, Iris
Xe iGPU) with "i915kms" module (from "drm-510-kmod" package/port)
& "acpi_video" (FreeBSD) kernel module.

Earlier I was able to change brightness via "hw.acpi.video" MIB ...

# - Need to have both "i915kms" & "acpi_video" modules already loaded.
#
# 20221120 - These MIBs do not work anymore as they are missing.
hw.acpi.video.lcd0.economy=10
hw.acpi.video.lcd0.fullpower=40
hw.acpi.video.lcd0.brightness=15


... now the whole of "hw.acpi.video" stub is missing. Nothing has
changed in terms of how/when "i915kms" & "acpi_video" are loaded (via
"kld_list" variable via "/etc/rc.conf" in that order).

What am I missing?


- parv


## /etc/rc.conf :
clear_tmp_enable="YES"
sendmail_enable="NONE"
sshd_enable="YES"
zfs_enable="YES"
dumpdev="AUTO"

hostname="luna"

devmatch_blacklist="ng_ubt"
devmatch_blacklist="$devmatch_blacklist if_iwlwifi"

moused_enable="YES"

kld_list="filemon"

# As of 20220316 on 14-CURRENT order of values assigned to a variable
matters
# enough that assigning "acpi_video" after "i915kms" is sufficient.
#
# WARNING - After loading 'acpi_video' module, brightness suddenly increases
# blindingly.
#
# XXX: If i915kms does not load properly on boot, say after world install,
will
#      see a blank screen & Ctrl-Alt-{Delete,Backspace,Escape} do not seem
to
#      work; need a hard reboot.
#
# 20230120 - Since around 2022-11 or 2022-12, order has no effect on
brightness.
kld_list="$kld_list i915kms"
kld_list="$kld_list acpi_video"

# Attemp to maximize battery life.
power_profile='economy'
economy_cx_lowest='Cmax'
performance_cx_lowest='C2'

wifibox_enable="YES"
defaultrouter="10.0.0.1"
defaultroot_delay="10"
ifconfig_wifibox0="SYNCDHCP"
background_dhclient_wifibox0="YES"

ntpd_enable="YES"
ntpd_flags="-G"
dbus_enable="YES"
smartd_enable="YES"

## /etc/sysctl.conf :
kern.randompid=1
vfs.usermount=1

kern.vt.kbd_halt=1
kern.vt.kbd_poweroff=1
kern.vt.kbd_reboot=1
kern.vt.kbd_debug=1
kern.vt.kbd_panic=1

vfs.zfs.arc.max=30064771072

dev.hwpstate_intel.0.epp=70
dev.hwpstate_intel.1.epp=70
dev.hwpstate_intel.2.epp=100
dev.hwpstate_intel.3.epp=100
dev.hwpstate_intel.4.epp=100
dev.hwpstate_intel.5.epp=100
dev.hwpstate_intel.6.epp=100
dev.hwpstate_intel.7.epp=100

kern.timecounter.hardware='HPET'

hw.acpi.lid_switch_state='S5'
hw.acpi.sleep_button_state='S5'

# 'acpi_video' module needs to be loaded after 'i915kms' module to have LCD
# brightness related MIBs -- hw.acpi.lcd0.* -- to have any effect. This has
# been an issue since 2014, see PR 195116,
# <https://bugs.freebsd.org/bugzilla/show_bug_cgi?id=195116>.
#
# As of 20220316 on 14-CURRENT order of values assigned to a variable
matters
# enough that assigning "acpi_video" after "i915kms" to "$kld_list" in
# "/etc/rc.conf" is sufficient.
#
# WARNING - After loading 'acpi_video' module, brightness suddenly increases
# blindinly.
#
# Default of 50 for 'hw.acpi.video.lcd0.brightness' rather too bright; 100
is
# blinding.
# - Need to have both "i915kms" & "acpi_video" modules already loaded.
#
# 20221120 - These MIBs do not work anymore as they are missing.
#hw.acpi.video.lcd0.economy=10
#hw.acpi.video.lcd0.fullpower=40
#hw.acpi.video.lcd0.brightness=15

# Power management with "i915kms" module from "drm-devel-kmod" (14-CURRENT)
# package.
# - only in "/boot/loader.conf" ...
#
#     compat.linuxkpi.i915_enable_dc=2
#     compat.linuxkpi.i915_disable_power_well=<-1|0|1>
#
#  ... that means need to load i915kms in "/boot/loader.conf" too.?
#
compat.linuxkpi.i915_fastboot=1
compat.linuxkpi.i915_enable_fbc=1

## /boot/loader.conf :
cryptodev_load="YES"
zfs_load="YES"

kern.msgbufsize=1146880

ums_load="YES"
hms_load="YES"

hw.vga.textmode=0
kern.vty=vt

# Need to load after i915kms module to have effect; so is loaded via
# /etc/rc.conf instead by adding it to $kld_list after "i915kms" as in
# 'kld_list="i915kms acpi_video"'.
#acpi_video_load="YES"

machdep.hwpstate_pkg_ctrl=0
coretemp_load="YES"

## From "/etc/rc.conf" ...
# Power management with "i915kms" module from "drm-devel-kmod" (14-CURRENT)
# package.
# - only in "/boot/loader.conf" ...
#
#     compat.linuxkpi.i915_enable_dc=2
#     compat.linuxkpi.i915_disable_power_well=<-1|0|1>
#
#  ... that means need to load i915kms in "/boot/loader.conf" too.?
#
#compat.linuxkpi.i915_fastboot=1
#compat.linuxkpi.i915_enable_fbc=1

hw.pci.do_power_nodriver=2

[-- Attachment #2 --]
<div dir="ltr"><div class="gmail_default" style="font-family:monospace">Hi there,</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Since around 2022-11, I am unable to change display brightness</div><div class="gmail_default" style="font-family:monospace">of the display of a Framework laptop (Intel i5-1135G7, Iris</div><div class="gmail_default" style="font-family:monospace">Xe iGPU) with &quot;i915kms&quot; module (from &quot;drm-510-kmod&quot; package/port)</div><div class="gmail_default" style="font-family:monospace">&amp; &quot;acpi_video&quot; (FreeBSD) kernel module.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Earlier I was able to change brightness via &quot;hw.acpi.video&quot; MIB ...</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"># - Need to have both &quot;i915kms&quot; &amp; &quot;acpi_video&quot; modules already loaded.<br>#<br># 20221120 - These MIBs do not work anymore as they are missing.<br>hw.acpi.video.lcd0.economy=10<br>hw.acpi.video.lcd0.fullpower=40<br>hw.acpi.video.lcd0.brightness=15</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">... now the whole of &quot;hw.acpi.video&quot; stub is missing. Nothing has</div><div class="gmail_default" style="font-family:monospace">changed in terms of how/when &quot;i915kms&quot; &amp; &quot;acpi_video&quot; are loaded (via</div><div class="gmail_default" style="font-family:monospace">&quot;kld_list&quot; variable via &quot;/etc/rc.conf&quot; in that order).<br></div><br><div class="gmail_default" style="font-family:monospace">What am I missing?</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">- parv</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">## /etc/rc.conf :<br></div><div class="gmail_default" style="font-family:monospace">clear_tmp_enable=&quot;YES&quot;<br>sendmail_enable=&quot;NONE&quot;<br>sshd_enable=&quot;YES&quot;<br>zfs_enable=&quot;YES&quot;<br>dumpdev=&quot;AUTO&quot;<br><br>hostname=&quot;luna&quot;<br><br>devmatch_blacklist=&quot;ng_ubt&quot;<br>devmatch_blacklist=&quot;$devmatch_blacklist if_iwlwifi&quot;<br><br>moused_enable=&quot;YES&quot;<br><br>kld_list=&quot;filemon&quot;<br><br># As of 20220316 on 14-CURRENT order of values assigned to a variable matters<br># enough that assigning &quot;acpi_video&quot; after &quot;i915kms&quot; is sufficient.<br>#<br># WARNING - After loading &#39;acpi_video&#39; module, brightness suddenly increases<br># blindingly.<br>#<br># XXX: If i915kms does not load properly on boot, say after world install, will<br>#      see a blank screen &amp; Ctrl-Alt-{Delete,Backspace,Escape} do not seem to<br>#      work; need a hard reboot.<br>#<br># 20230120 - Since around 2022-11 or 2022-12, order has no effect on brightness.<br>kld_list=&quot;$kld_list i915kms&quot;<br>kld_list=&quot;$kld_list acpi_video&quot;<br><br># Attemp to maximize battery life.<br>power_profile=&#39;economy&#39;<br>economy_cx_lowest=&#39;Cmax&#39;<br>performance_cx_lowest=&#39;C2&#39;<br><br>wifibox_enable=&quot;YES&quot;<br>defaultrouter=&quot;10.0.0.1&quot;<br>defaultroot_delay=&quot;10&quot;<br>ifconfig_wifibox0=&quot;SYNCDHCP&quot;<br>background_dhclient_wifibox0=&quot;YES&quot;<br><br>ntpd_enable=&quot;YES&quot;</div><div class="gmail_default" style="font-family:monospace">ntpd_flags=&quot;-G&quot;<br>dbus_enable=&quot;YES&quot;<br>smartd_enable=&quot;YES&quot;</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">## /etc/sysctl.conf :</div><div class="gmail_default" style="font-family:monospace">kern.randompid=1<br>vfs.usermount=1<br><br>kern.vt.kbd_halt=1<br>kern.vt.kbd_poweroff=1<br>kern.vt.kbd_reboot=1<br>kern.vt.kbd_debug=1<br>kern.vt.kbd_panic=1<br><br>vfs.zfs.arc.max=30064771072<br><br>dev.hwpstate_intel.0.epp=70<br>dev.hwpstate_intel.1.epp=70<br>dev.hwpstate_intel.2.epp=100<br>dev.hwpstate_intel.3.epp=100<br>dev.hwpstate_intel.4.epp=100<br>dev.hwpstate_intel.5.epp=100<br>dev.hwpstate_intel.6.epp=100<br>dev.hwpstate_intel.7.epp=100<br><br>kern.timecounter.hardware=&#39;HPET&#39;<br><br>hw.acpi.lid_switch_state=&#39;S5&#39;<br>hw.acpi.sleep_button_state=&#39;S5&#39;<br><br># &#39;acpi_video&#39; module needs to be loaded after &#39;i915kms&#39; module to have LCD<br># brightness related MIBs -- hw.acpi.lcd0.* -- to have any effect. This has<br># been an issue since 2014, see PR 195116,<br># &lt;<a href="https://bugs.freebsd.org/bugzilla/show_bug_cgi?id=195116">https://bugs.freebsd.org/bugzilla/show_bug_cgi?id=195116</a>&gt;.<br>#<br># As of 20220316 on 14-CURRENT order of values assigned to a variable matters<br># enough that assigning &quot;acpi_video&quot; after &quot;i915kms&quot; to &quot;$kld_list&quot; in<br># &quot;/etc/rc.conf&quot; is sufficient.<br>#<br># WARNING - After loading &#39;acpi_video&#39; module, brightness suddenly increases<br># blindinly.<br>#<br># Default of 50 for &#39;hw.acpi.video.lcd0.brightness&#39; rather too bright; 100 is<br># blinding.<br># - Need to have both &quot;i915kms&quot; &amp; &quot;acpi_video&quot; modules already loaded.<br>#<br># 20221120 - These MIBs do not work anymore as they are missing.<br>#hw.acpi.video.lcd0.economy=10<br>#hw.acpi.video.lcd0.fullpower=40<br>#hw.acpi.video.lcd0.brightness=15</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace"># Power management with &quot;i915kms&quot; module from &quot;drm-devel-kmod&quot; (14-CURRENT)<br># package.<br># - only in &quot;/boot/loader.conf&quot; ...<br>#<br>#     compat.linuxkpi.i915_enable_dc=2<br>#     compat.linuxkpi.i915_disable_power_well=&lt;-1|0|1&gt;<br>#<br>#  ... that means need to load i915kms in &quot;/boot/loader.conf&quot; too.?<br>#<br>compat.linuxkpi.i915_fastboot=1<br>compat.linuxkpi.i915_enable_fbc=1</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">## /boot/loader.conf :</div><div class="gmail_default" style="font-family:monospace">cryptodev_load=&quot;YES&quot;<br>zfs_load=&quot;YES&quot;<br><br>kern.msgbufsize=1146880<br><br>ums_load=&quot;YES&quot;<br>hms_load=&quot;YES&quot;<br><br>hw.vga.textmode=0<br>kern.vty=vt<br><br># Need to load after i915kms module to have effect; so is loaded via<br># /etc/rc.conf instead by adding it to $kld_list after &quot;i915kms&quot; as in<br># &#39;kld_list=&quot;i915kms acpi_video&quot;&#39;.<br>#acpi_video_load=&quot;YES&quot;<br><br>machdep.hwpstate_pkg_ctrl=0<br>coretemp_load=&quot;YES&quot;<br><br>## From &quot;/etc/rc.conf&quot; ...<br># Power management with &quot;i915kms&quot; module from &quot;drm-devel-kmod&quot; (14-CURRENT)<br># package.<br># - only in &quot;/boot/loader.conf&quot; ...<br>#<br>#     compat.linuxkpi.i915_enable_dc=2<br>#     compat.linuxkpi.i915_disable_power_well=&lt;-1|0|1&gt;<br>#<br>#  ... that means need to load i915kms in &quot;/boot/loader.conf&quot; too.?<br>#<br>#compat.linuxkpi.i915_fastboot=1<br>#compat.linuxkpi.i915_enable_fbc=1<br><br>hw.pci.do_power_nodriver=2</div><div class="gmail_default" style="font-family:monospace"><br></div></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABObuOoUDHrUF6FyTwEXTrnt3ztkoAR4x5vzjcNp7H-4F4XE7A>