2022-12-27
00:05possiblemeatball has joined #asahi
00:06yumasi has joined #asahi
00:09possiblemeatball has quit [Remote host closed the connection]
00:09Brainium has joined #asahi
00:11possiblemeatball has joined #asahi
00:14yumasi has quit [Ping timeout: 480 seconds]
00:22j1mryan1 has joined #asahi
00:22j1mryan has quit [Read error: Connection reset by peer]
00:22j1mryan1 is now known as j1mryan
00:24possiblemeatball has quit [Quit: Leaving]
00:27Namidairo has quit [Quit: ZNC - https://znc.in]
00:28Namidairo has joined #asahi
00:33j1mryan has quit [Quit: j1mryan]
00:37Brainium has quit [Remote host closed the connection]
00:38Brainium has joined #asahi
01:00possiblemeatball has joined #asahi
01:03amarioguy has quit [Remote host closed the connection]
01:06jamespmorgan has joined #asahi
01:14jamespmorgan has quit [Ping timeout: 480 seconds]
01:23Brainium has quit [Quit: Konversation terminated!]
01:33SmileyKeith has quit [Read error: Connection reset by peer]
01:34SmileyKeith has joined #asahi
01:46SmileyKeith has quit [Ping timeout: 480 seconds]
02:34possiblemeatball has quit [Quit: Leaving]
03:05nicolas17 has quit [Quit: Konversation terminated!]
04:09dmmcf has joined #asahi
04:11dmmcf has quit []
05:15jluthra has quit [Remote host closed the connection]
05:16jluthra has joined #asahi
06:43qyousef has quit [Read error: Connection reset by peer]
06:44qyousef has joined #asahi
06:49rvalue- has quit [Remote host closed the connection]
06:49rvalue has joined #asahi
07:11Zopolis4 has quit [Quit: Connection closed for inactivity]
08:02SSJ_GZ has joined #asahi
09:09Treibholz has joined #asahi
10:22thevar1able has quit [Remote host closed the connection]
10:23thevar1able has joined #asahi
10:25thevar1able has quit [Remote host closed the connection]
10:27thevar1able has joined #asahi
11:03mxz has quit [Quit: cya]
11:04mxz has joined #asahi
12:01yuyichao_ has joined #asahi
12:03iaguis has joined #asahi
12:04yuyichao has quit [Ping timeout: 480 seconds]
12:08marvin24 has joined #asahi
12:09iaguisI noticed systemd-{journald,logind,homed} getting killed with SIGABRT when resuming from s2idle. It seems the watchdog times out and kills them.
12:09iaguisI found this systemd issue https://github.com/systemd/systemd/issues/9538 saying this happens because CLOCK_MONOTONIC keeps running in s2idle, which should not happen.
12:09iaguisI ran "python3 -c "import time; print(time.monotonic())"" before and after suspend and this is indeed what's happening on my M2 Air.
12:10iaguisI'm not sure if this is happening because something is kept awake while the laptop is asleep or this is normal kernel behavior on s2idle suspend.
12:25iaguissystemd seems to disagree: https://github.com/systemd/systemd/pull/20616#issuecomment-911347595. They argue that CLOCK_MONOTONIC should stop when suspended even if it's s2idle like clock_gettime(2) says but CLOCK_BOOTIME should keep running
12:25iaguisalso, my Thinkpad T14s doesn't show this behavor when doing s2idle: it seems CLOCK_MONOTONIC is stopped when suspended
12:48hendry has joined #asahi
12:52Treibholz has quit [Quit: WeeChat 3.7.1]
12:53Treibholz has joined #asahi
13:35yuyichao_ has quit [Quit: Konversation terminated!]
13:36yuyichao has joined #asahi
14:01jacksonchen666 has quit [Ping timeout: 480 seconds]
14:04jacksonchen666 has joined #asahi
14:04possiblemeatball has joined #asahi
14:09delsol has joined #asahi
14:17Techcable has quit [Ping timeout: 480 seconds]
14:45delsol has quit [Remote host closed the connection]
14:48Techcable has joined #asahi
15:36flying_sausages has joined #asahi
15:42yumasi has joined #asahi
15:50yumasi has quit [Remote host closed the connection]
15:50corionWent from 100% to 55% in 8h standby. Not too shabby. Not sure how asleep it was though. I thought I turned it off but I think it must've started so maybe it was just idle.
15:57giskard has quit [Ping timeout: 480 seconds]
16:25___nick___ has joined #asahi
16:25___nick___ has quit []
16:27___nick___ has joined #asahi
16:42bcrumb has joined #asahi
16:43bcrumb has quit []
17:04possiblemeatball has quit [Quit: Leaving]
17:10yumasi has joined #asahi
17:21karolherbst has joined #asahi
17:23karolherbstanyway.. with the linked dock (https://i-tec.pro/wp-content/uploads/vizu-27-1024x1024.png) everything works except connecting a display, because docks like this usually end up doing the display stuff over DP-MST
17:23karolherbstand it would be surprising if there is no way of making that work
17:24karolherbstohh.. I could boot macos and see what happens
17:25yumasi has quit [Remote host closed the connection]
17:26karolherbstahh yes, so DP-MST works with macos
17:27karolherbstso I guess that solves this mystery
17:28karolherbstso yeah... are there any DP-MST WIP patches?
17:31tpw_rulesi'm getting an occasional hang on boot from dcp failing to start ("wait for power timed out"), possibly in a racy way: https://pastebin.com/J5LkdH7F seems like it might be more likely to happen rebooting from macos (asahi is my default boot option) but i can't make it happen on command
17:31ChaosPrincesskarolherbst: what you have is the standard chinese usb hub, and that one is altmode
17:31ChaosPrincessi have one from the same oem but with different logo
17:32svento make thing more confusing: MST mirror/duplicate/however-it’s-called is backward compatible with normal DP single stream mode
17:32karolherbstah yeah.. that might be that this dock supports both
17:32karolherbstand that macos only uses altmode there
17:33karolherbstfair enough.. but I was under the impression that all this is actually still MST even if it's called "alt mode"
17:33corionI dont know the first thing about this, but sven seems confident enough to indicate he knows what he's talking about. I'd say fold your hand, karolherbst :)
17:33karolherbstwhich is totally fair
17:34svenwhat that hub is using is that DP altmode Pin assignment where two lanes are used for the USB3 signals and the two other lanes for DP
17:35karolherbstprobably
17:35svencorion: I’ve read way too many usb c and display port specs in the past months to get this working :(
17:36ChaosPrincesssven: wait, whats that about display crossbar?
17:36ChaosPrincessIsnt it dcp -> crossbar -> dp hardware?
17:37karolherbstanyway... I guess with the altmode patches it might just work on my system then?
17:37svenso you can route a single dcpext stream to a atcphy port when using DP altmode or two streams when using usb4 tunneling
17:37ChaosPrincessOh, ok
17:38karolherbst:D fair
17:38ChaosPrincessyou said "routing dp to crossbar", so that was confusing
17:38karolherbstapparently it also didn't like the dock to be connected while suspended
17:38karolherbstor at least I had to replug it so it identifies all the USB devices on it
17:38ChaosPrincesssven: btw, what machine are you doing this work/research on?
17:38corionI've noticed that I have to keep my headphones connected during boot for them to work (re: boot stuff).
17:39ChaosPrincessOh, nvm then
17:39karolherbstI just wanted to check if the m2 can handle my external 4K display better than intel does...
17:39ChaosPrincessIm kinda curious about if there is extra weirdnes on m1 mbp
17:40ChaosPrincessFor touchbar
17:40ChaosPrincesson t2, not m1
17:40yumasi has joined #asahi
17:41ChaosPrincessThere is digitizer, which is basically the same chip as in the iphone display, and something mipi related
17:41cylm_ has joined #asahi
17:42corionIf I wanted to make some asahi stickers, would I need some sort of license approval from whoever made that awesome logo? Or what license is it under?
17:43cylm has quit [Ping timeout: 480 seconds]
17:44marcanso all those "MST" docks with two ports just end up spitting out the same thing to both when used with non-MST hosts
17:44karolherbstahh, fair
17:45marcanI need to do deeper testing, but from what I saw simply putting ports into suspend and then trying to take them out doesn't work
17:46svenwe also need to reset the entire usb controller and phy every time a new device is connected
17:46marcanat least it's not dwc2 broken, where you need CPU low latency assist to even make the USB ports work and perform properly
17:46karolherbstwait what?
17:47karolherbstwell.. as long as I can trash my x86 laptop in a year I don't mind if it takes a bit longer 🙃
17:47ChaosPrincessmarcan: wtb story about dwc2 brokenness.
17:48ChaosPrincessCause wtf, how do you even break it that badly
17:48marcanI need to log what macOS does to figure out whether ports breaking in suspend mode is expected (maybe macOS does full resets, that'd be cursed...) or whether there's a magic incantation to make it not explode
17:49karolherbstmarcan: mhh.. just do a full reset on resume and move on or something?
17:49svenohhhh… i think macOS might do a full reset. Remember that thing where I broke the ports when disconnecting the cable at just the right time in macOS?
17:50marcankarolherbst: no, that is cursed because it means either 1) your USB storage devices fall off the bus on suspend and your filesystems crash, or 2) you enable the stupid cheat mode that works around that, then someone unplugs a USB driver and plugs in a different but identical drive during sleep and on resume their filesystem gets corrupted to hell and back
17:50karolherbstsure, but.. does it even work on x86?
17:52marcansven: the only safe way to make it work with a full reset is if we can detect a disconnect during sleep, which is probably possible with tipd irq flags or something, but
17:52tpw_rulessven: is dcp startup still known to be racy? i'm getting hangs on boot and "apple-dcp 38bc00000.dcp: wait for power timed out". i have more logs and info if helpful, but i thought it was a semi-known problem
17:53marcanand I'm not even sure if it can be made to work with ports chained off of hubs, because if you reset everything wouldn't that lose the disconnect state on DFPs?
17:54icanflyit has joined #asahi
17:54sventpw_rules: i was only tricked into adding dcpext support to DCP, jannau does all the other DCP stuff :)
17:56svenmaybe macOS only reset when it thinks nothings connected? That would also fix that broken port state I saw
17:56tpw_rulesicanflyit: following the pkgbuilds ( https://github.com/AsahiLinux/PKGBUILDs/blob/main/linux-asahi/PKGBUILD ) i think is the best way
18:17iaguis has quit [Quit: Lost terminal]
18:20Dementor has quit [Remote host closed the connection]
18:22Dementor has joined #asahi
18:43delsol has joined #asahi
18:43delsol has quit [Remote host closed the connection]
18:43delsol has joined #asahi
19:01jannautpw_rules: I don't think that's an indication of a race. either the timeout is under some circumstances too low (unlikely for laptops since I never seen that even with tracing), there's a logic bug or something crashes dcp
19:08jamespmorgan has joined #asahi
19:13unicordion has quit [Quit: unicordion]
19:18jamespmorgan has quit [Ping timeout: 480 seconds]
19:44jamespmorgan has joined #asahi
19:58possiblemeatball has joined #asahi
19:59__nick__ has joined #asahi
20:01___nick___ has quit [Ping timeout: 480 seconds]
20:33yumasi has quit [Remote host closed the connection]
20:59possiblemeatball has quit [Quit: Leaving]
21:01hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:02__nick__ has quit [Ping timeout: 480 seconds]
21:03jamespmo_ has joined #asahi
21:05Brainium has joined #asahi
21:08jamespmorgan has quit [Ping timeout: 480 seconds]
21:08Guest345 has quit [Quit: G-line: User has been permanently banned from this network.]
21:08vx has joined #asahi
21:09vx is now known as Guest551
21:11jamespmo_ has quit [Ping timeout: 480 seconds]
21:23icanflyitso I'm trying to modify the kernel so I can use the space in the notch (obviously wont be recognized by applications or WMs but I don't mind), so I've removed where notch_height is added in dcp_flush and then in parse_mode, I have it return the mode without the notch_height.
21:23icanflyitThat all works fine in x, but my question is what do I need to do to get that working with the mesa driver
21:25icanflyitsomewhere a resolution of 3456x2160 is defined, so when I try to run gpu accelerated with mesa (im testing with gnome) It attemps to use 3456x2160 and then I get invalid mode
21:34jamespmorgan has joined #asahi
21:43jamespmorgan has quit [Ping timeout: 480 seconds]
21:49jannauyes. thought process was that the notch becomes noticeable if the used display area extends left and right of it
21:49pthariensflame has joined #asahi
21:58delsol has quit [Remote host closed the connection]
22:00pthariensflame has quit [Quit: Textual IRC Client: www.textualapp.com]
22:05jannauthat option will not be the officially supported option. There will be eventually display modes for the partially occluded display
22:09jamespmorgan has joined #asahi
22:12cy8aerso selecting the resolution direct in the desktop, right? I tried the option and it is possible to let the notch invisible in gnome when modify the height to 48px and put the clock to the right hand side.
22:16cy8aerAnd because I can fully live with it it is my default now. jannau please warn when "apple_dcp.show_notch=1" disappears 😉
22:17jamespmorgan has quit [Ping timeout: 480 seconds]
22:26jamespmorgan has joined #asahi
22:34jamespmorgan has quit [Ping timeout: 480 seconds]
22:45rowin has joined #asahi
22:46ChaosPrincessno, there is absolutely nobody here :P
22:46ChaosPrincessif you have a question, you should just ask it
22:49tpw_rulesa more constructive answer: https://github.com/AsahiLinux/docs/wiki/%22When-will-Asahi-Linux-be-done%3F%22
22:50tpw_rulesand it's sort of a moving target, and because "full support" is a rather absolutist term
22:51SSJ_GZ has quit [Ping timeout: 480 seconds]
22:52rowingood battery, zero bugs, able to code and use basically all packages that exist. fast andnot buggy
22:53ChaosPrincesstil macos supports all packages that exist :P
22:53tpw_rulesby that metric actually asahi has negative bugs, there's at least one major dataloss bug fixed by asahi
22:54ChaosPrincessyea, you probably shouldnt download it
22:55ChaosPrincessit is
22:55ChaosPrincessgo back to macos
22:59jamespmorgan has joined #asahi
23:07jamespmorgan has quit [Ping timeout: 480 seconds]
23:18rowin has quit [Remote host closed the connection]
23:21jamespmorgan has joined #asahi
23:29jamespmorgan has quit [Ping timeout: 480 seconds]
23:37jamespmorgan has joined #asahi
23:45jamespmorgan has quit [Ping timeout: 480 seconds]
23:50kettenis_ has joined #asahi
23:52kettenis has quit [Ping timeout: 480 seconds]