#asahi-alt · 2023-08-22 07:05
Enzime[ 11.560060] apple-dcp 231c00000.dcp: Adding to iommu group 3#asahi-alt · 2023-08-22 07:05
Enzime[ 11.560811] apple-dcp 231c00000.dcp: Could not read 'apple,firmware-compat': -75#asahi-alt · 2023-08-22 07:05
Enzime6.3-13#asahi-alt · 2023-08-22 06:42
jannauwhich kernel version/tag is this? pan you paste the output of `dmesg | grep apple-dcp` or `journalctl -k | grep apple-dcp`#asahi-alt · 2023-08-22 06:39
Enzimejannau: https://paste2.org/NOOG7esw#asahi-alt · 2023-08-22 06:39
Enzimemy edge config has "CONFIG_DRM_APPLE=m" and it seems like it's loaded#asahi-alt · 2023-08-22 06:37
jannauyou want CONFIG_DRM_APPLE#asahi-alt · 2023-08-22 06:37
jannauEnzime: no. we do not want to use BACKLIGHT_GPIO. That was (is) a shortgap solution for systems without display controller driver#asahi-alt · 2023-08-22 06:34
Enzimeaccording to this commit "CONFIG_BACKLIGHT_GPIO" needs to be enabled https://github.com/torvalds/linux/commit/d76d87a83c5a5b58ef9d487c306dc20085b27d28#asahi-alt · 2023-08-22 06:00
chadmed_the dcp driver itself provides the backlight sysfs#asahi-alt · 2023-08-22 05:59
chadmed_Enzime: that's just for simpledrm, not dcp#asahi-alt · 2023-08-22 05:58
Enzimechadmed_: looks like it's disabled atm https://github.com/AsahiLinux/PKGBUILDs/blob/main/linux-asahi/config.edge#L1-L2#asahi-alt · 2023-08-22 05:53
chadmedEnzime: it's the dcp driver, definitely should be in -edge#asahi-alt · 2023-08-22 05:26
EnzimeI don't have a "/sys/class/backlight/apple-panel-bl", do you know what kernel module provides that?#asahi-alt · 2023-08-22 05:16
chadmedthe scale is kinda funky, try starting with 25#asahi-alt · 2023-08-22 05:16
chadmedEnzime: echo ${brightness} | sudo tee /sys/class/backlight/apple-panel-bl/brightness#asahi-alt · 2023-08-22 04:43
Enzimehow do I change the screen brightness from command line? I'm running the edge kernel on my M1 MBA#asahi-alt · 2023-08-21 21:25
mpsChaosPrincess: suspend by pressing power button which is set to write 'echo mem > /sys/power/state'#asahi-alt · 2023-08-21 21:22
jannaubacklight on on suspend is probably missing suspend support in the driver#asahi-alt · 2023-08-21 21:21
ChaosPrincessby not disabling when suspended - do you mean a suspend from the menu, not via lid close?#asahi-alt · 2023-08-21 21:21
ChaosPrincessyes, thats a thing that should happen#asahi-alt · 2023-08-21 21:20
mpsnot sure but looks like closing LID disables backlight#asahi-alt · 2023-08-21 21:16
mpsand there is another issue, when machine is suspended backlight of touchbar stays active#asahi-alt · 2023-08-21 21:13
mpsjannau: I think xorg config would be better solution#asahi-alt · 2023-08-21 21:12
mpsbuttons works while pointer doesn't#asahi-alt · 2023-08-21 21:12
mpsChaosPrincess: I found simple solution, disable pointer device with xinput#asahi-alt · 2023-08-21 21:06
jannauI guess explicit Xorg config ignoring the device is the option for systems without seat management#asahi-alt · 2023-08-21 19:41
mpsand thanks again#asahi-alt · 2023-08-21 19:41
mpssure ;)#asahi-alt · 2023-08-21 19:41
ChaosPrincessyea, idk how to do it on systems that do not have working seat management, if you figure it out - let me know.#asahi-alt · 2023-08-21 19:40
mpsmy effort is to make machines with minimal things#asahi-alt · 2023-08-21 19:40
ChaosPrincessthats what the udev rules do#asahi-alt · 2023-08-21 19:40
ChaosPrincessi am not sure what to do then, but the supported way is to assign the touchscreen input device to a separate seat#asahi-alt · 2023-08-21 19:39
mpsnothing#asahi-alt · 2023-08-21 19:39
ChaosPrincessno elogind, or anything like that?#asahi-alt · 2023-08-21 19:39
mpsnothing, I run X with startx from console#asahi-alt · 2023-08-21 19:38
ChaosPrincessthats problematic, what do you use for seat management#asahi-alt · 2023-08-21 19:38
mpsyes, but I don't use udev#asahi-alt · 2023-08-21 19:37
ChaosPrincesshave you installed the udev rules from the repo#asahi-alt · 2023-08-21 19:37
mpsi.e. working as pointer#asahi-alt · 2023-08-21 19:37
mpslast thing I don't know is how to disable cursor on it#asahi-alt · 2023-08-21 19:36
ChaosPrincesshardcoded for now, if there is demand, i can make it configurable#asahi-alt · 2023-08-21 19:36
mpsbut is good as it is now#asahi-alt · 2023-08-21 19:35
mpsI thought it can be controlled by some parameters#asahi-alt · 2023-08-21 19:35
mpsright#asahi-alt · 2023-08-21 19:34
ChaosPrincesssorta like what macos is doing#asahi-alt · 2023-08-21 19:34
ChaosPrincessyea, thats expected, it automatically dims after 30 (iirc) seconds of system inactivity, and then after 30 more shuts off the backlight completely#asahi-alt · 2023-08-21 19:34
mpsChaosPrincess: ok, it works. but it doesn't toggle backlight, just dim after some time#asahi-alt · 2023-08-21 19:27
ChaosPrincessim running gentoo with systemd, and so it does the behavior that systemd expects#asahi-alt · 2023-08-21 19:27
mpsI'm trying to make this but you saved me time