Friday, 2025-03-14

T42<Mister_Magister> maaan, i just grepped for lpm_cpuidle_enter cause "many other people ported xiaomi maybe they encountered this issue"01:35
T42<Mister_Magister> i freaking found myself mentioning that problem01:36
T42<Mister_Magister> maaan xd01:36
T42<Mister_Magister> and it's me from… 7 years ago holy01:39
T42<Mister_Magister> but hey i guessed correctly it was xiaomi01:42
T42<Mister_Magister> so back in 2018 the issue was issue with busybox not being executable, but i doubt thats the issue since i'm in ramdisk no issues01:56
T42<Mister_Magister> this is going to be hard01:57
T42<Mister_Magister> i shuold try and debug switch_root cause it seems to be cause of the issue01:59
T42<Mister_Magister> its not segfault in kernel, but Attempted to kill init01:59
T42<Mister_Magister> which would suggest userspace i think…?01:59
T42<Mister_Magister> if anyone has any idea please help01:59
T42<Mister_Magister> or maybe its selinux thing02:02
T42<Mister_Magister> in that case the problem is that the logs are not being saved and i gotta debug userspace… i think i'll try stopping init script from disabling telnet so that i can see what happens02:03
Mister_Magistermal: hi did you have time to look at the repos?12:59
malsorry was a bit busy yesterday13:01
malwhat is the status of that latest build13:02
Mister_Magisternah no worries just asking13:03
Mister_Magistermal: when it switches root it kills init, before executing the init-done13:03
malhmm13:04
Mister_Magisterhmm indeed13:04
Mister_Magisteri don't have any logs beside segfault either, currently i'm thinking of modifying init script to not close telnet when switching root and just tail the output13:05
malso it never gets to second telnet13:05
Mister_Magisterno13:05
maleven is you have that stop thingy there13:05
Mister_Magisteryeap13:05
Mister_Magisterhence i concluded it never gets to init-done13:05
maland userdata is properly ext4?13:05
Mister_Magisteryeah im in ramdisk i have it mounted its all fine13:06
Mister_Magisterits quite nice debug setup because it enters ramdisk every time and then when it segfaults it just goes back into ramdisk and i have pstore13:06
malanything useful in pstore?13:06
Mister_Magisterthe kernel panic13:06
Mister_Magisterother than that nah13:06
Mister_Magisterbtw mal did they remove the bootctl or something? despite me rebooting way before bootctl service would run it doesn't switch slots like it used to13:07
maldoes it hint anything where is panics?13:07
malbtw, do you know the way to decode kernel backtraces to more readable format?13:07
Mister_Magisteri know addr2line13:08
Mister_Magisterit attemts to kill init and not segfault so i concluded its in userspace13:08
Mister_Magisterand the spot is VERY generic13:09
Mister_Magisterso i don't think its problem with kernel13:09
Mister_Magisterhttps://paste.opensuse.org/pastes/26e36af8ab10 enjoy the dmesg13:10
Mister_Magisterthe panic points to CONFIG_MSM_PM so yeah definitely not the kernel fault13:12
Mister_Magisterif it was kernel fault it would be segfault i think13:12
malMister_Magister: does your device have kernel modules in init? i.e. in vendor_boot? btw, did you flash correct vendor_boot also13:18
Mister_Magisteri flashed dtbo, boot and vendor boot13:18
Mister_Magisterall 313:18
Mister_Magisterand as to other question i have no idea13:18
malbecause the issue could be "request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now" which suggests init hangs in module loading13:18
Mister_Magisterim not good in this android stuff i leanred about this weird new kernel stuff yesterday13:19
malbut that would not explain that you can get into first telent13:20
Mister_Magistermal: but like, in ramdisk it also loads kernel modules so why would it fail in init13:21
Mister_Magisteryeah13:21
malbecause it should be loading those already in first init13:21
malis the first init stable for long time?13:21
Mister_Magisteryeap13:21
Mister_Magisteri can stay indefinitely13:21
Mister_Magisterand it goes there every time13:21
Mister_Magistervery solid debugging environment13:21
malmaybe try to check if there are some pending kernel stuff, can't remember the path in sys to check that13:22
maldid you have any issues extracting rootfs?13:23
Mister_Magisteri extracted it via the ramdisk and nah13:23
Mister_Magisterhttps://paste.opensuse.org/pastes/867e4fed3a04 whachu need :D13:29
Mister_Magisteri tried chrooting target and got chroot: can't execute '/bin/bash': Exec format error13:35
Mister_Magisterthat normal?13:35
malhmm13:35
Mister_Magisterwhen i try running /target/bin/bash nothing happens13:35
Mister_Magistercould be entirely normal13:36
Mister_Magistermal: i mostly wanted you to check repos cause i might have missed something but also this https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/tree/main/sparse/overlays/system/lib, i don't know what it is or why it is, i can't find it in any instructions so i don't have that13:42
Mister_Magisteridk if its relevant13:42
Mister_Magisterim just biiiig dummy xd13:42
Mister_Magisteri left the telnet running and tried tailing /target/init-debug-stderrout but nothing ever appeared13:45
Mister_Magisterlet me try chrooting from ramdisk on another phone to see if thats supposed to work13:49
Mister_Magisterhmm, init_enter_debug sadly doesn't freeze the boot13:50
Mister_Magisterwell at least i can chroot from recovery on other phone let me try that on the tablet13:56
Mister_Magistercan't do it from recovery but the error is not the same13:58
Mister_Magisterin recovery it says chroot: exec /bin/sh: No such file or directory14:00
Mister_Magisteri should be able to chroot14:01
Mister_Magistermal: huh, ramdisk has 32bit executables but rootfs has 64bit executables14:04
Mister_Magistershould it be like that?14:04
Mister_Magisterholdon plot thickens, /usr/bin/busybox is empty file14:05
Mister_Magistereyyyyyyyyyyyy i re-extracted the archive and can chroot now14:10
Mister_Magistereyyyyy its not segfaulting now and the screen got brighter14:11
Mister_Magistermeaning something's gotta be haappening14:11
Mister_MagisterI don't have second telnet but thats probably because of messed up init script so let me clean it up and see how it goes14:12
Mister_Magisterlol now it gets stuck in ramdisk14:19
Mister_Magisterremoved init_enter_debug and now i get init-debug in real rootfs but no ip14:21
Mister_Magisterokay i'm in real rootfs14:21
Mister_Magisterbut now the screen doesn't light up :<14:21
Mister_Magisterah cause it frozen in script obviously14:22
Mister_Magisterthink dummy14:22
Mister_Magisterafter i continue from init_enter_debug2, it takes a while but then screen lights up, it kills telnet and rndis,14:23
Mister_Magisteri can lock and unlock screen so i think that mce is running and probably the rest but why it kills rndis no clue14:24
Mister_Magisterodm fails to mount thats all i know so far14:30
Mister_Magisterahh i've inputted wrong super partition14:35
Mister_Magisterokidoki https://paste.opensuse.org/pastes/b16fefc081b6 this suddenly happens in journal like in an instant and in the same moment i lose telnet14:38
malfix the mounts then14:38
Mister_Magisteri've fixed the superparition dmsetup yes14:39
malfixup seems broken or missing some partitions14:39
mallike that dsp one14:39
Mister_Magisterwhat seems to be missing is entirety of /dev/block/bootdevice directory14:39
Mister_Magisteror maybe its created later14:40
malor maybe the name is different14:40
malcheck fstab in sources14:40
Mister_Magisterwhen i was checking the directory was not there14:40
Mister_Magisteri've made sure fixup-mountpoints is correct14:40
malok14:40
malbut anyway mount services seem wrong, those should not have those path but the device nodes14:41
Mister_Magisteris the /dev/block/bootdevice created by systemd?14:41
malyes14:41
Mister_Magistervendor_a system_ext_a they're all super partitions14:41
Mister_Magisterhttps://paste.opensuse.org/pastes/a8f5d2f6c45a14:42
Mister_Magisteryeah the vendor-dsp.mount has What=/dev/block/bootdevice/by-name/dsp14:44
Mister_Magisterthat… seems wrong14:44
Mister_Magisterohh14:45
Mister_Magisteri have dsp_a in the fixup mountpoints14:45
Mister_Magisteri've grepped for bootdevice and only 3 mounts are wrong so lemme fix them14:45
Mister_Magisterdsp/bluetooth/modem14:46
malyeah, that _a issue is quite common to make14:47
malI have done the same mistake myself couple of times14:47
Mister_Magisteryeah i didn't know what parititiohns are going to be in use so i only removed _a in thigns like boot14:47
Mister_Magisterokay now just dev-block-by\x2dname-metadata.device: Job dev-block-by\x2dname-metadata.device/start timed out.14:50
Mister_Magisterthat and ohmd seems to die14:51
Mister_Magisterlemme check that mount14:51
Mister_Magisteroh because it doesn't have bootdevice it has /dev/block/by-name/metadata14:52
malyes, that is another common issue14:53
malyou can see that in some fixup entries, I think fp5 and some sonys14:53
Mister_Magisterok now it dies much quicker14:53
maldroid-hal failing?14:53
Mister_Magisteri have no clue because telnet dies14:54
Mister_Magisterthe device is fine14:54
Mister_Magistergimme sec i really gotta shut up audit14:54
maldoes it reboot or just usb fails?14:54
malif usb then probably usb-moded and or connman config needs fixing14:54
Mister_Magisterjust usb is being disabled14:55
malsome newer devices need custom connman config for usb stuff14:55
Mister_Magisterscreen lights up because mce starts14:55
Mister_Magisterand its just hanging around14:55
malis usb inteface on device usb0 or rndis0?14:55
Mister_Magistergive me one second14:56
Mister_Magisterusb014:56
Mister_Magistershall i steal this? https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/blob/main/sparse/etc/connman/main-custom.conf14:56
Mister_Magisteryeah last message in log i have is usb_moded 0.86.0+mer66 starting14:57
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.conf14:58
malcheck if those are the same14:58
malI think 5.0 brought some changes14:58
mallooks like nagara has been updated also14:59
Mister_Magisterthey seem to have same config15:00
malalso check that usb-moded has correct config for usb15:00
Mister_Magisteryeah the connman stuff didn't help and since its dying on usb_moded its gotta be it15:01
malespecially this part https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini#L815:01
malbut gadget paths etc might wrong also on your device15:01
Mister_Magisterbut hey i've shut up audit so we got that15:02
maldoes your device have dummy udc?15:02
Mister_Magisteri have no idea15:02
malin addition to the real one15:02
malok15:02
Mister_Magisterbut it has a600000.dwc315:02
Mister_Magisteri didn't have any custom usb_moded config15:03
Mister_Magisterso imma try yours15:03
Mister_Magisternada15:03
malnote that I use different gadget_conf_directory, community devices use c.1 I think15:04
Mister_Magisterbut we're making great progress :P15:04
Mister_Magisteri'll check it next15:04
malmy build is done in the official way not the community way15:04
Mister_Magisteryeah i get you15:05
malmeaning that I have packaged system/vendor stuff etc15:06
Mister_Magisteroh yeah its supposed to be c.115:06
malto prevent licensing issues I host those rpms from a custom repo from my server15:07
Mister_Magisterokay so it restarted rndis15:07
Mister_Magisterbut i don't think telnet is running anymore15:07
Mister_Magisterwait lemme check ssh15:07
Mister_Magisterno that is not running either15:08
malcheck if it's just missing ip?15:08
Mister_Magisteryeah i can't ping it15:08
malenable persistent journal and check it15:08
Mister_Magisternor dhcp is running15:08
Mister_Magisteron it15:08
Mister_Magisterbut dhcp is not even working from init-debug only from ramdisk15:09
malnot sure which udev things you need in that config, if any15:09
Mister_Magisterwe're going through those issues like storm, the dream team is back :P15:11
Mister_Magisteri hope i'm not bothering you too much mal15:11
malwell I'm preparing changes for glibc update15:12
Mister_Magisterhmmm the issue is now that to read the journal i have to resume init but when i do that, i cannot uhh read the journal15:12
malyou could make usb-moded15:13
maland only start it manually for testing15:13
mal*mask15:13
Mister_Magisterhm15:13
Mister_Magisteroh hey, you could've mentioned that earlier lol15:14
malhehe15:14
malI thought it was obvious, sorry15:14
Mister_Magisterno worries15:14
Mister_Magisterbinder-list: not found thats interesting, but anyway back to the issue on hand15:14
Mister_Magisterwhat are you interested in from journal15:14
maljust check usb related messages and see if you can something that could be causing issues15:15
mal*can find15:15
Mister_Magisterhttps://paste.opensuse.org/pastes/723b6a47c57a15:15
Mister_Magisteri don't think there's much of anything15:16
malyeah, not useful15:17
malabout binder-list https://github.com/mlehtima/droid-config-fp5/blob/master/rpm/droid-config-fp5.spec#L3115:17
Mister_Magisteryeah the nagara had that too15:18
Mister_Magistermal: oh btw why official devices don't have reset device option?15:18
Mister_MagisterProvides: jolla-settings-system-reset this15:18
maldepends whether there is suitable partition for factory reset15:19
Mister_Magisterbut ports do factory reset without such partition?15:20
malnot really possible to do it if there is no good partition15:20
Mister_Magisterhuh, in my unofficial port i used reset device multiple times without having any partition and it worked just fine15:21
Mister_Magisterweird15:21
malhmm15:21
malok15:21
malI need to have a break now and go for a walk15:22
Mister_Magisterno worries15:22
Mister_Magisteri'll rebuild the zip15:22
Mister_Magistermake sure all the fixes are in etc15:22
malrecheck the usb stuff to see that the config is ok15:23
Mister_Magisteralrigh15:23
malalso check the mounts, if those cause droid-hal to fail, those from super partition15:24
Mister_Magistermounts seem to be working fine atm15:25
Mister_Magisteroh15:25
Mister_Magisterodm is not mounted15:25
Mister_Magisterand vendor15:25
Mister_Magistergood call15:25
Mister_Magisterdummy_netd.service also fails if thats relevant15:25
malprobably needs droid-hal to be running15:26
Mister_Magisterand /usr/libexec/droid-hybris/system/bin/bootctl is missing15:26
malno point in check other stuff than usb until you get droid-hal working15:26
Mister_Magisteryeah i know15:26
Mister_Magisterhm /dev/mapper/dynpart-vendor_a doesn't seem to have any filesystem on it15:27
Mister_Magister /dev/mapper/dynpart-vendor_a: block special (252/415:27
Mister_Magistersame with odm, thats why they're not mounting15:27
malstrange15:28
Mister_Magisteryeah15:28
Mister_Magistergo go i'll just spam here for logs15:29
T42<Mister_Magister> @b100dian yooo do you have a sec15:32
T42<b100dian> What are you encountering now?15:38
T42<Mister_Magister> when usb_moded starts, it yeets telnet and ssh and rndis. While we fixed rndis, the device has no ip, so not sure if telnet/ssh is running cause can't talk to it15:40
T42<Mister_Magister> and i saw you fix some stuff in tucana15:40
T42<b100dian> Yeah, but at this point I would mask the service and get a static IP on the PC. Let me see what was the fix for tucana though15:42
T42<Mister_Magister> yeah we got that far but it would be proper to have it fixed15:42
T42<Mister_Magister> if i mask usb-moded its fine15:42
T42<b100dian> Pretty sure my tucana fix is inspired from some HelloVolla droid-config, don't remember which15:46
T42<Mister_Magister> all i know is that tucana fix doesn't fix my ip sadly15:46
T42<b100dian> actually those I mentioned ewere updated to ecm now?15:47
T42<Mister_Magister> no idea15:47
T42<b100dian> Maybe you need the DontBringDownAtStartup = usb as in https://github.com/HelloVolla/droid-config-halium-mimameid/commit/d8e5e7848dd0982f71469e1c041eabc9061c8b9c ?15:48
T42<Mister_Magister> i could try changing to eem15:49
Mister_Magisteror i could try ignoring it, masking usb-moded and trying to get droid-hal up15:51
Mister_Magisterand figuring out why i can't mount vendor15:51
Mister_Magisterohhhhhhhhh15:55
Mister_Magistervendor is erofs not ext415:55
Mister_Magisterohhhh vendor mount is from other device (fp4)  thats why it has worng filesystem type15:56
T42<b100dian> so another device path right?15:57
Mister_Magisterno same device path, different filesystem15:59
Mister_Magisterand odm.mount is autogenerated so it has wrong path so i have to stop it from generating and odm_root which is also copied from fp4 also needs switch to erofs16:00
Mister_Magisternow they mounted fine just fine16:00
Mister_Magisteryeah makefstab_skip_entries is missing odm16:01
T42<b100dian> Android has entered the chat. That is hilarious:)16:03
Mister_MagisterWE GOT GUI16:03
Mister_MagisterWHA16:03
Mister_MagisterTHATS TOO SIMPLE16:03
Mister_MagisterWHAT THE HELL16:03
Mister_Magistereven touch works and i didn't add the config file for it16:04
Mister_Magisterwhat the hell16:04
Mister_Magisterthis is way too simple16:04
Mister_Magisteri expected at least 2 weeks to get gui16:04
T42<b100dian> haha.. remember the libuicompat on sake, that got me for 2 weeks. You probably have other horror stories.16:05
Mister_Magisterit took us half a year to hack the display on g2 and its not fixed to this day16:07
Mister_Magisterbut it looks and works great super fast16:07
Mister_Magisternow i gotta get everything to work, audio, wifi, bt, everything16:07
Mister_Magistereverything seems to be broken16:07
Mister_Magisterwith wifi i'll be able to debug usbmoded16:08
Mister_Magistereverything just magically clicked into place lol16:09
Mister_Magistermal: binder-list error just… like… went away16:23
Mister_Magisterah no, it didn't nvm16:23
Mister_Magisterbruh it even works at 144 HZ16:25
Mister_Magistermal: you gotta fix the fps display to display 3 digits lol16:26
T42<b100dian> now that's also a surprise. We didn't figure out what would sake need for that16:28
T42<b100dian> Now you need to write a hz scaling for battery saving 🙂16:28
Mister_Magisteryeah sake was locked 6016:28
Mister_Magisternaah16:29
Mister_Magisterits so smoooooooooth honestly16:29
Mister_Magisterwhen you enable frame rate display detailed? the bars are pure green16:29
Mister_Magisternothing on them, just flat  green16:29
Mister_Magisteri've never seen device this smooth outside of huawei p8lite and jolla phone the og one16:29
Mister_Magisterand not because of 144Hz because of no microstutter16:29
Mister_Magisterthat being said, i don't have wlan device despite wlan module being loaded so thats fun16:30
Mister_Magisteralso how do i enable tablet ui mode?16:31
malMister_Magister: is there only 2 number in frame rate display, need to check the code16:32
Mister_Magisteryeah thats what i'm saying :P16:33
Mister_Magisterlimited at 9916:33
malnot sure where that is even handled, trying to find it16:33
Mister_Magistermal: don't stress on it i was mostly joking :P16:34
malfor bluetooth check that the bluebinder script finds the mac address16:35
malthat is the usual cause for issue16:35
Mister_Magisteri'm flashing newer zip16:35
Mister_Magisterdon't need bluetooth need wifi for now16:35
malif wlan module or built in?16:35
Mister_Magisterseems to have wlan module16:35
Mister_Magisterjust hold on a second i gotta flash new zip16:36
malsome need writing to some magic paths to start wlan16:36
Mister_Magisterim flashing new zip to fix the binder thingy16:38
Mister_Magisterreflashed zip and now we're back to bootlooping so that's fun17:24
Mister_Magisterah busybox is empty again, this is really weird17:27
Mister_Magisteri did same extraction as last time, no errors17:28
Mister_Magisteri did exact same thing and this time it worked17:33
Mister_Magisterthis is seriously weird17:33
malwhere is busybox empty?17:34
Mister_Magisterin extracted files17:34
Mister_Magisterhmm this zip also doesn't have latest changes so lemme rebuild zip once again17:37
Mister_Magistermal: can mic be configured in such a way to spit out the vendor_boot and odm and build userdata image?17:42
Mister_Magisterand second question, is there some configuration option to get tablet ui?17:43
malI think there is some way to get tablet ui, need to check what it was17:47
Mister_Magisterpretty please17:47
Mister_MagisterI've tried tasking TheKit with it but he didn't respond since lol17:48
Mister_Magisteri am back to ui!18:05
Mister_Magisterbinder-list error is gone18:06
malnot sure but try to add into dconf [desktop/sailfish/silica] category entry size_category='large' or extralarge18:06
Mister_Magisteroki18:06
malso a bit like here https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/dconf/db/vendor.d/silica-screen.txt18:06
malbut different value18:06
Mister_Magisteri mean it shows two columns in settings for example but i think tablet had some more stuff18:06
maloh, if it shows like that then it probably is already large or extralarge18:07
Mister_Magistermal: have you seen the screenshot from it yet?18:07
malno18:07
Mister_Magisterhttps://pbs.twimg.com/media/GmA5CjaXQAAgKHJ?format=jpg&name=4096x4096 feast your eyes :P18:07
Mister_Magisterin past it had both eventsview and main view together18:07
Mister_Magisterin two columns18:08
Mister_Magisteri guess that was simply removed18:08
Mister_Magisterokay so i can do modprobe wlan but when i do lsmod | grep wlan i get nothing18:10
Mister_Magisterand nothing in dmesg to complain about it18:10
Mister_Magisteroh lsmod shows exactly one module loaded18:11
Mister_Magisterthats certainly weird18:11
malbtw, why 4.6.0 and not 5.0.0.62?18:12
Mister_Magisterwhy not18:12
Mister_Magister5.0 is bit exotic right now18:13
malonly a problem with old kernels18:13
Mister_Magisterpizza time18:13
Mister_Magisterokay back to kernel modules, why just one lmao18:30
Mister_MagisterCONFIG_QCA_CLD_WLAN=y i'll try building it as module18:35
Mister_Magistermal: i think its obvious but should i change it to 4.0? https://paste.opensuse.org/pastes/958a6259b00d18:38
Mister_Magisterthe wait_for_keymaster has 4.1 while in binder there's 4.0 keymaster18:38
malyeah, fix it then18:44
maloverride the file in sparse18:45
Mister_Magisteryeah yeah i just wanted to make sure its okay18:45
malI assume the original comes from submodule18:45
Mister_Magisteryeah18:45
Mister_Magistercurrently i'm looking for bluetooth mac18:45
Mister_Magistersake script was closest but its not complete18:45
Mister_Magisterthere's /mnt/vendor/persist/bluetooth/.bt_nv.bin18:45
Mister_Magisterbut that returns 0bba1918:46
Mister_Magistertoo short18:46
Mister_Magisteroh find /var/lib/bluetooth -maxdepth 1 -iname '*:*:*:*:*:*' | cut -d/ -f 5 this returned something usable18:47
Mister_Magisteroh yeah it totally contains directory with mac address as a name18:48
Mister_Magistercool, theres that18:48
Mister_Magisterboom, bluetooth works18:49
Mister_Magisterthis is too easy18:49
Mister_Magisteri bet i'll just load wlan.ko and wifi will just work18:52
Mister_Magisteri've tried starting sshd but cannot use it through rndis :/18:56
Mister_Magisterhmm can't ssh, netcat is not installed… how do i get files on… usb stick18:57
Mister_Magisteroh i thought i was missing something, there's no battery percentage18:58
Mister_Magisterone thing at the time though18:59
Mister_Magisterotg just works but thats simplest thing19:00
Mister_Magistermal: wlan is insmoded but still no wlan in ip a, but i've noticed messages about the task_profiles so imma fix that19:08
Mister_Magisterits just symlink19:08
Mister_Magisterhmm wlan wlan wlan19:11
Mister_Magisterwhile waiting for some idea about wlan i noticed another known issue libandroidicu.so so imma fix that too19:17
Mister_Magisterlol i can change volume if i use three fingers. Is it sfos tablet mode feature?19:25
Mister_Magisterayy got cameras and video playback but still no audio19:27
Mister_Magisterhm i tried rmmoding wlan but it says its built in despite CONFIG_QCA_CLD_WLAN=m which is very weird19:33
malnote that there are two task profile things in fp5 repo, one is symlink other is not19:33
Mister_Magisteryeah i know one is directory other is .json19:35
Mister_Magisteri copied .json and created symlink for directory19:36
Mister_Magisterand it works19:36
Mister_Magistercurrently the only not working things are usb moded, battery indicator, wlan, audio and status led19:36
Mister_Magistermost important ones are wlan and audio19:36
Mister_Magisteri would really love your help with wlan if you have time 👉👈19:36
Mister_Magisteri have idea for usb thanks to vlad19:37
Mister_Magistercurrently battling aidl/android.frameworks.sensorservice.ISensorManager/default, which is in minimediaservice which is running so thats weird19:38
Mister_Magisteroh yeah and sensors are dead19:38
* Mister_Magister and i still have 0 modules loaded19:39
* Mister_Magister which is only slightly bananas19:40
Mister_Magistermodules/battery-udev.c: mcebat_update(): battery_level : 17 -> 16 oh mce is aware of battery but there's no indicator in the ui, weird19:41
Mister_Magisteralso i'm discharging19:41
Mister_Magisterhmm one thing thats worrying me is that it was constantly connected to usb yet still discharging and now i've connected it to fast charger and its getting hot but still not charging19:54
Mister_Magisterok we gained one percent19:54
Mister_Magisterbut it took long time and its hot hot despite idling19:54
Mister_Magisterhm now its less hot and slowly climbing19:57
Mister_Magistervery weird behaviour, maybe no suspend behaviour or something19:58
T42<elros34> do you have hw-settings.ini?20:02
Mister_Magisterno20:02
Mister_Magistershould i?20:03
T42<elros34> like always. Missing battery indicator is probably related20:03
Mister_Magisterahhh20:04
Mister_Magisterfor battery indicator20:04
Mister_Magisteri was wondering what hw-settings has to do with minimedia/wlan xd20:04
T42<elros34> IVI mode in lipstick20:04
Mister_Magisterim just worried something is wrong with charging cause its so slow20:04
Mister_Magisterbut hey i'm at 21% and its no longer hot when i turned off display20:04
T42<elros34> about wlan? did you confirm enabled modules in /proc/config.gz?20:07
Mister_Magisteryes20:08
Mister_Magisteryou can see that above20:08
Mister_Magister[20:33] <Mister_Magister> hm i tried rmmoding wlan but it says its built in despite CONFIG_QCA_CLD_WLAN=m which is very weird20:08
Mister_Magisteri've checked that on device20:08
Mister_MagisterI got battery indicator thankies20:10
T42<elros34> I don't know well this new kernel partitions but did you flash also vendor_boot after changing wlan to be a module?20:13
Mister_Magisterthekit said this device was in transition faze so it doesn't use vendor_boot, its separated like the GKI but its not actually GKi20:16
Mister_Magistercause kernel 4.1920:16
Mister_Magisterbut yes i did flash it20:16
Mister_Magisterbut it is not in use20:17
Mister_Magisterlol now i have usb0 and usb1 but i've made it so that dhcp works and device sets its ip… but that doesn't mean it works20:47
Mister_Magistercan't ping eachother20:47
Mister_Magisteridk why it creates usb1 and doesn't use usb020:56
Mister_Magistertbh it should be rndis0 but anyway20:56
Mister_Magisterusb-moded has interface usb0 and yet it creates usb121:01
Mister_Magisterwhyyy21:01
Mister_Magisteroh now we got usb221:02
Mister_Magisterits getting out of hand21:02
Mister_Magisteri don't see anyone mentoining usb1 :/21:07
Mister_Magistereh lets try the eeeeem stuff21:11
Mister_Magisternow its completely borken21:14
Mister_MagisterI GOT IT21:16
Mister_Magistersolution was rndis.usb0, instead of rndis.rndis or rndis.gs421:16
Mister_Magistergeeez that took a while21:16
Mister_Magisternow i can transfer stuff finally21:25
Mister_Magisteroh, there's no droid sink21:40
Mister_Magister…why21:40
Mister_Magisterthere's source but no sink21:40
Mister_Magisterholdon a second isn't this kinda a problem? https://paste.opensuse.org/pastes/9a48a886542621:49
malsome are not, the useless crap in submodule can be removed21:50
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/delete_file.list21:51
Mister_Magisterhuh21:52
Mister_Magisterbut they exist in vendor21:52
malthe way things work now make those useless21:53
mali.e. binder services in many cases21:53
Mister_Magisterhuh21:53
Mister_Magisterokay21:53
Mister_Magisterhttps://paste.opensuse.org/pastes/02d65ae5f3e3 how about this21:53
malof course don't remove dual-sim.conf unless you really want to21:53
Mister_Magisterthis tablet has no sim21:54
Mister_Magisternot even one21:54
malcheck the audio format in audio xmls in vendor21:54
malok, so maybe emptyconfig thing for ofono then?21:55
Mister_Magisterlike the /vendor/etc/media_codecs.xml?21:55
malaudio policy or configuration or something like that21:55
malgrep for primary output or things like that21:55
malI suspect your device might use 24-bit audio which needs configuration in pulseaudio side21:56
Mister_Magisteri can see primary output and deep buffer21:56
Mister_MagisterAUDIO_FORMAT_PCM_24_BIT_PACKED21:56
malbut we'll see once you get the formats21:56
Mister_Magisterare you right on the money?21:56
malyep, just like I suspected21:56
maltry adding sink_format=s24le to load-module module-droid-card in /etc/pulse/arm_droid_card_custom.pa21:57
malsomething like "load-module module-droid-card sink_format=s24le"21:58
Mister_Magisteri knew exactly the place was just waiting for parameter xd21:58
Mister_Magisteryeah yeah i get it21:58
Mister_Magisteri played a lot with pa config21:58
malneed to see if that was the correct format, there are two options21:58
Mister_Magisterstill waiting for jolla to drop trash sounding upmixer21:58
mal?21:58
Mister_Magisterresample-method = speex-float-121:59
Mister_Magisterjust compile soxr and set soxr-vhq like a normal person we're not living in 2008 anymore22:00
Mister_Magisterbut i digress22:00
Mister_Magisterthere's forum topic on that22:00
Mister_Magisteri got primary output sink22:00
Mister_Magisterlet me test22:01
malhmm22:01
Mister_Magisterthere's absolutely no sound22:01
Mister_Magisteri might need to restart device though22:01
malwas that speex-float-1 something that was there because of jolla 1 being so slow22:02
Mister_Magisteryes22:02
Mister_Magisterand devices got quite quicker since22:02
malok, need to discuss that internally next week22:02
Mister_Magisteryeah you said that couple years back too22:02
Mister_Magisterhttps://blog.verdanditeam.com/audiophile-ways-on-sailfishos here's a read about this by yours truly22:02
malwell jolla 1 was still supported back then probably22:03
Mister_Magisterquality difference is definitely there22:03
Mister_Magisterim so weirded out by three fingers gesture22:03
Mister_Magisteri restarted lipstick and sadly no sound22:03
Mister_Magisteri can restart device but doubt that wilil help22:04
Mister_Magistersink.deep_buffer is in use22:05
malmaybe I could change that resampler while updating pulseaudio, only one bug left to get pulseaudio 17, which is the latest version22:06
Mister_Magisterand add avoid resampling :P22:06
Mister_Magistertho it won't work22:06
Mister_Magistercause droid thing has set sample rate22:06
Mister_Magisteranyway any ideas for wifi/audio22:07
Mister_Magisteroh… theres a ton of messages in dmesg22:07
Mister_Magisteraudio card is NOT happy22:07
Mister_Magisterhttps://paste.opensuse.org/pastes/cf65be8c729122:08
maldo you have /dev/wlan?22:08
Mister_Magisteryes22:09
maldoes this do anything: echo ON > /dev/wlan22:09
malcheck dmesg after doing that22:09
Mister_Magisterwlp1s0 popped out and i couldn't catch dmesg cause i was playing audio22:11
Mister_Magisterah wait a sec22:11
maldoes that interface work?22:12
Mister_Magisteri cannot enable it in settings22:12
Mister_Magistergive me second22:12
Mister_Magisteroh it enabled22:13
malI needed this on fp5, and the other part to enable it https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/usr/lib/systemd/system/wifisetup.service22:13
malhttps://github.com/mlehtima/droid-config-fp5/tree/master/sparse/usr/lib/systemd/system/network.target.wants22:13
Mister_Magisterwe're on internet!22:13
Mister_Magisterwhy was it so simple22:13
malso you didn't check my repos again :)22:14
Mister_Magisteranyway here's belated dmesg https://paste.opensuse.org/pastes/8063f734811522:14
Mister_Magistermal: i was checking like 5 different repos i might've missed something22:14
Mister_Magisteri was mainly basing on nagara22:14
Mister_Magisterye making stupid service to execute command i have in blood now i can handle it :P22:14
Mister_Magisteri wonder if i do have to compile it as a module22:15
Mister_Magisteri wonder if it will work inbuilt22:15
Mister_Magistercrazy i know22:15
malI didn't use module22:15
Mister_Magisterepic22:15
malwait22:15
Mister_Magisterhm?22:15
malor was it module by default22:15
Mister_Magisterno22:15
Mister_Magisteri added module22:15
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/modules-load.d/fp5.conf22:15
malseems like a module22:15
Mister_Magisterah not here22:16
Mister_Magisterkay so we got wifi now: minimedia doesn't register ISensorManager, i have no audio, videos are 5fps, no sensor is working (probably due to minimedia)22:18
Mister_Magisterand i'm all out of ideas22:18
Mister_Magisterbut i got usb networking!22:18
Mister_Magisteri'll be playing youtube videos before nightfall lol22:20
Mister_Magisterhonestly great choice of the device22:20
Mister_Magistereverything just clicks into place22:20
Mister_Magisterhave to enable autosuspend still22:20
Mister_Magisterand ofc thanks for your help mal, as always you're kicking ass22:22
maldo you have the audosleep kernel config which is needed on some devices22:22
Mister_Magisterno i don't yet22:22
mal*autosleep22:22
Mister_Magisteri'll handle audosuspend no worries i was debugging it for months on zenfone 822:22
malCONFIG_PM_AUTOSLEEP=y22:22
Mister_Magisteri know22:22
Mister_Magisterdon't worry mal22:22
Mister_Magisteri got this22:22
Mister_Magisterin fact i'm proud of myself because i got multiple things all by myself without mal's handholding22:22
maldo you have latest droidmedia?22:23
Mister_Magisteri do, it was pulled couple days back22:23
Mister_Magisteri even did strings on minimedia binary and it contains ISensorManager22:24
Mister_Magisteryeap, without module wifi just works22:24
Mister_Magisterand there is still not a single module loaded22:24
Mister_Magisterwait… there's no wifi mac address22:25
Mister_Magisterdo i need to add it like i did bluetooth22:25
malit should work if everything is correct22:26
malsometimes module is needed to get it working, sometimes not22:26
Mister_Magisterwifi works fine just fine22:26
Mister_Magisterbut no mac address22:26
Mister_Magisteri restarted the device22:27
Mister_Magisterwith your service that is22:27
Mister_Magistercosmetic issue don't worry about it22:27
Mister_Magisteri still gotta figure out leds and why nfs doesn't compile :P22:30
Mister_Magistertiny issues but i can solve them myself22:30
Mister_Magisteryeaha in wifi details i see ip but in developer settings/about page I don't22:37
Mister_Magisterwell about page shows mac not ip but anyway22:37
Mister_Magisterayy its sleeping, easiest autosleep ever, wifi doesn't block it, doesn't cause segfaults22:38
Mister_Magistertake that asus22:38
Mister_Magistertake that oneplus22:38
Mister_MagisterLIGHT SENSOR STARTED WORKIGN OUT OF NOWHERE22:40
Mister_Magisterwhat22:40
Mister_Magistersensors work, i didn't touch anything,22:41
Mister_Magisterwhat the hell22:41
Mister_Magisteraudio magically didn't fix itself sadly22:42
Mister_Magisterwait maybe my vendor symlinks did it22:42
Mister_Magistermal: droid-hal-init: Control message: Could not find 'aidl/android.frameworks.sensorservice.ISensorManager/default' for ctl.interface_start from pid: 2170 (/system/bin/servicemanager) and its coming from servicemanager22:55
maldoes your device have hidl or aidl sensors, check binder-list of hwbinder and binder23:06
malone of those should probably list some sensor service23:07
Mister_Magistersensors work fine now23:07
Mister_Magisterout of nowhere23:07
malhmm23:07
Mister_Magisterthere's truly magic in the world23:07
Mister_Magisteri'm more worried about that sensormanager bootlooping and audio23:08
Mister_Magisterthere's only one entry in logs, quite old23:10
Mister_Magisteralso as i said we did play youtube before nightfall (well before midnight)23:10
Mister_Magister great success23:10
Mister_Magisteri'm playing with mixer_paths.xml file to maybe fix audio23:11
Mister_Magisterhmm platform_check_backends_match: Invalid snd_device =23:18
Mister_Magisteroh its not an error23:18
Mister_Magistercan i change it to use primary_output and not deep_buffer23:22
malthere is a quick about deep_buffer in droid module, maybe read about those23:25
malhttps://github.com/mer-hybris/pulseaudio-modules-droid in the readme23:25
Mister_Magisteraw man23:28
Mister_Magisternow all the errors that are left are very difficult23:28
Mister_Magisteri just want audio ;-;23:29
Mister_Magisterstupid dolby stuff23:29
Mister_Magisteradsp returns errors like there's no tomorrow23:30
Mister_Magisterwlan mac fixed itself23:38
Mister_Magisteri jsut gotta keep using it everything fixes itself23:38
Mister_Magisterdisabling deep buffer did not fix anything it just changed error to ASoC: no backend DAIs enabled for KONA LowLatency23:39
Mister_Magisterughhhhhhhh23:40
Mister_Magisterwhat even is DAI23:42
Mister_Magistermal: mal in 2016 remembered seeing those errors23:45
mala bit later to debug that now23:46
Mister_Magisterxd yeah no worries23:46
Mister_Magisterthanks a ton23:46
Mister_Magisteri'll scour the logs23:46
malthere is also option to use the halium hal way https://github.com/mlehtima/android_vendor_halium_hardware/tree/halium-14.023:53
Mister_Magisterthis is way over my head23:54
malit just needs building that audio.hidl_compat.default and enabling the android audio service23:54
Mister_Magisterway over my head23:55
malthat is built in habuild23:55
malso the service you need to enable is vendor.audio-hal i.e. overriding https://github.com/mer-hybris/droid-hal-configs/blob/master/sparse-14/usr/libexec/droid-hybris/system/etc/init/disabled_services.rc with a modified version with that service removed from disabled list23:56
malalso needs https://github.com/mlehtima/droid-config-fp5/tree/master/sparse/usr/libexec/droid-hybris/system/lib64/hw to make sure it find that newly built halium hal library23:58
malnaming of course needs to match your hw audio module23:58
Mister_Magisterwe'll leave it as an option for the future xd23:59

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