ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
chadmed has quit [Read error: Connection reset by peer]
Dementor has quit [Remote host closed the connection]
<winter>
jannau: i'll test in a bit. do you happen to have any clue why this would happen -- as in, eglinfo successfully reporting apple/asahi, but applications not seeing it? (clearly it's enabled and working if eglinfo can see it, so... just seems strange. not like eglinfo has anything that other applications don't.)
<winter>
as far as i can tell, it *should* be working. i just can't figure out why it wouldn't be
<winter>
and if eglinfo wasn't reporting apple/asahi then it would at least make sense that stuff wasn't working...
Dementor has joined #asahi-alt
jamespmo_ has joined #asahi-alt
jamespmorgan has quit [Ping timeout: 480 seconds]
<Glanzmann>
jannau: I see. I barely remeber.
possiblemeatball1 has joined #asahi-alt
possiblemeatball1 has quit [Quit: Leaving]
possiblemeatball1 has joined #asahi-alt
jamespmorgan has joined #asahi-alt
possiblemeatball1 has quit [Quit: Leaving]
jamespmo_ has quit [Ping timeout: 480 seconds]
possiblemeatball has joined #asahi-alt
possiblemeatball is now known as Guest284
Guest284 has quit []
possiblemeatball1 has joined #asahi-alt
jamespmo_ has joined #asahi-alt
jamespmorgan has quit [Ping timeout: 480 seconds]
possiblemeatball1 has quit [Quit: Leaving]
zzywysm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zzywysm has joined #asahi-alt
pthariensflame has joined #asahi-alt
pthariensflame has quit []
zzywysm has quit [Read error: Connection reset by peer]
nopeslide has quit [Quit: Ping timeout (120 seconds)]
zzywysm has joined #asahi-alt
nopeslide has joined #asahi-alt
zzywysm has quit []
<janrinze>
on NVidia AGX i get >5k on glmark2.. was expecting better results on asahi linux.
swaggie has quit [Remote host closed the connection]
swaggie has joined #asahi-alt
zzywysm has joined #asahi-alt
swaggie has quit [Ping timeout: 480 seconds]
<yuka>
does anyone know why usb tethering devices (android) show up as "usb0" instead of a predictable interface name?
swaggie has joined #asahi-alt
swaggie has quit [Ping timeout: 480 seconds]
<Glanzmann>
yuka: Maybe you booted with the kernel commandline net.ifnames=0?
<yuka>
no
<yuka>
my wifi interface has a predictable interface name
<yuka>
wlp1s0f0
<Glanzmann>
yuka: When you run 'ip a s' does it show an altname?
<yuka>
nope
<Glanzmann>
yuka: Strange.
<Glanzmann>
yuka: Strange. On my android phone (moto g100 not rooted) usb tethering is greyed out. Do you know what i need to do so that I can enable it, than I can test. In the old days, I used usb tethering a lot.
<jannau>
janrinze: the driver is not in a state to compare it with other hardware. also a benchmark which produces > 1000 fps is not necessary a good measure for graphics performnce
<yuka>
Glanzmann: I did not do anything specific to enable usb tethering
<yuka>
Glanzmann: it "just worked" with my Pixel 6a and the 6.1-asahi kernel
<Glanzmann>
Strange, In the old days, I think the option was available to me when a usb cable was conencted, but I think it no longer is, but let me try.
<yuka>
(6.1-asahi-edge)
<jacksonchen666>
Galnzmann: if it's greyed out, that probably means it's only charging. try plugging it into other ports.
<Glanzmann>
yuka: Now it worked, previously when I tried it, it did not let me do it. However I have a predictable network name and no altname: https://pbot.rmdir.de/fXYSR9WgXdlspCixDcnfjg
<yuka>
interesting
<yuka>
that interface name still looks strange to me
<yuka>
have to look up what the "enx" naming scheme is about
<Glanzmann>
yuka: This is how it always looked to me recently. In the old days it was 'usb0'.
<jannau>
seems to 'enx' + mac addr
<Glanzmann>
Ah, I see.
<mps>
this is probably systemd what changes these names
<Glanzmann>
I reboot now with net.ifnames=0 and try again.
<mps>
(one of reasons was this for me to ditch systemd)
<yuka>
well, it is udev
<yuka>
I am used to enpXsYuZ for usb ethernet
<mps>
yuka: hm, in my case udev doesn't rename any interface
<mps>
<grumble hat on> systemd is bad thing </grumble hat on>
<yuka>
hehe
<yuka>
"udevadm test-builtin net_id" also gives me the enx mac-based name
<yuka>
but that is not applied
<mps>
for me tethered android interface was (and it is) usb0
<Glanzmann>
yuka: Maybe some daemon uses the interface before it can be renamed?
<Glanzmann>
yuka: For example if I enable iwd and don't have net.ifnames=0 the interface is still called wlan0 because iwd uses the interface before it can be renamed.
<Glanzmann>
yuka: Btw. I found that in my syslog: syslog:2022-12-24T10:52:00.243992+01:00 air kernel: [ 31.759519] rndis_host 1-1:1.0 enxdab7f8c3ae44: renamed from usb0
<yuka>
I don't see such a message
<yuka>
though my usb-ethernet interface is using cdc_ncm and not rndis_host
Dcow has quit [Read error: Connection reset by peer]
possiblemeatball has joined #asahi-alt
possiblemeatball is now known as Guest335
Guest335 has quit []
possiblemeatball1 has joined #asahi-alt
possiblemeatball1 has quit []
possiblemeatball1 has joined #asahi-alt
swaggie has joined #asahi-alt
swaggie has quit [Ping timeout: 480 seconds]
swaggie has joined #asahi-alt
swaggie has quit [Ping timeout: 480 seconds]
possiblemeatball1 has quit [Quit: Leaving]
<winter>
yuka: i know you've done some work on the GPU driver on NixOS; should there be anything else I have to do to get it working other than setting hardware.opengl.drivers/enable and adding the necessary kernel configs to get rust stuff building (i'm using tpw's module, but that's all it does -- seems that it's based on yours). eglinfo successfully
<winter>
reports apple/asahi but no application can actually make use of it, and i'm not sure what's up. thanks.
<tpw_rules>
it works fine for me?
<tpw_rules>
how have you determined that stuff is not working?
<winter>
e.g. `mpv -vo=gpu` fails to find a GPU, but `eglinfo` successfully reports apple/asahi
<tpw_rules>
does mpv support the subset of opengl currently implemented by mesa? the blog post only claims support for "OpenGL 2.1 and OpenGL ES 2.0 " which are both rather old
<tpw_rules>
i was able to get a couple older 3d games going like supertuxkart like the blog post says
<winter>
i'll give those a try.
<winter>
also: was told that (a) mpv should work and (b) my glmark2 scores are apparently indicative of cpu rendering. haven't had a chance to go and look back at that, though
<winter>
so idk
<tpw_rules>
i think there are some performance cliffs. i got like a 10000% FPS improvement in fullscreen supertuxkart but only like 50% improvement on webgl
<winter>
hm
<winter>
i assume it'll improve over time
<winter>
either way, thanks for your work, stuff kinda just works at least in terms of the NixOS configs ^^
<winter>
definitely seems to be some weird quirk wrt enabling/disabling opengl that i want to look into, tho
<tpw_rules>
ah. yeah i wouldn't be surprised if that confused the kernel driver somehow
<winter>
in my case, i never set programs.sway.enable until after my first time launching it. after enabling it initially, nothing changed except opengl started working. *but* after rebooting, suddenly my resolution/hidpi looked more proper. and i'm not sure why it only took affect after rebooting.
<winter>
and i can only get it to switch back to either state after a reboot
<winter>
so maybe a kernel thing, but wouldn't that also be kind of weird that it *was* a kernel thing? (do we even patch the kernel to see /run/opengl-driver? no clue if the hook is actually enabled by default tbh.)
<tpw_rules>
that sounds like it's sway being able to talk to mesa/opengl to get screen resolution info and stuff?
<tpw_rules>
idk if that's how that works
<winter>
maybe, but why is only that able to work after a reboot, while other OpenGL apps that couldn't load it before don't need a reboot?
<winter>
i'm fully quitting away, so i'm gonna try to poke at some debug logs
<winter>
sway*
<tpw_rules>
oh, so you are restarting sway in between
<winter>
correct
<winter>
which makes this weird
<Glanzmann>
Merry christmas.
<winter>
especially since all enabling opengl does is adding the link to /run
<winter>
so it makes sense that other applications would see it instantly
<winter>
but i guess something else is happening with sway
<tpw_rules>
maybe it does some sort of per-boot caching
<mps>
Glanzmann: thanks and also Merry christmas to you
<winter>
^^ happy holidays to all <3
jamespmo_ has quit [Remote host closed the connection]
swaggie has joined #asahi-alt
<winter>
mps: just to confirm with what you said yesterday, `mpv -vo=gpu` should work with the asahi drivers, at least with the mpv that alpine ships?
swaggie has quit [Ping timeout: 480 seconds]
<mps>
winter: not only alpine but also Glanzmann told that it works on debian
<mps>
Glanzmann and I tested gpu a lot with mpv
<winter>
huh, maybe we disable opengles 2 or something
<winter>
doesn't look like mpv uses opengl
<winter>
what does it pull in to render then 🤔
<winter>
nvm i'm dumb
<winter>
tpw_rules: when you get a chance, can you try `mpv -vo=gpu` to see if this is isolated to me? thanks.
<mps>
winter: 'mpv -vo=gl filename' also works fine for me
<winter>
i assume gpu != gl?
<winter>
wonder what the diff is
<winter>
but yeah i have no clue what's up, eglinfo reports apple/asahi...
<winter>
:( it *should* be working!
<winter>
and it does work, as others have used this configuration with success
<winter>
and dmesg shows gpu stuff *is* happening...
<winter>
hm
<winter>
wonder how i could get debug output out of mesa
<winter>
or anything helpful
<mps>
try with xorg to see will it work
<winter>
i thought wayland was what worked more with these drivers atm?
<winter>
but yeah good point, i'll give it a try
<winter>
maybe mpv doesn't like it
<winter>
idk
<winter>
s/more/better
<mps>
mpv worked for me with sway, but I removed sway because I prefer xorg
<winter>
so that's not the issue here, if sway worked fine for you
<winter>
guess i'll see how tpw fairs, since he seemingly has a working setup
<winter>
either that or it's an issue with our (nixpkgs) build
jamespmorgan has joined #asahi-alt
possiblemeatball has joined #asahi-alt
possiblemeatball1 has joined #asahi-alt
possiblemeatball1 has quit [Remote host closed the connection]
possiblemeatball1 has joined #asahi-alt
possiblemeatball has quit [Ping timeout: 480 seconds]
swaggie has joined #asahi-alt
jamespmorgan has quit [Remote host closed the connection]
possiblemeatball1 has quit [Quit: Leaving]
possiblemeatball has joined #asahi-alt
jamespmorgan has joined #asahi-alt
possiblemeatball has quit [Quit: Leaving]
possiblemeatball has joined #asahi-alt
possiblemeatball has quit [Remote host closed the connection]
possiblemeatball has joined #asahi-alt
possiblemeatball has quit []
jamespmorgan has quit [Remote host closed the connection]