Wednesday, 2019-06-26

liuxjusa, mal, the breacktrace of pulseaudio crash was pasted here:
liuxi've installed debuginfo for glibc and pulseaudio but stiil some "?" there00:55
birdzhangliux: mal will ask you for full log :p02:10
liuxbirdzhang, full log before pulseaudio crashed was pasted here:
Mister_Magistermal: do you need to replace linker in09:08
Mister_Magisterlineage 15?09:08
merbotbirdzhang: Error: "ghosalmartin" is not a valid command.09:14
birdzhangokay, it's not working now09:15
birdzhang!seen ghosalmartin09:16
merbotbirdzhang: ghosalmartin was last seen in #sailfishos-porters 3 weeks, 6 days, 11 hours, 40 minutes, and 1 second ago: <ghosalmartin> before09:16
birdzhangseems only ghosalmartin and i have UI crash issue on 15.109:17
malMister_Magister: what?09:18
T42<adampigg> mal, on androd 9 we had to replace the linker in /system with a custom one because it refused to load the selinux_stubs lib from /usr/libexec09:19
T42<adampigg> my idea is to overlay or bind mount over /system ;)09:20
malwhy did it refuse?09:20
malthere should be no need for such things09:20
malmaybe you are missing something09:20
T42<adampigg> we think it was due to the path....09:20
T42<adampigg> mal:09:26
T42<adampigg> 05-06 13:30:55.356  3907  3907 E linker  : library "/usr/libexec/droid-hybris/system/lib64/" ("/usr/libexec/droid-hybris/system/lib64/") needed or dlopened by "/system/bin/hwservicemanager" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system09:26
T42/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system/product/lib64:/system/framework:/system/app:/system/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/system/product/framework:/system/product/app:/system/product/priv-app:/data:/mnt/expand"]09:26
maland you have the patch in system/core?09:27
T42<adampigg> not sure, which /patch?09:28
malthe one I gave yesterday09:28
T42<adampigg> i will look later, m1ster_magister will know likely09:29
Mister_Magisterwhat me09:33
T42<adampigg> you built it!09:34
T42<adampigg> :D09:34
Mister_Magister@adampigg and u typed wrong nick09:38
Mister_Magistermal: tbh i applied ur patch after replacing09:40
Mister_Magistermal: this patch?
Mister_Magistermal: if this patch you mean then i will check today probably if it works without replacing09:52
malno need for any extra patches, so whatever random patch you are talking about when talking about replacing then don't use the old random patch10:03
Mister_Magistermal: it's not random patch u gave it to me10:04
malI have no idea what you are talking about anymore10:05
malwhat patch are you replacing with what?10:05
Mister_Magisternot patch10:06
Mister_Magistermal: you mean that this patch fixes the problem so i won't have to replace linker?10:06
deathmistI have pulseaudio working after adapting audio_policy.conf \o/ still no in-call audio or mic tho (mic works outside calls fine); 15.1 base, journalctl dmesg
malMister_Magister: no idea, I just know that replacing linker should not be needed10:38
maldeathmist: do you have miniaf running and the matching pulseaudio plugin installed as told in hadk pdf10:38
Mister_Magistermal: i'll replace it back and report on problems there10:45
birdzhangdeathmist: try link /vendor/etc/*audio*.[xml|conf] to /etc/10:52
birdzhangi fixed sound by make a symbol link /vendor/etc/r_submix_audio_policy_configuration.xml to /etc/ on vince10:55
deathmistbirdzhang: I have that same file, will try with it alone and afterwards with all the other ones :)10:56
T42<adampigg> @eugenio_g7 im sure latte has non linear charging!10:56
r0kk3rzlol t4210:57
birdzhangr0kk3rz: T1000 is coming :P10:57
r0kk3rzmissed opportunity for T100010:58
T42<eugenio_g7> @adampigg yes agreed :)11:08
Mister_Magistert420 like thinkpad11:08
r0kk3rzmost of the people on there are smoking something so t420 fits11:15
Mister_Magistersee ima genius11:18
deathmistbirdzhang: tried the symlinks and it still doesn't work :/  mal miniafservice is running and here's installed pulse packages which section was that exactly in the hadk?12:54
T42<birdzhang> @deathmist paste the dmesg log when playing sound, like trigger the pulley menu12:56
T42<birdzhang> btw, does headphone works ?12:57
deathmistyes headphones work in stereo mode (haven't tested in call yet), but it seems I'm getting spammed by time_daemon and qti services >:(  it seems tfa98xx 9-0036: state changes between 1 and 0, nothing much in dmesg13:02
T42<birdzhang> dmesg|grep tfa98xx_load_container13:05
T42<birdzhang> and paste your /lib/firmware files13:05
Mister_Magistersomething wrong with tfa?13:06
Mister_Magisterwhat is the problem?13:06
T42<birdzhang> i'm wondering the sound card firmware not loaded13:07
deathmist and uuuh I have no /lib/firmware, Mister_Magister I have no audio during a call but it works everywhere else13:07
T42<birdzhang> okay, Firmware init complete13:08
Mister_Magisteri had problem once with tfa that caused me reboots13:08
malsome android 9 devices need some extra things to find firmware
T42<birdzhang> @deathmist do you have /vendor/lib/firmware ?13:09
malbecause android has split the firmware to too many places13:09
Mister_Magisterandrdoid9? someone other than us are porting android9?13:09
deathmistbirdzhang: I don't have that, but I do have /vendor/firmware (which I've also symlinked to /etc/firmware)13:10
deathmistI'm on 15.1 base :p13:11
T42<birdzhang> @deathmist i know, me too13:12
Mister_Magisterdunno what mal is talking about :P13:13
maldeathmist: find where the firmware files are, many devices need something to be symlinked to /lib/firmware13:14
malMister_Magister: I can't remember who is using what base13:15
Mister_Magistermal: yeah i'm just joking :P no hard feelings13:15
malI used to remember but not anymore13:18
Mister_Magisteryeah :P13:18
* Mister_Magister pats mal13:18
maltoo many people and devices13:18
Mister_Magistermal: back in the day there weren't many ports really13:18
malalso my memory is quite much worse than it used to be, that's what happens when you don't sleep well13:18
Mister_Magisterpoor poor mal13:19
deathmisttime_daemon and qti services aren't required on SFOS right? they just keep starting and getting killed over and over again13:19
Mister_Magistertime_daemon isn't13:19
Mister_Magisterdunno about second one13:19
deathmistthey both spam dmesg with messages like these
Mister_Magisteri know, you can disable time_daemon13:24
Mister_Magisterbut dunno about second one fix it or disable it13:24
deathmistwhere would I disable it? running grep -rniw . -e "*time_daemon*" yields nothing on $ANDROID_ROOT13:48
Mister_Magister /init.rc or /init.qcom.rc13:49
T42<birdzhang> @deathmist /vendor/etc/init/13:54
T42<birdzhang> remount /vendor is needed13:55
Mister_Magisteryou shouldn't modify them in /vendor13:55
malin 15.1 the .rc files can be overridden in /usr/libexec/droid-hybris/system/etc/init/13:56
Mister_Magisteryeah thats what i mean13:56
malor actually individual services can be13:56
malthe files already there can used as an example to see how a service can be disabled13:57
Mister_Magistermal: btw i had to add LD_PRELOAD with selinux_stubs to servicemanager to get it working. you know something about that?13:57
T42<birdzhang> if i want disable only one service, it's not working just create a new rc file and put service in it with _HYBRIS_DISABLED14:00
Mister_Magisterwhy not add line disabled?14:00
T42<adampigg> I think disabled servicrs can still be started14:03
deathmistI just disabled it via a /usr/libexec/droid-hybris/system/etc/init/time_daemon.rc file and after a reboot it's still there
malMister_Magister: of course it's needed
malMister_Magister: so you didn't apply all patches14:07
maldeathmist: where was the original time_daemon.rc?14:24
malor the service14:25
T42FranzKavka was added by: FranzKavka14:43
ThaodanHey the bot will be down at 24.07.2019 9:40 - 11:40 CEST. The downtime of your server will approximately last for 30 minutes. A fix will applied to the hypervisor of the server. If you want to read more ask or look at:
deathmistmal: I'm finally back, there was no original time_daemon.rc file, just the /vendor/bin/time_daemon binary17:17
deathmistfind / -name "time_daemon*" only returned that binary17:17
Mister_Magistermal: so, without replacing linker i'm getting this
maldeathmist: it's in some other .rc then17:28
malMister_Magister: and that is with preload?17:29
Mister_Magisterwith what preload17:29
Mister_Magisteri didn't preload stubs to droid-hal-init17:29
Mister_Magisterservicemanager has preload tho17:29
malMister_Magister: hmm, what libhybris did you use?17:43
Mister_Magistermal: fae0a52632893cbf3bb7ce0762147b7067db176b17:45
Mister_Magisterslightly patched17:45
malI assume patched in the hwc2 part17:46
Mister_Magisterand some stuff to make it compile but nothing related17:47
malyes, android 9 needed some patching17:48
malbut only to hwc2 code17:48
Mister_Magisterokay okay so what about that error?17:48
malnot sure yet17:48
T42<DSstill01> I know it17:52
malMister_Magister: also maybe don't reinvent the wheel for the other things related to android 9 (like droidmedia etc), I have patches for most already on my computer17:52
Mister_Magistermal: you have patches ready since how long huh17:53
T42<DSstill01> If you have 32 bit device you dont have to set 'lib64'17:53
Mister_Magistermal: i'm gonna patch some lineage16 sources now17:53
T42<DSstill01> It's a mistake that i also did when copy pasting things from the device in the tutorial17:53
malI would assume that is 64-bit device but not sure17:53
Mister_Magisterofcourse it is17:54
T42<DSstill01> Try to check if that lib exists in that place17:54
Mister_Magistermal: do you have some lineage16 patches that i could apply?17:56
deathmistmal: found it, time_daemon defined in /vendor/etc/init/hw/init.qcom.rc, so how should I go about keeping it disabled for new flashes?17:59
T42<DSstill01> Add a "disabled" line in the service17:59
T42<DSstill01> Yes, unless something runs it, it wont start18:01
Mister_Magisteryou can just put that file in /usr/libexec/droid-hybris/system/etc/init/ and add disabled to service there and put that in your build (i don't know how to disable single service instead of putting whole file tho)18:01
Mister_Magisteryou shouldn't modify /vendor partition18:01
malit should ignore the services with same name18:02
malfile doesn't matter18:02
Mister_Magisterthen just put file with random name and that service with addition of disabled18:03
Mister_Magistermal: if u get any idea please ping me18:03
Mister_Magisterlet's prelaod it from /data/.stowaways/sailfishos/usr/lib… as /data is allowed18:04
* Mister_Magister why it doesn't sound stupid it my head18:05
malheh, that is quite hacky18:05
Mister_Magisterquite :P18:05
Mister_Magisterand won't work if we wanna lvm it18:05
Mister_Magisterwell there is mount --bind :p18:06
Mister_Magisteri don't see any other way really as linker comes from vendor and only those paths are allowed18:08
T42<DSstill01> Have you tried what i told you to do?18:10
Mister_Magister@DSstill01 your ideas are without any kind of sense so no, i didn't18:10
T42<DSstill01> WHAAAT?! I had the same error. Always listen to what the squirrel says!18:11
T42<DSstill01> Retired dev doesn't mean retarded dev!18:12
Mister_Magistermeh let's have some fun huh (sry for spam)18:13
Mister_Magister@DSstill01 then yes it exists18:13
Mister_Magisterwhat now?18:13
T42<DSstill01> You copy pasted the not-found path from the error and it exists?18:13
Mister_Magisteryes ofcourse18:13
T42<DSstill01> o.O18:14
Mister_Magisteroh i'm not sure if you read link18:14
Mister_Magisterthere is no "not-found"18:14
Mister_Magister"<DSstill01> Retired dev doesn't mean retarded dev!" can you repeat that?18:14
T42<DSstill01> Ahhh18:15
T42<DSstill01> *_*18:15
T42<DSstill01> I didnt read the full line lol18:15
Mister_Magisterthat was fun :P18:15
Mister_Magisterspammy tho18:15
T42<DSstill01> No, it was a potential fiz18:16
T42<DSstill01> Future reference :P18:16
Mister_Magistermccreary: ping18:17
Mister_Magistermal: or maybe we can prelaod something to allow /usr path?18:23
malMister_Magister: there is another way, wait a moment18:23
Mister_Magisterokay i'm waiting18:24
Mister_Magistergotta make some pierogi's18:24
malwhat kind of ld.config* files do you have on the device?18:24
Mister_Magisterin what path18:24
malprobably in /system or /vendor18:25
Mister_Magisterfind / -name ld.config\* i'm on it18:25
Mister_Magistermal: single file /system/etc/ld.config.28.txt18:32
malMister_Magister: I need go for a moment but I'll then give you a fix, not the best but should work18:39
Mister_Magistermal: okay! no hurry!18:39
malsome bind mount magic after editing a copy of that file18:40
Mister_Magisterso it's mount bind after all heh xd but not whole linker this time18:41
Mister_Magistermal: i'm going to sleep hit me up in pm (i'm always online and pm20:32
Mister_Magisters are saved)20:32
Mister_Magisterwhy do i missclick20:32
mccrearyMister_Magister, I see we've missed each other. I'll try to catch you later, but you could just ask your question23:24

Generated by 2.17.1 by Marius Gedminas - find it at!