Tuesday, 2019-06-25

Thaodani intend to host the t4 bot I just didn't came to set it up04:20
liuxvideo recorder frozes when press to stop recoding04:43
liuxJun 25 03:08:38 Sailfish pulseaudio[1719]: failed to set source 'source.primary' port to 'input-back_mic'04:43
liuxJun 25 03:08:38 Sailfish pulseaudio[1719]: can't set profiles/ports to source backmicrophone04:43
liuxJun 25 03:09:02 Sailfish pulseaudio[1719]: Failed to read from stream. (err -22)04:43
liuxD/AudioStreamInALSA( 1719): pcm_read() returned n < 004:44
liuxabranson, please take a look at this issue if you have time. thanks in advance04:45
abransonliux: sounds like the sound routing thinks there's a microphone present that isn't there. aren't they specified somewhere in the hadk06:25
jusaliux: pactl list sources , look for input-foo ports, if you have only one mic (input-back_mic) as it would seem, add to /etc/pulse/xpolicy.conf.d file xvars.conf with this: (adjust per your device) https://paste.ubuntu.com/p/cy4SrtDPKW/07:15
jusaah, I read the whole thing only after writing that.. hmm.. issue probably isn't the one I wrote, but more likely something to do how the hal wants to handle input streams, try adding quirks=-close_input to pactl load-module module-droid-card line07:19
Mister_Magisterjusa: maybe you know! i have no sms notification sound do you maybe know what could be a problem?09:00
Mister_Magistermal: ping is BINDER_SET_CONTEXT_MGR bad uid 1000 != 0 while dhi starts servicemanager bad?11:58
liuxabranson, jusa, thank you for your help. unfortunately patches are not work for my issue13:09
liuxpaste complete logcat log here https://paste.ubuntu.com/p/J3t4bMxgwK/13:10
jusaliux: could you take pulseaudio logs as well? as nemo systemctl --user stop pulseaudio ; pulseaudio -vvvv -n --file=/etc/pulse/arm_droid_default.pa13:21
liuxjusa, ok, let me try13:22
Mister_Magisterooh i'm so close to gui13:33
liuxjusa, pulseaudio log pasted here: https://paste.ubuntu.com/p/FyySJ3htNx/13:41
liuxIt's strange video recorder does not freeze after pulseaudio restarted, just no sound13:41
malMister_Magister: try this https://pastebin.com/7sDP5NZC13:43
malto system/core13:44
jusaliux: paste was cut after 871 lines? just before the interesting part :)13:45
Mister_Magistermal: i just removed the if13:45
Mister_Magisterbut will keep in mind13:45
Mister_Magistermal: failed to create composer client13:45
Mister_Magisterdoes it ring the bell?13:45
malwell you shouldn't just randomly remove some checks13:46
liuxjusa, terminated by itself...seem like segment fault there: I: [pulseaudio] droid-source.c: FIXME: Setting AUDIO_DEVICE_IN_BUILTIN_MIC as initial device.13:46
liuxSegmentation fault13:46
malMister_Magister: probably you have some selinux issues if you are missing the patch I gave13:46
Mister_Magisterkay i will restore that if13:46
malliux: try using gdb to get backtrace of the crash13:46
jusaliux: and also just checking, could you add /etc/pulse/arm_droid_card_custom.pa with following line: load-module module-droid-card quirks=-close_input13:48
jusaliux: and retry13:48
Mister_Magistermal: patch fails heh13:51
Mister_Magisteri will do it manually then13:52
liuxjusa, systemctl --user stop pulseaudio ; pulseaudio -vvvv -n --file=/etc/pulse/arm_droid_card_custom.pa?13:52
liuxjusa, also terminated by segment fault13:54
malMister_Magister: could be some small differences in different revisions13:54
Mister_Magistermal: i have this http://paste.opensuse.org/view//2921850813:56
Mister_Magisterprobably from different patch13:56
Mister_Magisterchanging "dummy" to "" will change anything?13:57
malwhere did that patch come from?13:58
Mister_Magisterfrom TheKit patching sources xd13:59
malwould be interesting to see what other changes there are13:59
Mister_Magisterhmm might be complicated13:59
malthere shouldn't be need for other patches, well there are two other ones but those are related to different things14:00
Mister_Magistermal: "[system/core] (hybris) don't call getpeercon() in property_service as SELinux is disabled"14:01
Mister_Magisteris the title of commit14:01
Mister_Magisteronly this file was changed14:01
malMister_Magister: ok, the patch I gave probably replaces that14:02
Mister_Magistermal: so just change "dummy" to ""?14:03
maltake a backup of the patch and drop it and add the patch I gave14:03
liuxmal, is there any config for coredump on sfos?  just set to unlimited but cannot generate core file14:04
T42No chat_id set! Add me to a Telegram group and say hi so I can find your group's chat_id!14:04
malliux: try installing crashreporter14:08
T42No chat_id set! Add me to a Telegram group and say hi so I can find your group's chat_id!14:08
malThaodan: fix the bot14:08
T42No chat_id set! Add me to a Telegram group and say hi so I can find your group's chat_id!14:08
Thaodansry14:09
T42No chat_id set! Add me to a Telegram group and say hi so I can find your group's chat_id!14:09
malliux: I meant crash-reporter14:09
liuxmal, took long time install it. I can't get it's output location like "CrashReporter". where does it store crash info?14:26
Thaodanwho manages the telegram group?14:27
malliux: /var/cache/core-dumps14:29
Mister_Magistermal: kay what i have to make14:36
Mister_Magistermake init?14:36
liuxmal, it's empty after pulseaudio crashed. am i use it in a wrong way?14:38
malliux: why can't you just manually use gdb14:39
Mister_Magistermal: nope i'm still getting failed to create composer client14:57
Mister_Magisternot anymore…ish?14:58
Mister_Magisteryep it changed lmao14:59
Mister_Magistergetting Adreno-GSL: <ioctl_kgsl_driver_entry:777>: open(/dev/kgsl-3d0) failed: errno 13. Permission denied14:59
Mister_Magistermal: https://paste.opensuse.org/view//2a5a2b6e15:01
liuxcannot know where exactly  crashed: #0  0xb6c0ab02 in ?? () from /lib/libpthread.so.015:09
liuxlack of symbols15:09
Mister_Magistermal: permissions to ion and kgsl seem to be wrong15:09
malMister_Magister: have you made sure the uevent.rc is generated properly to out/15:09
Mister_Magisterthey are different than on my x215:09
Mister_Magisteruevent?15:09
mal*ueventd.rc15:09
Mister_Magistererm15:10
Mister_Magisteri removed everything from /usr/libexec…/etc/init and placed .rc files from faq15:10
malnothing to do with that15:10
Mister_Magisterkk15:10
malthis about a common issue in hybris-hal build15:10
malsometimes generating/copying that fails on 15.1 base or newer and some addition make command needs to be run or the file copied manually15:11
Mister_Magisterout/target/blablabla/root/ueventd.rc15:11
Mister_Magisterexists15:11
malsome devices also have another one in vendor15:12
Mister_Magisteri have only root and recovery15:12
malcheck your device repos and see if all have been copied15:12
Mister_Magisterkk15:12
Mister_Magisterin device/stuff?15:12
mallike I said15:13
Mister_Magisterhmm15:14
Mister_Magisteri can't find any ueventd.rc15:14
malgrep for kgsl-3d015:15
malliux: so install debug symbols, it tells the commands when you run gdb, check the backtrace for which libs you might need those for15:16
Mister_Magistermal: found it, it's single file15:17
malwhich one15:18
Mister_Magister root15:18
Mister_Magisterand it's there /ueventd.rc15:18
malI meant in device repo15:19
Mister_Magistermal: device/qcom/common/rootdir/etc/ueventd.qcom.rc15:20
Mister_Magisterthere is no file to set ion tho15:21
Mister_Magistermal…?15:24
malso is that file in out/15:25
Mister_Magisterin root/ueventd.rc15:25
maldid you check the generated udev rules in droid-hal rpms15:26
malif it sets the permissions there15:26
Mister_Magisterwait no15:26
Mister_Magisterthey are different files15:27
Mister_Magisterwhere does this file come from lo'15:27
Mister_Magisterwhat udev rules in hal15:28
malthe ones generated during droid-hal packaging15:28
malyou can find those in one of the rpms in /lib/udev/rules.d folder or something like that15:28
Mister_MagisterKERNEL=="kgsl", MODE="0666", GROUP="root", OWNER="root"15:29
Mister_Magisteris there15:29
Mister_Magistercan't find ion15:29
malthe ion errors could be unrelated, those were from other process15:30
Mister_Magisterbut…15:30
malfrom adsprpc which probably would need fixing of symlinks in /etc15:30
Mister_Magisterokay15:30
Mister_Magisterwhat about udev rules then15:31
malhow many times do I have to say the same thing, you need to make sure the needed device rules are generated there, you said you don't have kgsl-3d0 there15:31
Mister_Magisteri said " [17:29] <Mister_Magister> KERNEL=="kgsl", MODE="0666", GROUP="root", OWNER="root" [17:29] <Mister_Magister> is there"15:32
Mister_Magisteroh15:32
Mister_Magisterits only kgsl not kgsl-3d015:32
Mister_Magisterwhy is it not kgsl-3d0 tho15:34
mallike I said, you need to make sure the correct .rc files are copied to out/15:34
malyou said some file had kgsl-3d0 but not sure if that ended up in out/15:34
Mister_Magisteri'm wondering why device/qcom one differs from out15:35
Mister_Magisterqcom one has kgsl kgsl-3d0 kgsl-2d015:36
Mister_Magisterbut in out there is only kgsl15:36
malMister_Magister: https://github.com/mer-hybris/android_system_core/blob/hybris-15.1/rootdir/ueventd.rc15:36
malMister_Magister: because those come from different repos15:36
Mister_Magisteroh15:37
maljust do what I said15:37
Mister_Magister"you need to make sure the correct .rc files are copied to out/" then it should be in root/etc/ueventd.qcom.rc but it's not being copied there15:37
Mister_Magisteror is it15:38
Mister_Magisterno it's not15:38
Mister_Magistermal: what script copies them?15:38
malsome Android.mk or like that15:39
malcheck the device repos like I said15:39
Mister_Magisternot in hybris?15:39
Mister_Magisterokay15:39
* Mister_Magister doesn't know how to check15:40
Mister_Magisteroh wait15:40
Mister_Magistermal: we removed vendorimage from building15:41
Mister_Magistermal: that could cause the problem?15:41
malyes15:41
Mister_Magistercan i workaround it by copying it manually to device for the time being?15:42
malthere is something wrong with the way we handle vendorimage stuff15:42
malnot to device but to out/ to correct place (check makefiles where)15:42
malit has to be in out/ before you package droid-hal15:42
Mister_Magisterokay15:42
malso you completely missed what I was talking about, i.e. that droid-hal packaging generates udev rules from .rc files15:43
Mister_Magisteri think it's in root15:44
Mister_Magistermal: sorry15:44
Mister_Magistermal: LOCAL_MODULE_PATH  := $(TARGET_OUT_VENDOR_ETC)/init/hw is that out folder?15:46
malthat doesn't like the place where the uevent*.rc should go15:47
malread the source https://github.com/mer-hybris/droid-hal-device/blob/master/droid-hal-device.inc#L40415:48
Mister_Magisteri copied it to root lol15:51
Mister_Magisterok now i have proper udev rules15:57
Mister_MagisterOH SHIT15:59
Mister_Magisteri had 1ms of test_hwc2 there15:59
Mister_MagisterITS WORKING15:59
malmagic16:00
Mister_Magistermal: lol thank you16:00
Mister_Magisteri'm debugging it today since 816:01
Mister_Magisteri fixed dhi and servicemanager16:01
malwell it's quite obvious that permission issues like that are due to udev rules16:01
Mister_Magisteryeah but these came out in late game16:01
Mister_Magisterlet's see if i get to gui16:02
Mister_MagisterYAY16:02
Mister_Magistergui16:02
Mister_Magisterhow do i change pixelratio lol it's locked16:16
Mister_Magistermal: how do i update dconf16:39
maldconf update16:42
Mister_Magisterthat does whole nothing16:42
Mister_Magisterthere was file to touch that made dconf update at reboot16:42
malI usually touch the folder16:42
mallike the vendor.d16:42
Mister_Magisterwhet16:43
malhttps://github.com/mlehtima/droid-config-fp2-sibon/blob/master/sparse/usr/bin/droid/droid-cameradetect.sh#L5116:43
Mister_Magisteri'm trying to change pixel ratio but it won't change16:44
Mister_Magisterlocks won't unlock16:44
maldid you remove the lock file?16:44
Mister_Magisteryes16:44
Mister_Magisterthat didn't help either16:45
Mister_Magistererror: The operation attempted to modify one or more non-writable keys16:46
Mister_Magisteri even changed /etc/dconf/db/vendor.d/silica-configs.txt16:46
Mister_Magisterand that did whole nothing16:46
maland then the touch and dconf update?16:47
Mister_Magisterafter that16:47
Mister_Magisterit does whole nothing16:47
malno idea then16:48
Mister_Magisterhmm16:49
Mister_Magisterrild is not running and there is no rild binary16:49
malare you sure it even should be, new android uses different way for ril stuff, you need a different ofono plugin and configs16:50
Mister_Magisteroh16:50
Mister_Magisterthen i need those16:50
Mister_Magisterbut not today16:50
Mister_Magisteri just wanna change pixel ratio16:50
Mister_Magisterlol to modprobe wlan it symlinks to vendor16:54
Mister_Magisterand insmod requires some key16:54
vknechtmaybe need CONFIG_MODULE_SIG_FORCE=n16:55
Mister_Magistermaybe16:55
Mister_Magisteri need different pixel ratio tho16:56
Mister_Magisterlol fuck curved screens. gestures aren't working16:56
vknechtor sign module https://unix.stackexchange.com/questions/74022/sign-a-module-after-kernel-compilation16:56
Mister_Magistersecure boot is disabled so why lol16:57
vknechtdon't think it has to do with secure boot ; hit that one but couldn't figure how to get the key, so went with signature disabling...16:58
malMister_Magister: you might want to adjust the touch areas in dconf16:58
Mister_Magisterdconf won't update so what's the point16:58
malwell you are obviously doing something wrong16:59
Mister_Magisteri'm not16:59
Mister_Magisteri even installed themepacksupport to do it for me17:01
Mister_Magisterand guess what17:01
Mister_Magisterit's not working17:01
Mister_Magistermal: could you release your lineage16 hybris?17:34
malI probably need to rebase it first17:37
Mister_Magister;-;17:37
T42SailfishFreenodeIRCBridgeBot was added by: abhishek_017:47
Mr_DogePing17:48
T42<abhishek_0> Pong17:48
Mister_Magister@abhishek_0 that should be three way handshake18:00
T42<DSstill01> Noo irc guys are back :(18:03
T42<meierrom> :))18:10
anpepHello there, I'm having a bit of trouble porting Sailfish to my device, anyone up to help a noob?18:34
kimmoliask, dont ask to ask18:38
anpepok, so I've got the system past early boot and I'm able to telnet over RNDIS, but my system does not have vendor EGL libraries18:40
anpepI was wondering where am I supposed to put them, or if Sailfish should mount the /system partition at boot (which is not)18:40
T42<:D (MISSING @USERNAME! telegram.org/faq#usernames-and-t-me)> is possible download sailfish18:41
T42<:D (MISSING @USERNAME! telegram.org/faq#usernames-and-t-me)> for motorola g6+18:42
T42<:D (MISSING @USERNAME! telegram.org/faq#usernames-and-t-me)> ?18:42
Mister_Magister@abhishek_0 can u remove reply option from that bot?18:48
T42<eugenio_g7> Also edit events19:11
vknechtand missing usernames :)19:11
ThaodanI disabled edit events already19:32
Mister_Magisteru can make reply to look like on irc19:32
ThaodanHow? Explain it and I'll change it19:33
Mister_Magisterdunno how i don't have source19:34
Thaodanah that looked more like an answer than a question19:35
T42<eugenio_g7> Yeah I guess it would be nice if replying ---> prepends the username of the user you're replying to and then the message19:42
T42<eugenio_g7> Surely it needs a bit of thought as here most replies would be against T419:42
malanpep: that suggests you don't have correctly done fixup-mountpoints or something else is broken20:58
anpepmal: I don't know what could possibly be wrong in fixup-mountpoints, I correctly added partition mappings (I checked thoroughly) for my device21:21
anpepI followed the hardware adaptation guide but the built rootfs seems to be incomplete. For instance, vendor libraries are nowhere to be found on system root, nor many system libraries for that matter (libminisf.so, etc. and also hardware libraries like libgralloc.*.so)21:22
anpepAlso, back to the /system partition, I don't really know why but mounting it does not work half of the time, even with ro,noload (disables journal loading) options21:24
piggzmal: http://ix.io/1Lfm in this file, near the top there is some kclock messages .... i dont think thats normal?21:35
piggzmal: and this is a full boot log, with simialar http://ix.io/1MJP21:37
deathmistanpep: which base? on 15.1 cheeseburger (OnePlus 5) I settled on adding /system & /vendor to the device fstab file and got to UI right after :p  how is your defconfig?21:38
anpep15.1 bardockpro, which actually has no /vendor partition21:38
anpepI guess it will be ok just adding /system to fstab and symlinking /vendor -> /system/vendor; however I think I'm not doing things right, I'll keep reading the wikis21:39
deathmisthttps://pastebin.com/MVQ2eQxA there's my current working fstab file, since you have a qcom device you (most likely) have a fstab.qcom somewhere as well; find it and try adding ln7 (modify src as needed) from that paste and attempt "ln -s /system/vendor /vendor && reboot" when you boot again21:47
deathmistI found the line in a "recovery.fstab" file. just adding it to the regular fstab made everything work for me, but I have no clue if this still is the proper way to go; will do more research once I get the basics working on the adaptation :)21:50
anpepdeathmist: trying that out now21:53
anpepI found no fstab.qcom, by the way21:53
malsome file with fstab in the name in device repo or one of the device repos if you have shared repos21:55
anpepsame strange problem as before, mounting /system manually works but putting an entry in fstab fails silenty and attempting to mount manually somehow hangs the system, doing some debugging21:56
deathmistcheck out what find $ANDROID_ROOT/device -name "*fstab*" on ANDROID_ROOT and (if needed) other wildcard variations return to get the proper file21:56
malanpep: what do you adding it to fstab, you mean to device repo fstab and then building hybris-hal and repackaging droid-hal?21:57
mal*what do you mean by adding21:57
anpepI'm working directly on the device to try and make it work before I do any changes on the system, guess that's not the way to go21:58
deathmistanpep: no matches with find $ANDROID_ROOT/device -name "*fstab*" ?22:09
anpepyes, found fstab.qcom with all the correct entries22:11
anpepI must be doing something wrong because those entries did not end up anywhere in hybris img or /system22:12
deathmistmaybe check the fstab.qcom file returned by $ANDROID_ROOT/out -name "*fstab*", it should be identical to the one you already found. you are booting with hybris-boot image right?22:14
anpepthere is no fstab.qcom at out/22:18
deathmistok what about the other ones? btw I also checked the logs your provided and found "cannot run command `/sbin/droid-hal-init': No such file or directory", which is no good if you want any kind of UI really22:19
deathmistI'm not experience enough to know which package creates /sbin/droid-hal-init, but did you adapt droid-hal-device, droid-hal-configs and droid-hal-version for your phone? this should be defined by default: "jolla-startupwizard-pre-user-session[3444]: [W] unknown:0 - No pixel ratio defined. Check your device configuration!"22:22
deathmistit's all in hadk pdf chapter 722:25
malanpep: sailfish doesn't use fstab on device22:48
malanpep: the fstab is parsed and the sfos build generates systemd mount service from those using fixup-mountpoints as help22:49
mal*mount services22:49
malassuming the android build properly copies the fstab to out/22:50
anpepmal: thanks, I didn't know that. As for the missing files, I may have misconfigured device-specific repositories22:50
anpepbut I'm not really sure, looking into that now22:51
malsome newer bases need some extra command like make fstab.qcom or something like that, check output of "make modules" in HABUILD_SDK22:51
anpepI think the problem is that there is no single tree for my device22:51
malanpep: the is a known bug in hybris-hal build that sometimes fstab and uevent*.rc files are not properly copies in hybris-15.1 base22:51
mal*there is22:52
anpepI mean, I have multiple device/ dependencies on my manifest, could it be that only files from bq/bardockpro are copied, even when it depends also on bq/msm8953-common?22:53
malthat is usually not a problem22:54
maljust check "make modules" like I said22:54
malfor things like fstab and ueventd*.rc22:54

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