Wednesday, 2019-02-06

*** zbenjamin is now known as Guest8859202:02
*** zbenjamin_ is now known as zbenjamin02:02
*** Renault_ is now known as Renault08:34
larksyrmAny Swedes in here? Are you able to run "Mobilt BankID" in SFOS3 on Xperia XA2 now?09:20
uncle_zebbizI wonder if there's a way to cast/mirror the phone screen to a computer, either via usb or wifi14:50
uncle_zebbizI found SailCast
uncle_zebbizbut haven't tried it yet, and it seems outdated14:50
uncle_zebbizLatest release 3 years ago, latest commit 2 years ago14:51
r0kk3rzshould still work though14:51
r0kk3rzif it ever did14:51
coderusvnc is your saviour14:55
TheOnlyBouncerr0kk3rz, zo, you know which raspi editions are easy to setup with sailfish?15:00
uncle_zebbizcoderus: Have you used any vnc solutions that works well?15:01
uncle_zebbizif yes, which?15:01
TheOnlyBouncerr0kk3rz, the sailpi website has not been updated since 2015....15:01
coderusuncle_zebbiz: there is ony one solution15:01
r0kk3rzTheOnlyBouncer: yeah, i asked locusf about it and he hasnt updated it in quite some time it seems15:06
r0kk3rzbut i think there was a pi2 and pi3 image there15:06
uncle_zebbizcoderus: Are you saying that there's a native vnc server already installed on the phone?15:07
r0kk3rzTheOnlyBouncer: i found a .ks, so maybe i can try build a newer one15:07
TheOnlyBouncerr0kk3rz, hmm i can check if i have a Pi2 or Pi3 somewhere lying around15:08
TheOnlyBouncerr0kk3rz, newer image is always better ofc15:09
kimmoliby default that vnc works only over usb, but dnr was that patched to be not so secure. ..15:09
uncle_zebbizcoderus: Thank you!15:10
TheOnlyBouncerr0kk3rz, found a Pi2, from the website it looks like it only worked on a Pi215:14
r0kk3rzTheOnlyBouncer: here is a pi3 image though
TheOnlyBouncerah nice! i have a Ri2 next to me though :P so probably will just take that, should be flash and run?15:24
r0kk3rzive not run them personally15:26
r0kk3rzwhat do HMDs generally use connection wise? hdmi + usb?15:27
TheOnlyBouncerdepends, hdmi/usb, dp/usb or usb-c are the common ones15:27
TheOnlyBouncer(usb-c being usb with dp alternate)15:28
r0kk3rzhmm yeah the pi2 stuff will need a bit of work to update it seems15:36
coderuskimmoli: secure, nah, usb is faster, thats it. its over my patience to view vnc over wlan16:00
kimmoliwell, i don't use usb...16:02
TheOnlyBouncerr0kk3rz, well that was easy, boot it up and done!16:13
TheOnlyBouncerr0kk3rz, ehh nvm it freezes after boot it seems...16:17
TheOnlyBouncerseems more people were having that issue16:20
taixzoIs there an equivalent to /var/log/syslog on SFOS? My app is causing the phone to hard reboot and I'm trying to figure out why.16:36
r0kk3rzyou can tell journal to persist logs across reboot16:37
r0kk3rzby default it doesnt16:37
TheOnlyBouncerr0kk3rz, meh i can ssh into it but it seems UI is frozen?16:37
r0kk3rzTheOnlyBouncer: define frozen, spinny screen?16:38
taixzor0kk3rz: how do I do that?16:38
TheOnlyBouncerr0kk3rz, yeah spinny screen is stuck16:38
r0kk3rzTheOnlyBouncer: aha, you have a touchscreen?16:39
r0kk3rztaixzo: in the config, /etc/systemd/journald.conf, storage=persistent16:41
TheOnlyBouncerr0kk3rz, no touchscreen, only mouse16:44
taixzoand then I do what to reload those settings?16:44
taixzoor does it automatically do so?16:45
TheOnlyBouncerr0kk3rz, oh does it require one of those adascreenthingies?16:45
r0kk3rzTheOnlyBouncer: mouse might be enough, essentially its just the lockscreen thats unhappy and you should be able to swipe it away from the side16:47
r0kk3rztaixzo: reboot to be sure16:47
r0kk3rzor run your app :P16:47
r0kk3rzTheOnlyBouncer: in newer versions things were fixed so it doesnt do that in devices without a modem16:48
TheOnlyBouncerwell the mouse is also frozen so16:49
TheOnlyBounceridontknow XD16:50
TheOnlyBouncercan i update it to a newer version or something like that?16:50
taixzo(I'm a bit puzzled as to why usermode code is able to crash the entire OS)16:51
r0kk3rztaixzo: it sounds like a kernel panic16:52
r0kk3rzbut could be lipstick crashing i suppose16:52
taixzoI doubt it's just lipstick, it crashes to the bootloader and reboots into Android if I don't stop it16:54
r0kk3rzTheOnlyBouncer: take a look in /etc/ofono/ril_subscription.conf16:55
r0kk3rzTheOnlyBouncer: set EmptyConfig=true in settings if its not there16:55
*** RzR is now known as rZr16:57
taixzor0kk3rz: so I added that setting and rebooted twice but /var/log/journal is still empty16:58
TheOnlyBouncerr0kk3rz, will do, sec17:01
taixzoah, it needs to be Storage=persistent not storage=persistent17:04
taixzohow do I view the journal logs? they seem to be some sort of binary, not plaintext17:04
r0kk3rzthe usual way, journalctl17:04
TheOnlyBouncerr0kk3rz, makes no difference :(17:11
kimmolidevel-su journalctl ?17:12
r0kk3rzTheOnlyBouncer: ok lets double check what you have in /var/lib/environment/ofono/noplugin.conf17:17
r0kk3rzTheOnlyBouncer: look for anything with ril at the beginning17:17
taixzor0kk3rz: so, there is absolutely nothing useful in the journal17:51
taixzoFeb 06 12:08:14 Sailfish sshd[12605]: pam_unix(sshd:session): session opened for user nemo by (uid=0)17:51
taixzo-- Reboot --17:51
taixzoFeb 06 12:09:42 Sailfish DSME[9852]: IPHB: using android alarm to resume17:51
TheOnlyBouncerr0kk3rz, i don't have the ofono folder there at all?17:58
spiirointaixzo: if it does sudden reboot (watchdog/whatever) end of journal is missing -> live journalctl in wlan shell or similar might show more17:59
r0kk3rzTheOnlyBouncer: hmm, yeah ok then, its normally supposed to be there18:07
TheOnlyBounceranything manual i should be doing?18:08
taixzospiiroin: nope, it didn't print anything18:08
spiirointaixzo: as in journal stopped getting more lines? were you able to do anything else with the system at that stage?18:56
spiiroin... journal itself crashing/freezing can create interesting problems that will then escalate18:57
taixzospiiroin: correct. I received messages back from my app for 0.6 seconds subsequently, then the system froze, and then crashed to bootloader.18:57
taixzoI should put that in present tense because it does it 100% of the time18:58
taixzoif it helps - the app is using a library written in Rust and it crashes after calling into one of the Rust functions.18:59
taixzoI'm also using a rust <-> python bridge that only supports python >=3.5, and I changed the config to check for 3.4 because that's what we have, but it seems to work, other than the whole crashing the phone thing19:00
spiirointaixzo: so you get the device up and running just fine, but starting some self made app makes it crash and burn?19:01
* spiiroin was just about to mention that that dsme pid looks surprisingly large - some obfuscation option or crash/restart occurred?19:02
taixzospiiroin: yep19:03
taixzospiiroin: (well, it's not really an app at this point; I import the library in a python console, call a function and boom)19:04
taixzoI note that the same library runs without issues on desktop Ubuntu19:05
taixzo(though that has Python 3.6)19:06
taixzoI don't know whether it's a Python version issue, a portaudio bug, a memory problem, a CPU architecture flaw, or what19:08
taixzoand I don't know how to find out19:08
spiirointaixzo: does it touch something that might be volatile? like low level gfx, audio, usb, ioctls in general, something19:09
taixzoaudio, yes19:11
taixzovia portaudio19:11
taixzothink that might be the cause?19:12
taixzook, confirmed with differential commenting: creating a portaudio backend crashes the OS19:21
*** svartoyg_afk is now known as svartoyg20:02
attahAnywhere i can read up on the QML version of XmlHttpRequest? It seems to be missing a lot of functionality :(20:37
attahaddEventListener and timeout seems to be MIA20:39
taixzoattah: it's basically old XmlHTTPRequest, so read any tutorials on how to use it from before 2009 or so20:47
attahthanks for insight, i took the waybackmachine to 2013 which is as far as goes on the current url.. now things looks more familiar20:50
attahbut even that is too new.. no tiemout support at all20:54
r0kk3rzyeah its fairly ancient js21:07
taixzo(I can't believe I'm saying this) Check out w3schools.21:09
taixzoheh. So I built my app with the pulseaudio backend instead of the portaudio backend. It no longer crashes the app. However, instead of outputting the audio data to the speaker, it outputs it to the terminal.21:19
r0kk3rzaudio, to the terminal? awesome21:20
taixzoit's a whole lot of xc�E��5���g�%��������r���^���~�21:21
taixzooh, turns out that it didn't link the pulseaudio backend for some reason. Ok, built it *with* the pulseaudio backend. No sound. >_<21:33
r0kk3rzyou'll need to do the audioresource thing first for cli apps21:34
taixzooh, hm. Does that also apply to a library that's called by python from a qml app?21:38
taixzo(I'm just testing in a cmdline at the moment)21:38
taixzooh, damn. This is a C api, not, like, commands I can call21:39
taixzothat means I probably need to modify the Rust library that is actually playing the sound21:40
* taixzo headdesks softly21:40
r0kk3rzthis is what you get with your hipster languages :P21:45
taixzor0kk3rz: it's not even my language! I'm trying to write this damn app in Python!21:47
taixzor0kk3rz: but the only working Spotify library is librespot, which is written in Rust. So I made a translation layer so I can import it as a Python module...but now it looks like I'm going to have to modify librespot's code anyway to give it an audio context.21:48
coderusNo need to modify lib, just add libresource21:48
taixzohow do I do that?21:49
coderusYou need to grab audio context before playback and release it after, that's it21:49
coderusSearch for libsudioresource/libresource py wrappes21:49
taixzooh, so I don't actually need to pass the context I get from it to the librespot library?21:50
taixzoas long as I acquire it first?21:50
taixzocoderus: do you have a python wrapper for it somewhere? I can't find an official one.21:51
taixzocoderus: I'm trying to call it via ctypes, but I don't really have any idea what I'm doing22:38
TheOnlyBouncerr0kk3rz, meh have not been able to get it to work, you know if the raspi guy is on irc or something?23:30

Generated by 2.17.1 by Marius Gedminas - find it at!