public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Janne Grunau <j@jannau.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-tiny-dfr] epel10: Backport fix for apple silicon devices with kernel 6.14 and later
Date: Fri, 25 Sep 2026 10:38:51 GMT	[thread overview]
Message-ID: <179033273144.1.18140046127234075979.rpms-rust-tiny-dfr-e8142733f941@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-tiny-dfr
Branch : epel10
Commit : e8142733f941a97c2d70277317fd671fb4933508
Author : Janne Grunau <j@jannau.net>
Date   : 2025-04-13T15:04:22+02:00
Stats  : +50/-0 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-tiny-dfr/c/e8142733f941a97c2d70277317fd671fb4933508?branch=epel10

Log:
Backport fix for apple silicon devices with kernel 6.14 and later

---
diff --git a/0001-Backlight-Support-upstreamed-mipi-panel-driver.patch b/0001-Backlight-Support-upstreamed-mipi-panel-driver.patch
new file mode 100644
index 0000000..19e0368
--- /dev/null
+++ b/0001-Backlight-Support-upstreamed-mipi-panel-driver.patch
@@ -0,0 +1,43 @@
+From 13715148e5c82b98dc95305530d2d4ea8e3eb312 Mon Sep 17 00:00:00 2001
+From: Janne Grunau <j@jannau.net>
+Date: Sun, 13 Apr 2025 14:54:30 +0200
+Subject: [PATCH 1/1] Backlight: Support upstreamed mipi panel driver
+
+I do not understand why `KERNEL=="228600000.dsi.0"` does not work.
+`udevadm info -a -p /sys/class/backlight/228600000.dsi.0` clearly lists
+that for the backlight device.
+
+Signed-off-by: Janne Grunau <j@jannau.net>
+---
+ etc/udev/rules.d/99-touchbar-tiny-dfr.rules | 1 +
+ src/backlight.rs                            | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/etc/udev/rules.d/99-touchbar-tiny-dfr.rules b/etc/udev/rules.d/99-touchbar-tiny-dfr.rules
+index cb75401..e07958d 100644
+--- a/etc/udev/rules.d/99-touchbar-tiny-dfr.rules
++++ b/etc/udev/rules.d/99-touchbar-tiny-dfr.rules
+@@ -8,6 +8,7 @@ SUBSYSTEM=="drm", KERNEL=="card[0-9]*", DRIVERS=="adp|appletbdrm", TAG+="systemd
+ 
+ SUBSYSTEM=="backlight", KERNEL=="appletb_backlight", DRIVERS=="hid-appletb-bl", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/dev/tiny_dfr_backlight"
+ SUBSYSTEM=="backlight", KERNEL=="228200000.display-pipe.0", DRIVERS=="panel-summit", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/dev/tiny_dfr_backlight"
++SUBSYSTEM=="backlight", KERNELS=="228600000.dsi.0", DRIVERS=="panel-summit", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/dev/tiny_dfr_backlight"
+ 
+ SUBSYSTEM=="backlight", KERNEL=="apple-panel-bl", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/dev/tiny_dfr_display_backlight"
+ SUBSYSTEM=="backlight", KERNEL=="gmux_backlight", TAG+="systemd", ENV{SYSTEMD_ALIAS}="/dev/tiny_dfr_display_backlight"
+diff --git a/src/backlight.rs b/src/backlight.rs
+index dd1b345..a5e143f 100644
+--- a/src/backlight.rs
++++ b/src/backlight.rs
+@@ -33,7 +33,7 @@ fn find_backlight() -> Result<PathBuf> {
+         let file_name = entry.file_name();
+         let name = file_name.to_string_lossy();
+ 
+-        if ["display-pipe", "appletb_backlight"]
++        if ["display-pipe", "228600000.dsi.0", "appletb_backlight"]
+             .iter()
+             .any(|s| name.contains(s))
+         {
+-- 
+2.49.0
+

diff --git a/rust-tiny-dfr.spec b/rust-tiny-dfr.spec
index 8656354..a6b7b3d 100644
--- a/rust-tiny-dfr.spec
+++ b/rust-tiny-dfr.spec
@@ -11,6 +11,9 @@ Summary:        Most basic dynamic function row daemon possible
 License:        MIT AND Apache-2.0
 URL:            https://crates.io/crates/tiny-dfr
 Source:         %{crates_source}
+# * Fix backlight device selection in asahi-6.14.2-1 and later
+# * https://github.com/AsahiLinux/tiny-dfr/pull/61
+Patch2:         0001-Backlight-Support-upstreamed-mipi-panel-driver.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 BuildRequires:  systemd-rpm-macros

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 679c015..ed11c32 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -7,6 +7,10 @@ extra-files = [
   "%config(noreplace) %ghost %{_sysconfdir}/%{crate}/config.toml",
 ]
 
+extra-patches = [
+  { number = 2, file = "0001-Backlight-Support-upstreamed-mipi-panel-driver.patch", comments = ["Fix backlight device selection in asahi-6.14.2-1 and later", "https://github.com/AsahiLinux/tiny-dfr/pull/61"] },
+]
+
 [requires]
 build = ["systemd-rpm-macros"]
 

                 reply	other threads:[~2026-09-25 10:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179033273144.1.18140046127234075979.rpms-rust-tiny-dfr-e8142733f941@fedoraproject.org \
    --to=j@jannau.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox