Kabouik | Does `aplay -L` (from alsa-utils) always report the sound card as "default:something", on every phone? I'm trying to use that in a script, so I'd prefer avoid hardcoding the device name found on my phone | 03:49 |
---|---|---|
Kabouik | rinigus, elros found a simple fix to the Silica transparency I mentioned above with qxcompositor. | 04:15 |
Kabouik | He painted everything in black, but it needed some trials and errors to first check whether the issue was due to the qtwayalnd-5.6 changes, or the refactor he did when updating, and then to place the painting function at the right place. | 04:16 |
direc85[m] | Kabouik: You could also use `paplay <file>` | 06:45 |
Thaodan | direc85[m]: It should work fine. | 07:10 |
Kabouik | What file should I use with paplay Thaodan, an audio file or a device? I'm trying to get the name of the sound card in a variable. | 10:57 |
Thaodan | Why do want the name of the sound card? | 10:59 |
Thaodan | There's no direct name of a card, we some pa plugins to map the android audio routing files to pa. | 11:00 |
Kabouik | Because I need to add it in /etc/pulse/default.pa in LXC containers to get sound working in them | 11:02 |
Thaodan | I would forward the sound to the container | 11:02 |
Thaodan | no need to configure pa there | 11:03 |
Kabouik | If the name always start with "default:" like on my phone, I can get that fine with grep, but I'm not sure it is the same on other phones | 11:03 |
Kabouik | This is the only way I found: https://github.com/sailfish-on-fxtecpro1/droid-config-halium-qx1050/issues/12#issuecomment-1229361634 Maybe I missed something obvious? | 11:03 |
Kabouik | Oh wait, maybe just mounting /dev/snd is enough | 11:06 |
Kabouik | It might indeed. | 11:06 |
Thaodan | I don't get why would you alsa there. Yes the card name changes, e.g. you can see that on the udev rule to ignore the first card that has to be renamed for each board. | 11:07 |
Thaodan | I wouldn't want to bind the sound card in the container | 11:07 |
Kabouik | I just tried without the alsa thing and you're right, it works; I just followed the guide with zeal but that last step is not necessary. | 11:07 |
Thaodan | Kabouik: You can forward the pa socket from the host | 11:08 |
Thaodan | then clients in the container can connect to the host | 11:08 |
Kabouik | That is what is done with this, no? `lxc.cgroup.devices.allow = c 116:* rwm` and `xc.mount.entry = /dev/snd dev/snd none bind,optional,create=dir`h | 11:09 |
Thaodan | that's not good | 11:09 |
Kabouik | I just do that on SFOS side in the container config file | 11:09 |
Thaodan | e.g. read this https://joonas.fi/2020/12/audio-in-docker-containers-linux-audio-subsystems-spotifyd/ | 11:10 |
Thaodan | it explains how to forward pa to the container | 11:10 |
Thaodan | no need to use the card directly | 11:10 |
Thaodan | also pa doesn't like others connecting to the card] | 11:10 |
Kabouik | I'm probably missing something or doing it wrong but that doesn't work for me; I'm sure it's just me failing to interpret the instructions | 11:24 |
Kabouik | I think I got it | 11:26 |
Kabouik | I am not sure I understand the fundamental difference compared to the previous thing I did with mounting the soundcard directly with /dev/snd because I didn't encounter issues with that, but I fully trust you that this approach with mounting pusle configuration files and socket instead is better 👍 | 11:27 |
Kabouik | https://github.com/sailfish-on-fxtecpro1/droid-config-halium-qx1050/issues/12#issuecomment-1229437695 | 11:30 |
piggz[m] | <Kabouik> "https://github.com/sailfish-on-..." <- So, can issue be closed, as not port related, but just lxc config issue? | 11:39 |
piggz[m] | Sry for being quiet, at a festival this weekend :) | 11:40 |
Kabouik | Not yet I think piggz[m], the keyboard part is port-related | 11:40 |
Kabouik | Enjoy the festival! | 11:41 |
piggz[m] | K | 11:41 |
piggz[m] | Ill enjoy a shower tomorrow 😂 | 11:41 |
piggz[m] | Kabouik: Does key event work in droidian? They have some extra patches for that key | 11:43 |
Kabouik | A festival shouldn't stop you piggz: https://twitter.com/Kabouik/status/1436712420907565058 | 11:43 |
Kabouik | I'll have to try, harbour-containers has been eating all my free time lately but I think I'm close to a release | 11:44 |
piggz[m] | Kabouik: Ha | 11:45 |
poetaster | piggz[m], did one day of festival with the kids yesterday ... headliners https://www.youtube.com/watch?v=yS11x9Ob3Bk | 13:43 |
poetaster | (siegfried and joy, magicians) | 13:43 |
Kabouik | In the end what I think worked with just mounting /etc/alsa, /usr/share/alsa and /run/user/100000/pulse into the container does not work Thaodan. I think I must have had some remnants of my previous changes in the container that made me think it worked, but it doesn't in new containers. | 13:46 |
norayr | is there a way to extract jolla-notes content as text files? | 15:24 |
attah | Depends a bit on what you want to do... but sharing them (by email for example) is one option | 15:25 |
norayr | hmmmm, thank you. just i need to do it one by one then. i wonder if it's possible to extract em all, maybe via script. | 15:25 |
attah | It is entirely possible to query the database too for bulk export... but i don't recall seeing a script for it recently | 15:26 |
norayr | eh, thank you! | 15:26 |
norayr | (: | 15:26 |
attah | So you do the trade-off that suits you | 15:26 |
norayr | is it documented somewhere? how to connect to db? is it just a sqlight? | 15:27 |
attah | Hmm, just checked an old backup, the supposed database is very editor friendly | 15:27 |
norayr | oh that sounds good. | 15:27 |
norayr | you mean sql editor? | 15:27 |
norayr | or just text editor? | 15:28 |
attah | no, just regular text editor | 15:28 |
attah | Hmm, maybe it is not in fact a database in the backup, but a sequence of commands that would make one | 15:28 |
norayr | oh | 15:28 |
norayr | i am trying to initiate backup, and i have no 'memory card' with me. | 15:31 |
norayr | it shows me several 'memory cards', i see one of those is root, another is boot. | 15:32 |
norayr | by the size | 15:32 |
norayr | and other two don't have size at all. | 15:32 |
norayr | if i choose either one, it sais that the memory card is not writable. | 15:32 |
norayr | isn't there a way to initiate a backup to /tmp ? | 15:32 |
attah | Nah, then you are probably better of querying the database | 15:34 |
norayr | (((: | 15:34 |
attah | And by now you could have easily sent 20-30 notes by email | 15:34 |
norayr | 290 notes... | 15:34 |
attah | oof | 15:34 |
norayr | trying this: https://zetcode.com/db/sqlite/tool/ | 15:36 |
attah | simply ".dump" seems to produce more or less the same result as in the backup | 15:38 |
norayr | this is a solution (didn't see your message, just came back): sqlite3 <file>.sqlite "select * from notes;" > notes.txt | 15:46 |
norayr | trying dump now. | 15:46 |
norayr | oh yes. | 15:48 |
norayr | dump is sql statements to create the db. also might be useful. | 15:48 |
norayr | attah, thank you! | 15:48 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!