Friday, 2026-08-07

*** n2klb_ is now known as n2klb01:51
sharks__@mal I really can't talk here for another 5 hours or so, but have just changed 99-usb-moded-xqcc72.ini to point to b.1 and updated my usb-moded-fixup.sh from last night's commit.04:24
sharks__No difference to MTP behaviour when the directory is b.1 rather than c.104:25
sharks__Developer mode spits out the following in journal:04:25
sharks__"/sys/kernel/config/usb_gadget/g1/UDC: write failure: Invalid argument",04:26
sharks__"mode developer_mode: network interface usb0 does not exist",04:26
sharks__"mode setting failed, try charging_only"04:26
sharks__`/sys/class/net` does not contain any interface to do with rdnis or usb, and `usb_gadget/g1/functions/rndis.usb0/ifname` gives "(unnamed net_device)"04:28
T42<edp_17> mal, keto Can somebody help me with OBS please? I tried to use osc but used wrong password and now I cannot log in on the website either. build.sailfishos.org says "Authentication failed". My user is edp17. (I know the last password, so, if you just enable the user if it got disabled, that'd be fine.) Thank you.08:01
T42<edp_17> mal, keto It works again now. Panic is over, thanks.08:06
sharks_Hey @Mister_Magister, are you still around and willing to teach me about ncm if you still think that will help?10:02
sharks_Or @mal, if you know anything else I can try besides just renaming a directory from "c.1" to "b.1" - what was the idea of that, anyway?10:42
sharks_Is it possible I have some interference from the Android side - `android.hardware.usb.gadget-service.qti`?10:59
sharks_I ask because I have `/sys/class/android_usb/android0/` and `/etc/usb-moded/dyn-modes/mtp_mode-droid.ini` - so maybe mtp works because Android is handling it? But then it required my usb-moded-fixup service and all the configfs things that go with it, so perhaps not11:11
sharks__I don't think I can hang around much longer, and I won't be around tomorrow night, but if anyone could give me any more pointers overnight so I have some idea where to look next, I'd appreciate it.12:22
maldid you try again with /config path?12:49
malwhich interface do you see for usb in ifconfig -a?12:49
malon device12:49
malwhat is you that usb-moded-fixup service you mentioned?12:52
sharks__Hey Mal, hang on, let me fire up the laptop again. usb-moded-fixup is in the commit link I sent in this IRC chat approx 24 hours ago12:53
sharks_https://github.com/sharks-dev/droid-config-pdx225/commit/911220f5d92316d47462fea94ae7a2108c0b62d012:54
sharks_If these commands are run every boot, I can be sure that MTP works at least.12:55
maldo you have /usr/lib/systemd/system/config.mount ?12:56
sharks_ifconfig -a --> https://paste.opensuse.org/pastes/10728abec01f12:56
malthat means usb is not up at all12:57
sharks_Yes, I do have `/usr/lib/systemd/system/config.mount`12:57
malso the mount in you hack service is not needed12:57
sharks_So perhaps I don't need to mount /config every boot, but I certainly need to make the directories12:57
malthere is something else wrong12:58
malthere should be no need to manually create such directories12:58
sharks_I agree, but I do not know how to debug it12:59
malyou had working usb in init ramdisk when doing early debugging?12:59
sharks_Only if usb-moded was masked12:59
maldid you verify the udc in usb-moded config is correct?13:00
sharks_4e00000.dwc3? Yes, I can't remember where it comes from but it is right. If you remind me where I find it I'll paste the output to prove it13:00
malfrom /sys/class/udc/13:01
sharks_`ls /sys/class/udc` --> "4e00000.dwc3  dummy_udc.0"13:01
maltry again removing gadget_base_directory or changing it back to /config/usb_gadget/g1 ? also you didn't mention anything about checking extcon?13:03
malwhich is /sys/class/extcon/extcon0/state or with different numbers in the path13:04
sharks_Sorry, I missed the extcon discussion. `/sys/class/extcon/extcon0/state1 --> "USB=0 SDP=0". `/sys/class/extcon/extcon1/state` --> "USB=1 USB-HOST=0 DP=0"13:06
sharks_Note, device is currently plugged into usb if that matters.13:06
malhttps://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/etc/usb-moded/usb-moded-murray.ini13:08
mallike I said before, you should be configuring that udev part like that13:08
malI have no idea why you are not using the official port configs as example13:08
malwhich sailfish version did you build?13:09
sharks_Okay, fair point, I don't know how I landed with the usb-moded.ini that I've got now either. I will put the official one in there and see if that helps, hangon13:10
sharks_SFOS 5.1.0.1113:11
sharks_Forgive me if I've done the wrong thing, it is late and I'm blindly following instructions. I replaced my 99-usb-moded-xqcc72.ini contents with that of usb-moded-murray.ini, now usb-moded outputs the following in journal when connected in developer mode: https://paste.opensuse.org/pastes/a51e97d41eb613:13
sharks_MTP is broken again, possibly because I have disabled my hack as well13:14
maldoes ifconfig -a show anything now?13:16
malusb0 or rndis013:17
malno need to paste all13:17
sharks_No, cannot see usb0 or rndis013:17
sharks_`ifconfig -a | grep -iE "usb|rndis"` --> no output13:18
malyou did keep the 4e00000.dwc3 udc in config?13:18
sharks_No, I blindly copied and pasted exactly what was in usb-moded-murray.ini, will fix that now13:18
sharks_https://paste.opensuse.org/pastes/1dcef52398e413:20
sharks_Still no change13:20
sharks_ifconfig -a still missing any mention of usb or rndis13:20
maltry running this: echo peripheral > /sys/class/udc/4e00000.dwc3/device/../mode13:23
malany change?13:23
sharks_I ran `echo peripheral > /sys/class/udc/4e00000.dwc3/device/../mode`, do I need to restart usb-moded or anything else? No change so far13:24
sharks_Can't see it's made any difference13:25
malno interface still in ifconfig?13:25
sharks_No, even after restarting usb-moded and replugging device13:26
malnothing in journal from usb moded?13:28
sharks_Nothing new, just the same lines from the most recent paste link with later timestamps13:29
maltry running manually "mkdir -p /config/usb_gadget/g1/strings/0x409" and "mkdir -p /config/usb_gadget/g1/functions" then restart usb moded13:32
sharks_functions directory already exists. Strings directory is part of my hack, making that certainly helps. New journal output: https://paste.opensuse.org/pastes/6f1051657bdb13:33
sharks_FWIW functions directory contains: "ffs.mtp", "mass_storage.usb0", "rndis.usb0"13:34
malstill no usb0 or rndis0?13:34
sharks_No13:35
sharks_MTP is working again though now the strings directory is there, but still no network in developer mode, falls back to charging only13:35
maladd something like this https://github.com/mer-hybris/s19mps-droid-configs/blob/master/sparse/etc/connman/main.conf.d/10-s19mps.conf13:36
malthen maybe reboot so we are sure everyhing is clean13:36
sharks_Sure, file has been added, reboot in progress. My hack is disabled so usb-moded is on its own13:38
sharks_Nope, we killed it. The /config/usb_gadget/g1 directory doesn't get made automatically, so usb-moded fails with "No supported usb control mechanisms found"13:42
sharks_Yeah, and making it manually it next complains the b.1 directory is missing13:43
sharks_And making the b.1 directory manually, we're back to square one --> https://paste.opensuse.org/pastes/3ae5dfbff90d13:44
sharks_ifconfig still has no sign of usb or rndis13:45
malI wonder if there is something wrong in android side startup13:49
maldid you do any hacks in that side+13:49
sharks_No, only the usual disabled_services.rc13:50
sharks_https://github.com/sharks-dev/droid-config-pdx225/blob/master/sparse/usr/libexec/droid-hybris/system/etc/init/disabled_services.rc13:51
sharks_It has vendor.usb-hal-1-3, don't know if that's related13:51
malwe don't want android side usb services running13:52
malthose are useless for us13:52
sharks_From `ps -A | grep -i usb` I found "/vendor/bin/hw/android.hardware.usb-service.qti", so I also added to disabled_services "service vendor.usbgadget-hal /vendor/bin/hw/android.hardware.usb.gadget-service.qti_HYBRIS_DISABLED" hoping that would help, but it didn't fix anything so I removed it again.13:54
malmaybe modify your hack script to do things like is done here https://github.com/mer-hybris/hybris-boot/blob/a16/init-script#L21513:58
malexcept the useless parts like skip rndis_bam.rndis13:58
sharks_Okay, thanks mal, that looks like a later problem though. Midnight now, I can't keep going tonight. I will look into that in a day or two when I can next sit down for a few hours. Thanks for your help14:00
sharks_Before I go, idk if Keto is back yet but friendly reminder for when they return, the Zambezi port still needs Jolla store please. "Device Model: Xperia 10 V (xqdc72 / community)"14:01
sharks_I appreciate your time tonight Mal, will let you know how I get on by adapting the hybris-boot init script bits another time14:02
Mister_Magistermal: is it possible for sfos to switch to sw decoding based on resolution? Like you can disable certain codecs and then software decoding will be used, but on my phone hw decoding works only up to 1080p and 4K doesn't work, so it'd be nice if it switched to software decoding for 4K17:50
malI have been suspecting that gst-droid doesn't properly set capabilities18:17
malI have noticed that same issue also18:17
Mister_Magistermmmm18:29
Mister_Magisterstupid qualcomm cheaping out on hw decoding xd18:29
malMister_Magister: if you want to try to hack that you could see what happens if you add a gst-droid quirk to gstdroidcodec.conf which sets extra caps for codec by appending the configured string before this https://github.com/sailfishos/gst-droid/blob/master/gst-libs/gst/droid/gstdroidcodec.c#L26118:53
malthe string to append would be something like ", width=(int)[1, 1920], height=(int)[1, 1080]"18:54
Mister_Magisterhmm not today but thanks, i'm more interested in fixing the other decoding issue :P18:54
malof course getting the supported size from android would be better but just to see if limiting works like that18:55
Mister_Magisterwould love to have working qmlglsink already18:55
malwell the question is can it even work18:55
maldepends on what format we get, if it's the opaque android format then it's not good18:56
Mister_Magisterwhat do you mean?18:56
T42<adampigg> @Mister_Magister what is DEVICE=<number> ?19:48
Mister_Magisterit's not number, it's text "DEVICE=Pad 6" it's name of the device20:00
Mister_MagisterI could maybe probably get that from .spec if i really wanted but didn't really want xd20:01
Mister_Magisteron oneplus it's DEVICE=6 because it's literally oneplus 6 xd20:01
T42<adampigg> Ah ok, that just happened to be the one i looked at for an example20:11
T42<adampigg> a bit like how I had DEVICE=Tablet, which is a bit generic  for Volla Tablet !20:11
Mister_Magister@adampigg guy sent me this link https://storage.googleapis.com/play_public/supported_devices.html so maybe I will get the device name from there by default and let the file override it20:13

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