#
…

2023-12-15

00:00livchadmed: I installed mesa::asahi, how do I build it into the kernel?
00:00livI'm sorry for my many questions, but I hope to end up with a working system and to be able to do this myself :P
00:02VeeBop8 has joined #asahi-alt
00:03lynndotpy9 has joined #asahi-alt
00:03lynndotpy has quit [Read error: Connection reset by peer]
00:03lynndotpy9 is now known as lynndotpy
00:04zzywysm has quit [Ping timeout: 480 seconds]
00:05VeeBop has quit [Ping timeout: 480 seconds]
00:05VeeBop8 is now known as VeeBop
00:06livI am hesitant to try and replace my kernel in /boot because I don't trust myself :P
00:14j`eyliv: install a second one
00:14j`eyas in, dont overwrite that one
00:14kidplayer666 has quit [Quit: Connection closed for inactivity]
00:16livCan I just run `doas make install -j10`?
00:16john-cabaj has quit [Remote host closed the connection]
00:17john-cabaj has joined #asahi-alt
00:19livAlso, is there a Matrix-bridge to this room?
00:20livI am currently in a tmux window SSH'd into a server that has a tmux window running in the background running irssi
00:20livI'd like to have a browser to be able to open links when needed :P
00:20livif not, curl is also okay-ish for that...
00:25zerdox has joined #asahi-alt
00:30zerdoxjanneg, chadmed: i found that both of available 6.6 kernels break speakers volume control for me. it was and still working on 6.5. compiling both using same config, just updated some rust things because kernel required to upgrade them. do you have any ideas? i sent a strace of alsactl above
00:35livI'll continue tomorrow, good night people :)
00:35liv1:35 am here :P
00:38j`eyliv: no bridge
00:45chadmed_ has joined #asahi-alt
00:46chadmed_liv: you dont build mesa into the kernel. mesa is the userspace component of the graphics stack.
00:46chadmed_once you install rust aand bindgen, you need to rebuild the kernel with RUST=y and DRM_ASAHI=m
00:46chadmed_(then reinstall with the usual procedure)
00:46chadmed_zerdox: refer to above. speakersafetyd locks the kcontrols. there is no way around this and we will not be providing facilities for them to be unlocked. use pipewire.
00:48zerdoxchadmed_: i do use pipewire, volume control just works on 6.5 but doesn't on 6.6. i use pavucontrol or pwctl to change volume
00:49chadmed_do you have asahi-audio installed?
00:49zerdoxalso as i mentioned before i can change volume of my right speaker, that's strange and i am sure it is not intended behavior
00:49zerdoxyes i do
00:49zerdoxlatest one
00:50chadmed_which DE are you using
00:51zerdoxwayland and hyprland
00:52chadmed_please clear out /etc/wireplumber/ and /etc/pipewire/ if they exist and reinstall asahi-audio, wireplumber and pipewire
00:52chadmed_then reboot
00:52zerdoxsure, i'll try now
00:56zerdoxyay, that worked
00:56zerdoxchadmed_: thank you :)
00:57zerdoxno, now i only got dummy output
01:00chadmed_i might need to push a release of asahi-audio to the overlay
01:00chadmed_what machine do you have?
01:00zerdoxair 2020
01:06chadmed_run `echo -n "J313" | sudo tee /sys/class/sound/card0/id` and then log out and log back in
01:11zerdox has quit [Read error: No route to host]
02:34eiln has joined #asahi-alt
03:21jeisom has quit [Ping timeout: 480 seconds]
04:29possiblemeatball has quit [Quit: Quit]
06:09chadmed_ has quit [Quit: Page closed]
06:38kidplayer666 has joined #asahi-alt
08:08marcan< yuka> also when I unload and load the snd_soc_macaudio again my system sometimes locks up <- unloading modules is basically completely untested and expected to be broken in all sorts of ways :p
08:08marcan< yuka> I updated to kernel asahi-6.6-9, speakersafetyd 0.1.7, asahi-audio e1ccf5f. With a freshly booted system the speakers are unlocked, then once I start playing something they immediately become "Speaker volumes locked: Lock timeout" <- IIRC this happens when the routing is configured wrong, which means PW/ALSA UCM didn't do its job.
08:08marcannote that with bare ALSA it's expected not to work out of the box right now, you need to manually poke the routing settings in alsamixer first (UCM does this when using PW)
08:11marcanI need to figure out what to do about the alt routing modes, but honestly I'm tempted to just remove all that, it just makes everything more complicated once speakersafetyd is in the mix
08:47kidplayer666 has quit [Quit: Connection closed for inactivity]
08:59kujeger has quit [Ping timeout: 480 seconds]
09:16livchadmed: Is that `CONFIG_HAVE_RUST=y`?
09:18livDRM_ASAHI does not exist in my kernel's .config file (took the one from you)
09:18mpsliv: it is auto if rust installed and run `make {menu,n}config}`
09:19mpsit is set by make config if rust is intalled on machine
09:20mpsI have bitten few times with this when I don't rust in kernel and have it installed
09:20mpsdon't need*
09:22livafter running `doas make {menu,n}config` I did not get anything matching `ASAHI` inside the document
09:22ChaosPrincessdid you enable config_rust
09:23liv`CONFIG_HAVE_RUST=y`
09:23ChaosPrincessno, specifically config_rust
09:23livThat's not there
09:23livWait I'll upload my kernel config
09:23mpsliv: '{menu,n}' means one of this
09:24ChaosPrincessdon't bother
09:24ChaosPrincesscan you run make menuconfig and search for "RUSt"
09:24mpsso 'make menuconfig' or 'make nconfig'
09:24ChaosPrincessand say which options matched
09:24livhttps:/0x0.st/PYPV.txt
09:24livI did that
09:24livand none appeared
09:25ChaosPrincessrun `make rustavailable`
09:25livRust compiler `rustc` is too new. This may or may not work.
09:25ChaosPrincessanything else?
09:25livRust bindings generator `bindgen` is too new. This may or may not work.
09:26livthen it fails with error 1/error 2
09:26livWait I'll get on my desktop so I can ssh in and copy/paste
09:26ChaosPrincesscan you post the full output
09:26livye 2 sec
09:28livDo I paste it here?
09:28livor in a seperate pastebin-like thingy?
09:29ChaosPrincessdo not post more than 3-4 lines of text at once to irc, it makes everyone cranky
09:29livalright
09:30ChaosPrincessdo you have clang installed?
09:31livclang version 17.0.6
09:31livTarget: aarch64-unknown-linux-gnu
09:31livThread model: posix
09:31livInstalledDir: /usr/lib/llvm/17/bin
09:31livConfiguration file: /etc/clang/aarch64-unknown-linux-gnu-clang.cfg
09:31livThis is 5 lines but I think it should be fine??
09:31livThat's `clang --version` btw
09:32livWalking the dog, brb
09:33nst_ has quit [Ping timeout: 480 seconds]
09:42nst has joined #asahi-alt
09:48kujeger has joined #asahi-alt
09:54livChaosPrincess: do you have other things I can test?
09:54livof chadmed:
09:55ChaosPrincessidk at this point, what does equery u clang says?
09:57liv!!! Could not load USE flag descriptions from /var/db/repos/asahi/profiles/use.desc
09:57livthen a traceback (because Python) and then `UnboundLocalError: cannot access local variable 'open_file' where it is not associated with a value`
10:52livI dm'd chadmed on Matrix, rebooting now
10:56zerdox has joined #asahi-alt
11:04kidplayer666 has joined #asahi-alt
12:12zerdox has quit [Ping timeout: 480 seconds]
12:13zerdox has joined #asahi-alt
12:54jeisom has joined #asahi-alt
12:58zerdox has quit [Ping timeout: 480 seconds]
12:58zerdox has joined #asahi-alt
13:20zerdoxchadmed: i get it reset after a reboot, back to AppleJ313
13:30zerdoxbtw it did the trick. i also had to do etc-update which i missed yesterday. how to make sound card id persistent?
13:38j`eyzerdox: it should be persistent on the latest kernels
13:39zerdoxj`ey: i am in 6.6.0_p10
13:39j`eythat has the commit.. (c6da2ce989fe14e65bfb251f1957147b068ce72c)
13:39zerdoxi could reboot and check it's value on 6.5
13:39chadmedthat value is correct
13:39chadmedthe problem is you have an old speakersafetyd
13:40chadmedplease be patient and ill get an update into the overlay tomorrow
13:41zerdoxdoes this mean it's getting disabled?
13:42j`eyno gentoo has been patched
13:43zerdoxwaiting for an update, for now i'll update id manually because it works for me
13:43rino has joined #asahi-alt
13:48rino has quit [Quit: leaving]
14:07tpz has joined #asahi-alt
14:12zerdox has quit [Ping timeout: 480 seconds]
14:15tpz has quit [Quit: leaving]
14:16livDoes anyone run Hyprland here?
14:22millenialhacker has joined #asahi-alt
14:29matteo has joined #asahi-alt
14:37mpsjanneg: j`ey: to fix uclamp warning in speakersafetyd it is enough to enable UCLAMP_TASK. UCLAMP_TASK_GROUP is not needed
15:10millenialhacker has quit [Quit: Konversation terminated!]
15:11millenialhacker has joined #asahi-alt
15:18millenialhacker has quit [Quit: Konversation terminated!]
15:18millenialhacker has joined #asahi-alt
15:24j`eyliv: set HYPRLAND_LOG_WLR=1 and run hyprland
15:25j`eythat will print one of two reasons why the gles2 renderer failed
15:31j`eybasically overriding the mesa/asahi driver to change the supported version
15:47matteo has quit [Remote host closed the connection]
16:32millenialhacker has quit [Quit: Konversation terminated!]
16:33millenialhacker has joined #asahi-alt
17:10yukaI just got the speakers working correctly(?) for the first time on my MacBook Pro (14-inch, M1 Pro, 2021) on NixOS. The issues was indeed the Alsa UCM config not being visible to pipewire/wireplumber correctly. This sounds amazing!
17:15livj`ey: github issue thingy didn't work, going to try the reddit solution now
17:18livtrying the legacy renderer now
17:18j`eyliv: before that, use HYPRLAND_LOG_WLR=1
17:21yukaj`ey: whoops, I'm still on an lsp-plugins version from before they split it into modules, let's see how that works
17:22yukaor, no, actually i am on 1.2.x, but only pulling the repo at https://github.com/sadko4u/lsp-plugins/ ?
17:25tpz has joined #asahi-alt
17:26tpz has quit []
17:33j`eygoodgood
17:38yukaand thanks for pointing me to that :)
17:40yukais there a way to boost the bass a bit more for those who like that? ;)
17:41yukanormal equalizer?
18:06livj`ey: doesn't work :P
18:08livI don't think `DRM_ASAHI` is loaded correctly
18:12livcan I just force `DRM_ASAHI` to load?
18:12livcan't*
18:16j`eyliv: ls /usr/lib64/dri/*
18:16j`eyliv: also paste dmesg
18:20j`eyalso can look for the asahi.ko in your modules, to make sure it was actually built
18:23liv`ls /usr/lib64/dri/*`: http://0x0.st/HYbS.txt
18:24livwhere can I find modules?
18:24j`ey/usr/lib/modules
18:24j`eykinda look like DRM_ASAHI wasnt built
18:27j`eyor maybe a make modules_install wasnt run after finally getting it working
18:34mpscould someone post link of the speakersafetyd package scipt/build system for gentoo or fedora
18:35mpsI'm thinking to add it to alpine
18:37mpsj`ey: thanks
18:54livls: cannot access '/usr/lib/modules': No such file or directory
18:54livdo I create that manually and run `make -j10 modules_install` again?
18:56liv`modbrobe DRM_ASAHI` results in "modprobe: FATAL: Module drm_asahi not found in directory /lib/modules/6.6.0-asahi-10-liv"
18:58j`eyliv: did you run modules_install after the latest kernel build?
18:59livrunning it again, it seems to return: "/lib/modules/6.6.0-asahi-10-liv" as the place it puts the stuff.
19:00j`eycheck for any file there with asahi in the name
19:00liv`ls /lib/modules/6.6.0-asahi-10/kernel/drivers/gpu/drm/` returns: "apple bridge display drm_dma_helper.ko.zst panel vgem"
19:01liv`find -type f | grep asahi` returns nothing
19:01j`eysounds like you didnt buildit then
19:02livbut "build/include/uapi/drm/asahi_drm.h" does exist
19:02j`eycheck the .config
19:05livI swear I selected those and checked afterwards...
19:05livDRM_ASAHI isn't in there...
19:11livThe DRM_ASAHI option is nowhere to be seen in Device Drivers -> Graphics support
19:11livI am so lost...
19:11livDo I put it manually in .config?
19:11j`eyliv: in menuconfig press / and then type ASAHI
19:11j`eyit will then show you the option
19:12j`eyand also why it's not available
19:12j`eyI assume it's related to RUST somehow
19:21livjqey: I did exactly that to search :P
19:21livj`ey:*
19:22millenialhackerQQ: do I need to do anything special to get GPU running on Gentoo?
19:22j`eyliv: did it show it in menuconfig after searching?
19:22j`ey(sounded like you went via the menu: Device Drivers -> Graphics support)
19:24j`eyfor example, I searched for it, and it says: "Depends on: HAS_IOMEM [=y] && RUST [=n]"
19:24j`eyshowing that I dont have rust enabled
19:25j`eymillenialhacker: you need rust and bindgen
19:25zerdox has joined #asahi-alt
19:25j`eyliv: if you go via the menu, it wont show up, if you search, it will
19:25livI hate that there's no multimedia support... Do you have Matrix?
19:26livI could send a screenshot then...
19:26liv@ahwx:ahwx.org is mine.
19:26millenialhackerj`ey could you share the specific config entries so I can add them to my .config file?
19:26j`eymillenialhacker: DRM_ASAHI is the main one
19:26j`eyliv: I still want to talk about it here though
19:26j`eyso just send stuff via there
19:27j`eyliv: right: RUST=n
19:27j`eythat means your rust isnt setup
19:27j`eymake rustavailable again
19:28livNow it does not seem to work?
19:28jeisom has quit [Ping timeout: 480 seconds]
19:28liv2 sec I'll try something
19:29livLast time, I did `env-update && source /etc/profile`
19:29livyeah after doing that it works
19:29livI'll drop a screenshot in Matrix
19:30livOh... I think I built the kernel without doing the `env-update && source /etc/profile`
19:30livLet me build the kernel again...
19:30livI'll add it to root's bashrc as well so I won't forget next time.
19:31j`eygood idea
19:31j`eyafter that, it should work!
19:32livfinally...
19:34livDo I need `APPLE_M1_CPU_PMU`?
19:34j`eyyou don't *need* it.. but might aswell enable it
19:34j`ey(enables `perf` support)
19:36liv`BACKLIGHT_APPLE`?
19:36millenialhackerj`ey thank you. Trying it out
19:37j`eyliv: nah, not ours
19:38livalright
19:38livThat's for (older) Intel MacBooks right?
19:39livBuilding right now...
19:39j`eyuses some ACPI stuff
19:42liv"The system is going down for reboot NOW!"
19:43livhigh hopes for this one
19:43j`eyif not you can always just rebuild!
19:44j`eywhen its booted: dmesg | grep gpu, if it shows something, youre good
19:44livnothing :P
19:45j`eyand you make module_installed?
19:45millenialhackerIs it normal to experience network issues with wifi connection?
19:45liv> and you make module_installed?
19:46livoh that does not work here like on other chat thingies
19:46livoh I forgot to mount /boot
19:46livlet's try again
19:51liv"[ 1.499144] asahi 406400000.gpu: Probed!"
19:51livWOHOOO
19:51livhyprland runs now
19:52livruns pretty smooth
19:52j`eyremoved the software rendering env var?
19:53livLet me try to remove the other vars aswell
19:53livto see if they are still needed
19:53j`eytime to rice
19:53livexactly haha
19:53j`eyI think they are, seems like mesa asahi is still on gles 3.1, but try
19:53livokay so uhm
19:54livhyprland kinda crashed when I changed the values from within hyprland
19:54livlet me try that again after a reboot :P
19:54j`eycant get to a tty
19:55livreboot was easier
19:55matteo has joined #asahi-alt
19:55livworks now, don't even need the env vars
19:55j`eyalright, great
19:56livNow I need to wait for DP Alt Mode to be in the kernel and then I'll replace macOS entirely /sarc
19:57j`eylast time I tried my external display it didnt even work with macOS
19:57livI am going to try HDMI
19:58livWork flawlessly
19:59livDon't even need some xrandr commands like I used to script when daily-driving DWM
19:59livThank you so much j`ey!
19:59j`eynp, glad it's working
20:00livNow I need to figure out how to compile firefox, there was some weird issue...
20:06tpz has joined #asahi-alt
20:15matteo_ has joined #asahi-alt
20:15matteo has quit [Read error: Connection reset by peer]
20:17matteo_ has quit []
20:23millenialhacker has quit [Remote host closed the connection]
20:30tpz has quit [Read error: Connection reset by peer]
20:36liv`hyprctl dispatch exit` works, but it just shows a black screen.
20:36liv(will post my findings here if I find a solution)
20:45livaccording to Viola in Matrix: "yeah it causes a gpu fault sometimes when exiting, and some gpu faults may break the gpu driver"
20:46j`eyis that about asahi?
20:46j`eycheck dmesg!
20:48livi will check dmesg in a bit
20:48livand some gpu faults may break the gpu driver 
20:49j`eywhich comment?
20:59livNo clue, Viola linked me that
20:59livwell I will probably not really exit Hyprland so it's fine for now, *i guess?*
20:59j`eywell dmesg will tell you if there actually was a gpu fault
21:00j`eyasahi driver basically never faults, so Im surprised if it is that..
21:04livweird...
21:05livIll see next time I need to close Hyprland
21:14billak has joined #asahi-alt
21:17livI'll try the newest from GitHub
21:21Compassion has joined #asahi-alt
21:25livit works for some reason now
21:25liv4th time is the charm I guess?
21:31jacksonchen666 has joined #asahi-alt
21:33tpw_rulesyuka: you around?
21:35yukaor matrix @yuka@yuka.dev
21:35yuka* @yuka:yuka.dev
21:35yukasilly matrix syntax
21:38livI like Matrix' syntax better than Mastodon or something else :P
21:42tpz has joined #asahi-alt
22:01jeisom has joined #asahi-alt
22:02tpz has quit [Ping timeout: 480 seconds]
22:07millenialhacker has joined #asahi-alt
22:08millenialhacker has quit [Remote host closed the connection]
22:08livj`ey: or chadmed: I can't seem to build Firefox, any idea?
22:09livemerge errors ^^
22:10j`eymultilib seems weird
22:10leioliv: this is ffmpeg failing, and you have cut away the interesting bits from the beginning
22:10j`ey /var/tmp/portage/media-video/ffmpeg-6.1-r1/temp/build.log will be the important bit i guess
22:11livill merge ffmpeg itself and upload the log
22:11leiothat's what you did already, the first part ;)
22:11leio * (media-video/ffmpeg-6.1-r1:0/58.60.60::gentoo, ebuild scheduled for merge), Log file:
22:11leio * '/var/tmp/portage/media-video/ffmpeg-6.1-r1/temp/build.log'
22:12j`ey--cpu=host not supported with compiler aarch64-unknown-linux-gnu-gcc
22:12livI meant the .log indeed
22:12j`eyI wonder if thats why chadmed has set CHOST?
22:12j`ey(sorry just guessing, ive never run gentoo :D)
22:12livI use COMMON_FLAGS="-march=native -O2 -pipe"
22:13j`eyI thnk you want to set mcpu
22:14livWhen I used chadmed's compile flags, everything failed
22:14leiochadmed uses clang, not gcc
22:14leiogcc has no clue what M1 or M2 CPUs are and has no clue how to optimize for them
22:14leiothat was my core takeaway from the ffmpeg failure, and I switched to clang as well
22:14j`eytbh I bet llvm doesnt do much for them either
22:15leiomy workaround is in there, it's some gcc bug
22:15livHow can I tell `emerge` to use `clang`?
22:15leiomy understand is that it optimizes for some early iPhone used CPU in terms of tuning
22:15leio(clang m2 cpu setting)
22:16leioor something we can do for the ffmpeg with gcc thing above?
22:18leioliv: Using clang is a bit of a bigger ordeal. Maybe you want to apply the workaround for now instead
22:18billak has quit [Quit: Konversation terminated!]
22:18chadmedj`ey: llvm's processor model for all apple devices is aliased back to Cyclone lmfao
22:19leioyou can save it as /etc/portage/patches/media-video/ffmpeg/gcc-apple-workaround.patch
22:19leioand then it should applied when you try again
22:20leiobut I haven't seen a full build log, so I'm not even sure yet it's this problem, but smells like it.
22:22j`eychadmed: ;_;
22:22livsent chadmed a dm on matrix
22:23liv"yeah do what leio suggested"
22:23livalright
22:24liv* User patches applied.
22:24livSeems to work now
22:24livFor reference, what did you Google? So I know how to search for this stuff...
22:25leioI didn't google anything, I'm the person that wrote that dirty patch (I'm also a Gentoo maintainer)
22:25leiobut I did re-find it by searching https://bugs.gentoo.org/ for media-video/ffmpeg
22:25livffmpeg is compiled :D
22:27millenialhacker has joined #asahi-alt
22:29millenialhacker has quit [Remote host closed the connection]
22:29jacksonchen666 has quit [Ping timeout: 480 seconds]
22:30millenialhacker has joined #asahi-alt
22:34millenialhacker has quit [Remote host closed the connection]
22:34millenialhacker has joined #asahi-alt
22:36chadmed has quit [Quit: Konversation terminated!]
22:36chadmed has joined #asahi-alt
22:39millenialhacker has quit [Remote host closed the connection]
22:41millenialhacker has joined #asahi-alt
22:43livfirefox too :)
22:45sam_leio: let's talk tomorrow about how to handle ffmpeg, but no news on the gcc side
22:46millenialhacker has quit [Read error: No route to host]
22:47millenialhacker has joined #asahi-alt
22:54millenialhacker has quit [Remote host closed the connection]
22:55millenialhacker has joined #asahi-alt
22:57tpz has joined #asahi-alt
23:03DevEthann has joined #asahi-alt
23:05DevEthann has quit []
23:05DevEthann has joined #asahi-alt
23:08DevEthann has quit []
23:09DevEthann has joined #asahi-alt
23:09DevEthann has quit [Remote host closed the connection]
23:33DevEthann has joined #asahi-alt
23:33DevEthann has quit []
23:42livHow does sleep work exactly? Is that a command, can I create a rule that makes my laptop sleep when I close the lid? Does it automatically resume when I open the lid? etc
23:44rino has joined #asahi-alt
23:48j`eyit does it in a 'normal' linux way. systemd can automatically handle that
23:49j`eyI dont exactly know how systemd works it out, but there's SW_LID event that it listens for
…