From nobody Tue Jan 31 07:52:40 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P5ckH6lmTz3bSqM for ; Tue, 31 Jan 2023 07:53:43 +0000 (UTC) (envelope-from parv.0zero9@gmail.com) Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P5ckG65hRz40nY for ; Tue, 31 Jan 2023 07:53:42 +0000 (UTC) (envelope-from parv.0zero9@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=FRpCTqqy; spf=pass (mx1.freebsd.org: domain of parv.0zero9@gmail.com designates 2a00:1450:4864:20::632 as permitted sender) smtp.mailfrom=parv.0zero9@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x632.google.com with SMTP id mf7so20363798ejc.6 for ; Mon, 30 Jan 2023 23:53:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=YaSRyZQeB2Q5Nm9dsLUVUd6gjfT2t/mDF/ZcnksyZIk=; b=FRpCTqqywFEOmZUE6I6x2aqfMQkPuhhLQS0Pp909N4ASUGWuQCE4ev3fwM9+wj+HG2 ku7pWgbD365fSLU7vZmIYVVLEBxTzzCPcpF2eSw2RsRzZZELZ4xy+bIszpR+UO+vIX5y 6bk/OA8XK0b9BQD4smfjPQEVeXySbPIfmQ4s3PkVBPXIEQTCJmzzWT1wnJYuaB69g2/k n9vZwp44hpOm3lSpkeUwSKtTI7l6y3sgnw9qHi/q+EMVg4XuCC0tKhgk2sCklQkXP+Bo sNRSR41Kpz3SXtYc3y0+lv2rbcLJpvxJ9HVXEFcVFNU8SC06CnwigCyeMb4A0wuEKVmw UC+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=YaSRyZQeB2Q5Nm9dsLUVUd6gjfT2t/mDF/ZcnksyZIk=; b=CzwlPYJJOXS3eW8U4NNOG6BXI3CX04WECDHgxvRBxtQ5aurjDV2QwW49IuCosU5sG/ X2CRasIghPF/tToEojlm7SOWe+haJe9kHETj9R9vhh7Xn4yLcKWYGo/grvynShjViyek F7WHg5QOMES0rGXjb+V/SoQsMXLqzd+pXMxG/t4/m/VZtqWrdT29SwVA7Et8UCt92Qkl R7zl0JLnWaU2T1j/BNDRtSwwkbfc3vrxJc3I7Vn7GenuyceYhXYr5UjwBlmTELYXsRSj jDBZCogXvioHVp4Z55ljKbM2iK7Oc6F34UJTjFXamjczjXiajnEBF7667ackCMqB9axY cZyg== X-Gm-Message-State: AO0yUKXD8EY2K8LlQpvKiZlZ3KBr5R+1zcxNI66pUw16tP5CCMhyMFes ePaRx6ZH7B/i00R5iRrCzVacEvSFdd8YEAtiEBg3DplJhAw= X-Google-Smtp-Source: AK7set8BHhfXeskjqhqNbvBDB8ETJrjHcgBrumxdlJl0NB83ucUOS+gR0fk9mBy0eCPRMFz8zDF01bABI8nAf/GKND4= X-Received: by 2002:a17:906:6542:b0:88a:47d7:3c3a with SMTP id u2-20020a170906654200b0088a47d73c3amr1451357ejn.182.1675151621099; Mon, 30 Jan 2023 23:53:41 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 From: "parv/FreeBSD" Date: Mon, 30 Jan 2023 21:52:40 -1000 Message-ID: Subject: Could not change brightness anymore with i915kms & acpi_video modules c 202211 To: freebsd-current@freebsd.org Content-Type: multipart/alternative; boundary="000000000000521dde05f38aa1de" X-Spamd-Result: default: False [-3.97 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.97)[-0.968]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::632:from]; ARC_NA(0.00)[]; TAGGED_FROM(0.00)[freebsd]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4P5ckG65hRz40nY X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --000000000000521dde05f38aa1de Content-Type: text/plain; charset="UTF-8" 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, # . # # 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 --000000000000521dde05f38aa1de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi there,

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

Ea= rlier 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 mis= sing.
hw.acpi.video.lcd0.economy=3D10
hw.acpi.video.lcd0.fullpower=3D= 40
hw.acpi.video.lcd0.brightness=3D15


... now the whole of "hw.acpi.video" stub= is missing. Nothing has
changed in terms of how/when "i915kms" & &quo= t;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=3D"YES"
sendm= ail_enable=3D"NONE"
sshd_enable=3D"YES"
zfs_enabl= e=3D"YES"
dumpdev=3D"AUTO"

hostname=3D"l= una"

devmatch_blacklist=3D"ng_ubt"
devmatch_blackl= ist=3D"$devmatch_blacklist if_iwlwifi"

