From nobody Fri Jun 17 04:28:45 2022 X-Original-To: freebsd-x11@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 33AB3852D86 for ; Fri, 17 Jun 2022 04:28:56 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LPQzB4zGLz3Dps for ; Fri, 17 Jun 2022 04:28:54 +0000 (UTC) (envelope-from pete@nomadlogic.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nomadlogic.org; s=04242021; t=1655440126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=GL15ZA2VJTvdOu02fKbS/pVeglzs+X5YzjOFB3ae9ok=; b=t5y85DDF8BVeiMUdM086TcG9yUsAgbDgTkeSlBS+qK4eXbff5tK5gJ7q5O90HrZvkn+baW 7QqwG/3jN4Nlsdm7RrfJeev9Oifs7XOrFtC0Yc22CEcSzNaT2zKsZ8Qf7DXO0RnekdjMXU ZXHaE6X05WGfF07Ys7XLd+ibLKYPq+A= Received: from colony (S0106105611b47688.pk.shawcable.net [24.69.46.213]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id bbdba116 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 17 Jun 2022 04:28:46 +0000 (UTC) Date: Thu, 16 Jun 2022 21:28:45 -0700 From: Pete Wright To: freebsd-x11@freebsd.org Subject: backlight(8) and Thinkpad special keys Message-ID: <20220617042845.vjnje56q2hixok3g@colony> List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 4LPQzB4zGLz3Dps X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nomadlogic.org header.s=04242021 header.b=t5y85DDF; dmarc=pass (policy=quarantine) header.from=nomadlogic.org; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 66.165.241.226 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-3.47 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; NEURAL_HAM_MEDIUM(-0.97)[-0.973]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; DKIM_TRACE(0.00)[nomadlogic.org:+]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-x11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[24.69.46.213:received] X-ThisMailContainsUnwantedMimeParts: N hey there, i've noticed that on my lenovo thinkpad that when loading the drm-510-kmod driver the my usual way of managing screen brightness via hw.acpi.video.lcd.brightness does not work (the sysctl knob is not available). when loading the drm-54-kmod it is available. while debugging this i've noticed that using both drivers i am able to adjust things via the backlight(8) utility - thanks manu! the one drawback with this is that it seems like acpi_ibm(4) is no longer able to manage screen brightness. i.e. i can no longer use the special brightness function keys to increase/descrase screen brightness. so couple questions: 1. has anyone sucessfully tied their "special" keys to the backlight utility? 2. if not is the best approach to map the screen brightness keys to special events via devd that would call backlight(8) directly? my reading of the acpi_ibm man page seems to indicate it prefers to operate directly via sysctl which doesn't seem to work for me under the 5.10 drm driver. cheers, -pete -- Pete Wright pete@nomadlogic.org