#asahi-dev · 2023-04-23 14:36
knedlikI'm not sure how to create the patches tbh#asahi-dev · 2023-04-23 14:35
jannauKnedlik: https://paste.debian.net/1278203/ with touchbar_display.patch and touchbar_touchscreen.patch being the changes from the pull request#asahi-dev · 2023-04-23 14:34
jannauso I would try to rebase the the PRs on asahi-6.2-11#asahi-dev · 2023-04-23 14:33
ChaosPrincesssorry, no idea how arch people do it, i dont run arch :P#asahi-dev · 2023-04-23 14:33
jannauthat makes building the PKGBUILD more complicated#asahi-dev · 2023-04-23 14:33
knedlikI'll try that, thanks so much#asahi-dev · 2023-04-23 14:32
ChaosPrincessKnedlik: git clone https://github.com/AsahiLinux/linux.git; cd linux; git cd asahi-wip; git remote add what https://github.com/WhatAmISupposedToPutHere/linux; git fetch -a what; git merge what/adp what/z2-touchscreen#asahi-dev · 2023-04-23 14:31
knedlikThe default branch or the one in the latest PR?#asahi-dev · 2023-04-23 14:30
jannauI'm not sure how well the touchbar PRs rebase against the asahi-6.2-11 kernel so cloning the the asahi kernel tree and the two branches https://github.com/WhatAmISupposedToPutHere/linux would probably a good first step#asahi-dev · 2023-04-23 14:27
knedlikDo you have an example?#asahi-dev · 2023-04-23 14:26
jannauthe pkgbuild has support for patches as long as the as they are named *.patch#asahi-dev · 2023-04-23 14:24
knedlikSo far it seems like it's automatically finding stuff?#asahi-dev · 2023-04-23 14:23
knedlikjannau: I'm unsure how to do that, I never really worked with PKGBUILDs more than running them#asahi-dev · 2023-04-23 14:13
knedlikYep, currently booted in Wayland Plasma#asahi-dev · 2023-04-23 14:13
jannauadd the patches to the source array, run updpkgsums and makepkg#asahi-dev · 2023-04-23 14:12
j`eyKnedlik: have you already got asahi running?#asahi-dev · 2023-04-23 14:11
jannauhttps://github.com/AsahiLinux/PKGBUILDs/blob/main/linux-asahi/PKGBUILD#asahi-dev · 2023-04-23 14:11
ChaosPrincessfor screen - start kde with wayland and you will see it#asahi-dev · 2023-04-23 14:11
jannaueasiest would probably to add the pull requests as patches to the linux-asahi PKGBUILD#asahi-dev · 2023-04-23 14:09
knedlikI meant like how do I ensure the drivers are running so I can test my shennannigans#asahi-dev · 2023-04-23 14:08
ChaosPrincessclone the kernel repo, checkout asahi-wip and then merge the branches i linked#asahi-dev · 2023-04-23 14:05
knedlikBack to the touchbar, how would I get the drivers in the PRs going on my machine?#asahi-dev · 2023-04-23 14:05
knedlikI'd rather leave the audio to someone who knows what they're doing, kessler#asahi-dev · 2023-04-23 12:32
kesslerdupontknedlik, I was reading the logs and saw your messages. I can try and help you with the audio stuff if you still haven't figured it out#asahi-dev · 2023-04-23 11:54
jannauok, then you need just the kernel with those two pull requests merged #asahi-dev · 2023-04-23 11:53
knedlikI have an M1#asahi-dev · 2023-04-23 11:52
jannauKnedlik: if you have a m2 based macbook pro you also need to update m1n1 for the touchscreen#asahi-dev · 2023-04-23 11:45
jannauand https://crates.io/crates/input for touchscreen events and generated key events#asahi-dev · 2023-04-23 11:45
ChaosPrincessasahi#asahi-dev · 2023-04-23 11:44
knedlikWhich device should I do the touchbar stuff on? MacOS, Asahi, or the second PC?#asahi-dev · 2023-04-23 11:43
jannauif your comfortable or motivated with writing rust you want to use https://github.com/Smithay/drm-rs for the display#asahi-dev · 2023-04-23 11:41
jannauthat is a drm driver for the display and touchscreen driver for the touch input#asahi-dev · 2023-04-23 11:41
ChaosPrincessKnedlik: grab asahi-wip, merge those two, https://github.com/AsahiLinux/linux/pull/102 https://github.com/AsahiLinux/linux/pull/137 - this will turn the touchbar into the second screen. write something that grabs the touchscreen digitizer and the screen, show f-keys, process touches and send them as keyboard events#asahi-dev · 2023-04-23 11:41
jannauChaosPrincess has implemented the HW support needed for the touchbar#asahi-dev · 2023-04-23 11:40
jannaugreat. I think that would be also a good first step for working on the drm driver later#asahi-dev · 2023-04-23 11:39
knedlikI'd take that, any general overview of what I should do?#asahi-dev · 2023-04-23 11:38
knedlikI do actually#asahi-dev · 2023-04-23 11:38
jannauKnedlik: do you have by any chance a 13" macbook pro? if yes the touchbar daemon might be a good project#asahi-dev · 2023-04-23 11:36
jannauyes, you would need a second computer for it. I have an idea what the timestamps are but it will be certainly helpful to check what macOS does with our hypervisor and tracing for dcp in m1n1:proxyclient/hv/trace_dcp.py#asahi-dev · 2023-04-23 11:34
jannauyou want to look at struct dcp_swap, that one has 3 timestamps#asahi-dev · 2023-04-23 11:34
knedlikWould this be one of the things I need a 2nd puter for? No prob if yes, going home in a few anyway#asahi-dev · 2023-04-23 11:33
jannauKnedlik: you have to look drivers/gpu/drm/apple, especially the iomfb* files. that is the part which communicates with the display coprocessor#asahi-dev · 2023-04-23 11:32
chadmedits not measurable over general system noise at the lowest brightness #asahi-dev · 2023-04-23 11:31
chadmedthe backlight power draw is negligible, the test i ran with the partial boot (dcp shut down, screen on) confirmed that#asahi-dev · 2023-04-23 11:30
jannauchadmed: have you tried how much of the "dcp" power use is the backlight at minimal brightness? use the gpio for the backlight to turn it off. I hope it's minimal though#asahi-dev · 2023-04-23 11:30
chadmedtheres probably more that needs to happen though#asahi-dev · 2023-04-23 11:30
chadmedjannau might have a better idea of what exactly needs to be done, but the gist of it aiui is that the hardware timestamps frames (expected) but we dont handle it in the driver and dont tell the drm subsystem that we can do VRR#asahi-dev · 2023-04-23 11:29
knedlikI can give that a try, what file or folder should I look in? Also as you say you have an idea, is that written down somewhere?#asahi-dev · 2023-04-23 11:29
chadmedits also necessary for high refresh rates full stop#asahi-dev · 2023-04-23 11:28
chadmedbut its going to be important for power draw on the laptops