Thursday, 2026-08-06

*** n2klb_ is now known as n2klb01:52
sharks__Hey @mal, can I bug you (or anyone else who might know) please about usb moded? See https://github.com/sharks-dev/sailfish-on-murray/issues/308:47
sharks__it appears usb moded is looking for configfs at /config not /sys/kernel/config. Also my configfs folders are missing and need to be manually created each boot. Have I missed something?08:47
sharks__Also, is there any difference between `zypper ref && zypper dup` vs `pkcon refresh && pkcon update`?08:49
Mister_Magistersharks__: zypper is preferred, pkcon is wrapper for zypper, but pkcon's update is more akin to zypper up08:49
Mister_Magisterpkcon was meant to standardise interface between distros but it turned out to be just kinda trash and nobody adapted it xd08:50
sharks__Thanks Mister_Magister. One of my users has against my advice performed the latter set of commands and their device now has mismatched kernel and modules versions (`uname -r` doesn't match `/lib/modues/*`)08:50
Mister_Magisternobody but sfos ofc08:50
Mister_Magisterfor pkcon i think there's dist-update or smth like that08:51
sharks__Yeah, great. That explains it then, thanks08:52
sharks__So modules were updated but kernel wasn't08:52
Mister_Magisteri basically repeat "keep calm and zypper ref; zypper dup" so much so i want it on a tshirt xd08:53
Mister_Magistersharks__: i think it would be useful if you did zgrep -i config /proc/config.gz08:54
sharks__Lol. Yeah I wish they had used Zypper like I said, now they're making my port look bad!08:54
sharks_Apologies @Mister_Magister, I had to step out for a few minutes. I do not have `zgrep` on my system. Is `zcat | grep` the same thing? If so, the output requested is here --> https://paste.opensuse.org/pastes/15b5da7bdf5f09:12
Mister_Magistersorry try grepping for configfs but you dumped entire config so it works anyway so don't09:19
Mister_Magisterconfigfs looks good09:19
sharks_Heh, I thought grepping for "config" was a bit useless, that's okay. I thought configfs was good.09:20
sharks_Out of curiosity, what kernel version does miami have?09:22
Mister_Magister5.409:23
sharks_Same as me. You did not have to do anything to make usb-moded work? I wonder what the difference is.09:25
sharks_Do you have `/config/usb_gadget/` or `/sys/kernel/config/usb_gadget/`?09:26
Mister_Magisterusb was pain but i don't remember similar issue09:35
sharks_Okay, thanks for your help. I'll wait to see if mal or anyone else can suggest anything more09:40
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini the gadget_base_directory11:39
Mister_Magistermal: but his directory doesn't exist, that's the issue11:42
Mister_Magisterunless sharks_ you got some other directory in there11:42
malso you change it11:42
Mister_Magisterto another non-existent directory? i'm confused11:43
Mister_MagisterI guess we need sharks_ to do ls /sys/kernel/config/usb_gadget/11:44
malwhere are the usb configs?11:44
sharks_I have set gadget_base_directory to both /sys/kernel/config/usb_gadget/g1 and /config/usb_gadget/g1. It does not appear to make a difference so long as I have run `mount -t configfs none /config`, but if I have not, then usb_moded complains `CONFIGFS not detected` regardless of what `gadget_base_directory` is set to11:45
malthat is lvm based build?11:45
sharks_`ls /sys/kernel/config/usb_gadget/` is empty after a reboot. If I manually create `mkdir /sys/kernel/config/usb_gadget/g1`, and `/config` exists and is mounted as configfs, then USB-moded gets a bit further but still complains about `config/c.1` missing, `strings/0x409` missing, etc... Manually creating these makes MTP work but not developer mode.11:46
sharks_Yes, this is LVM based build11:46
Mister_Magisteryeah so its what i understood it to be, there's no other directory to point it to xd11:47
sharks_Correct, g1 doesn't exist on a fresh boot, and there is nothing else in `usb_gadget`11:47
sharks_My current thought is to make some systemd service to make these directories before usb-moded starts, but I feel like I shouldn't have to do that? Maybe I should, I don't know. But it also still won't fix developer mode, I can't make that work yet at all11:48
Mister_Magisterlet me know if after you get the directory stuff to work, usb detection doesn't work xd11:52
sharks_You mean "USB Charging" test in CSD tool? That's never worked! But I cannot see what effect it has on using the device. It still knows when it is plugged into a charger, I have used a USB mouse in the charger port successfully, and MTP works (after I've manually made all these directories I'm talking about)11:56
Mister_Magisterno usb charging is no issue11:57
Mister_Magisterusb detection can be11:57
sharks_Forgive me, what do you mean exactly? Like detection of a USB thumb drive? I haven't tried that11:57
Mister_Magisterthat or plugging phone to computer11:57
sharks_Hmm, in the testing I've done so far with MTP mode it has worked every time, but I'll keep you informed if that changes.11:58
Mister_Magister or in fact, usb-c alt mode for the 3.5mm adapter11:58
Mister_Magisterif your phone doesn't have 3.5mm11:58
sharks_Nah, Xperia has 3.5mm, that's one good thing about it!11:58
Mister_Magisterwait so how did you get MTP mode if usb-moded doesn't work11:58
sharks_I can get MTP mode if I manually mount configfs at `/config`, manually make `/config/usb_gadget/g1`, manually make `/config/usb_gadget/g1/config/c.1` manually make `/config/usb_gadget/g1/strings/0x409`, and restart usb-moded service12:00
Mister_Magisterand it works if you repulg usb?12:00
sharks_Yes, it's flawless until a reboot and all those directories disappear. I have used it for a day or so across many different computers now, and always MTP mode works as soon as you plug it in12:01
Mister_Magisterdang lucky12:01
Mister_Magisteryou can always just make script that runs before usb-moded and does all that xd12:01
sharks_Yes, that's my thinking, but I can't get developer mode working as well. Only MTP mode12:01
Mister_Magisterye well12:01
Mister_Magisterthat never works well12:02
Mister_Magisteri can help you trying to switch it to ncm that might help make it work12:02
Mister_Magisterbut first i'd make usb-moded stable12:02
sharks_Okay, well I'll write a script that makes all the directories manually, add that to sparse, get it running and confirmed working on device, and get back to you in about 21 hours if that suits. It's nearly bedtime in my part of the world.12:03
sharks_Oh also - @Mister_Magister, just before I go, what does a guy have to do to get his port on your portslist? I have added .portslistinfo12:19
Mister_Magisterthat's it, it just gets scraped once per day, tho give me link to your droid-configs on obs12:20
Mister_Magisteri'll verify12:20
Mister_Magisteralso that reminds me…12:21
Mister_Magistersharks_: like, if it's not there already you either don't have nemo:testing project or there's a bug in my software12:21
sharks_https://build.sailfishos.org/package/show/nemo:testing:hw:sony:murray:5.1/droid-config-xqcc7212:22
sharks_I did see some discussion with rinigus maybe where the "5.1" subproject messed it up maybe12:22
sharks_idk if you fixed that12:22
sharks_(sorry for pinging)12:22
Mister_Magistersony murray is on the list, but the droid-config does not match droid-config-murray which would be standard way of naming it, thats why it didn't pick up the portslistinfo12:27
Mister_MagisterI'll fix it, thakns12:27
sharks_Ah, makes sense. No worries - also zambezi follows the same format, with droid-config-xqdc7212:28
Mister_Magisteri'll just fetch list of projects and go inside every project that starts with droid-config xd12:30
sharks_That will do it!12:31
Mister_Magisterthanks for adding the file12:32
sharks_No problem!12:33
sharks_I have added service to fix usb-moded for MTP, confirmed it works well now across reboots. https://github.com/sharks-dev/droid-config-pdx225/commit/911220f5d92316d47462fea94ae7a2108c0b62d012:34
sharks_I am signing off for the night however. I'll catch up with you another time to ask about "ncm"12:35
sharks_Thanks for your help!12:35
Mister_Magisteras sharks is the first one i encourage everyone else to add the file too :3 Just add this (you can remove any line you don't wanna add) to your droid-configs https://github.com/VerdandiTeam/droid-config-pipa/blob/master/.portslistinfo13:15
malabout the usb issue, in lvm based builds b.1 path should be used like here https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini#L322:48
malconfigs/c.1 is used only in community style builds22:48
Mister_Magistermal: his directory is empty, there's no b.122:48
malbut still c.1 is wrong22:49
Mister_Magisterlike b.1 is in config/usb_gadget/g1/config/ but he doesn't even have g1 directory22:49
Mister_Magisterbur sure22:49
malI wonder if lineage uses same interface as aosp22:54
malofficial devices use this config, worth a try, first checking if usb0 is the interface on device side https://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/etc/usb-moded/usb-moded-murray.ini22:55
maland that extcon path is correct22:55
Mister_Magistermaaaal would you be so kind as to comment on the gst bug? xddd22:55
Mister_Magisterlike if you had enough of me asking i will also understand xd22:56
malalso checking that udc is correctly handled22:56
malI don't even remember what the gst issue was about22:56
Mister_Magisterso, when using qmlglsink, decoded video output gets converted from droidmedia format to standard format and that throws segfault because during copying buffers or something it runs out of the end of the array, but its codec stuff and way above my head so i would be incredibly thankful if you or jolla could fix it for me22:57
Mister_Magisterbecause after we get the qmlglsink it will allow real video players on sfos22:57
Mister_Magisterkinda revolutionary stuff22:58
Mister_Magisterthe bug is incredibly reproducible, you can cause it under 1s https://paste.opensuse.org/pastes/70ef150a38f722:58
Mister_Magisterits very easy to debug, i just need someone with knowledge of what's going on to do it22:58
Mister_Magisterbecause it requires a lot of technical knowledge about codecs and stuff22:59
Mister_MagisterTheKit gave it to LLM and established that "droidmedia doesn't provide the data needed to properly interpret the buffer with CPU it seems" and "but then why would GL sink do a CPU copy in the first place?"22:59
malwhich gst-droid code is that using?22:59
malthe line numbers make no sense23:00
malsome custom build?23:00
malor old build?23:00
Mister_Magisterohh23:00
Mister_Magisterwell the lines don't matter but gimme second23:00
Mister_Magisterhttps://github.com/sailfishos/gst-droid/blob/0.20240806.0/gst/droidcodec/gstdroidvdec.c#L126C7-L126C1123:00
Mister_Magisterhere you go23:00
Mister_Magisterthats EXACT spot of the exception23:00
Mister_Magisteri can give you instructions and test program if you want23:02
malof course23:02
Mister_Magisteradd this repo, you need gst-plugins-base and gst-plugins-good https://build.sailfishos.org/project/show/home:mister and here's the test program https://litter.catbox.moe/qidbe65tvg38tru2 you just "./qmlglsink-example https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_30MB.mp4"23:04
Mister_Magisterand thats it23:04
Mister_Magistersorry -i before url23:05
malis it important that the video is from website, do local files break also?23:05
Mister_Magisterit can be local file, i just provided you with url of file that works23:05
Mister_Magisteryou can wget it and use it locally23:05
Mister_Magisteror you can download h264 youtube video those also crash23:06
malI probably have that already, that is one of the usual test videos I use23:06
Mister_Magisterit it results in segfualt its good23:06
Mister_Magisterbecause honestly with qmlglsink the custom video players get incredibly simplified and we can have subtitles and stuff, it will be revolutionary for sfos, we'll be able to watch movies with graphic subtitles and stuff, it will be just matter of subtitle and audio codecs which community can add themselves, i'm so excited for it23:08
malhttps://github.com/Michal-Szczepaniak/gst-plugins-base/commit/d8652f3aa741020ebf58d0dcdd6407942d8cb819 ?23:08
Mister_Magisteryes?23:08
malwhy is that needed?23:09
Mister_Magisterresult of "wl_registry@27: error 0: invalid version for global wl_seat (9): have 3, wanted 4"23:09
Mister_Magistersfos doesn't support version 4 apprently23:09
malhmm23:09
malI need to rebase and rebuild those packages23:11
Mister_Magister:)23:11
malI use newer gst23:11
Mister_Magisteri would be incredibly greatful if you resolved this issue :323:12
Mister_Magisterwe're so close23:12
Mister_Magisterafter that you'll just have to roll out the changes to sfos… and then we'll probably have to wait for sfos 5.3 or something :D but eventually! we'll have movies with subtitles23:13

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!