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 problem | 01:36 |
T42 | <Mister_Magister> maaan xd | 01:36 |
T42 | <Mister_Magister> and it's me from… 7 years ago holy | 01:39 |
T42 | <Mister_Magister> but hey i guessed correctly it was xiaomi | 01: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 issues | 01:56 |
T42 | <Mister_Magister> this is going to be hard | 01:57 |
T42 | <Mister_Magister> i shuold try and debug switch_root cause it seems to be cause of the issue | 01:59 |
T42 | <Mister_Magister> its not segfault in kernel, but Attempted to kill init | 01:59 |
T42 | <Mister_Magister> which would suggest userspace i think…? | 01:59 |
T42 | <Mister_Magister> if anyone has any idea please help | 01:59 |
T42 | <Mister_Magister> or maybe its selinux thing | 02: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 happens | 02:03 |
Mister_Magister | mal: hi did you have time to look at the repos? | 12:59 |
mal | sorry was a bit busy yesterday | 13:01 |
mal | what is the status of that latest build | 13:02 |
Mister_Magister | nah no worries just asking | 13:03 |
Mister_Magister | mal: when it switches root it kills init, before executing the init-done | 13:03 |
mal | hmm | 13:04 |
Mister_Magister | hmm indeed | 13:04 |
Mister_Magister | i 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 output | 13:05 |
mal | so it never gets to second telnet | 13:05 |
Mister_Magister | no | 13:05 |
mal | even is you have that stop thingy there | 13:05 |
Mister_Magister | yeap | 13:05 |
Mister_Magister | hence i concluded it never gets to init-done | 13:05 |
mal | and userdata is properly ext4? | 13:05 |
Mister_Magister | yeah im in ramdisk i have it mounted its all fine | 13:06 |
Mister_Magister | its quite nice debug setup because it enters ramdisk every time and then when it segfaults it just goes back into ramdisk and i have pstore | 13:06 |
mal | anything useful in pstore? | 13:06 |
Mister_Magister | the kernel panic | 13:06 |
Mister_Magister | other than that nah | 13:06 |
Mister_Magister | btw 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 to | 13:07 |
mal | does it hint anything where is panics? | 13:07 |
mal | btw, do you know the way to decode kernel backtraces to more readable format? | 13:07 |
Mister_Magister | i know addr2line | 13:08 |
Mister_Magister | it attemts to kill init and not segfault so i concluded its in userspace | 13:08 |
Mister_Magister | and the spot is VERY generic | 13:09 |
Mister_Magister | so i don't think its problem with kernel | 13:09 |
Mister_Magister | https://paste.opensuse.org/pastes/26e36af8ab10 enjoy the dmesg | 13:10 |
Mister_Magister | the panic points to CONFIG_MSM_PM so yeah definitely not the kernel fault | 13:12 |
Mister_Magister | if it was kernel fault it would be segfault i think | 13:12 |
mal | Mister_Magister: does your device have kernel modules in init? i.e. in vendor_boot? btw, did you flash correct vendor_boot also | 13:18 |
Mister_Magister | i flashed dtbo, boot and vendor boot | 13:18 |
Mister_Magister | all 3 | 13:18 |
Mister_Magister | and as to other question i have no idea | 13:18 |
mal | because 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 loading | 13:18 |
Mister_Magister | im not good in this android stuff i leanred about this weird new kernel stuff yesterday | 13:19 |
mal | but that would not explain that you can get into first telent | 13:20 |
Mister_Magister | mal: but like, in ramdisk it also loads kernel modules so why would it fail in init | 13:21 |
Mister_Magister | yeah | 13:21 |
mal | because it should be loading those already in first init | 13:21 |
mal | is the first init stable for long time? | 13:21 |
Mister_Magister | yeap | 13:21 |
Mister_Magister | i can stay indefinitely | 13:21 |
Mister_Magister | and it goes there every time | 13:21 |
Mister_Magister | very solid debugging environment | 13:21 |
mal | maybe try to check if there are some pending kernel stuff, can't remember the path in sys to check that | 13:22 |
mal | did you have any issues extracting rootfs? | 13:23 |
Mister_Magister | i extracted it via the ramdisk and nah | 13:23 |
Mister_Magister | https://paste.opensuse.org/pastes/867e4fed3a04 whachu need :D | 13:29 |
Mister_Magister | i tried chrooting target and got chroot: can't execute '/bin/bash': Exec format error | 13:35 |
Mister_Magister | that normal? | 13:35 |
mal | hmm | 13:35 |
Mister_Magister | when i try running /target/bin/bash nothing happens | 13:35 |
Mister_Magister | could be entirely normal | 13:36 |
Mister_Magister | mal: 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 that | 13:42 |
Mister_Magister | idk if its relevant | 13:42 |
Mister_Magister | im just biiiig dummy xd | 13:42 |
Mister_Magister | i left the telnet running and tried tailing /target/init-debug-stderrout but nothing ever appeared | 13:45 |
Mister_Magister | let me try chrooting from ramdisk on another phone to see if thats supposed to work | 13:49 |
Mister_Magister | hmm, init_enter_debug sadly doesn't freeze the boot | 13:50 |
Mister_Magister | well at least i can chroot from recovery on other phone let me try that on the tablet | 13:56 |
Mister_Magister | can't do it from recovery but the error is not the same | 13:58 |
Mister_Magister | in recovery it says chroot: exec /bin/sh: No such file or directory | 14:00 |
Mister_Magister | i should be able to chroot | 14:01 |
Mister_Magister | mal: huh, ramdisk has 32bit executables but rootfs has 64bit executables | 14:04 |
Mister_Magister | should it be like that? | 14:04 |
Mister_Magister | holdon plot thickens, /usr/bin/busybox is empty file | 14:05 |
Mister_Magister | eyyyyyyyyyyyy i re-extracted the archive and can chroot now | 14:10 |
Mister_Magister | eyyyyy its not segfaulting now and the screen got brighter | 14:11 |
Mister_Magister | meaning something's gotta be haappening | 14:11 |
Mister_Magister | I don't have second telnet but thats probably because of messed up init script so let me clean it up and see how it goes | 14:12 |
Mister_Magister | lol now it gets stuck in ramdisk | 14:19 |
Mister_Magister | removed init_enter_debug and now i get init-debug in real rootfs but no ip | 14:21 |
Mister_Magister | okay i'm in real rootfs | 14:21 |
Mister_Magister | but now the screen doesn't light up :< | 14:21 |
Mister_Magister | ah cause it frozen in script obviously | 14:22 |
Mister_Magister | think dummy | 14:22 |
Mister_Magister | after i continue from init_enter_debug2, it takes a while but then screen lights up, it kills telnet and rndis, | 14:23 |
Mister_Magister | i can lock and unlock screen so i think that mce is running and probably the rest but why it kills rndis no clue | 14:24 |
Mister_Magister | odm fails to mount thats all i know so far | 14:30 |
Mister_Magister | ahh i've inputted wrong super partition | 14:35 |
Mister_Magister | okidoki https://paste.opensuse.org/pastes/b16fefc081b6 this suddenly happens in journal like in an instant and in the same moment i lose telnet | 14:38 |
mal | fix the mounts then | 14:38 |
Mister_Magister | i've fixed the superparition dmsetup yes | 14:39 |
mal | fixup seems broken or missing some partitions | 14:39 |
mal | like that dsp one | 14:39 |
Mister_Magister | what seems to be missing is entirety of /dev/block/bootdevice directory | 14:39 |
Mister_Magister | or maybe its created later | 14:40 |
mal | or maybe the name is different | 14:40 |
mal | check fstab in sources | 14:40 |
Mister_Magister | when i was checking the directory was not there | 14:40 |
Mister_Magister | i've made sure fixup-mountpoints is correct | 14:40 |
mal | ok | 14:40 |
mal | but anyway mount services seem wrong, those should not have those path but the device nodes | 14:41 |
Mister_Magister | is the /dev/block/bootdevice created by systemd? | 14:41 |
mal | yes | 14:41 |
Mister_Magister | vendor_a system_ext_a they're all super partitions | 14:41 |
Mister_Magister | https://paste.opensuse.org/pastes/a8f5d2f6c45a | 14:42 |
Mister_Magister | yeah the vendor-dsp.mount has What=/dev/block/bootdevice/by-name/dsp | 14:44 |
Mister_Magister | that… seems wrong | 14:44 |
Mister_Magister | ohh | 14:45 |
Mister_Magister | i have dsp_a in the fixup mountpoints | 14:45 |
Mister_Magister | i've grepped for bootdevice and only 3 mounts are wrong so lemme fix them | 14:45 |
Mister_Magister | dsp/bluetooth/modem | 14:46 |
mal | yeah, that _a issue is quite common to make | 14:47 |
mal | I have done the same mistake myself couple of times | 14:47 |
Mister_Magister | yeah i didn't know what parititiohns are going to be in use so i only removed _a in thigns like boot | 14:47 |
Mister_Magister | okay now just dev-block-by\x2dname-metadata.device: Job dev-block-by\x2dname-metadata.device/start timed out. | 14:50 |
Mister_Magister | that and ohmd seems to die | 14:51 |
Mister_Magister | lemme check that mount | 14:51 |
Mister_Magister | oh because it doesn't have bootdevice it has /dev/block/by-name/metadata | 14:52 |
mal | yes, that is another common issue | 14:53 |
mal | you can see that in some fixup entries, I think fp5 and some sonys | 14:53 |
Mister_Magister | ok now it dies much quicker | 14:53 |
mal | droid-hal failing? | 14:53 |
Mister_Magister | i have no clue because telnet dies | 14:54 |
Mister_Magister | the device is fine | 14:54 |
Mister_Magister | gimme sec i really gotta shut up audit | 14:54 |
mal | does it reboot or just usb fails? | 14:54 |
mal | if usb then probably usb-moded and or connman config needs fixing | 14:54 |
Mister_Magister | just usb is being disabled | 14:55 |
mal | some newer devices need custom connman config for usb stuff | 14:55 |
Mister_Magister | screen lights up because mce starts | 14:55 |
Mister_Magister | and its just hanging around | 14:55 |
mal | is usb inteface on device usb0 or rndis0? | 14:55 |
Mister_Magister | give me one second | 14:56 |
Mister_Magister | usb0 | 14:56 |
Mister_Magister | shall i steal this? https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/blob/main/sparse/etc/connman/main-custom.conf | 14:56 |
Mister_Magister | yeah last message in log i have is usb_moded 0.86.0+mer66 starting | 14:57 |
mal | https://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.conf | 14:58 |
mal | check if those are the same | 14:58 |
mal | I think 5.0 brought some changes | 14:58 |
mal | looks like nagara has been updated also | 14:59 |
Mister_Magister | they seem to have same config | 15:00 |
mal | also check that usb-moded has correct config for usb | 15:00 |
Mister_Magister | yeah the connman stuff didn't help and since its dying on usb_moded its gotta be it | 15:01 |
mal | especially this part https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini#L8 | 15:01 |
mal | but gadget paths etc might wrong also on your device | 15:01 |
Mister_Magister | but hey i've shut up audit so we got that | 15:02 |
mal | does your device have dummy udc? | 15:02 |
Mister_Magister | i have no idea | 15:02 |
mal | in addition to the real one | 15:02 |
mal | ok | 15:02 |
Mister_Magister | but it has a600000.dwc3 | 15:02 |
Mister_Magister | i didn't have any custom usb_moded config | 15:03 |
Mister_Magister | so imma try yours | 15:03 |
Mister_Magister | nada | 15:03 |
mal | note that I use different gadget_conf_directory, community devices use c.1 I think | 15:04 |
Mister_Magister | but we're making great progress :P | 15:04 |
Mister_Magister | i'll check it next | 15:04 |
mal | my build is done in the official way not the community way | 15:04 |
Mister_Magister | yeah i get you | 15:05 |
mal | meaning that I have packaged system/vendor stuff etc | 15:06 |
Mister_Magister | oh yeah its supposed to be c.1 | 15:06 |
mal | to prevent licensing issues I host those rpms from a custom repo from my server | 15:07 |
Mister_Magister | okay so it restarted rndis | 15:07 |
Mister_Magister | but i don't think telnet is running anymore | 15:07 |
Mister_Magister | wait lemme check ssh | 15:07 |
Mister_Magister | no that is not running either | 15:08 |
mal | check if it's just missing ip? | 15:08 |
Mister_Magister | yeah i can't ping it | 15:08 |
mal | enable persistent journal and check it | 15:08 |
Mister_Magister | nor dhcp is running | 15:08 |
Mister_Magister | on it | 15:08 |
Mister_Magister | but dhcp is not even working from init-debug only from ramdisk | 15:09 |
mal | not sure which udev things you need in that config, if any | 15:09 |
Mister_Magister | we're going through those issues like storm, the dream team is back :P | 15:11 |
Mister_Magister | i hope i'm not bothering you too much mal | 15:11 |
mal | well I'm preparing changes for glibc update | 15:12 |
Mister_Magister | hmmm the issue is now that to read the journal i have to resume init but when i do that, i cannot uhh read the journal | 15:12 |
mal | you could make usb-moded | 15:13 |
mal | and only start it manually for testing | 15:13 |
mal | *mask | 15:13 |
Mister_Magister | hm | 15:13 |
Mister_Magister | oh hey, you could've mentioned that earlier lol | 15:14 |
mal | hehe | 15:14 |
mal | I thought it was obvious, sorry | 15:14 |
Mister_Magister | no worries | 15:14 |
Mister_Magister | binder-list: not found thats interesting, but anyway back to the issue on hand | 15:14 |
Mister_Magister | what are you interested in from journal | 15:14 |
mal | just check usb related messages and see if you can something that could be causing issues | 15:15 |
mal | *can find | 15:15 |
Mister_Magister | https://paste.opensuse.org/pastes/723b6a47c57a | 15:15 |
Mister_Magister | i don't think there's much of anything | 15:16 |
mal | yeah, not useful | 15:17 |
mal | about binder-list https://github.com/mlehtima/droid-config-fp5/blob/master/rpm/droid-config-fp5.spec#L31 | 15:17 |
Mister_Magister | yeah the nagara had that too | 15:18 |
Mister_Magister | mal: oh btw why official devices don't have reset device option? | 15:18 |
Mister_Magister | Provides: jolla-settings-system-reset this | 15:18 |
mal | depends whether there is suitable partition for factory reset | 15:19 |
Mister_Magister | but ports do factory reset without such partition? | 15:20 |
mal | not really possible to do it if there is no good partition | 15:20 |
Mister_Magister | huh, in my unofficial port i used reset device multiple times without having any partition and it worked just fine | 15:21 |
Mister_Magister | weird | 15:21 |
mal | hmm | 15:21 |
mal | ok | 15:21 |
mal | I need to have a break now and go for a walk | 15:22 |
Mister_Magister | no worries | 15:22 |
Mister_Magister | i'll rebuild the zip | 15:22 |
Mister_Magister | make sure all the fixes are in etc | 15:22 |
mal | recheck the usb stuff to see that the config is ok | 15:23 |
Mister_Magister | alrigh | 15:23 |
mal | also check the mounts, if those cause droid-hal to fail, those from super partition | 15:24 |
Mister_Magister | mounts seem to be working fine atm | 15:25 |
Mister_Magister | oh | 15:25 |
Mister_Magister | odm is not mounted | 15:25 |
Mister_Magister | and vendor | 15:25 |
Mister_Magister | good call | 15:25 |
Mister_Magister | dummy_netd.service also fails if thats relevant | 15:25 |
mal | probably needs droid-hal to be running | 15:26 |
Mister_Magister | and /usr/libexec/droid-hybris/system/bin/bootctl is missing | 15:26 |
mal | no point in check other stuff than usb until you get droid-hal working | 15:26 |
Mister_Magister | yeah i know | 15:26 |
Mister_Magister | hm /dev/mapper/dynpart-vendor_a doesn't seem to have any filesystem on it | 15:27 |
Mister_Magister | /dev/mapper/dynpart-vendor_a: block special (252/4 | 15:27 |
Mister_Magister | same with odm, thats why they're not mounting | 15:27 |
mal | strange | 15:28 |
Mister_Magister | yeah | 15:28 |
Mister_Magister | go go i'll just spam here for logs | 15:29 |
T42 | <Mister_Magister> @b100dian yooo do you have a sec | 15: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 it | 15:40 |
T42 | <Mister_Magister> and i saw you fix some stuff in tucana | 15: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 though | 15:42 |
T42 | <Mister_Magister> yeah we got that far but it would be proper to have it fixed | 15:42 |
T42 | <Mister_Magister> if i mask usb-moded its fine | 15:42 |
T42 | <b100dian> Pretty sure my tucana fix is inspired from some HelloVolla droid-config, don't remember which | 15:46 |
T42 | <Mister_Magister> all i know is that tucana fix doesn't fix my ip sadly | 15:46 |
T42 | <b100dian> actually those I mentioned ewere updated to ecm now? | 15:47 |
T42 | <Mister_Magister> no idea | 15: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 eem | 15:49 |
Mister_Magister | or i could try ignoring it, masking usb-moded and trying to get droid-hal up | 15:51 |
Mister_Magister | and figuring out why i can't mount vendor | 15:51 |
Mister_Magister | ohhhhhhhhh | 15:55 |
Mister_Magister | vendor is erofs not ext4 | 15:55 |
Mister_Magister | ohhhh vendor mount is from other device (fp4) thats why it has worng filesystem type | 15:56 |
T42 | <b100dian> so another device path right? | 15:57 |
Mister_Magister | no same device path, different filesystem | 15:59 |
Mister_Magister | and 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 erofs | 16:00 |
Mister_Magister | now they mounted fine just fine | 16:00 |
Mister_Magister | yeah makefstab_skip_entries is missing odm | 16:01 |
T42 | <b100dian> Android has entered the chat. That is hilarious:) | 16:03 |
Mister_Magister | WE GOT GUI | 16:03 |
Mister_Magister | WHA | 16:03 |
Mister_Magister | THATS TOO SIMPLE | 16:03 |
Mister_Magister | WHAT THE HELL | 16:03 |
Mister_Magister | even touch works and i didn't add the config file for it | 16:04 |
Mister_Magister | what the hell | 16:04 |
Mister_Magister | this is way too simple | 16:04 |
Mister_Magister | i expected at least 2 weeks to get gui | 16:04 |
T42 | <b100dian> haha.. remember the libuicompat on sake, that got me for 2 weeks. You probably have other horror stories. | 16:05 |
Mister_Magister | it took us half a year to hack the display on g2 and its not fixed to this day | 16:07 |
Mister_Magister | but it looks and works great super fast | 16:07 |
Mister_Magister | now i gotta get everything to work, audio, wifi, bt, everything | 16:07 |
Mister_Magister | everything seems to be broken | 16:07 |
Mister_Magister | with wifi i'll be able to debug usbmoded | 16:08 |
Mister_Magister | everything just magically clicked into place lol | 16:09 |
Mister_Magister | mal: binder-list error just… like… went away | 16:23 |
Mister_Magister | ah no, it didn't nvm | 16:23 |
Mister_Magister | bruh it even works at 144 HZ | 16:25 |
Mister_Magister | mal: you gotta fix the fps display to display 3 digits lol | 16:26 |
T42 | <b100dian> now that's also a surprise. We didn't figure out what would sake need for that | 16:28 |
T42 | <b100dian> Now you need to write a hz scaling for battery saving 🙂 | 16:28 |
Mister_Magister | yeah sake was locked 60 | 16:28 |
Mister_Magister | naah | 16:29 |
Mister_Magister | its so smoooooooooth honestly | 16:29 |
Mister_Magister | when you enable frame rate display detailed? the bars are pure green | 16:29 |
Mister_Magister | nothing on them, just flat green | 16:29 |
Mister_Magister | i've never seen device this smooth outside of huawei p8lite and jolla phone the og one | 16:29 |
Mister_Magister | and not because of 144Hz because of no microstutter | 16:29 |
Mister_Magister | that being said, i don't have wlan device despite wlan module being loaded so thats fun | 16:30 |
Mister_Magister | also how do i enable tablet ui mode? | 16:31 |
mal | Mister_Magister: is there only 2 number in frame rate display, need to check the code | 16:32 |
Mister_Magister | yeah thats what i'm saying :P | 16:33 |
Mister_Magister | limited at 99 | 16:33 |
mal | not sure where that is even handled, trying to find it | 16:33 |
Mister_Magister | mal: don't stress on it i was mostly joking :P | 16:34 |
mal | for bluetooth check that the bluebinder script finds the mac address | 16:35 |
mal | that is the usual cause for issue | 16:35 |
Mister_Magister | i'm flashing newer zip | 16:35 |
Mister_Magister | don't need bluetooth need wifi for now | 16:35 |
mal | if wlan module or built in? | 16:35 |
Mister_Magister | seems to have wlan module | 16:35 |
Mister_Magister | just hold on a second i gotta flash new zip | 16:36 |
mal | some need writing to some magic paths to start wlan | 16:36 |
Mister_Magister | im flashing new zip to fix the binder thingy | 16:38 |
Mister_Magister | reflashed zip and now we're back to bootlooping so that's fun | 17:24 |
Mister_Magister | ah busybox is empty again, this is really weird | 17:27 |
Mister_Magister | i did same extraction as last time, no errors | 17:28 |
Mister_Magister | i did exact same thing and this time it worked | 17:33 |
Mister_Magister | this is seriously weird | 17:33 |
mal | where is busybox empty? | 17:34 |
Mister_Magister | in extracted files | 17:34 |
Mister_Magister | hmm this zip also doesn't have latest changes so lemme rebuild zip once again | 17:37 |
Mister_Magister | mal: can mic be configured in such a way to spit out the vendor_boot and odm and build userdata image? | 17:42 |
Mister_Magister | and second question, is there some configuration option to get tablet ui? | 17:43 |
mal | I think there is some way to get tablet ui, need to check what it was | 17:47 |
Mister_Magister | pretty please | 17:47 |
Mister_Magister | I've tried tasking TheKit with it but he didn't respond since lol | 17:48 |
Mister_Magister | i am back to ui! | 18:05 |
Mister_Magister | binder-list error is gone | 18:06 |
mal | not sure but try to add into dconf [desktop/sailfish/silica] category entry size_category='large' or extralarge | 18:06 |
Mister_Magister | oki | 18:06 |
mal | so a bit like here https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/dconf/db/vendor.d/silica-screen.txt | 18:06 |
mal | but different value | 18:06 |
Mister_Magister | i mean it shows two columns in settings for example but i think tablet had some more stuff | 18:06 |
mal | oh, if it shows like that then it probably is already large or extralarge | 18:07 |
Mister_Magister | mal: have you seen the screenshot from it yet? | 18:07 |
mal | no | 18:07 |
Mister_Magister | https://pbs.twimg.com/media/GmA5CjaXQAAgKHJ?format=jpg&name=4096x4096 feast your eyes :P | 18:07 |
Mister_Magister | in past it had both eventsview and main view together | 18:07 |
Mister_Magister | in two columns | 18:08 |
Mister_Magister | i guess that was simply removed | 18:08 |
Mister_Magister | okay so i can do modprobe wlan but when i do lsmod | grep wlan i get nothing | 18:10 |
Mister_Magister | and nothing in dmesg to complain about it | 18:10 |
Mister_Magister | oh lsmod shows exactly one module loaded | 18:11 |
Mister_Magister | thats certainly weird | 18:11 |
mal | btw, why 4.6.0 and not 5.0.0.62? | 18:12 |
Mister_Magister | why not | 18:12 |
Mister_Magister | 5.0 is bit exotic right now | 18:13 |
mal | only a problem with old kernels | 18:13 |
Mister_Magister | pizza time | 18:13 |
Mister_Magister | okay back to kernel modules, why just one lmao | 18:30 |
Mister_Magister | CONFIG_QCA_CLD_WLAN=y i'll try building it as module | 18:35 |
Mister_Magister | mal: i think its obvious but should i change it to 4.0? https://paste.opensuse.org/pastes/958a6259b00d | 18:38 |
Mister_Magister | the wait_for_keymaster has 4.1 while in binder there's 4.0 keymaster | 18:38 |
mal | yeah, fix it then | 18:44 |
mal | override the file in sparse | 18:45 |
Mister_Magister | yeah yeah i just wanted to make sure its okay | 18:45 |
mal | I assume the original comes from submodule | 18:45 |
Mister_Magister | yeah | 18:45 |
Mister_Magister | currently i'm looking for bluetooth mac | 18:45 |
Mister_Magister | sake script was closest but its not complete | 18:45 |
Mister_Magister | there's /mnt/vendor/persist/bluetooth/.bt_nv.bin | 18:45 |
Mister_Magister | but that returns 0bba19 | 18:46 |
Mister_Magister | too short | 18:46 |
Mister_Magister | oh find /var/lib/bluetooth -maxdepth 1 -iname '*:*:*:*:*:*' | cut -d/ -f 5 this returned something usable | 18:47 |
Mister_Magister | oh yeah it totally contains directory with mac address as a name | 18:48 |
Mister_Magister | cool, theres that | 18:48 |
Mister_Magister | boom, bluetooth works | 18:49 |
Mister_Magister | this is too easy | 18:49 |
Mister_Magister | i bet i'll just load wlan.ko and wifi will just work | 18:52 |
Mister_Magister | i've tried starting sshd but cannot use it through rndis :/ | 18:56 |
Mister_Magister | hmm can't ssh, netcat is not installed… how do i get files on… usb stick | 18:57 |
Mister_Magister | oh i thought i was missing something, there's no battery percentage | 18:58 |
Mister_Magister | one thing at the time though | 18:59 |
Mister_Magister | otg just works but thats simplest thing | 19:00 |
Mister_Magister | mal: wlan is insmoded but still no wlan in ip a, but i've noticed messages about the task_profiles so imma fix that | 19:08 |
Mister_Magister | its just symlink | 19:08 |
Mister_Magister | hmm wlan wlan wlan | 19:11 |
Mister_Magister | while waiting for some idea about wlan i noticed another known issue libandroidicu.so so imma fix that too | 19:17 |
Mister_Magister | lol i can change volume if i use three fingers. Is it sfos tablet mode feature? | 19:25 |
Mister_Magister | ayy got cameras and video playback but still no audio | 19:27 |
Mister_Magister | hm i tried rmmoding wlan but it says its built in despite CONFIG_QCA_CLD_WLAN=m which is very weird | 19:33 |
mal | note that there are two task profile things in fp5 repo, one is symlink other is not | 19:33 |
Mister_Magister | yeah i know one is directory other is .json | 19:35 |
Mister_Magister | i copied .json and created symlink for directory | 19:36 |
Mister_Magister | and it works | 19:36 |
Mister_Magister | currently the only not working things are usb moded, battery indicator, wlan, audio and status led | 19:36 |
Mister_Magister | most important ones are wlan and audio | 19:36 |
Mister_Magister | i would really love your help with wlan if you have time 👉👈 | 19:36 |
Mister_Magister | i have idea for usb thanks to vlad | 19:37 |
Mister_Magister | currently battling aidl/android.frameworks.sensorservice.ISensorManager/default, which is in minimediaservice which is running so thats weird | 19:38 |
Mister_Magister | oh yeah and sensors are dead | 19:38 |
* Mister_Magister and i still have 0 modules loaded | 19:39 | |
* Mister_Magister which is only slightly bananas | 19:40 | |
Mister_Magister | modules/battery-udev.c: mcebat_update(): battery_level : 17 -> 16 oh mce is aware of battery but there's no indicator in the ui, weird | 19:41 |
Mister_Magister | also i'm discharging | 19:41 |
Mister_Magister | hmm 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 charging | 19:54 |
Mister_Magister | ok we gained one percent | 19:54 |
Mister_Magister | but it took long time and its hot hot despite idling | 19:54 |
Mister_Magister | hm now its less hot and slowly climbing | 19:57 |
Mister_Magister | very weird behaviour, maybe no suspend behaviour or something | 19:58 |
T42 | <elros34> do you have hw-settings.ini? | 20:02 |
Mister_Magister | no | 20:02 |
Mister_Magister | should i? | 20:03 |
T42 | <elros34> like always. Missing battery indicator is probably related | 20:03 |
Mister_Magister | ahhh | 20:04 |
Mister_Magister | for battery indicator | 20:04 |
Mister_Magister | i was wondering what hw-settings has to do with minimedia/wlan xd | 20:04 |
T42 | <elros34> IVI mode in lipstick | 20:04 |
Mister_Magister | im just worried something is wrong with charging cause its so slow | 20:04 |
Mister_Magister | but hey i'm at 21% and its no longer hot when i turned off display | 20:04 |
T42 | <elros34> about wlan? did you confirm enabled modules in /proc/config.gz? | 20:07 |
Mister_Magister | yes | 20:08 |
Mister_Magister | you can see that above | 20: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 weird | 20:08 |
Mister_Magister | i've checked that on device | 20:08 |
Mister_Magister | I got battery indicator thankies | 20: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_Magister | thekit said this device was in transition faze so it doesn't use vendor_boot, its separated like the GKI but its not actually GKi | 20:16 |
Mister_Magister | cause kernel 4.19 | 20:16 |
Mister_Magister | but yes i did flash it | 20:16 |
Mister_Magister | but it is not in use | 20:17 |
Mister_Magister | lol 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 works | 20:47 |
Mister_Magister | can't ping eachother | 20:47 |
Mister_Magister | idk why it creates usb1 and doesn't use usb0 | 20:56 |
Mister_Magister | tbh it should be rndis0 but anyway | 20:56 |
Mister_Magister | usb-moded has interface usb0 and yet it creates usb1 | 21:01 |
Mister_Magister | whyyy | 21:01 |
Mister_Magister | oh now we got usb2 | 21:02 |
Mister_Magister | its getting out of hand | 21:02 |
Mister_Magister | i don't see anyone mentoining usb1 :/ | 21:07 |
Mister_Magister | eh lets try the eeeeem stuff | 21:11 |
Mister_Magister | now its completely borken | 21:14 |
Mister_Magister | I GOT IT | 21:16 |
Mister_Magister | solution was rndis.usb0, instead of rndis.rndis or rndis.gs4 | 21:16 |
Mister_Magister | geeez that took a while | 21:16 |
Mister_Magister | now i can transfer stuff finally | 21:25 |
Mister_Magister | oh, there's no droid sink | 21:40 |
Mister_Magister | …why | 21:40 |
Mister_Magister | there's source but no sink | 21:40 |
Mister_Magister | holdon a second isn't this kinda a problem? https://paste.opensuse.org/pastes/9a48a8865426 | 21:49 |
mal | some are not, the useless crap in submodule can be removed | 21:50 |
mal | https://github.com/mlehtima/droid-config-fp5/blob/master/delete_file.list | 21:51 |
Mister_Magister | huh | 21:52 |
Mister_Magister | but they exist in vendor | 21:52 |
mal | the way things work now make those useless | 21:53 |
mal | i.e. binder services in many cases | 21:53 |
Mister_Magister | huh | 21:53 |
Mister_Magister | okay | 21:53 |
Mister_Magister | https://paste.opensuse.org/pastes/02d65ae5f3e3 how about this | 21:53 |
mal | of course don't remove dual-sim.conf unless you really want to | 21:53 |
Mister_Magister | this tablet has no sim | 21:54 |
Mister_Magister | not even one | 21:54 |
mal | check the audio format in audio xmls in vendor | 21:54 |
mal | ok, so maybe emptyconfig thing for ofono then? | 21:55 |
Mister_Magister | like the /vendor/etc/media_codecs.xml? | 21:55 |
mal | audio policy or configuration or something like that | 21:55 |
mal | grep for primary output or things like that | 21:55 |
mal | I suspect your device might use 24-bit audio which needs configuration in pulseaudio side | 21:56 |
Mister_Magister | i can see primary output and deep buffer | 21:56 |
Mister_Magister | AUDIO_FORMAT_PCM_24_BIT_PACKED | 21:56 |
mal | but we'll see once you get the formats | 21:56 |
Mister_Magister | are you right on the money? | 21:56 |
mal | yep, just like I suspected | 21:56 |
mal | try adding sink_format=s24le to load-module module-droid-card in /etc/pulse/arm_droid_card_custom.pa | 21:57 |
mal | something like "load-module module-droid-card sink_format=s24le" | 21:58 |
Mister_Magister | i knew exactly the place was just waiting for parameter xd | 21:58 |
Mister_Magister | yeah yeah i get it | 21:58 |
Mister_Magister | i played a lot with pa config | 21:58 |
mal | need to see if that was the correct format, there are two options | 21:58 |
Mister_Magister | still waiting for jolla to drop trash sounding upmixer | 21:58 |
mal | ? | 21:58 |
Mister_Magister | resample-method = speex-float-1 | 21:59 |
Mister_Magister | just compile soxr and set soxr-vhq like a normal person we're not living in 2008 anymore | 22:00 |
Mister_Magister | but i digress | 22:00 |
Mister_Magister | there's forum topic on that | 22:00 |
Mister_Magister | i got primary output sink | 22:00 |
Mister_Magister | let me test | 22:01 |
mal | hmm | 22:01 |
Mister_Magister | there's absolutely no sound | 22:01 |
Mister_Magister | i might need to restart device though | 22:01 |
mal | was that speex-float-1 something that was there because of jolla 1 being so slow | 22:02 |
Mister_Magister | yes | 22:02 |
Mister_Magister | and devices got quite quicker since | 22:02 |
mal | ok, need to discuss that internally next week | 22:02 |
Mister_Magister | yeah you said that couple years back too | 22:02 |
Mister_Magister | https://blog.verdanditeam.com/audiophile-ways-on-sailfishos here's a read about this by yours truly | 22:02 |
mal | well jolla 1 was still supported back then probably | 22:03 |
Mister_Magister | quality difference is definitely there | 22:03 |
Mister_Magister | im so weirded out by three fingers gesture | 22:03 |
Mister_Magister | i restarted lipstick and sadly no sound | 22:03 |
Mister_Magister | i can restart device but doubt that wilil help | 22:04 |
Mister_Magister | sink.deep_buffer is in use | 22:05 |
mal | maybe I could change that resampler while updating pulseaudio, only one bug left to get pulseaudio 17, which is the latest version | 22:06 |
Mister_Magister | and add avoid resampling :P | 22:06 |
Mister_Magister | tho it won't work | 22:06 |
Mister_Magister | cause droid thing has set sample rate | 22:06 |
Mister_Magister | anyway any ideas for wifi/audio | 22:07 |
Mister_Magister | oh… theres a ton of messages in dmesg | 22:07 |
Mister_Magister | audio card is NOT happy | 22:07 |
Mister_Magister | https://paste.opensuse.org/pastes/cf65be8c7291 | 22:08 |
mal | do you have /dev/wlan? | 22:08 |
Mister_Magister | yes | 22:09 |
mal | does this do anything: echo ON > /dev/wlan | 22:09 |
mal | check dmesg after doing that | 22:09 |
Mister_Magister | wlp1s0 popped out and i couldn't catch dmesg cause i was playing audio | 22:11 |
Mister_Magister | ah wait a sec | 22:11 |
mal | does that interface work? | 22:12 |
Mister_Magister | i cannot enable it in settings | 22:12 |
Mister_Magister | give me second | 22:12 |
Mister_Magister | oh it enabled | 22:13 |
mal | I 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.service | 22:13 |
mal | https://github.com/mlehtima/droid-config-fp5/tree/master/sparse/usr/lib/systemd/system/network.target.wants | 22:13 |
Mister_Magister | we're on internet! | 22:13 |
Mister_Magister | why was it so simple | 22:13 |
mal | so you didn't check my repos again :) | 22:14 |
Mister_Magister | anyway here's belated dmesg https://paste.opensuse.org/pastes/8063f7348115 | 22:14 |
Mister_Magister | mal: i was checking like 5 different repos i might've missed something | 22:14 |
Mister_Magister | i was mainly basing on nagara | 22:14 |
Mister_Magister | ye making stupid service to execute command i have in blood now i can handle it :P | 22:14 |
Mister_Magister | i wonder if i do have to compile it as a module | 22:15 |
Mister_Magister | i wonder if it will work inbuilt | 22:15 |
Mister_Magister | crazy i know | 22:15 |
mal | I didn't use module | 22:15 |
Mister_Magister | epic | 22:15 |
mal | wait | 22:15 |
Mister_Magister | hm? | 22:15 |
mal | or was it module by default | 22:15 |
Mister_Magister | no | 22:15 |
Mister_Magister | i added module | 22:15 |
mal | https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/modules-load.d/fp5.conf | 22:15 |
mal | seems like a module | 22:15 |
Mister_Magister | ah not here | 22:16 |
Mister_Magister | kay 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_Magister | and i'm all out of ideas | 22:18 |
Mister_Magister | but i got usb networking! | 22:18 |
Mister_Magister | i'll be playing youtube videos before nightfall lol | 22:20 |
Mister_Magister | honestly great choice of the device | 22:20 |
Mister_Magister | everything just clicks into place | 22:20 |
Mister_Magister | have to enable autosuspend still | 22:20 |
Mister_Magister | and ofc thanks for your help mal, as always you're kicking ass | 22:22 |
mal | do you have the audosleep kernel config which is needed on some devices | 22:22 |
Mister_Magister | no i don't yet | 22:22 |
mal | *autosleep | 22:22 |
Mister_Magister | i'll handle audosuspend no worries i was debugging it for months on zenfone 8 | 22:22 |
mal | CONFIG_PM_AUTOSLEEP=y | 22:22 |
Mister_Magister | i know | 22:22 |
Mister_Magister | don't worry mal | 22:22 |
Mister_Magister | i got this | 22:22 |
Mister_Magister | in fact i'm proud of myself because i got multiple things all by myself without mal's handholding | 22:22 |
mal | do you have latest droidmedia? | 22:23 |
Mister_Magister | i do, it was pulled couple days back | 22:23 |
Mister_Magister | i even did strings on minimedia binary and it contains ISensorManager | 22:24 |
Mister_Magister | yeap, without module wifi just works | 22:24 |
Mister_Magister | and there is still not a single module loaded | 22:24 |
Mister_Magister | wait… there's no wifi mac address | 22:25 |
Mister_Magister | do i need to add it like i did bluetooth | 22:25 |
mal | it should work if everything is correct | 22:26 |
mal | sometimes module is needed to get it working, sometimes not | 22:26 |
Mister_Magister | wifi works fine just fine | 22:26 |
Mister_Magister | but no mac address | 22:26 |
Mister_Magister | i restarted the device | 22:27 |
Mister_Magister | with your service that is | 22:27 |
Mister_Magister | cosmetic issue don't worry about it | 22:27 |
Mister_Magister | i still gotta figure out leds and why nfs doesn't compile :P | 22:30 |
Mister_Magister | tiny issues but i can solve them myself | 22:30 |
Mister_Magister | yeaha in wifi details i see ip but in developer settings/about page I don't | 22:37 |
Mister_Magister | well about page shows mac not ip but anyway | 22:37 |
Mister_Magister | ayy its sleeping, easiest autosleep ever, wifi doesn't block it, doesn't cause segfaults | 22:38 |
Mister_Magister | take that asus | 22:38 |
Mister_Magister | take that oneplus | 22:38 |
Mister_Magister | LIGHT SENSOR STARTED WORKIGN OUT OF NOWHERE | 22:40 |
Mister_Magister | what | 22:40 |
Mister_Magister | sensors work, i didn't touch anything, | 22:41 |
Mister_Magister | what the hell | 22:41 |
Mister_Magister | audio magically didn't fix itself sadly | 22:42 |
Mister_Magister | wait maybe my vendor symlinks did it | 22:42 |
Mister_Magister | mal: 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 servicemanager | 22:55 |
mal | does your device have hidl or aidl sensors, check binder-list of hwbinder and binder | 23:06 |
mal | one of those should probably list some sensor service | 23:07 |
Mister_Magister | sensors work fine now | 23:07 |
Mister_Magister | out of nowhere | 23:07 |
mal | hmm | 23:07 |
Mister_Magister | there's truly magic in the world | 23:07 |
Mister_Magister | i'm more worried about that sensormanager bootlooping and audio | 23:08 |
Mister_Magister | there's only one entry in logs, quite old | 23:10 |
Mister_Magister | also as i said we did play youtube before nightfall (well before midnight) | 23:10 |
Mister_Magister | great success | 23:10 |
Mister_Magister | i'm playing with mixer_paths.xml file to maybe fix audio | 23:11 |
Mister_Magister | hmm platform_check_backends_match: Invalid snd_device = | 23:18 |
Mister_Magister | oh its not an error | 23:18 |
Mister_Magister | can i change it to use primary_output and not deep_buffer | 23:22 |
mal | there is a quick about deep_buffer in droid module, maybe read about those | 23:25 |
mal | https://github.com/mer-hybris/pulseaudio-modules-droid in the readme | 23:25 |
Mister_Magister | aw man | 23:28 |
Mister_Magister | now all the errors that are left are very difficult | 23:28 |
Mister_Magister | i just want audio ;-; | 23:29 |
Mister_Magister | stupid dolby stuff | 23:29 |
Mister_Magister | adsp returns errors like there's no tomorrow | 23:30 |
Mister_Magister | wlan mac fixed itself | 23:38 |
Mister_Magister | i jsut gotta keep using it everything fixes itself | 23:38 |
Mister_Magister | disabling deep buffer did not fix anything it just changed error to ASoC: no backend DAIs enabled for KONA LowLatency | 23:39 |
Mister_Magister | ughhhhhhhh | 23:40 |
Mister_Magister | what even is DAI | 23:42 |
Mister_Magister | mal: mal in 2016 remembered seeing those errors | 23:45 |
mal | a bit later to debug that now | 23:46 |
Mister_Magister | xd yeah no worries | 23:46 |
Mister_Magister | thanks a ton | 23:46 |
Mister_Magister | i'll scour the logs | 23:46 |
mal | there is also option to use the halium hal way https://github.com/mlehtima/android_vendor_halium_hardware/tree/halium-14.0 | 23:53 |
Mister_Magister | this is way over my head | 23:54 |
mal | it just needs building that audio.hidl_compat.default and enabling the android audio service | 23:54 |
Mister_Magister | way over my head | 23:55 |
mal | that is built in habuild | 23:55 |
mal | so 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 list | 23:56 |
mal | also 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 library | 23:58 |
mal | naming of course needs to match your hw audio module | 23:58 |
Mister_Magister | we'll leave it as an option for the future xd | 23:59 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!