Tuesday, 2019-07-23

T42<adampigg> Mal, what is left for me to try and upstream, just mesa?08:22
mal@adampigg can't remember anything else08:48
asrielGood afternoon.10:43
asrielRight, so I got the Adreno quirks added, but images in gallery is still black, while the thumbnails works fine.10:44
asrielAnd I found why bluebinder wasn't working10:44
asrielThe pre-start script (/usr/bin/droid/bluebinder_wait.sh) is looking for ro.bt.bdaddr_path and this value does not exist on my device10:45
asrielI assume each device has it's different implementation on this10:46
T42<elros34> adreno quirks are for issues with browser, for black images you need https://github.com/mer-hybris/droid-config-sony-nile/blob/master/sparse/var/lib/environment/nemo/99-qtscenegraph.conf10:46
asrielThough, I was able to get the BT address through hci_qcom_init, then fill it to /var/lib/bluetooth/board-address, restart bluebinder and bluetooth works fine10:47
malasriel: so check some other device for the usual bt script and adapt it10:47
malfaq also links to it I think10:48
Danct12<asriel "Though, I was able to get the BT"> maybe make a oneshot service that runs hci_qcom_init to just to get the mac address and write it back to the board-address?11:05
Danct12that should work11:05
Danct12i just accidentally disabled developer mode on sailfishos and it started to delete all everything11:34
Danct12totally did not expect to see that bug11:36
maldelete what?11:37
Danct12all apps11:37
Danct12including components like the settings and stuffs11:37
T42Iamrahul2409 was added by: Iamrahul240911:38
malhmm, get logs if you somehow can11:38
malit should not do that11:38
Danct12i actually rebooted to see if it still boots and nope11:38
malDanct12: ah, it might be because we have developer mode in patterns11:38
malso it removed everything in the adaptation pattern because of that11:39
Danct12probably, well that should be removed on a production build :P11:39
malneed to talk about that with others11:39
malneed to think what is the best way to handle that11:44
malmaybe adding it to .ks file instead11:45
malDanct12: anyone can edit their patterns and remove the porter-tools import for "release" builds https://github.com/mlehtima/droid-config-fp2-sibon/blob/master/patterns/jolla-configuration-fp2-sibon.yaml#L1111:47
Danct12i have some errors here13:12
Danct12[  970.597086] qpnp_vadc_conv_seq_request: retry error exceeded13:12
Danct12[  970.597133] Unable to read usbin rc=-2213:12
asrielDanct12: Those are probably fine anyway14:00
asrielAlright, just got the camera working14:01
asrielAnyway, the front camera is quite laggy, and also the back camera doesn't have flash even though it actually does14:02
asrielmk-cam-conf even shows that the back camera does indeed have flash14:02
asrielI'll provide logs if asking14:03
malasriel: do not use mk-cam-conf, it's obsolete14:03
malasriel: did you use droid-camres for the jolla-camera-hw.txt file?14:04
asrielyes i did use droid-camres14:05
asrielAlso mk-cam-conf and droid-camres are shown in the HADK documentation14:05
asrielProbably it was outdated14:06
malwell mk-cam-conf is not needed14:06
malremove any files you created with it14:06
asrielAlright, did that14:07
asrielJust did that and bam, flash works!14:10
asrielDoes droidmedia supports Camera2 API?14:11
asrielWould be nice to make use of it for manual focus14:11
malnot right now I think14:12
abransonlast i heard there was a new gstreamer photo api planned that would be compatible with api214:19
asrielAlright, sensors aren't working on Android oreo15:07
asrielSailfishOS 15.1**15:08
asrielOther than that, the baseband powered up very nicely, and camera are working too, both front and back :D15:08
malasriel: did you add the needed hw-settings file for sensors?15:09
asrielI've tried the faq-hadk, but that doesn't seem to work15:09
asrieli've checked, yes, but i could be missing something15:11
asrieli found this anyway15:11
* asriel sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/UxUpNdQNYhEcwypDtGtLPNBd >15:11
asrielrequested sensor id 'orientationsensor' not registered15:11
malshow the hw-settings file you added15:12
malalso do not try to guess the relevant part in logs15:12
malfull journalctl and logcat15:14
asrielmal:  here is journalctl https://paste.ubuntu.com/p/hhdkGXFbBz/15:21
asrieland here is logcat https://paste.ubuntu.com/p/jPxfwV9S8F/15:21
malasriel: is that hybris-15.1 base? try building the binder backend for sensorfw15:29
malasriel: you can see the binder spec in the sensorfw source folder in hybris/mw and then just tell build_packages.sh to build using that spec15:30
asrielYeah, that's hybris-15.115:38
asrielwhile this doesn't affect it's compiling process, this error popped up when build_packages tries to install sensorfw i built15:42
* asriel sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/VNNbAJaAmxYDHxarmaRQBfoq >15:42
malasriel: yes, it doesn't like replacing packages15:44
asrielStill doesn't work though15:46
maldid the package install correctly and replace the hal package15:46
malnew logs15:46
malI assume you restarted device and at least sensorfwd15:47
asrielthe package installed correctly im sure15:48
* asriel sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/QgskfXMWgEpbFzGxdClXRfER >15:48
asrielthere were no errors when i do rpm -i15:48
malasriel: you might want to try to build new sensorfw main package also15:52
malalthough not sure if that is a problem or not, depends on what you see in logs15:52
* asriel posted a file: journalctl.txt (270KB) < https://matrix.org/_matrix/media/v1/download/kde.org/aijhaexfxyRxXsmeiItAXAda >15:53
* asriel posted a file: logcat (261KB) < https://matrix.org/_matrix/media/v1/download/kde.org/rxhgBDsFVWeHjUQZveMTpwKe >15:53
asrielstill, those are logs15:53
malasriel: are those really new logs, it still mentions hw_get_module() which is only called in hal plugin15:56
malasriel: reboot and check logs for that, if it still appears then recheck you have it correctly installed15:57
asrieljournalctl https://paste.ubuntu.com/p/jTDpnWzCkh/16:04
asriellogcat: https://paste.ubuntu.com/p/QdhPmpKh8W/16:06
malreally only two messages from sensorfw in journal?16:06
asrielwell, what you see if what i get.16:07
malenable debug printing in sensorfw16:08
asrielright so i ran it as -l=debug16:17
* asriel sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/BToIduCinDyqvFvmuBlwxhQh >16:17
malasriel: come on, read the output: "hw_get_module() failed No such file or directory"16:30
malsomething is wrong in your installation, run a clean rebuild of the sensorfw rpm16:31
malmeaning probably better to remove the source folder and clone it again and then build16:31
asrielseems to be the same thing it seems18:41
asrielstill the same hw_device_get running18:43
electro575hi all18:52
electro575somebody to help me for debugging my device startup ?18:53
electro575mal, an idea with my last_dkms ?18:56
electro575that still seems to mention selinux, but you said droid-hal-init is disabled, also there is a mention of modem which should even be up if droid-hal-init is disabled19:08
malelectro575: well everything depends on whether you really have droid-hal-init disabled19:09
asrielmal: Got the sensors working!19:33
asrieland here comes another problem, the proximity sensor is always on so battery will drain more faster19:34
electro575it already an update19:35
electro575good asriel19:35
electro575asriel, have you a bootloop at startup of your device ?19:38
asrielelectro575: well i dont have a bootloop, but i don't have an user interface. =P19:39
electro575GUI ?19:40
electro575yes :/19:40
electro575vknecht, can you help me with the log /proc/last_kmsg ?19:47
electro575my init.log19:50
electro575   /init-debug: line 230: usleep: command not found19:54
electro575it's important to have this command ?19:55
electro575hummm : [TIMA trusted boot]: SEAndroid MAGIC failure (boot.img)19:59
electro575no good this19:59
electro575and this : Samsung S-Boot 4.0-2437454 for GT-N7105 (Jan 15 2014 - 19:32:42)19:59
electro575mal, it's possible to disable selinux by telnet ?20:02
T42<elros34> you still didn't disable it? use CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0 or find CONFIG_CMDLINE and append selinux=0 to it20:15
mal@elros34 for some reason that won't appear in kernel commandline, and device shouldn't reboot anyway usually if droid-hal-init is disabled20:20
malasriel: usually proximity sensor shouldn't drain battery unless there is some bug in it20:21
malasriel: you can change it to on-demand mode also if you have problems with it20:21
electro575i'm trying to be sure i can flash hybris-boot.img20:22
electro575with heimdall20:22
electro575i suppose selinux is enable20:22
electro575i don't can disable it with the cmdline20:22
electro575i don't know why20:22
electro575how can i force disable it with recovery and adb ?20:22
T42<elros34> mal: it strange device, according to electro after writing V to /dev/watchdog (like /sbin/preinit) some kind of battery icon appears at screen20:23
malyou can always try to set selinux kernel config to =n, that used to be possible with older android bases like cm-11.020:24
electro575not possible in cm-14.1 ?20:25
electro575in /sys/fs/selinux20:25
electro575echo 0 > enforce20:25
malusually no, depends on device though, newer androids require often some kind of selinux to exist20:26
electro575sudo heimdall flash --BOOT hybris-boot.img20:27
electro575ok, it flash correctly the hybris-boot.img20:28
electro575noway, /proc/cmdline no selinux appear20:30
T42<elros34> have you tried config_cmdline?20:30
electro575humm, no20:32
electro575where is located ?20:32
T42<elros34> in defconfig like every CONFIG_ option20:33
electro575thk elros20:34
electro575elros34 : CONFIG_SECURITY_SELINUX_BOOTPARAM=y20:36
electro575# CONFIG_SECURITY_SELINUX_DISABLE is not set20:37
electro575CONFIG_SECURITY_SELINUX_DISABLE -> elros34 -> so 'Y'20:38
electro575and then OK maybe20:38
T42<elros34> not this, I wrote "use CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0 or find CONFIG_CMDLINE and append selinux=0 to it"20:38
enigma9o7@elros34 Were those logs at all useful in figuring out why my cellular doesn't work?20:39
electro575elros34 : https://dpaste.de/2gx920:40
electro575yes : CONFIG_CMDLINE="console=ttySAC2,115200 consoleblank=0 androidboot.hardware=smdk4x12"20:41
T42<elros34> enigma9o7: I didn't check them yet20:42
electro575sh-3.2# cat /proc/cmdline20:45
electro575console=ttySAC2,115200 selinux=0 consoleblank=020:45
electro575HEYYYY !! ^^20:45
electro575mal, what can i do with selinux=0 ?20:47
enigma9o7If anyone has any ideas; I installed Sailfish 3.0.3 yesterday on Moto PQ, but I get no cellular.  The phone is CDMA on Sprint network and worked find in LOS 14.1, and CM11 briefly before SailfishOS Install.20:50
enigma9o7Elros suggesed I collect logs which are here: https://forum.xda-developers.com/showpost.php?p=79949586&postcount=4120:50
enigma9o7Unfortunately I am not at all familiar with this stuff, and although I think it'll be fun to play around with sailfish and don't mind if other things arent perfect, I do need calls to work at a minimum :)20:51
enigma9o7I do run linux on my home PCs so have some understanding of that... just not really roms/phones.20:52
malenigma9o7: looks like there is one message repeating from ofono20:54
malmonich: is "Can't parse modem-handled proactive command" bad from ofono?20:54
T42<elros34> enigma9o7: not sure if that is important, do you have lock code (pin) in this sim?20:56
enigma9o7Not that I am aware of.  Its default sprint phone, no sim-mod, only has internal sim for lte.20:56
electro575i don't know what to do anymore20:58
T42<elros34> ah right I forgot20:58
T42<elros34> electro575: no continue booting, does it still reboot straightaway?20:59
T42<elros34> now*21:00
monichmal: it's sim toolkit, should be fairly harmless (something is coming out of sim card that ofono doesn't understand)21:00
malmonich: does ofono in general like device without actual sim, that is a cdma device21:00
electro575yes elros34, with selinux=0 too21:00
electro575echo "continue" >/init-ctl/stdin21:01
electro575dmesg ->21:01
electro575echo "continue" >/init-ctl/stdin21:01
electro575[  640.575670] c3 EXT4-fs (mmcblk0p16): re-mounted. Opts: (null)21:01
electro575what mean this -> re-mounted after continue21:02
monichmal: ouch, I wouldn't expect ofono to work on a cdma device, definitely not via ril21:02
malmonich: ok21:02
electro575it reboot21:02
malenigma9o7: ^21:02
electro575elros34, when i continue21:03
T42<elros34> electro575: remount is irrelevant, provide last_kmsg from that reboot also zcat /proc/config.gz and full dmesg21:03
electro575ok elros3421:04
T42<elros34> mal, monich there is at least one report that it worked partialy when previous porter provide some old 2.x version21:04
enigma9o7Hmmm ok.  I did see in version 2 listed issues that only calls worked.21:05
malenigma9o7: does the image still exist?21:05
enigma9o7But it wasn't listed as an issue for 3, so I assumed it was fixed.21:05
enigma9o7And besides, that was calls only, I don't even have calls...21:05
enigma9o7I did read thru that version 2 thread yesterday...21:06
electro575elros34 : https://dpaste.de/nFBp21:06
T42<elros34> I never use cdma and there are very few users21:06
malenigma9o7: maybe check the file /etc/ofono/ril_subscription.conf if you can find the old image21:06
monichI didn't say cdma support is impossible, but it's not an easy task21:08
electro575elros34 : https://dpaste.de/6VTg21:08
enigma9o7It does identify itself as Sprint in the lockscreen, so it knows something.21:08
electro575elros34 : https://dpaste.de/008721:09
enigma9o7I had a sim-modded gsm version that broke, but when I replaced it I decided I wanted cdma anyway cuz LTE more imporant than it was back then... and no lte with sim-mod21:09
malenigma9o7: how do calls behave, you say it can see correct network21:10
malenigma9o7: do you have audioflingerglue build in that image?21:10
T42<elros34> mal: it's cm11 based21:11
enigma9o7If I try to make a call, after dialing it says 'no network coverage'21:11
enigma9o7a black bar across the top21:12
electro575elros34 : [    1.845838] c0 mmc0: cmd 52 response timeout error21:12
enigma9o7In settings/cellular network, it searches forever.21:13
malenigma9o7: anyway check the old image if you can21:13
enigma9o7If I do it manually it times out.21:13
enigma9o7I will look now to see if it is available online.21:13
enigma9o7I expect elros has it too.21:13
enigma9o7Yeah if I do it manually it times out and says "Oops, no networks found."21:14
enigma9o7Yes I found old images here http://www.vladislavonline.com/sailfishos-for-photon-q/ and am downloading one now.21:17
electro575elros34 : ATAG_CMDLINE: 9b 54410009 'console=ram loglevel=4 androidboot.baseband=mdm sec_debug.level=0 sec_watchdog.sec_pet=521:17
enigma9o7That page mentions CDMA phone calls work but no data or sms.21:17
electro575ATAG_CMDLINE : must have selinux = 0 ?21:18
T42<elros34> mal: I just unpacked ril_subscription.conf from image but everything inside is commented out21:18
electro575i must go to sleep21:19
T42<elros34> ATAG_CMDLINE is probably what bootloader adds to kernel21:19
electro575can you analyze this log ? i will connect tomorrow21:20
electro575maybe try solutions21:20
T42<elros34> I would try to disable watchdog in kernel or coment it out in /sbin/preinit and/or disable CONFIG_CGROUP_MEM_RES_CTLR - I had issues with this on same kernel version21:22
electro575ok thk21:23
electro575disable this ?21:24
T42<elros34> if you disable CONFIG_CGROUP_MEM_RES_CTLR then any CONFIG_CGROUP_MEM_RES_CTLR_* will also be disabled21:25
enigma9o7so I'm out of luck for CDMA basically, right?21:36
malenigma9o7: if it worked on older version then it might be possible somehow21:37
T42<elros34> I checked ril_subscription.conf in 2.0.0 - 2.0.5. Everything is commentet out or default in later versions21:43
electro575elros34, it's not that21:46
enigma9o7Well I'd be happy to test something.  I'm surprised I'm the only one using sailfish w/o hardware mod.22:01
enigma9o7I could even install an old sailfish to confirm it used to work...22:02
r0kk3rzmal: sledges, we can probably drop the requirement for a registered nick in this channel, the spam attacks are gone23:01
enigma9o7@elros34 Also, if you can give me any hints on getting that orientation patch sorted, I'd be pleased... I posted my experience so far on xda...23:06
T42<elros34> have you enabled it in settings/patchmanager and restarted lipstick? That's all, nothing more should be needed, no matter pm2 or pm323:11
enigma9o7The only seting is to unapply all patches on upgrade.23:25
enigma9o7What is the expected result?  is an app supposed to show up?  How will I get to this web catalog that you said is included.23:28
T42<elros34> just use pulley menu/web catalog, install patch and enable it. It's really that simple I have no idea why you can't figure out it but maybe it's because pm3.23:31
enigma9o7@elros maybe you havent read my forum replies, Imanaged to get your version installed23:32
enigma9o7pully menu, web catalog, in what application?23:33
T42<elros34> settings/patchmanager23:33
T42<elros34> :)23:36
enigma9o7wowow looks so much nicer now with desktow rightways, northern lights look good23:38
enigma9o7but retroarch still turns it the other way damnit23:42
enigma9o7ok solved that.23:52

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