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

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