2022-06-11
01:00DragoonAethis has quit [Quit: hej-hej!]
01:00DragoonAethis has joined #asahi
01:04JamesB192 has joined #asahi
01:09amarioguy has joined #asahi
01:20Emantor has quit [Quit: ZNC - http://znc.in]
01:20Emantor has joined #asahi
01:22derzahl has quit [Ping timeout: 480 seconds]
01:41refi64so I think I got DisplayLink to work & not crash, currently have it working with https://github.com/DisplayLink/evdi/pull/363 and a DL6950 adapter from Amazon
01:41derzahl has joined #asahi
01:41refi64note that I have not tested with any other DisplayLink adapters or on a host system that's not Fedora
02:13Moprius has joined #asahi
02:14chadmed has quit [Ping timeout: 480 seconds]
02:41PhilippvK has quit [Ping timeout: 480 seconds]
02:53Moprius has quit [Quit: Konversation terminated!]
03:09marvin24 has joined #asahi
03:13marvin24_ has quit [Ping timeout: 480 seconds]
03:25pyropeter3 has joined #asahi
03:27pyropeter2 has quit [Ping timeout: 480 seconds]
03:46chadmed has joined #asahi
03:47kov has quit [Quit: Coyote finally caught me]
03:57JamesB192 has left #asahi [http://quassel-irc.org - Chat comfortably. Anywhere.]
05:12jluthra has quit [Remote host closed the connection]
05:13jluthra has joined #asahi
05:14the_lanetly_052___ has joined #asahi
05:26marcanpovik: what's the story with the mux-based switching? is this for a single stream going to speakers or to headphones, or for muting multiple streams?
05:27marcanif single stream, I wouldn't bother. can't do the EQ properly in that case without a sound server, so I have no interest in supporting it (mps: you want features like jack hotplug with modern hardware, use a sound server. that's what the hardware design + kernel design requires.)
05:28marcanif it's just muting multiple streams I guess you could have software always send the plain jack version + EQ/crossover'd speaker version at once with an ALSA plugin...
05:28marcanit would of course be a waste of CPU power when headphones are in use though, in that case
05:31Chainfire has quit [Remote host closed the connection]
06:26Ry_Darcy has joined #asahi
06:33Ry_Darcy has quit [Remote host closed the connection]
06:34Mary has quit [Quit: The Lounge - https://thelounge.chat]
06:34Mary has joined #asahi
06:42eroux has joined #asahi
06:57povikit's single stream *and* running without a sound server that was questioned as a use case on the list
06:59poviktbh i kind of like if it could do that e.g. on mac mini where the lack of speaker dsp wouldn't seem that much of an issue
07:12dviola has joined #asahi
07:13dviola has left #asahi [WeeChat 3.5]
07:19povikthere may be a way to implement it with little cost that i will try for the next iteration
07:19chadmedi used to use a mini as an airplay mirror, the thing i used just rendered video directly to the framebuffer and used plain ALSA for audio
07:20chadmedthough even in that use case, 99% of the time youd have it hooked up to a stereo or AV receiver
07:27eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:48llanhmod has joined #asahi
07:54Sobek[m]Well asahi just saved my day after the Live USB key that contains my PGP master key decided it wouldn’t boot anymore.
07:54Sobek[m]Btw, taking the time to update my system, there have been some updates to the Asahi kernel since the initial Asahi release, am I right ?
08:19Ry_Darcy has joined #asahi
08:32mpsmarcan: povik: first, I don't know how this work on modern sound subsystems so it is not so much important to me
08:36marcanpovik: single stream + no sound server is not a supported use case in practice, IMO, due to the EQ issue
08:37marcanpovik: so basically if you can do it trivially, sure why not, but otherwise I would absolutely not try to spend any effort putting together some mechanism to make it work
08:37marcanit is the case on many modern systems that you cannot switch a single stream between headphones jack and speakers anyway
08:39marcanand how does your app know to close one device, open the other device, and change EQ profiles?
08:40marcanthe point is, not using a sound server means you don't have a layer between apps and hardware, which means apps see the hardware directly, which means you don't have a place to put the logic required for things like EQ and jack switching to work properly
08:41marcannobody's going to force anyone to use a sound server, but if you don't you have to accept that your apps are going to be outputting to one stream, and only one stream, and without any ability to EQ except for what you can do with ALSA plugins, and changing the setup will require a restart of the app or at least stopping/restarting audio
08:42marcanby the way, this has been broken for *decades*, it's just more obvious with modern systems
08:43eroux has joined #asahi
08:43marcanmy first laptop, a core2duo, had "5.1" speakers, and needed sound server support for upmixing, and I had to hack up the ALSA driver (that patch did get merged though lol) to allow opening the device in different channel modes because you could have things like the jacks in 2.0 mode or 5.1 mode, and that would mismatch with the speakers
08:43marcanespecially with hardware that tried, and failed, to share streams between speakers and HP jacks
08:44marcanconsider that software has to coordinate software volume scaling with codec volume scaling
08:45marcanif you're switching codecs for a single stream, how do you align the software volume change with the mux switch? you'd have to soft mute, switch, soft unmute, and time it all properly
08:45marcaneverything's a lot simpler if we just keep all this out of the kernel and let userspace deal with multiple streams and whatever timing it wants to use
08:46marcanthat is completely up to the software layer, and I personally care deeply about latency and want to work on improving that in PipeWire too
08:47marcanbut, on the other hand, if you really care about latency to the millisecond level, you'd probably be using JACK with zero jack switching smarts anyway, everything managed manually
08:47mpsand I'm using sound in some real-time systems where small latency can be a problem, though not on M1
08:47marcanyes, I do music production on Linux and I think I can make M1s some of the best systems to use for that
08:48chadmedpipewire is already a decent improvement over pulse by itself, pretty much good enough for daily driving a desktop if your requirements are just a web browser and video games
08:48marcanyup, only reason I don't use pipewire on my main machine is the firewire audio driver issue
08:48marcanand only reason I didn't ship it for the first alpha is I didn't have time to do any userland work at all
08:49marcanthe only thing that I need to dig deeper into pipewire for is I want to learn how it handles sample alignment and resampling, because I'm a bit worried about the automagic resampling stuff and would like some guarantees that e.g. it will never happen on certain audio paths as long as certain conditions are met
08:49marcan(for latency and quality and CPU usage reasons; for audio production you really don't want magic resampling behind your back)
08:50marcanand for firewire specifically I have an issue with multiple streams getting aligned I need to look into
08:51chadmedmps: yeah i was just kidding, ofc something like pulse or even pipewire is probably no bueno if you need the lowest possible latency
08:51mpsyes, sure it will be better to write driver with DSP but I don't have DSP in simple and small SBCs
08:52marcanand JACK, in practice, works better than using plain ALSA, simply because *correctly* implementing a low latency ALSA client is actually really hard
08:53stefan has joined #asahi
08:53the_lanetly_052__ has joined #asahi
08:54marcangetting latency low means implemeting DLLs to chase the hardware buffer pointer and things like that
08:55marcanpulseaudio is no good for low latency because it isn't designed for that and basically does all the wrong things for that use case
08:58chadmedliterally the one cool thing pulse makes easy that i had trouble replicating properly with pipewire is transparently tunnelling audio over the network (i like to demonstrate to people a 1:1 linux replacement for the typical enterprise windows+terminal services setup)
08:59marcanbut also, pulse just makes all the bluetooth/hdmi/jack/etc switching work properly, which never worked before it
08:59the_lanetly_052___ has quit [Ping timeout: 480 seconds]
08:59chadmedi might be misremembering but i feel like i got it working through pipewire's pulse implementation but i was also switching between pa and pipewire at the time
09:00Lucy[m]Yeah, pipewire has support for `module-native-protocol-tcp` so it can definitely tunnel the audio over network
09:00stefan has quit []
09:29eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:29nepeat has quit [Ping timeout: 480 seconds]
09:31linuxgemini956 has quit [Ping timeout: 480 seconds]
09:31ave363 has quit [Ping timeout: 480 seconds]
09:32nepeat has joined #asahi
09:32linuxgemini956 has joined #asahi
09:32ave363 has joined #asahi
09:35ave3630 has joined #asahi
09:35ave363 has quit [Read error: Connection reset by peer]
09:35ave3630 is now known as ave363
09:37ryancheddar[m] has joined #asahi
09:57llanhmod has quit [Quit: leaving]
10:10eroux has joined #asahi
10:39eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:49eroux has joined #asahi
11:34eroux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:35dianshi has left #asahi [WeeChat 1.9.1]
11:36kode54other issue: it doesn't bind the recording device correctly, so it is able to create the sinks for capture, but leaves the recording device set to the system default device
11:56derzahl has quit [Remote host closed the connection]
12:28wCPO62 has quit []
12:31wCPO62 has joined #asahi
12:31wCPO62 has quit []
12:32MichaelRose[m] has quit [Quit: Client limit exceeded: 20000]
12:32wCPO62 has joined #asahi
12:35kov has joined #asahi
12:35wCPO62 has quit []
12:36wCPO62 has joined #asahi
12:43opticron has quit [Ping timeout: 480 seconds]
12:52bakkl has joined #asahi
12:56Illya has joined #asahi
12:56opticron has joined #asahi
13:03Ry_DarcyDoes anyone have a howto/cookbook on running qemu-system-x86_64 from the command line from an M1 Mini running Asahi Linux (Linux debian 5.18.0-asahi)?
13:11bakkl has quit [Quit: Connection closed]
13:13bakkl has joined #asahi
13:37mpskettenis: aha, yes. I made some fixes for it on alpine year or two ago and moved to stable release. should look again on it if it could work on linux
13:40mpsRy_Darcy: I don't have for x86_64 but have some examples for riscv64, armv7 and aarch64 here https://arvanta.net/alpine/
13:48Ry_DarcyThis script - https://arvanta.net/alpine/install-aarch64-qemu/ works like a treat. I am looking for the win10 variant (if at all) to work on the M1 Mini.
13:50mpsRy_Darcy: yes, this works fine. when daughter come back home I will look at her computer for win 10 script (I made it for her because it is needed for her university)
13:51___nick___ has joined #asahi
13:52___nick___ has quit []
13:53___nick___ has joined #asahi
15:00bakkl has quit [Ping timeout: 480 seconds]
15:19Ry_Darcy has quit [Remote host closed the connection]
15:50mpsthis is how I started it on x86_64, on aaarch64 kvm can't be used but something else to get acceptable performance
16:21povik10:47 < marcan> yes, I do music production on Linux and I think I can make M1s some of the best systems to use for that
16:21Guest1499 is now known as Skirmisher[m]
16:21poviki wonder if the counter values from ADMAC reports is something we should make us of later on to make timing on point
16:22marcanquite possibly, yeah, you want DMA feedback for downstream consumers most likely. That rings a very vague bell. I don't know about the details though.
16:23marcanfwiw I'm more personally interested in the CPU side (getting good realtime latency so you can actually use tiny buffer sizes, fixing realtime breaks in the kernel) since we have a much better chance at that than on the mess that is the intel world
16:24eroux has joined #asahi
16:25marcan-rt has been an out of tree patchset for *ages* and it was sort of rotting for a while, but last year the big core part of the patchset was merged (just not usable yet)
16:26ComradeMisato[m]one of these days audio will work on my end
16:27marcanI've been personally running -rt for a long time and I'm quite happy with what it does, but it's limited by cpu/hardware being terrible at this point
16:28marcane.g. on intel I have to just outright disable almost all CPU idle states for it not to suck
16:28marcanand this is an iMac so SMC is under control, but on a lot of other intel platforms that'll steal your CPU for milliseconds at a time too
16:30marcananyway intel bought the company that was sponsoring linux-rt or something, so hopefully they'll move the core kernel stuff forward (I have no high hopes for it actually being any good on their CPUs though :p)
16:32marcanmy guess is intel will only ever care about this on industrial boards with very controlled hardware, and we'll be the only ones putting out a solid RT experience on consumer machines :p
16:33marcanbut if I can start setting my audio buffers to 64 samples and have it work at all, that will be a lot of fun
16:36eroux has quit [Remote host closed the connection]
16:49___nick___ has quit []
16:51___nick___ has joined #asahi
16:51___nick___ has quit []
16:52the_lanetly_052___ has joined #asahi
16:53___nick___ has joined #asahi
16:58the_lanetly_052__ has quit [Ping timeout: 480 seconds]
18:34the_lanetly_052___ has quit [Ping timeout: 480 seconds]
18:41qeeg_ has joined #asahi
18:43qeeg has quit [Ping timeout: 480 seconds]
18:55ciggi has quit [Read error: Connection reset by peer]
18:57Cy8aer[m]hm, I am not sure that the heating of the system is the gpu emulation when charging the battery: Try this... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/ZAncdfcsJoFsqnADvHNOyfum)
19:01ciggi has joined #asahi
19:02Cy8aer[m] * hm, I am not sure that the heating of the system is the gpu emulation when charging the battery: Try this... (full message at https://matrix.org/_matrix/media/r0/download/matrix.org/OnqdwUzzdXGnBKcTnLkIUBeC)
19:05confusomu has quit [Remote host closed the connection]
19:08confusomu has joined #asahi
19:51osaka1990_ has quit [Ping timeout: 480 seconds]
20:08___nick___ has quit [Ping timeout: 480 seconds]
20:23Cy8aer[m]another hm: start gdm log in and screen saver: Machine gets cold. (about 80% of battery)
21:16Moprius has joined #asahi
21:40derzahl has joined #asahi
21:48Moprius has quit [Remote host closed the connection]
21:49Moprius has joined #asahi
21:52Moprius has quit [Remote host closed the connection]
21:52Moprius has joined #asahi
21:56Moprius has quit [Remote host closed the connection]
21:58Moprius has joined #asahi
22:02Moprius has quit [Remote host closed the connection]
22:02Moprius has joined #asahi
22:02Moprius has quit []