#
…

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:17jannauiaguis: that's currently expected. the cpu keep running in s2idle
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:26iaguisor do you mean it's currently expected but it should be fixed in the future?
12:48hendry has joined #asahi
12:52jannauI was describing how the system behaves
12:52Treibholz has quit [Quit: WeeChat 3.7.1]
12:53Treibholz has joined #asahi
12:58iaguisI see, at least I know it's not something weird with my machine :)
12:58iaguisbut I think it should be fixed
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:52corionDefinitely acceptable though.
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:25corionI dont know if this is relevant to your thing.
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:29svenwhat you’re using is altmode and not MST. MST would be at least two separate DP streams
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:33svenas I said, this hardware doesn’t support MST
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:33sveni can’t route two DP streams to a single output in the display crossbar when using DP mode
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:35svencorion: I’ve read way too many usb c and display port specs in the past months to get this working :(
17:35corionsven: I figured :)
17:35corion(and I'm glad you did!)
17:36ChaosPrincesssven: wait, whats that about display crossbar?
17:36ChaosPrincessIsnt it dcp -> crossbar -> dp hardware?
17:37svenChaosPrincess: the thing that handles dcpextN to atcphy-{dpout, usb4-dpin-0/1}
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:37sveni wouldn’t call the state they are in “work”, but sure
17:38sventhey still have a few issues like you can’t have the display connected during boot
17:38ChaosPrincessyou said "routing dp to crossbar", so that was confusing
17:38svenand it just doesn’t like sone displays yet
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:39corionWhich makes sense I guess.
17:39svenChaosPrincess: m1 Mac Mini
17:39ChaosPrincessOh, nvm then
17:39svenbut other people have tested it on the pro/max and m2
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:40corionIsn't the touchbar watchOS?
17:40svenI’d be surprised tbh, touchbar should be mostly separate from the atcphy mess
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:43corion"Licensed under CC BY-SA 4.0", found it, I think.
17:43cylm has quit [Ping timeout: 480 seconds]
17:43corionSo it seems I can make stickers using the logo. Sweet!
17:43marcankarolherbst: DP-MST hardware will usually send a single stream to multiple outputs
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:44marcanthey don't *require* MST
17:44marcanas long as you don't need two discrete outputs
17:45marcanre suspend that is known broken
17:45marcan(lots of things are broken in suspend, but USB especially)
17:45marcanUSB is very cursed on these machines
17:45tpw_ruless/ on these machines//
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:45marcanI mean, it's a Synopsys core
17:46marcanso broken is the default state
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:46marcanthis is why USB sucks on the raspberry pi
17:46marcanthose use dwc2
17:46svenyeah, this thing is quite broken
17:46marcanM1s use dwc3
17:46marcanso dwc2 was *really* bad, dwc3 is just mostly bad
17:47corionProgress!
17:47tpw_rulesbut dwc2 is still usb3?
17:47marcanno, dwc2 is usb2
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:48marcanChaosPrincess: Synopsys.
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:49sventhe thing that worked in Linux because I did that additional hard reset
17:49svenI could also restore those ports with a suspend cycle under 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:50marcanI'm going to be very sad if 2) is the state of affairs on macOS
17:50karolherbstsure, but.. does it even work on x86?
17:50marcanyes it does
17:50marcanit also works on the Type A ports on M1s
17:50marcanbecause those use an xHCI controller not made by Synopsys
17:50marcanas I said, Synopsys
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:52marcanthat means even *more* cursed abstraction breaking bullshit in linux
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:53marcanI hate USB.
17:53marcanI'm going to sleeep.
17:54icanflyit has joined #asahi
17:54svenyeah, we can probably detect it with some tipd hacking but ugh
17:54svenI’d rather not :D
17:54marcanif we can't make it work with downstream hubs it's a lost cause anyway
17:54marcanbut then we should be able to cause epic filesystem corruption on macOS too
17:54marcanthat would be a fun bug to file
17:54marcanI should test that...
17:54sventpw_rules: i was only tricked into adding dcpext support to DCP, jannau does all the other DCP stuff :)
17:55icanflyitI have a question - what branch is the linux-asahi-edge kernel built from?
17:55marcanasahi tagged releases
17:55tpw_rulessven: ah okay, thank you
17:56svenmaybe macOS only reset when it thinks nothings connected? That would also fix that broken port state I saw
17:56* svenhates usb too
17:56icanflyitwhat are the stable tags?
17:56tpw_rulesicanflyit: following the pkgbuilds ( https://github.com/AsahiLinux/PKGBUILDs/blob/main/linux-asahi/PKGBUILD ) i think is the best way
17:57marcanasahi-<version>-<tagver>
17:57icanflyitokay thank you :)
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:28j`eyicanflyit: there's already a command line option to use the notch
21:29j`eyapple_dcp.show_notch=1 not officially supported yet
21:34jamespmorgan has joined #asahi
21:38icanflyitThat option works on latest tagged release?
21:43jamespmorgan has quit [Ping timeout: 480 seconds]
21:46icanflyitshow_notch=1 means that the screen extends through the notch?
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:13cy8aer(panel height of course)
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:45rowinanyone here?
22:46tpw_rulesnope, sorry
22:46ChaosPrincessno, there is absolutely nobody here :P
22:46rowinwhen this chat usually achieve?
22:46rowinactive?
22:46ChaosPrincessif you have a question, you should just ask it
22:47rowinmy question is, how long will it take for asahi linux to have full support for M1/M2 macs
22:47rowinand why is there no discord server
22:48tpw_rulesforever, and because discord is trash
22:48rowinlol im not downloading asahi then
22:49rowinasahi sucks
22:49tpw_rulesdamn, sucks to be us
22:49waldirowin: you should go
22:49rowinwhy even make something with no full support
22:50tpw_rulesbecause there are steps between no support and full support?
22:50tpw_rulesand it's sort of a moving target, and because "full support" is a rather absolutist term
22:51rowinwhen will asahi be like ubuntu then, IE everything should be compatible and work on macs
22:51tpw_rulesit's pretty darn good now
22:51tpw_ruleswhat do you need out of a computer
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:52tpw_ruleswell then i'm going back to my answer of forever
22:53rowinill stick with macos then
22:53tpw_rulestil macos has zero bugs
22:53ChaosPrincesstil macos supports all packages that exist :P
22:53rowintpw, macos at least works mate
22:53rowineverything i need is on macos, just the file system sucks dick
22:53tpw_rulesby that metric actually asahi has negative bugs, there's at least one major dataloss bug fixed by asahi
22:54nclexcept for the like entire year where you'd have pink screen gpu crashes,
22:54ncland when you'd softbrick it by doing a factory reset
22:54rowinif asahi crashes, not downloading. if asahi cant do anything macos can, not downloading
22:54ChaosPrincessyea, you probably shouldnt download it
22:55nclthere's a lot any linux can't do on a mac that macos can so lol
22:55rowinlol asahi is just trash then
22:55ChaosPrincessgo back to macos
22:55rowinwe need good devs to make a native linux for mac
22:55rowinfk asahi
22:59jamespmorgan has joined #asahi
23:00rowinasahiii
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]
…