Friday, 2026-05-08

abrthe browser handles video very differently. it's the only place where colour format conversion is needed.05:48
T42<b100dian> mal: prettey sure I remember browser needed https://github.com/sailfishos/droidmedia/pull/11108:29
T42<b100dian> https://piggz.co.uk/sailfishos-porters-archive/index.php?log=2024-12-23.txt#line3008:31
T42<nc1x72> Trying to setup my build environment after switching to a new cloud compute provider and now getting this error :09:13
T42<nc1x72> ubuntu@b9209909-1295-4578-9ca2-d985810eb478-0:~$ sudo chroot $UBUNTU_CHROOT /bin/bash -c "chage -M 999999 $(id -nu 1000)"09:14
T42<nc1x72> chage: user 'ubuntu' does not exist in /etc/passwd09:14
T42<nc1x72> nevermind09:26
mal@b100dian ok, I need to recheck that10:12
T42<b100dian> Here's my current status matrix to share my confusion10:20
T42<b100dian> sake  (A11): browser needs GECKO_CAMERA_DROID_FORCE_MEDIA_BUFFER + PR111, gst-droid works only with video/avc=010:20
T42<b100dian> nagara(A13): browser needs GECKO_CAMERA_DROID_FORCE_MEDIA_BUFFER, gst-droid works with video/avc=no-media-buffers10:20
T42<b100dian> fp5   (A14): browser needs GECKO_CAMERA_DROID_FORCE_MEDIA_BUFFER + PR111, gst-droid works with video/avc=no-media-buffers10:20
malthe no-media-buffers doesn't fix sake?10:24
malI don't have GECKO_CAMERA_DROID_FORCE_MEDIA_BUFFER on fp5 for browser, not sure about PR11110:24
T42<b100dian> I inferred those are needed for fp5 from our previous discussion linked above10:49
T42<b100dian> Yes. sake is weird10:51
T42<Mister_Magister> sake's dead though10:52
T42<Mister_Magister> unless you find exploit to unlock bootloader or asus goes through enlightement10:53
T42<Mister_Magister> by the way <imagine some insanely offensive word> asus10:53
T42<b100dian> It was my daily driver until a couple of weeks ago10:55
T42<Mister_Magister> like i know it's sweet device but f asus10:57
T42<Mister_Magister> miami is the goat now10:57
T42<adampigg> dont ever say goat again šŸ˜‚ (re @Mister_Magister: miami is the goat no...)11:01
T42<Mister_Magister> why not11:01
T42<adampigg> because currently, my youtube adverts are for a pair of shorts that say that, and it annoys the fsck out of me šŸ˜‚11:02
T42<Mister_Magister> nah bro goat is goated word11:02
T42<Mister_Magister> i'm not saying 6 7 or anything offensive like that11:02
T42<abranson> is it the skibidi goat?11:03
T42<Mister_Magister> no nothing like that11:03
T42<abranson> phew11:04
T42<Mister_Magister> goat just means greatest of all time11:04
T42<Mister_Magister> so you could say mal is the goat11:04
T42<abranson> Σ11:04
T42<Mister_Magister> not the sigma ;-;11:04
T42<adampigg> 🐐11:04
mal@b100dian small style comment to your gst-droid PR, also needs rebasing18:41
T42<b100dian> looking18:50
T42<b100dian> rebase again? happy abr moves so fast:)18:51
T42<b100dian> mal: about identation `if (gst_caps_features_contains` breaking on the next line is the problem? (I tried to keep it untouched but indented)18:51
mal@b100dian no, the next two lines, the content of the if and the closing }19:13
maldid you understand the issue?19:29
T42<b100dian> ah, now I cannot unsee it. yes19:30
T42<b100dian> updated.19:30
T42<b100dian> So I think the gst-droid was too new for my sake that's why it blocked. Need an updated droidmedia for latest abr changes, no?19:31
maldroidmedia changes are not related to gst-droid changes19:32
mal@b100dian what issue do you have on sake with new gst-droid?19:33
T42<b100dian> video not starting playing at all. I also had this issue with my mediabuffer branch on nagara, after rebasing it.19:34
T42<b100dian> That's why I thought something in the latest gst-droid commits19:34
T42<b100dian> let's forget sake, it's too complicated there since I have a half camera2 setup (just photos). But nagara with the latest gst-droid + no-media-buffers doesn't actually play videos, while it does with no-media-buffers applied over 0.20251025.019:36
malI need to test on some fairphone that gst-droid to see that video playback works with those, need to check if the adaptive playback fixes need the other parts also19:39
T42<b100dian> hmm playbin319:46
mal@b100dian the changes in couple of repos fix playback of adaptive videos in for example reddit app19:49
T42<b100dian> I know, I'm a big fan of Andrew taking over that app19:50
T42<b100dian> just trying to figure out if that's what I need (newer qtmultimedia)19:50
T42<abranson> hang on i'll update the build of it on the community obs19:51
T42<abranson> i had to add another package19:51
T42<abranson> https://build.sailfishos.org/project/show/home:abranson:adaptivevideo19:54
T42<abranson> that's all in devel, but should be fine to install on earlier19:54
T42<b100dian> thanks! give me 10 mins, I have my device in testing for some reason and I wanted to fix that anyway19:55
T42<abranson> it's not rebuilt yet anyway19:56
T42<abranson> but if you get that on, and turn on adaptive in the quickddit settings, all the v.redd.it videos play pretty well, with sound!19:57
T42<adampigg> mal: @Mister_Magister : did HBM ever get resolved?19:59
T42<Mister_Magister> no19:59
T42<Mister_Magister> but apparently they want HBM for jolla phone 2 so it maybe might get fixed20:00
Mister_Magistermal: the suspend/usb shenanigans you might remember we were debugging, it seems suspend is being blocked by usb because usb doesn't go into suspend20:26
T42<b100dian> mal and abr: the latest gst-droid starts playing back after adding latest qtmultimedia šŸ‘20:42
T42<b100dian> obs is probably clogged with chum though ;P20:43
T42<b100dian> OT: I have hints showing about camera usage each time I open it (and probably others). Is there some dconf / path not writable? Why don't they go away20:53
T42<b100dian> `dconf write /sailfish/camera/camera_mode_hint_count 0` doesnt fix it (key was not present)21:05
Mister_MagisterI get ptsd flashback whenever i see the nick abr21:05
Mister_Magisterstupid google21:06
Mister_Magister(youtube implemented sabr which is server abr which is server adaptive bit rate which ruined my app)21:07
Mister_Magisterwhich dummy is building zig for sfos21:10
Mister_Magisternephros u dummy21:10
T42<b100dian> so abr broke microtube ;p21:13
T42<b100dian> isnt' just the whole chum 5.1 building?21:13
T42<abranson> The new one stops the zoomed frame when the stream switches.21:13
T42<abranson> nemo-qtmultimedia-plugins21:14
T42<abranson> Make sure you get that one too21:14
Mister_Magistergive me back my workers21:14
Mister_MagisterI want to hog the obs all to myself21:14
T42<b100dian> abr - yes, thanks - I will, but was debugging why too-new gst-droid was not working21:14
T42<b100dian> so: qtmultimedia update needed :check:21:15
Mister_Magistersince when do we have 5.1?21:15
T42<b100dian> I need to catch up with forums, but repos are there (?)21:15
Mister_Magisterughhhhhh i want my workers21:16
Mister_Magisterthere's like 300 scheduled packages before mine gets in it will take ages ;-;21:18
Mister_Magisterinstead of fifo we need to implement magisterifo :D21:21
malbtw, community port releases should not be done before actual release in my opinion21:25
Mister_Magisterye ye we know :)21:26
Mister_Magisterso something is very broken with the usb, it won't go to sleep, it won't detect state, nothing, nada, zilch21:33
Mister_Magistermal: i fixed usb suspend by disabling usb-moded21:36
Mister_Magisterso usb-moded writes something to the usb controller that it does not like21:37
Mister_Magisternot at all21:37
Mister_Magisterbut it still doesn't change state21:38
Mister_Magisterit's sleeping like a baby now21:40
Mister_Magisterso I'll have to (i really really really really really hope mal helps) debug what is that usb-moded writes to usb that usb doesn't like, but first i need to figure out why usb blocks listing of the wakeup_sources and why doesn't the state change21:43
malwhat do you mean state doesn't change?21:47
Mister_Magisterit doesn't detect that usb is connected21:47
maland blocking wakeup_sources?21:47
Mister_Magisterreminder, debugfs is not enabled21:47
Mister_Magisterreminder, you couldn't cat it anyway21:47
Mister_Magisterand it's not wakeup_sources fault21:47
malwhich detection do you use? android_usb or extcon? which one shows correct state?21:47
Mister_Magisterneither21:48
mal?21:48
Mister_Magisterneither of them changes state21:48
T42<Mister_Magister> not android_usb nor extcon21:50
T42<Mister_Magister> and usb-moded writes something to usb that stops it from suspending, wakeup_sources has nothing to do with this21:50
T42<Mister_Magister> the usb device fails to suspend if usb-moded is enabled21:50
T42<Mister_Magister> i also had to echo disabled > /sys/devices/platform/soc/4e00000.ssusb/power/wakeup in order to unblock autosleep thread21:52
Mister_Magisteras a reminder, autosleep worker function is blocked, cat'ing wakeup_count hangs, and if debugfs was enabled cat'ing wakeup_sources would also hand all due to shared piece of code that lists wakeup sources and never finishes. It loops forever21:54
Mister_Magisterbut the above echo somehow unblocks that loop21:54
Mister_Magisterso 2 things need to be established, how to make usb-moded NOT break the usb and how to fix usb detection21:55
malcan you read it if you keep usb connected all the time after boot, by making sure it never tries to suspend21:56
Mister_Magisterno21:56
Mister_Magisteralso if usb is connected at boot the android_usb will be locked to connected state21:57
maland plugging usb and disconnecting doesn't help with suspending etc?21:57
malI remember some device had issue that usb needed to be connected once for suspend to work21:57
Mister_Magisterno21:57
Mister_Magisterit's my and your devices21:58
Mister_Magisterpipa and some of your devices21:58
Mister_Magisterusb detection is completely broken21:58
malso suspend works if usb-moded is disabled?21:59
Mister_Magisterand if i do the echo disable yes21:59
Mister_Magisterand cat /sys/power/wakeup_count finishes currently when device goes to suspend21:59
Mister_Magisterit doesn't ever finish otherwise21:59
Mister_Magisterif i enable the usb-moded after all the wakeup-sources are exhausted i get error that usb failed to suspend because it's not in LPM22:00
Mister_Magisterand since usb can't suspend the whole suspend is cancelled22:01
Mister_Magisterbut that does not happen if usb-moded is masked22:01
Mister_MagisterI maybe will drop all the weird usb stuff i copied from piggz and see if that fixes it22:04
Mister_Magisteras to usb detection i got some android guy maybe he can help22:04
malwhat did you copy?22:07
malwhere is the droid-config repo?22:08
Mister_Magisterwell it's not in droid-config repo so that won't help you but here you go https://github.com/VerdandiTeam/droid-config-miami22:08
malbut what did you copy related to usb and from what device+22:10
malwhat is this supposed to be https://github.com/VerdandiTeam/droid-config-miami/blob/master/sparse/etc/gstdroidcodec.conf22:10
malthat is not where that should be22:10
Mister_Magisterit's supposed to be a typo :)22:10
Mister_Magisterhttps://github.com/HelloVolla/droid-config-halium-mimir/blob/master/sparse/usr/bin/droid/setup-configfs.sh https://github.com/HelloVolla/droid-config-halium-mimir/tree/master/sparse/etc/usb-moded22:11
malwhy would you need some configfs setup script?22:11
malI assume you don't have halium based build?22:12
Mister_MagisterI don't know i'm doing as I'm told but the idea is to use ncm22:12
Mister_Magisteri don't have halium based build yes22:13
malit doesn't have rndis?22:13
Mister_Magisterrndis is deprecated so the idea is to use something that isn't22:13
maleven in that case such script should not be needed22:15
Mister_Magisterwell i'm dumbass and piggz linked said script so blame him22:15
malbut same behavior with that script?22:16
malI mean without it22:16
Mister_MagisterI currently don't have it running yes22:16
Mister_Magisterand yes same behaviour22:16
Mister_MagisterIn fact i don't think I have any of those changes now that i'm looking at it so this entire exercie was pretty much pointless :D22:17
Mister_Magistersorry22:17
malcheck some things, you have only one udc?22:18
Mister_Magisterudc and dummy iirc from last time22:18
maljust in case force udc in usb-moded config22:18
Mister_Magisteruhhh, how?22:19
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini#L522:19
Mister_Magisteris that enough? https://paste.opensuse.org/pastes/5474c8ebc59b22:21
Mister_Magisterand yes that's my device22:21
malassuming you use suitable gadget_conf_directory, b.1 is the default22:22
Mister_Magisteri have c.1 so i'll add that line22:23
Mister_Magisterhttps://paste.opensuse.org/pastes/f186996a303f22:23
Mister_Magisterall good?22:24
malsee what happens22:24
Mister_Magistermmm it panicked the kernel :)22:24
Mister_Magisterso now it's rebooting22:24
Mister_Magistermal: nope, it breaks the usb22:26
malhmm22:26
malsomething then wrong in the config22:26
Mister_Magisterwell everything beside what i linked above is standard22:27
maldoes it use usb or rndis interface name?22:29
malon device side22:29
Mister_Magisterin ip a it's usb0 if that's what you're asking22:29
malon device?22:30
Mister_Magisteryes22:30
Mister_Magisterwe live in 2026 who needs usb anyway22:31
Mister_Magisterwifi and qi charging all the way22:31
malwhich sfos version do you build?22:32
Mister_Magistersemi-latest22:32
T42<Mister_Magister> 5.0.0.6722:32
maltoo old for what I want you to use22:33
Mister_Magisterxdd22:33
malupdate to .7622:33
malor .7722:33
Mister_Magisterwell i could build newer if someone didn't hog all the obs to themselves22:33
malwhy is obs the problem?22:33
Mister_Magisterim just joking22:33
malhttps://github.com/mer-hybris/s19mps-droid-configs/blob/master/sparse/etc/connman/main.conf.d/10-s19mps.conf excluding the last line, needs at least 5.0.0.7322:34
malit's possible to do the same with older version but it's a bit more complicated22:35
Mister_Magisterdon't you worry22:36
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/connman/main-custom.conf and https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/var/lib/environment/connman/override-main-config.conf22:36
malthose work with older releases22:36
Mister_Magisteri'm updating i'm updating22:36
Mister_MagisterI wonder if there's any sfos device with newer kernel than 5.422:39
Mister_Magisterlike sfos port22:39
Mister_Magisteradded the one file22:40
malnot yet released fp6 has 6.1, jolla phone has 6.1222:41
Mister_Magisterno issues with usb detection on those?22:41
malnope22:41
Mister_Magisterdo you mind dropping their SOC's… well i guess you can't for jolla phone and i can google for fp6 so nvm22:42
Mister_Magistermal: okay what now22:43
maljolla phone has mediatek dimensity 710022:44
malso how does it behave now?22:44
Mister_Magisterthe same22:45
malno usb at all working?22:45
Mister_Magisternope, usb detection is broken so usb-moded wouldn't do anything anyway no? and usb device fails to suspend yes22:46
malyeah22:46
malwhich platform is that?22:46
malwhich kernel version?22:47
Mister_Magistermiami, edge 30 neo, Qualcomm SM6375 Snapdragon 695 5G 5.422:47
malhmm, wait22:47
Mister_Magistersomeone at qualcomm got REALLY HIGH when changing the naming scheme22:47
Mister_Magistersome serious drugs were in works22:47
mala14 base?22:47
Mister_Magister1522:48
Mister_Magisterlatest and greatest unless you finished a16 adaptation22:48
malon fp5 this was needed https://github.com/mlehtima/android_kernel_fairphone_qcm6490/commit/873c6024bd45d637e8aa7768d33b9964066ea02022:52
Mister_Magisteralso for context, usb device fails to suspend because it gets to here https://github.com/VerdandiTeam/android_kernel_motorola_sm6375/blob/lineage-22.2/drivers/usb/dwc3/dwc3-msm.c#L5989, I don't see anything setting in_lpm to true, only the dwc3_msm_suspend that's below the if. After i set the if two lines above to false so that it never gets there, it does suspend, but then usb-moded breaks it, but comment would suggest that22:52
Mister_Magistersome runtime power management sets the in_lpm to true22:52
malare the android_usb and extcon both saying disconnected all the time?22:53
Mister_Magisteryes22:53
maldoes your device use that qti_battery_charger?22:54
Mister_Magisterpardon my wording but "hell if I know"22:54
malcheck kernel config and/or sysfs, power_supply stuff for example22:55
Mister_MagisterCONFIG_QTI_BATTERY_CHARGER is not present in config.gz22:56
Mister_MagisterSo no, I don't think so22:57
Mister_Magisterthere's CONFIG_MMI_CHARGER22:57
Mister_Magisterbut charging state detection works22:58
malok22:58
maland you are sure all needed modules are loaded?22:58
Mister_Magisteryes I am sure22:59
malhow many extcon devices does it have?23:00
Mister_Magister323:00
Mister_Magister0, 2, 423:00
Mister_Magisterhuuh wait23:03
Mister_Magisterit magically started suspending23:04
Mister_Magisterwith usb-moded running23:04
Mister_Magisterwait i got theory23:04
malI wonder if writing empty to udc helps?23:07
malusb-moded does that when disconnecting usb23:08
malI think23:08
Mister_Magisterokay mal with these changes, after fresh boot, and echo disabled > /sys/devices/platform/soc/4e00000.ssusb/power/wakeup, the suspend doesn't work, but it works if I plug and unplug usb (despite usb connection never actually being detected)23:13
malMister_Magister: so all of the extcon device state files just show USB=0 or something23:13
Mister_Magisteryes23:14
malMister_Magister: so the same plug once issue23:14
Mister_Magisterso with these changes and echo, we're in same position as pipa yes23:14
Mister_Magisterbut to get to this i had to modify kernel and disable usb wakeup23:14
malyou still need that echo?23:14
Mister_Magisteryes23:14
malmodify kernel how?23:14
Mister_Magisteri described it above, look at the "also for context" message23:14
Mister_Magisteri can repaste it if you wish23:15
maland you are sure it's needed? and it wasn't some issue because usb-moded was broken?23:15
malsince something seems to have changed now with usb moded configured23:15
Mister_Magisterwelel I'll do some testing and answer that23:15
malyeah, try again without kernel changes and echo, just to be sure23:16
Mister_Magisterone by one, first i'll try without echo23:16
Mister_Magisterif you change 2 variables at the time you won't know which one caused it :D23:16
Mister_Magisterecho is very much needed yes because the autosleep function won't ever get unlocked23:19
Mister_Magisteri'll now try without kernel change23:19
Mister_Magisterbut with echo23:19
Mister_Magistermal: and it doesn't suspend either, as I mentioned "msm-dwc3 4e00000.ssusb: Abort PM suspend!! (USB is outside LPM)"23:24
malwhere is your kernel source23:24
Mister_MagisterI linked it multiple times23:24
Mister_Magistereven in the message with context23:24
Mister_Magister[00:52] <Mister_Magister> also for context, usb device fails to suspend because it gets to here https://github.com/VerdandiTeam/android_kernel_motorola_sm6375/blob/lineage-22.2/drivers/usb/dwc3/dwc3-msm.c#L5989, I don't see anything setting in_lpm to true, only the dwc3_msm_suspend that's below the if. After i set the if two lines above to false so that it never gets there, it does suspend, but then usb-moded breaks it, but23:25
Mister_Magistercomment would suggest that23:25
Mister_Magistersome runtime power management sets the in_lpm to true23:25
Mister_Magisteryou even have exact line of that message :)23:26
malcan you check usb mode? something like /sys/class/udc/*/device/../mode23:30
Mister_Magisteri think it was like in normal or smth23:30
malecho peripheral to it23:31
maland see if anything changes23:31
Mister_Magisterhmm I can't find mode23:31
Mister_Magister /sys/devices/platform/soc/4e00000.ssusb/mode here it is23:32
Mister_Magisterit is peripheral23:32
malok23:32
Mister_Magisterat least now device is usable, I never ever use usb, other than for charging (which works, and there's also qi charging) so technically i could finally use this device :d23:33
Mister_Magister:D*23:33
Mister_Magisterbtw don't let me hold you if you want you can go ahead to sleep23:34
malthe usb connect disconnect is still needed?23:35
Mister_Magisterwell if we want usb network/mtp yes23:35
Mister_Magisteror like usb OTG23:36
malI meant for it to suspend23:36
Mister_Magisteryeye23:36
Mister_Magisterconnect/disconnect or disabling usb-moded23:36
malwhat happens if you echo host to the mode23:36
Mister_Magisterentire device froze23:38
Mister_Magisteroh and there it goes, kernel panic23:38
malok23:38
malwhat happens if you write something else23:39
malyou do the writes via wlan?23:39
Mister_Magisterye ssh23:40
Mister_Magisterhttps://paste.opensuse.org/pastes/f0dcbb00a4d5 I follow instructions :)))23:40
Mister_Magisteroh OH! IT suspends without echo now!23:41
Mister_Magistershall it try without kernel change?23:42
Mister_Magisterand it suspends way more cleanly now23:42
Mister_Magistercleanly as in after 2 fails not 20023:43
maldid usb detection change?23:44
Mister_Magisterdid not check went into changing kernel23:44
malcan you check on device what kind of usb related *.rc files you have and check what things those write23:47
Mister_Magistermal MAL IT SUSPENDS WITHOUT CONNECT/DISCONNECT, ECHO OR KERNEL CHANGE23:47
Mister_MagisterHYPE23:48
Mister_Magisteri did check in past but didn't find anything remotely interesting23:48
malso the peripheral mode does something fishy23:48
malcheck if any of the .rc files write mode23:49
Mister_Magisterhttps://paste.opensuse.org/pastes/27f7c5661db423:49
Mister_Magisterthese are in vendor23:49
malno writes there to mode23:50
Mister_Magisterhttps://paste.opensuse.org/pastes/6e1e37b306df /system23:51
Mister_Magisterneither here23:51
Mister_Magisteri literally did find /system -name \*usb\*rc23:51
Mister_Magistersame for vendor23:51
malgetprop sys.usb.typec.mode23:53
Mister_Magisterempty23:53
Mister_Magisterah you wanted usb detection23:54
Mister_Magisternothing changed23:55
Mister_Magistermal: wait, i connected the device and wrote peripheral and have usb connection and state changed to configured in android023:56
Mister_Magisterhttps://paste.opensuse.org/pastes/d62dc3cfe21623:56
maldoes it suspend?23:57
Mister_Magisternot at all :)23:57
Mister_Magisterwell it's to be expected i think mce blocks suspend while charging no?23:57
malI of course mean disconnecting usb and checking if suspend works now in peripheral mode23:58
Mister_Magisteraaaaand nope, it doesn't23:58
Mister_Magisterit doesn't even try to suspend so autosleep thread is blocked23:59
Mister_Magisteronce i wrote none i didn't even manage to type dmesg before it suspended23:59

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