*** zbenjamin is now known as Guest88592 | 02:02 | |
*** zbenjamin_ is now known as zbenjamin | 02:02 | |
*** Renault_ is now known as Renault | 08:34 | |
larksyrm | Any Swedes in here? Are you able to run "Mobilt BankID" in SFOS3 on Xperia XA2 now? | 09:20 |
---|---|---|
coderus | https://openrepos.net/content/coderusac8/aliendalvik-control-8 | 12:37 |
uncle_zebbiz | Hello | 14:49 |
uncle_zebbiz | I wonder if there's a way to cast/mirror the phone screen to a computer, either via usb or wifi | 14:50 |
uncle_zebbiz | I found SailCast https://github.com/skvark/SailCast | 14:50 |
uncle_zebbiz | but haven't tried it yet, and it seems outdated | 14:50 |
uncle_zebbiz | Latest release 3 years ago, latest commit 2 years ago | 14:51 |
r0kk3rz | should still work though | 14:51 |
r0kk3rz | if it ever did | 14:51 |
coderus | vnc is your saviour | 14:55 |
TheOnlyBouncer | r0kk3rz, zo, you know which raspi editions are easy to setup with sailfish? | 15:00 |
uncle_zebbiz | coderus: Have you used any vnc solutions that works well? | 15:01 |
uncle_zebbiz | if yes, which? | 15:01 |
TheOnlyBouncer | r0kk3rz, the sailpi website has not been updated since 2015.... | 15:01 |
coderus | uncle_zebbiz: there is ony one solution | 15:01 |
r0kk3rz | TheOnlyBouncer: yeah, i asked locusf about it and he hasnt updated it in quite some time it seems | 15:06 |
r0kk3rz | but i think there was a pi2 and pi3 image there | 15:06 |
uncle_zebbiz | coderus: Are you saying that there's a native vnc server already installed on the phone? | 15:07 |
r0kk3rz | TheOnlyBouncer: i found a .ks, so maybe i can try build a newer one | 15:07 |
coderus | uncle_zebbiz: https://build.merproject.org/package/binaries/home:kimmoli/lipstick2vnc?repository=sailfish_latest_armv7hl | 15:08 |
TheOnlyBouncer | r0kk3rz, hmm i can check if i have a Pi2 or Pi3 somewhere lying around | 15:08 |
TheOnlyBouncer | r0kk3rz, newer image is always better ofc | 15:09 |
kimmoli | by default that vnc works only over usb, but dnr was that patched to be not so secure. .. | 15:09 |
uncle_zebbiz | coderus: Thank you! | 15:10 |
TheOnlyBouncer | r0kk3rz, found a Pi2, from the website it looks like it only worked on a Pi2 | 15:14 |
r0kk3rz | TheOnlyBouncer: here is a pi3 image though http://images.devaamo.fi/sfa/raspberrypi/ | 15:21 |
TheOnlyBouncer | ah nice! i have a Ri2 next to me though :P so probably will just take that, should be flash and run? | 15:24 |
r0kk3rz | hopefully | 15:25 |
r0kk3rz | ive not run them personally | 15:26 |
r0kk3rz | what do HMDs generally use connection wise? hdmi + usb? | 15:27 |
TheOnlyBouncer | depends, hdmi/usb, dp/usb or usb-c are the common ones | 15:27 |
TheOnlyBouncer | (usb-c being usb with dp alternate) | 15:28 |
r0kk3rz | hmm yeah the pi2 stuff will need a bit of work to update it seems | 15:36 |
coderus | kimmoli: secure, nah, usb is faster, thats it. its over my patience to view vnc over wlan | 16:00 |
kimmoli | well, i don't use usb... | 16:02 |
TheOnlyBouncer | r0kk3rz, well that was easy, boot it up and done! | 16:13 |
r0kk3rz | nice! | 16:17 |
TheOnlyBouncer | r0kk3rz, ehh nvm it freezes after boot it seems... | 16:17 |
r0kk3rz | :/ | 16:18 |
TheOnlyBouncer | seems more people were having that issue | 16:20 |
taixzo | Is 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 |
r0kk3rz | nice | 16:36 |
r0kk3rz | you can tell journal to persist logs across reboot | 16:37 |
r0kk3rz | by default it doesnt | 16:37 |
TheOnlyBouncer | r0kk3rz, meh i can ssh into it but it seems UI is frozen? | 16:37 |
r0kk3rz | TheOnlyBouncer: define frozen, spinny screen? | 16:38 |
taixzo | r0kk3rz: how do I do that? | 16:38 |
TheOnlyBouncer | r0kk3rz, yeah spinny screen is stuck | 16:38 |
r0kk3rz | TheOnlyBouncer: aha, you have a touchscreen? | 16:39 |
r0kk3rz | taixzo: in the config, /etc/systemd/journald.conf, storage=persistent | 16:41 |
TheOnlyBouncer | r0kk3rz, no touchscreen, only mouse | 16:44 |
taixzo | and then I do what to reload those settings? | 16:44 |
taixzo | or does it automatically do so? | 16:45 |
TheOnlyBouncer | r0kk3rz, oh does it require one of those adascreenthingies? | 16:45 |
r0kk3rz | TheOnlyBouncer: mouse might be enough, essentially its just the lockscreen thats unhappy and you should be able to swipe it away from the side | 16:47 |
r0kk3rz | taixzo: reboot to be sure | 16:47 |
r0kk3rz | or run your app :P | 16:47 |
r0kk3rz | TheOnlyBouncer: in newer versions things were fixed so it doesnt do that in devices without a modem | 16:48 |
TheOnlyBouncer | well the mouse is also frozen so | 16:49 |
TheOnlyBouncer | idontknow XD | 16:50 |
TheOnlyBouncer | can 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 |
r0kk3rz | taixzo: it sounds like a kernel panic | 16:52 |
r0kk3rz | but could be lipstick crashing i suppose | 16:52 |
taixzo | I doubt it's just lipstick, it crashes to the bootloader and reboots into Android if I don't stop it | 16:54 |
r0kk3rz | TheOnlyBouncer: take a look in /etc/ofono/ril_subscription.conf | 16:55 |
r0kk3rz | TheOnlyBouncer: set EmptyConfig=true in settings if its not there | 16:55 |
*** RzR is now known as rZr | 16:57 | |
taixzo | r0kk3rz: so I added that setting and rebooted twice but /var/log/journal is still empty | 16:58 |
TheOnlyBouncer | r0kk3rz, will do, sec | 17:01 |
taixzo | ah, it needs to be Storage=persistent not storage=persistent | 17:04 |
taixzo | how do I view the journal logs? they seem to be some sort of binary, not plaintext | 17:04 |
r0kk3rz | the usual way, journalctl | 17:04 |
TheOnlyBouncer | r0kk3rz, makes no difference :( | 17:11 |
kimmoli | devel-su journalctl ? | 17:12 |
r0kk3rz | TheOnlyBouncer: ok lets double check what you have in /var/lib/environment/ofono/noplugin.conf | 17:17 |
r0kk3rz | TheOnlyBouncer: look for anything with ril at the beginning | 17:17 |
taixzo | r0kk3rz: so, there is absolutely nothing useful in the journal | 17:51 |
taixzo | Feb 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 |
taixzo | Feb 06 12:09:42 Sailfish DSME[9852]: IPHB: using android alarm to resume | 17:51 |
TheOnlyBouncer | r0kk3rz, i don't have the ofono folder there at all? | 17:58 |
spiiroin | taixzo: if it does sudden reboot (watchdog/whatever) end of journal is missing -> live journalctl in wlan shell or similar might show more | 17:59 |
r0kk3rz | TheOnlyBouncer: hmm, yeah ok then, its normally supposed to be there | 18:07 |
TheOnlyBouncer | hmmz | 18:07 |
TheOnlyBouncer | anything manual i should be doing? | 18:08 |
taixzo | spiiroin: nope, it didn't print anything | 18:08 |
spiiroin | taixzo: 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 escalate | 18:57 |
taixzo | spiiroin: correct. I received messages back from my app for 0.6 seconds subsequently, then the system froze, and then crashed to bootloader. | 18:57 |
taixzo | I should put that in present tense because it does it 100% of the time | 18:58 |
taixzo | if it helps - the app is using a library written in Rust and it crashes after calling into one of the Rust functions. | 18:59 |
taixzo | I'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 thing | 19:00 |
spiiroin | taixzo: 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 | |
taixzo | spiiroin: yep | 19:03 |
taixzo | spiiroin: (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 |
taixzo | I note that the same library runs without issues on desktop Ubuntu | 19:05 |
taixzo | (though that has Python 3.6) | 19:06 |
taixzo | I don't know whether it's a Python version issue, a portaudio bug, a memory problem, a CPU architecture flaw, or what | 19:08 |
taixzo | and I don't know how to find out | 19:08 |
spiiroin | taixzo: does it touch something that might be volatile? like low level gfx, audio, usb, ioctls in general, something | 19:09 |
taixzo | audio, yes | 19:11 |
taixzo | via portaudio | 19:11 |
taixzo | think that might be the cause? | 19:12 |
taixzo | ok, confirmed with differential commenting: creating a portaudio backend crashes the OS | 19:21 |
*** svartoyg_afk is now known as svartoyg | 20:02 | |
attah | Anywhere i can read up on the QML version of XmlHttpRequest? It seems to be missing a lot of functionality :( | 20:37 |
attah | addEventListener and timeout seems to be MIA | 20:39 |
taixzo | attah: it's basically old XmlHTTPRequest, so read any tutorials on how to use it from before 2009 or so | 20:47 |
attah | thanks for insight, i took the waybackmachine to 2013 which is as far as developer.mozilla.org goes on the current url.. now things looks more familiar | 20:50 |
attah | but even that is too new.. no tiemout support at all | 20:54 |
r0kk3rz | yeah its fairly ancient js | 21:07 |
taixzo | (I can't believe I'm saying this) Check out w3schools. | 21:09 |
taixzo | heh. 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 |
r0kk3rz | audio, to the terminal? awesome | 21:20 |
taixzo | it's a whole lot of xc�E��5���g�%��������r���^���~� | 21:21 |
taixzo | oh, turns out that it didn't link the pulseaudio backend for some reason. Ok, built it *with* the pulseaudio backend. No sound. >_< | 21:33 |
r0kk3rz | you'll need to do the audioresource thing first for cli apps | 21:34 |
r0kk3rz | https://git.merproject.org/mer-core/libaudioresource | 21:35 |
taixzo | oh, 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 |
r0kk3rz | probably | 21:39 |
taixzo | oh, damn. This is a C api, not, like, commands I can call | 21:39 |
taixzo | that means I probably need to modify the Rust library that is actually playing the sound | 21:40 |
* taixzo headdesks softly | 21:40 | |
r0kk3rz | lol | 21:44 |
r0kk3rz | this is what you get with your hipster languages :P | 21:45 |
taixzo | r0kk3rz: it's not even my language! I'm trying to write this damn app in Python! | 21:47 |
taixzo | r0kk3rz: 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 |
coderus | No need to modify lib, just add libresource | 21:48 |
taixzo | how do I do that? | 21:49 |
coderus | You need to grab audio context before playback and release it after, that's it | 21:49 |
coderus | Search for libsudioresource/libresource py wrappes | 21:49 |
taixzo | oh, so I don't actually need to pass the context I get from it to the librespot library? | 21:50 |
coderus | libaudioresource | 21:50 |
taixzo | as long as I acquire it first? | 21:50 |
taixzo | coderus: do you have a python wrapper for it somewhere? I can't find an official one. | 21:51 |
taixzo | coderus: I'm trying to call it via ctypes, but I don't really have any idea what I'm doing | 22:38 |
TheOnlyBouncer | r0kk3rz, 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 irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!