Monday, 2025-03-17

Mister_Magistermal: my friend, how busy are you13:16
Mister_Magisteri need help with minimedia13:16
Mister_Magisterthe sensormanager thing13:16
Mister_Magisterits eating my battery like crazy13:16
Mister_Magisterapparently it might be connected to linkerconfig13:32
malhmm13:33
malanything in logcat?13:33
Mister_Magistera lot actually13:36
Mister_Magisterhttps://paste.opensuse.org/pastes/11b8e051228813:36
Mister_Magisterthis is the relevant part13:36
Mister_Magisterthis looping eats my battery13:37
Mister_Magisterotherwise minimedia seems to be working fine i can play videos, can't record them yet13:37
Mister_Magisterif i grep binder-list i get13:39
Mister_Magisterandroid.frameworks.sensorservice@1.0::ISensorManager/default13:40
Mister_Magisterwhich isn't quite aidl/android.frameworks.sensorservice.ISensorManager/default but i'm not sure it matters13:40
Mister_Magisteridk what to attack with the debugging so just any direction suggestion would be neat13:41
maland the process doing that is really minimedia?13:41
Mister_Magisterdoing what exactly13:41
malthat sensorservice message stuff, check the pid13:42
malvideo recording is known to be broken in a1413:42
Mister_Magisterits servicemanager, i'm not sure what you mean13:43
Mister_Magister"servicemanager: Since 'android.frameworks.sensorservice.ISensorManager/default' could not be found (requested by debug pid 3263)," this is requested by xiaomi-keyboard service13:44
Mister_Magisterohno13:45
Mister_Magisteri have to disable it don't i13:45
malyou have two pids related to those sensor messages?13:46
Mister_MagisterControl message: Could not find 'aidl/android.frameworks.sensorservice.ISensorManager/default' for ctl.interface_start from pid: 2159 (/system/bin/servicemanager this is service manager13:46
Mister_Magisterthe one above is xiaomi-keyboard13:46
malwhat does binder-list show?13:46
malfor hwbinder and binder, anything sensor related there?13:47
Mister_Magister[14:39] <Mister_Magister> if i grep binder-list i get13:47
Mister_Magister[14:40] <Mister_Magister> android.frameworks.sensorservice@1.0::ISensorManager/default13:47
Mister_Magisterthe android.frameworks.sensorservice@1.0::ISensorManager/default is only in hwbinder not in binder13:48
Mister_Magisterdoes it expect it in binder and not hwbinder or something?13:51
T42<Mister_Magister> @b100dian how's camera 2 api?13:54
malstill images work quite ok on camera2, video recording currently is not yet working13:56
Mister_Magisterah so no change thanks13:57
Mister_Magisterkay so i think, this tablet has keyboard accessory and three pins on the back so i think that service was getting info from sensors about the hall magnetic close to know when to activate keyboard and acted like a keyboard and I doubt it will work with sfos especially since we're faking sensor manager anyway13:58
Mister_Magisteri'll probably have to write some software that talks to MCE about that13:58
malneed to figure out what is wrong in my latest changes, video recording fails differently than before, different android base of course13:58
Mister_Magisteris my blabbing reasonable? xd13:58
Mister_Magisteri'll disable the service meanwhile and boom problem fixed13:59
malMister_Magister: it's also possible we might need aidl fake sensor thing in minimedia13:59
Mister_Magisteri don't even know whats aidl13:59
Mister_Magisterbut i'm quite sure this service would need real and not fake sensor thing13:59
Mister_Magisterthanks for help14:00
Mister_Magisteri'll now try to put all changes from device into repo and build new zip14:00
Mister_Magisterand maybe fix zip install14:00
malaidl is the other binder thingy, hidl is the other14:02
Mister_Magisteri don't even know what is hidl14:05
Mister_Magisterwell anyway like i said i'll probably have to rewrite that service to be sfos friendly anyway14:09
malI have some plans for improving droidmedia, it does some things in a stupid way14:10
Mister_Magisteri wish we could get rid of gst-droid14:10
malwhat would replace it?14:10
Mister_Magisterbecause its incompatible with anything14:10
mallike what?14:11
Mister_Magisterno standard linux software gets hardware video encoding/decoding14:11
Mister_Magisteryou have to write specifig gstreamer code to get hardware video encoding/decoding14:11
Mister_Magistersailfish specific14:11
Mister_Magisterif you bring any standard linux software it won't be able to use gstdroid14:11
malhmm, I thought gst decoding or encoding is quite standard?14:11
Mister_Magisterif it would just covert the output to be standard gst format instead of gstdroid format then that would be great leap forward14:12
malcamera not so much14:12
Mister_Magisternope14:12
Mister_Magisteroutput of gstdroid decoding is gstdroid only14:12
Mister_Magisteri had to write entire player just to be able to display it14:12
Mister_Magisterliterally me and jolla are the only two parties that currently are able to use gstdroid and if you use any software that's not sailfishos specific it won't be able to use gstdroid, thats why the flatpak apps get no hardware acceleration nor any other compiled software like flutter14:15
T42<TheVancedGamer> you're more than welcome to write a vaapi/vdpau driver :D14:15
Mister_MagisterI'm tempted, but first i would see if i can jsut use droidmedia to convert output of the gstdroid to normal format14:15
Mister_Magisterthen it would work fine just fine14:15
mal@TheVancedGamer I did consider that at some point, so a vaapi wrapper from droidmedia14:16
mal*for droidmedia14:16
Mister_Magisterif you put anything in pipeline after gstdroid that's not gst-droid specific the pipeline won't be able to use gstdroid so it will fall back to hardware decoder14:16
T42<TheVancedGamer> I will try after my exams end next week14:16
T42<TheVancedGamer> because frankly I want hwdecoding in ffmpe14:16
T42<TheVancedGamer> ffmpeg*14:16
malyeah, that was the reason I was thinking about it also14:17
Mister_Magisterfrankly not gstdroid wrapper but droidmedia wrapper14:17
Mister_Magistermal: now you know there might be more reason xd14:17
Mister_Magisterand then the sfos stock browser wouldn't have to talk to droidmedia in weird way14:17
Mister_Magisteraw man i got so many issues with sfos14:18
Mister_Magisteri wanna modify the screen recorder to pipe the output through gstdroid and encode it on hardware making normal screen recording possible cause beside jolla i'm currently the only one able to do that xd14:19
Mister_Magisteri just don't have time14:19
Mister_Magisteri have 6 ports and 9 apps14:19
Mister_Magistergreat autosleep now doesn't work despite me not changing absolutely anything. Previously it just worked now it just doesn't14:45
malhopefully not the same bug as on one sony, usb needs to be plugged in/out once to make it suspend14:47
malI mean once after reboot14:48
Mister_Magisterxdddddddddddd14:49
T42<b100dian> Mister_Magister: camera on sake is garbage without disabled noise reduction and edge enhancing w/ camera2, if you remember, so I just use it without video14:51
Mister_Magistermal: i think it is xddddddddd14:54
Mister_Magisterandroid will never cease to amaze me14:55
Mister_Magistersince i read "hopefully not" i assume you don't have fix for that14:56
malyeah, there must be some generic issue, not sure what yet14:56
Mister_Magistergotcha14:56
Mister_Magisterno worries14:57
Mister_Magisterand the video recording is also generic issue?14:57
malfp5 also has fun bug, only certain type usb ports work correctly, the ones with faster charging not the old ones14:57
malyes, video recording probably will need camera214:57
Mister_Magistergotcha14:57
Mister_Magisterthanks for all the help mal14:57
malandroid dropped the ancient stuff we use for it14:58
Mister_Magisteri hope i wasn't too much pain in the ass14:58
Mister_Magister(meanwhile mal be like "don't ever text me again")15:00
T42<TheVancedGamer> figured it out though, it's dwc3 sensing low power as floating D+/D- (re @SailfishFreenodeIRCBridgeBot: <mal>fp5 also has fu...)15:02
T42<TheVancedGamer> I have some patches lined up that should fix it15:02
maloh15:03
malnice if that gets fixed15:05
malI have quite many big things in progress at work, hopefully I get some of those finished15:05
Mister_Magisternice dodge xd15:05
mal?15:06
T42<Mister_Magister> @b100dian mal is it hard to switch to camera2 api currently?15:17
malyou mean for testing?15:18
Mister_Magisteror deployment15:21
Mister_Magistersince video record is not gonna work anyway i can just switch to camera2 now15:21
malwell it might have issues15:26
Mister_Magisterits a tablet, i won't cry over it15:27
Mister_Magisteri'm not the aunt that records videos on ipad xd15:27
Mister_Magisterand like i don't have the iso etc settings anyway15:27
malyou probably will need https://github.com/sailfishos/droidmedia/pull/122 on top of the camera2 branch15:31
Mister_Magistermal: stupid question but since this is tablet, can i remove dialer app?15:31
Mister_Magisterjust from the app grid15:32
malyou mean like removing this https://github.com/mer-hybris/droid-hal-configs/blob/master/patterns/templates/patterns-sailfish-device-configuration-%40DEVICE%40.inc#L7 ?15:32
Mister_Magisteryou are a genius15:32
Mister_Magisterthank you15:32
Mister_Magisteri hope the dialer stays cause i'm using for yottagram calls though15:32
Mister_Magistermal: i think sfos animations could be at 2x speed because of the screen being 120/144Hz16:13
Mister_Magisterbut its hard to tell16:13
Mister_Magisteryeah they totally are16:14
Mister_Magisterwait i'll use the bugtracker thingy16:15
Mister_Magistermal: do I have your permission to spam in the issue tracker? xd16:16
malwhat kind of issues are you going to report?16:18
Mister_Magisterrelated to 120Hz16:18
Mister_Magisterlike faster animation and fps count16:18
Mister_MagisterI opened one so far16:19
malok16:19
malI forgot to check that fps reporting thing16:19
Mister_Magisterhttps://github.com/sailfishos/issue-tracker/issues/9 https://github.com/sailfishos/issue-tracker/issues/1016:20
Mister_Magisterthats why this port felt so snappy16:20
Mister_Magistermal: so I can yeet dummy_netd? its under #Telephony17:09
Mister_Magisteras well as ofono-binder-plugin17:09
Mister_Magistermal: oh, could you also create xiaomi:pipa for me on obs?17:11
malwhat is the name of the device?17:18
Mister_MagisterXiaomi Pad 617:18
Mister_Magisteroh and i gotta ask for the store17:18
Mister_Magisterwhom do I ask about that again?17:19
malhttps://build.sailfishos.org/project/show/nemo:devel:hw:xiaomi:pipa and https://build.sailfishos.org/project/show/nemo:testing:hw:xiaomi:pipa17:20
Mister_Magisterthank you very much17:21
Mister_MagisterKeto: Hello, long time no talk, i got yet ANOTHER device for you to add to the store if you could do that for me17:21
Mister_Magistermal: and steal packages from fp5 i pressume? xd17:22
malfp5 has some extra ones, fp4 is closer to normal17:23
malI need patched ngfd for fp517:23
Mister_Magisterokidoki17:24
Mister_Magisterthankies again17:24
T42<Mister_Magister> @b100dian hi you modified the installer to use gzip instead of bz2 do you have some instruction how to do that?17:25
Mister_Magisteri still have to figure out how to push vendor_bood and dtbo to the zip too17:25
malout-of-image-files.files ?17:27
malto config repo17:28
Mister_Magisterhmm17:28
Mister_Magisterill see about that17:28
T42<b100dian> Mister_Magister: there were at least two changes: one in hybris-boot and one in create-mic.sh The tucana and sake repos should have repos for both (the second one is in either Release or Readme repo)17:37
Mister_Magisterthankies17:37
KetoMister_Magister: sure, would need the model line from ssu s, and arch17:57
Mister_MagisterDevice model: Pad 6 (pipa / pipa)17:57
Mister_Magisteraarch6417:57
Ketoand that's Xiaomi Pad 6?17:58
Mister_Magisteryeap18:01
Ketooh, is that a first aarch64 tablet we have...18:01
Mister_MagisterI wouldn't be surprised lol18:01
Ketoadded18:06
Mister_Magisterthank you very much18:07
Mister_Magistercan confirm it works18:11
Mister_Magistermal: the xiaomi-keyboard service that was failling due to minimedia seems to be opensource https://github.com/ai94iq/android_device_xiaomi_pipa/blob/axv-qpr2/peripheralmanager/xiaomi-keyboard.cpp#L19518:58
Mister_Magisterso thats nice18:58
Mister_Magisteri can easily adapt it18:59
malok19:00
Mister_Magisteri have no clue what it does but it doesn't seem to be doing much19:00
Mister_Magisternor do i have any idea why accelerometer controls keyboard19:00
Mister_Magisterxiaomi things19:00
Mister_MagisterI've just disabled the service for now as i don't have keyboard to test anyway19:01
T42<Mister_Magister> where's create-mic? (re @b100dian: Mister_Magister: the...)20:18
T42<b100dian> Readme or Release repo20:19
T42<Mister_Magister> ahh manually you mean20:19
T42<Mister_Magister> gotcha20:19
T42<Mister_Magister> btw how do you use this20:19
T42<Mister_Magister> https://github.com/sailfishos-on-tucana/yamuisplash20:19
T42<Mister_Magister> do you just build it on obs and thats it?20:21
Mister_Magistermal: lol your fp4 project cannot be osc'd20:23
Mister_Magisterfp5*20:23
Mister_Magistermal: also, i tried building it by copying packages from you but mce-plugin-libhybris seems to be missing? https://build.sailfishos.org/project/monitor/nemo:testing:hw:xiaomi:pipa20:40
Mister_Magisteralso out-of-image-files don't have the vendor_boot and stuff, and i technically want them to be in the image because i need to flash them via zip20:41
malsome devices don't have led so mce-plugin-libhybris is not needed on those20:45
Mister_Magisterah, this one doesn't, so i'll remove it20:45
Mister_Magisterand i got the idea for the zip, i'll add droid-hal-pipa-kernel-dtbo and droid-hal-pipa-vendor_boot to the patterns cause they extract to /boot/ after that my kickstart thing should include it in zip20:46
Mister_Magisteralthough i broke something cause scripts are missing from the zip20:46
Mister_Magisterhttps://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/blob/main/patterns/patterns-sailfish-device-adaptation.inc#L6 yeap thats what I was missing20:47
Mister_Magisterand should i remove ofono-binder-plugin and dummy_netd?20:47
Mister_MagisterI don't have any sim so20:48
T42<b100dian> yamui splash from tucana is an old fork, I think I updated the bitmap. And today it should just work, try installing it from the common repo. I dropped its usage when I was debugging startup races and never enabled it back, but it is a nice addition20:51
Mister_Magisterbut… but i wanna my own logo in there20:53
Mister_Magisterbut thanks i'll try20:53
Mister_Magisterah i didn't add the script files to kickstart attachment no wonder they're missing20:54
malI was wondering if that is correct place for .img files also20:55
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/kickstart/attachment/fp520:55
malalthough my builds are official style so a bit different20:55
Mister_Magister@b100dian yeah the splash is messed up beyond any recognition20:55
Mister_Magisteryeah i have the same20:56
mal@b100dian there have been improvements to boot splash handling, it's not perfect but a bit better20:56
Mister_Magister@b100dian now i have no display, fix it >:(20:56
Mister_Magisteri don't even have ssh to it over usb20:59
Mister_Magisteroh ssh worked phew20:59
T42<b100dian> Not enough hwcomposer restarts20:59
Mister_Magisterwhat do you mean20:59
Mister_MagisterI have to also modify the flashing script to flash the dtbo and vendor_boot, i don't think its done automatically is it21:00
T42<Mister_Magister> oh, i wonder if the audio lib will be packaged21:02
T42<Mister_Magister> or if i have to copy it21:02
Mister_Magisteroh its copied perfect21:04
T42<b100dian> Re hwcomposer: I remember I had to do this for splash https://github.com/sailfishos-on-tucana/droid-config-tucana/commit/4f54e8fb97f2587f84b2405302050d50b1a7789121:05
malI have an idea to at some point replace the hwc dependent boot splash with minui based way21:06
mal@b100dian hwc restarts are now handled by mce21:07
malMister_Magister: if you mean halium audio lib then it will be packaged if you rebuild droid-hal rpms21:07
Mister_Magisteryea and i can confirm it was packagesd21:08
T42<b100dian> mal: is this 5.0 mce? I think along those lines I had restarts added for community encryption too in 4.621:08
mal@b00dian I think it probably needs that https://github.com/mer-hybris/droid-hal-configs/commit/336c1b14cc20187a7e9ba368f20161030e326ec921:11
malsimilar file as those21:11
malbut the point is that the restart details are handled by mce21:12
mallike which service to restart, compared to old way where all services had the restart handling copied21:13
T42<b100dian> Good idea, thanks for explaining21:18
Mister_Magisterhmm how can i package binary from android into droid-hal?21:34
malwhat binary?21:34
Mister_Magisterxiaomi-keyboard21:34
malif you just build it then it would go into libexec into the usual place21:34
Mister_Magisterbut it didn't21:35
malunless it is installed to vendor or elsewhere then you could edit the Android.mk/.bp to force it to system21:36
Mister_Magisterah thanks21:36
Mister_Magisterit does in fact go into vendor21:36
malthere is some simple way to do it those files21:36
Mister_Magisterremove vendor: true, i presume21:36
malyes21:36
Mister_MagisterI've had it modified so that it doesn't require sensormanager and just always turns on the keyboard and i'll package it to droid-hal and override the android service with my binary21:37
Mister_Magisterepic plan21:37
Mister_Magistermal: I can't help but notice the flash-bootimg.sh thingy only flashes boot partition and not dtbo and vendor21:46
malhttps://github.com/mer-hybris/droid-hal-device/blob/master/droid-hal-device.inc#L33C3-L33C21 and the one after that21:47
Mister_Magistermy man has link for everything21:47
Mister_Magisterbut how does it know which partition is it21:48
Mister_Magisteri already have them to 1 too21:48
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/sparse/var/lib/flash-partition/device-info and https://github.com/mlehtima/droid-config-fp5/tree/master/sparse/var/lib/platform-updates21:48
Mister_Magisteralrighty21:49
Mister_Magisterare the numbers randomly picked or do they mean something21:49
malremember to set executable bit for the .sh files21:49
malthose are the partition numbers21:50
Mister_Magisteri did21:50
Mister_Magisterexcept the boot partition21:50
Mister_MagisterPART_REAL_1="sde11"21:50
malexcept 1 which is boot_a or boot always21:50
Mister_Magisteroki21:50
Mister_Magisterthe number probably doesn't matter anyway21:50
malshould be easy the see from that device-info21:50
malthat the 1 does not match partition number but others do match21:51
Mister_Magisterye ye21:51
Mister_Magisterthats what i was talking abuot21:51
malthat 1 is probably because of some ancient magic somewhere21:51
Mister_Magisteryeah i meant the numbers beside 1 don't matter21:51
malbtw, remember to fix CPUCHECK_STRING, there are two possible places it reads now21:52
Mister_Magisteroh?21:52
Mister_Magisteri just pasted Qualcomm Technologies, Inc SM825021:52
malthat is used to check that platform matches21:52
malit has to match what is read from device https://github.com/mer-hybris/droid-hal-configs/blob/master/sparse/usr/sbin/flash-partition#L8021:53
malthat shows the two places it checks21:53
Mister_Magisterbut only if first fails no?21:53
malnewer devices use the latter one, older ones use /proc/cpuinfo21:54
Mister_Magisterwell here cpuinfo matches so i used that21:54
Mister_Magisteri can use the other one if you want21:54
malok, some devices don't have anything useful in /proc/cpuinfo21:54
Mister_Magistermine didn't couple years back21:54
malI added that other option at some point to fix some device21:55
Mister_Magistermaybe it was my device xd21:55
malor some fairphone21:55
Mister_Magisterhttps://github.com/VerdandiTeam/droid-config-pipa/commit/8aa857f0e1b264f01b09f1e62849283e76f074df21:58
Mister_MagisterI did good21:58
malforgot the .sh files?22:03
malhttps://github.com/VerdandiTeam/droid-config-pipa/tree/master/sparse/var/lib/platform-updates22:03
Mister_Magisterohhhh22:04
Mister_Magisterthankies22:04
T42<b100dian> Sake didn't have sane cpuinfo. Glad there's another file in use now22:04
Mister_Magisteri'm very dumb, low iq22:04
Mister_Magister@b100dian i thought i recognized that issue22:04
T42<b100dian> Yeah, you debugged it:)22:05
Mister_Magisterdonezo fixed https://github.com/VerdandiTeam/droid-config-pipa/tree/master/sparse/var/lib/platform-updates22:06
Mister_Magister@b100dian oh did?22:06
Mister_MagisterI thought i recoginzed tit22:06
Mister_Magisterhmmm where can i find parse-android-dynparts?22:08
Mister_Magisteris it in community repo?22:08
T42<b100dian> no, you have to host it and build it in obs22:09
Mister_Magisterwhich repo do people use?22:09
Mister_Magisterfp5 does't have it22:10
maldoes this still work https://github.com/mlehtima/parse-android-dynparts22:10
malfp5 uses packaged /system, /vendor etc22:10
Mister_Magisteridk i was using https://github.com/sailfish-on-nabu/parse-android-dynparts22:11
malok, use what ever works22:11
Mister_Magisteroki22:12
Mister_Magisterbuilding local zip lets see of it  packages everything correctly22:13
Mister_Magisterhow the heck is storeman built against 5.1 already is beyond me lmao22:13
Mister_Magisterbut yeah hmm, idk how to input version now since they use 5.0 and not full 5.0.0.6222:14
Mister_Magisterhardcoding version it is then22:14
Mister_Magisterah shiet the nabu one won't build on obs22:16
malsome repos are moving to two digit versions22:16
malto reduce useless builds on obs22:16
Mister_Magisterbut how do i specify the two digit version in ssu?22:16
Mister_Magisteris there variable?22:16
malyes22:17
Mister_Magisteroh22:17
Mister_Magister%(release) reports full version22:17
mal%(releaseMajorMinor}22:17
Mister_Magisteroh thanks22:17
Mister_MagisterError <creator>[03/17 22:19:22] : URLGrabber error: https://repo.sailfishos.org/obs/home:/olf:/harbour-storeman/%(releaseMajorMinor}_aarch64/repodata/repomd.xml that didn't work22:21
Mister_Magisteror mic can't handle it22:21
Mister_Magisteror its because my mic is from 4.422:21
malyou haven't updated sdk side?22:21
Mister_Magisterin a long while yes22:22
maltime to update then22:22
Mister_Magisteryeah22:22
maleasy to do that22:22
malI always do all at once with sdk-foreach-su -ly22:23
malthat runs the command you add to the end for sdk and all toolings and targets22:23
malwithout -l it only runs for toolings and targets22:23
malon my work laptop I have 4 toolings and 10 targets :) so that makes updating easier22:24
Mister_Magisterhuh22:24
Mister_Magisteri just did ssu zypper ref and zypper dup22:25
Mister_Magisteri'm getting close to port done22:38
Mister_Magisterand then i gotta remake op6 port22:38
* Mister_Magister mal gotta have enough of me by now xd22:55
Mister_Magisteroh man, i think i messed up the sd23:14
Mister_Magistersdk*23:14
Mister_MagisterWARNING: Deprecated ~/.mersdk.profile found! ah its just warning, ignored23:14
Mister_Magistermal: even with mic 1.0.14 i still have same error23:16
Mister_Magisterit doesn't replace releaseMajorMinor23:16
Mister_Magisteraltho it might be late so i'll just hardcode it for now23:16
malhmm23:18
malwondering if mic is missing something related to that23:19
malneed to check23:19
T42<Mister_Magister> no worries23:20
T42<Mister_Magister> 5.0 is not gonna change soon23:20
Mister_Magisterokay got the dtbo and vendor_boot in output but not in zip hm23:39

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