#
✕ nick:chadmed
#asahi-dev · 2022-12-02 04:07
chadmedso i hook that into panic!
#asahi-dev · 2022-12-02 04:07
chadmedthats what helpers::fail() will do eventually
#asahi-dev · 2022-12-02 04:06
chadmedoh right
#asahi-dev · 2022-12-02 04:06
chadmedwhat needs more handling
#asahi-dev · 2022-12-02 04:05
chadmedi know it needs major work
#asahi-dev · 2022-12-02 04:05
chadmedyes absolutely thats why i posted it :P
#asahi-dev · 2022-12-02 04:04
chadmedthe keepalive would only be useful in the case of the daemon segfaulting (should be impossible) or being forced dead by oomd or whatever
#asahi-dev · 2022-12-02 04:03
chadmedit depends on exactly what we're trying to prevent from happening. if the daemon encounters a runtime error (all possible ones are currently handled) then it can just send a single IOCTL to the driver to enable codec safe mode
#asahi-dev · 2022-12-02 04:01
chadmedbecause the driver would have to be running a time check on the last access to the IOCTL. how would that play out with suspend etc?
#asahi-dev · 2022-12-02 03:56
chadmedan attempt was made but im not sure how good it is. it builds and it runs and its fast but idk if its very "rust"y
#asahi-dev · 2022-12-02 03:55
chadmedhttps://github.com/chadmed/speakersafetyd
#asahi-dev · 2022-12-01 10:56
chadmedand if its an EOL feature on the machines then theres even less incentive for people to support it
#asahi-dev · 2022-12-01 10:56
chadmedimho i think its a cool exercise in RE and all that, but theres very little chance anyone is going to put in the dev time to support it in desktop apps. even apple seem to have abandoned it
#asahi-dev · 2022-12-01 10:48
chadmedfwiw all those elgato stream deck things share some python lib for actually doing things with them
#asahi-dev · 2022-12-01 10:45
chadmedthats what i was thinking of yeah heh
#asahi-dev · 2022-12-01 10:44
chadmedyeah vr, but probably also used for significantly more lethal devices id say
#asahi-dev · 2022-12-01 10:44
chadmedhead-mounted display?
#asahi-dev · 2022-12-01 09:36
chadmedif its just a dumb framebuffer with a digitiser on top of it that we cant represent as a "normal" touchscreen
#asahi-dev · 2022-12-01 09:34
chadmedsounds like something that would benefit from a bespoke userspace lib that does any special stuff with ioctls
#asahi-dev · 2022-12-01 09:33
chadmedis there nothing like that in front of the touchbar?
#asahi-dev · 2022-12-01 09:31
chadmedare there any drivers for those cringe little screens they put on PC AIOs et al these days?
#asahi-dev · 2022-12-01 09:31
chadmedah of course :P
#asahi-dev · 2022-12-01 09:30
chadmedwhat special handling does it need specifically?
#asahi-dev · 2022-12-01 09:29
chadmedif its HID/HID-like i imagine you could draw some inspiration from the existing HID touchscreen drivers
#asahi-dev · 2022-12-01 09:23
chadmedof course its different, the usb-if's primary objective is to cause sven grief. maintaining usb is merely a consequence of that
#asahi-dev · 2022-12-01 05:58
chadmedaiui this is supposed to stop userspace from being able to change it but i can still twiddle it in alsamixer
#asahi-dev · 2022-12-01 05:57
chadmedalsa lib returns 0 on snd_ctl_elem_lock but the element in question does not lock?
#asahi-dev · 2022-12-01 05:55
chadmedhm its the latter
#asahi-dev · 2022-12-01 05:50
chadmedpovik: does macaudio need to explicitly handle SNDRV_CTL_IOCTL_ELEM_LOCK or is alsa meant to deal with that in a driver agnostic way?
#asahi-dev · 2022-11-29 06:20
chadmedis it reproducible or an intermittent thing
#asahi-dev · 2022-11-29 06:13
chadmedand as evidenced above i can barely get a string to print properly let alone rewrite try rewriting alsa-lib safely
#asahi-dev · 2022-11-29 06:13
chadmedi did think of that but yeah alsa-lib is horrid enough in C let alone trying to wrestle with the alsa rust crate
#asahi-dev · 2022-11-29 06:09
chadmedhow good is string manipulation in c :P
#asahi-dev · 2022-11-29 06:09
chadmed29/11/22 4:08 PM speakersafetyd Started speakersafetyd for j31
#asahi-dev · 2022-11-29 01:27
chadmedmarcan, povik: i have a fix for the speaker codec suspend issue as a PR against linux-asahi if you want to take a look. re the userspace safety stuff i had a go at that a little while ago but had difficulty wrangling alsa-lib :(
#asahi-dev · 2022-11-27 09:04
chadmedonly the left tweeter and left woofer 1 make it through, the rest fail consistently
#asahi-dev · 2022-11-27 09:03
chadmeds2idle is borked on tas2764. the same four codecs every single time fail on regcache_sync()
#asahi-dev · 2022-11-26 05:29
chadmedoh nvm thats a libinput setting...
#asahi-dev · 2022-11-26 05:27
chadmedalso re spi-hid the only showstopper ive noticed here is not being able to use the trackpad while pressing any non-modifier keys. that made playing xonotic last night quite difficult :P
#asahi-dev · 2022-11-26 05:24
chadmedidk if it was the software side being saturated after all the filters were applied or whatever but theres now no more clipping at max volume and the software volume control has way more useable range
#asahi-dev · 2022-11-26 05:24
chadmedyeah which is what i was doing in the IRs to make up the difference, but setting it in the kernel driver to the macos value and getting rid of the gain bump from the pipewire end fixes a lot of the problems ive been tearing my hair out trying to deal with
#asahi-dev · 2022-11-26 05:20
chadmednot dynamically, which is why i was playing around with the equal loudness filter
#asahi-dev · 2022-11-26 05:18
chadmedpipewires software volume control, the woofers just become far too quiet below ~45-50% at the current setting
#asahi-dev · 2022-11-26 05:17
chadmedexcellent, where theyre set now really kills low volume performance. the way ive got it now with the gain set to 15 (18.5 dB) we dont even need the compressor in pipewire anymore top stop clipping which saves a boatload of cpu time and makes the equal loudness plugin slightly less necessary
#asahi-dev · 2022-11-26 01:40
chadmedno clipping or melting or magic smoke has been observed as of yet
#asahi-dev · 2022-11-26 01:39
chadmedmarcan, povik: how do you feel about bumping the amp gains to the same as macos eventually? ive got a set of IRs for it and it helps with low end response at low-ish volumes enough that it wont really matter if we cant easily integrate the equal loudness plugin
#asahi-dev · 2022-11-24 07:18
chadmedyeah i have the same use flags and no VIDEO_CARDS
#asahi-dev · 2022-11-24 07:13
chadmedwith llvmpipe and gentoo's mesa i was getting less than 5fps in wayland with dcp. installing asahi/mesa main branch fixes that and behaves like you describe
#asahi-dev · 2022-11-24 05:46
chadmedits not massively slow anymore (on the dev branch that is)
#asahi-dev · 2022-11-24 05:46
chadmedjannau: latest mesa fixes dcp+wayland+llvmpipe

plus ›