moused_enable=3D&qu= ot;YES"

kld_list=3D"filemon"

# As of 20220316 = on 14-CURRENT order of values assigned to a variable matters
# enough th= at assigning "acpi_video" after "i915kms" is sufficient= .
#
# WARNING - After loading 'acpi_video' module, brightness= suddenly increases
# blindingly.
#
# XXX: If i915kms does not loa= d properly on boot, say after world install, will
# =C2=A0 =C2=A0 =C2=A0= see a blank screen & Ctrl-Alt-{Delete,Backspace,Escape} do not seem to<= br># =C2=A0 =C2=A0 =C2=A0work; need a hard reboot.
#
# 20230120 - Sin= ce around 2022-11 or 2022-12, order has no effect on brightness.
kld_lis= t=3D"$kld_list i915kms"
kld_list=3D"$kld_list acpi_video&= quot;

# Attemp to maximize battery life.
power_profile=3D'eco= nomy'
economy_cx_lowest=3D'Cmax'
performance_cx_lowest=3D= 'C2'

wifibox_enable=3D"YES"
defaultrouter=3D&qu= ot;10.0.0.1"
defaultroot_delay=3D"10"
ifconfig_wifibox= 0=3D"SYNCDHCP"
background_dhclient_wifibox0=3D"YES"<= br>
ntpd_enable=3D"YES"
ntpd_flags=3D"-G"
dbus_enable=3D&q= uot;YES"
smartd_enable=3D"YES"

## /etc/sysctl.conf :
kern.randompid=3D1
vf= s.usermount=3D1

kern.vt.kbd_halt=3D1
kern.vt.kbd_poweroff=3D1
= kern.vt.kbd_reboot=3D1
kern.vt.kbd_debug=3D1
kern.vt.kbd_panic=3D1
vfs.zfs.arc.max=3D30064771072

dev.hwpstate_intel.0.epp=3D70
= dev.hwpstate_intel.1.epp=3D70
dev.hwpstate_intel.2.epp=3D100
dev.hwps= tate_intel.3.epp=3D100
dev.hwpstate_intel.4.epp=3D100
dev.hwpstate_in= tel.5.epp=3D100
dev.hwpstate_intel.6.epp=3D100
dev.hwpstate_intel.7.e= pp=3D100

kern.timecounter.hardware=3D'HPET'

hw.acpi.l= id_switch_state=3D'S5'
hw.acpi.sleep_button_state=3D'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,<= br># <https://bugs.freebsd.org/bugzilla/show_bug_cgi?id=3D195116>.#
# As of 20220316 on 14-CURRENT order of values assigned to a variable= matters
# enough that assigning "acpi_video" after "i915= kms" to "$kld_list" in
# "/etc/rc.conf" is suff= icient.
#
# WARNING - After loading 'acpi_video' module, brig= htness 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=3D10
#hw.acpi.video= .lcd0.fullpower=3D40
#hw.acpi.video.lcd0.brightness=3D15

# Power management with &quo= t;i915kms" module from "drm-devel-kmod" (14-CURRENT)
# pa= ckage.
# - only in "/boot/loader.conf" ...
#
# =C2=A0 = =C2=A0 compat.linuxkpi.i915_enable_dc=3D2
# =C2=A0 =C2=A0 compat.linuxkp= i.i915_disable_power_well=3D<-1|0|1>
#
# =C2=A0... that means n= eed to load i915kms in "/boot/loader.conf" too.?
#
compat.l= inuxkpi.i915_fastboot=3D1
compat.linuxkpi.i915_enable_fbc=3D1

## /boot/loader.conf :<= /div>
cryptodev= _load=3D"YES"
zfs_load=3D"YES"

kern.msgbufsiz= e=3D1146880

ums_load=3D"YES"
hms_load=3D"YES"=

hw.vga.textmode=3D0
kern.vty=3Dvt

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

machdep.hwpstate_pkg_ctrl=3D0
coretemp_load=3D"YES"<= br>
## From "/etc/rc.conf" ...
# Power management with &quo= t;i915kms" module from "drm-devel-kmod" (14-CURRENT)
# pa= ckage.
# - only in "/boot/loader.conf" ...
#
# =C2=A0 = =C2=A0 compat.linuxkpi.i915_enable_dc=3D2
# =C2=A0 =C2=A0 compat.linuxkp= i.i915_disable_power_well=3D<-1|0|1>
#
# =C2=A0... that means n= eed to load i915kms in "/boot/loader.conf" too.?
#
#compat.= linuxkpi.i915_fastboot=3D1
#compat.linuxkpi.i915_enable_fbc=3D1

h= w.pci.do_power_nodriver=3D2

--000000000000521dde05f38aa1de--