| *** n2klb_ is now known as n2klb | 01: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/3 | 08: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_Magister | sharks__: zypper is preferred, pkcon is wrapper for zypper, but pkcon's update is more akin to zypper up | 08:49 |
| Mister_Magister | pkcon was meant to standardise interface between distros but it turned out to be just kinda trash and nobody adapted it xd | 08: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_Magister | nobody but sfos ofc | 08:50 |
| Mister_Magister | for pkcon i think there's dist-update or smth like that | 08:51 |
| sharks__ | Yeah, great. That explains it then, thanks | 08:52 |
| sharks__ | So modules were updated but kernel wasn't | 08:52 |
| Mister_Magister | i basically repeat "keep calm and zypper ref; zypper dup" so much so i want it on a tshirt xd | 08:53 |
| Mister_Magister | sharks__: i think it would be useful if you did zgrep -i config /proc/config.gz | 08: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/15b5da7bdf5f | 09:12 |
| Mister_Magister | sorry try grepping for configfs but you dumped entire config so it works anyway so don't | 09:19 |
| Mister_Magister | configfs looks good | 09: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_Magister | 5.4 | 09: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_Magister | usb was pain but i don't remember similar issue | 09:35 |
| sharks_ | Okay, thanks for your help. I'll wait to see if mal or anyone else can suggest anything more | 09:40 |
| mal | https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini the gadget_base_directory | 11:39 |
| Mister_Magister | mal: but his directory doesn't exist, that's the issue | 11:42 |
| Mister_Magister | unless sharks_ you got some other directory in there | 11:42 |
| mal | so you change it | 11:42 |
| Mister_Magister | to another non-existent directory? i'm confused | 11:43 |
| Mister_Magister | I guess we need sharks_ to do ls /sys/kernel/config/usb_gadget/ | 11:44 |
| mal | where 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 to | 11:45 |
| mal | that 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 build | 11:46 |
| Mister_Magister | yeah so its what i understood it to be, there's no other directory to point it to xd | 11: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 all | 11:48 |
| Mister_Magister | let me know if after you get the directory stuff to work, usb detection doesn't work xd | 11: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_Magister | no usb charging is no issue | 11:57 |
| Mister_Magister | usb detection can be | 11:57 |
| sharks_ | Forgive me, what do you mean exactly? Like detection of a USB thumb drive? I haven't tried that | 11:57 |
| Mister_Magister | that or plugging phone to computer | 11: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 adapter | 11:58 |
| Mister_Magister | if your phone doesn't have 3.5mm | 11:58 |
| sharks_ | Nah, Xperia has 3.5mm, that's one good thing about it! | 11:58 |
| Mister_Magister | wait so how did you get MTP mode if usb-moded doesn't work | 11: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 service | 12:00 |
| Mister_Magister | and 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 in | 12:01 |
| Mister_Magister | dang lucky | 12:01 |
| Mister_Magister | you can always just make script that runs before usb-moded and does all that xd | 12:01 |
| sharks_ | Yes, that's my thinking, but I can't get developer mode working as well. Only MTP mode | 12:01 |
| Mister_Magister | ye well | 12:01 |
| Mister_Magister | that never works well | 12:02 |
| Mister_Magister | i can help you trying to switch it to ncm that might help make it work | 12:02 |
| Mister_Magister | but first i'd make usb-moded stable | 12: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 .portslistinfo | 12:19 |
| Mister_Magister | that's it, it just gets scraped once per day, tho give me link to your droid-configs on obs | 12:20 |
| Mister_Magister | i'll verify | 12:20 |
| Mister_Magister | also that reminds me… | 12:21 |
| Mister_Magister | sharks_: like, if it's not there already you either don't have nemo:testing project or there's a bug in my software | 12:21 |
| sharks_ | https://build.sailfishos.org/package/show/nemo:testing:hw:sony:murray:5.1/droid-config-xqcc72 | 12:22 |
| sharks_ | I did see some discussion with rinigus maybe where the "5.1" subproject messed it up maybe | 12:22 |
| sharks_ | idk if you fixed that | 12:22 |
| sharks_ | (sorry for pinging) | 12:22 |
| Mister_Magister | sony 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 portslistinfo | 12:27 |
| Mister_Magister | I'll fix it, thakns | 12:27 |
| sharks_ | Ah, makes sense. No worries - also zambezi follows the same format, with droid-config-xqdc72 | 12:28 |
| Mister_Magister | i'll just fetch list of projects and go inside every project that starts with droid-config xd | 12:30 |
| sharks_ | That will do it! | 12:31 |
| Mister_Magister | thanks for adding the file | 12: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/911220f5d92316d47462fea94ae7a2108c0b62d0 | 12: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_Magister | as 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/.portslistinfo | 13:15 |
| mal | about 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#L3 | 22:48 |
| mal | configs/c.1 is used only in community style builds | 22:48 |
| Mister_Magister | mal: his directory is empty, there's no b.1 | 22:48 |
| mal | but still c.1 is wrong | 22:49 |
| Mister_Magister | like b.1 is in config/usb_gadget/g1/config/ but he doesn't even have g1 directory | 22:49 |
| Mister_Magister | bur sure | 22:49 |
| mal | I wonder if lineage uses same interface as aosp | 22:54 |
| mal | official 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.ini | 22:55 |
| mal | and that extcon path is correct | 22:55 |
| Mister_Magister | maaaal would you be so kind as to comment on the gst bug? xddd | 22:55 |
| Mister_Magister | like if you had enough of me asking i will also understand xd | 22:56 |
| mal | also checking that udc is correctly handled | 22:56 |
| mal | I don't even remember what the gst issue was about | 22:56 |
| Mister_Magister | so, 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 me | 22:57 |
| Mister_Magister | because after we get the qmlglsink it will allow real video players on sfos | 22:57 |
| Mister_Magister | kinda revolutionary stuff | 22:58 |
| Mister_Magister | the bug is incredibly reproducible, you can cause it under 1s https://paste.opensuse.org/pastes/70ef150a38f7 | 22:58 |
| Mister_Magister | its very easy to debug, i just need someone with knowledge of what's going on to do it | 22:58 |
| Mister_Magister | because it requires a lot of technical knowledge about codecs and stuff | 22:59 |
| Mister_Magister | TheKit 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 |
| mal | which gst-droid code is that using? | 22:59 |
| mal | the line numbers make no sense | 23:00 |
| mal | some custom build? | 23:00 |
| mal | or old build? | 23:00 |
| Mister_Magister | ohh | 23:00 |
| Mister_Magister | well the lines don't matter but gimme second | 23:00 |
| Mister_Magister | https://github.com/sailfishos/gst-droid/blob/0.20240806.0/gst/droidcodec/gstdroidvdec.c#L126C7-L126C11 | 23:00 |
| Mister_Magister | here you go | 23:00 |
| Mister_Magister | thats EXACT spot of the exception | 23:00 |
| Mister_Magister | i can give you instructions and test program if you want | 23:02 |
| mal | of course | 23:02 |
| Mister_Magister | add 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_Magister | and thats it | 23:04 |
| Mister_Magister | sorry -i before url | 23:05 |
| mal | is it important that the video is from website, do local files break also? | 23:05 |
| Mister_Magister | it can be local file, i just provided you with url of file that works | 23:05 |
| Mister_Magister | you can wget it and use it locally | 23:05 |
| Mister_Magister | or you can download h264 youtube video those also crash | 23:06 |
| mal | I probably have that already, that is one of the usual test videos I use | 23:06 |
| Mister_Magister | it it results in segfualt its good | 23:06 |
| Mister_Magister | because 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 it | 23:08 |
| mal | https://github.com/Michal-Szczepaniak/gst-plugins-base/commit/d8652f3aa741020ebf58d0dcdd6407942d8cb819 ? | 23:08 |
| Mister_Magister | yes? | 23:08 |
| mal | why is that needed? | 23:09 |
| Mister_Magister | result of "wl_registry@27: error 0: invalid version for global wl_seat (9): have 3, wanted 4" | 23:09 |
| Mister_Magister | sfos doesn't support version 4 apprently | 23:09 |
| mal | hmm | 23:09 |
| mal | I need to rebase and rebuild those packages | 23:11 |
| Mister_Magister | :) | 23:11 |
| mal | I use newer gst | 23:11 |
| Mister_Magister | i would be incredibly greatful if you resolved this issue :3 | 23:12 |
| Mister_Magister | we're so close | 23:12 |
| Mister_Magister | after 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 subtitles | 23:13 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!