#
…

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:58poviki know it's dimishing returns but i saw a way to implement it and so i did
06:58povik(all the while not compromising on the other use cases)
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:17chadmedone useful edge case would be using the mini as a very very barebones media client
07:19povikthere may be a way to implement it with little cost that i will try for the next iteration
07:19povikif that doesn't work i guess i will have to drop it
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:04j`eySobek[m]: yup
08:05j`eySobek[m]: mostly a rebase
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:33mpsjust prefer if it can work without userspace server
08:34mpsbut again, however you make it it fine for me
08:34mpsit is*
08:35mpsiiuc equalizer is implemented in hardware and managed by userspace software. or I'm wrong?
08:35chadmedthe EQ and DSP is implemented in software
08:36mpshmm, then I don't see reason to use soundserver
08:36marcanpovik: single stream + no sound server is not a supported use case in practice, IMO, due to the EQ issue
08:36marcanI mean with auto-switching
08:36marcanchadmed: for that use case you wouldn't need headphone jack switching anyway
08:36marcansince presumably you'd always be using some sort of output
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:37mpsuserspace jack switching is quite ok imo
08:37marcanit is the case on many modern systems that you cannot switch a single stream between headphones jack and speakers anyway
08:38marcanmps: you need a sound server for that to work mid-stream without application support
08:38marcansince alsalib does not help you there
08:39mpsmarcan: input event layer can send signal to userspace, and use it to switch jack?
08:39marcanand how does your app know to close one device, open the other device, and change EQ profiles?
08:39marcanthat's what we have sound servers for
08:39mpssound stream I mean
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:40mpsmarcan: aha, I think to beginning to understand what you want to say
08:41mpsyes, this is understanble
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:41mpsthat's true and it is how I use it now
08:42marcanby the way, this has been broken for *decades*, it's just more obvious with modern systems
08:43mpsthis mux switching is in input and not in output
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:43marcanat the time this was all a mess
08:43marcanespecially with hardware that tried, and failed, to share streams between speakers and HP jacks
08:44marcanhence the trend has been towards just doing it all in software
08:44marcaneverything is a separate stream, implement policy in userspace
08:44marcanwhich works quite well in modern systems
08:44marcanmuxing is a problem in general, because it creates race conditions
08:44marcanconsider that software has to coordinate software volume scaling with codec volume scaling
08:44mpsmarcan: now I understand better, thank you
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:45marcanwhat a mess
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:45marcanthough of course that means you need a sound server for proper functionality
08:46mpsI just had fear that software layer can add latency
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:48marcanbut jack auto switching without a sound server is definitely not needed for that :p
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:48mpsI'm using in radio amateur (HAM) sound processing
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:48chadmedmps: just buy a tecsun s2000 :P
08:49mpschadmed: what is it
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:49chadmedhardware multiband receiver, does LW, SW, AM/FM broadcast bands and ATC band
08:50marcanand for firewire specifically I have an issue with multiple streams getting aligned I need to look into
08:50marcanbut I'm sure that can all be worked out
08:50mpschadmed: aha, thanks. but I need sound to be processed in software
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:51marcanpipewire should be fine for low latency under the right conditions
08:51marcanin principle it should be designed to equal JACK
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:52marcanand JACK has all that mess built in
08:52marcanand writing a JACK app is stupidly simple
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:54marcanit is not trivial at all
08:54mpsI know, because that I didn't tried :)
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:56mpsnewer liked pulseaudio and one of strong reason to switch from debian to alpine
08:57mpss/and/and that was/
08:57marcanpulseaudio is excellent for all the normal use cases
08:57marcanwhich is why my current audio setup is pulseaudio on top of JACK
08:57marcanmusic production / processing hits JACK directly
08:57marcanpulseaudio handles all the "desktopy" stuff on top
08:57marcanand I just create whatever source/sink ports to bridge between them that I need
08:57marcanworks great
08:58mpsfor me it was problematic always
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:58marcanyes, I use that too, it's pretty cool
08:58marcanand IIRC pipewire lost that
08:58marcanthough I don't know if any replacement has showed up since
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
08:59marcanbeing able to switch apps between different hardware devices is extremely powerful
09:00Lucy[m]Yeah, pipewire has support for `module-native-protocol-tcp` so it can definitely tunnel the audio over network
09:00mpsbtw, does openbsd uses sound server? sndio maybe?
09:00marcanis that new? it wasn't a thing a year ago or so IIRC
09:00stefan has quit []
09:01marcanahh, may last year
09:01Lucy[m]It's been a thing for at least 11 months
09:01marcancool, so now that's in too
09:01mpsdon't know, some time ago I tried it on linux
09:02marcanback when I first tried PW it wasn't there yet
09:02mpsah sorry, you talking about pipewire
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:35kode54I had to switch back to PulseAudio
11:35dianshi has left #asahi [WeeChat 1.9.1]
11:35kode54Sunshine doesn't work so hot with PipeWire, especially on a VM
11:36kode54VM: glitchy audio
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:53bakklhas there been any progress on system sleep lately
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:03Ry_DarcyHave tried all sorts of things, but I am only getting as far as the QEMU shell.
13:11kettenismps: yes sndiod(8)
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:41Ry_DarcyThanks. I am tring to get a win 10 .iso to fly.
13:42mpsI had win10 few years ago in qemu, maybe I saved scripts and drivers somewhere
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:53Ry_DarcyGreat. Thank you. As long as it runs on the M1 Mini using Asahi Linux.
13:53___nick___ has joined #asahi
14:01mpsdon't see any reason why it wouldn't
14:09Ry_DarcyLet us wait and see. Thanks.
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
15:57mpsryan_nupp[m]: oh sorry, it was intended for Ry_Darcy
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:22poviknot sure how better it is than querying the dma controller for residue which is done now
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:23povik*thumbs up*
16:23marcanso I won't be bugging you too much about the audio hardware side unless you ask me to :)
16:23marcan(or unless I find a problem :p)
16:23povikfeel free to actually
16:23poviki will be happy if we make it as good as it can be
16:23marcanexcellent :)
16:24eroux has joined #asahi
16:24marcangood time to be working on linux realtime stuff too, with PREEMPT_RT almost there
16:24* povikis not in the loop on that
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:27mpsand in 5.19-rc are added some more
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:28marcan... but then the damn thing overheats and throttles and it goes terribad again
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:29marcan*SMM, not SMC
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:30marcanbut I want it to work nicely on M1s :)
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)
18:59Cy8aer[m](stop gdm: Disable the desktop of your choise - I guess it will be kdm on asahi arch)
19:00Cy8aer[m]s/choise/choice/
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)
20:23Cy8aer[m]s/screen/lock/, s/saver/the desktop/
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 []
…