| nephros_ | Question to any Linux programmers: if I need an anonymous file descriptor, is it a valid approach to open a random, nonexisting filename in /dev/shm? | 15:53 |
|---|---|---|
| nephros_ | background: https://github.com/sailfishos/sailjail-permissions/issues/146 | 15:53 |
| nephros_ | I don't have /dev/null in SailJail so I want to replace open(/dev/null) with something else, in a reliable/safe way. | 15:54 |
| poetaster | nephros, no idea ;) But immediately a question .... if I want a system.d oneshot on boot, and don't want to dump it in etc, where does it go? thinking of /usr/lib/systemd/user/oneshot-user-late.service | 17:04 |
| poetaster | nephros_, but this is kind of interesting. | 17:05 |
| poetaster | https://www.man7.org/linux/man-pages/man2/memfd_create.2.html | 17:05 |
| poetaster | nephros_, exec 5<> <(:) | 17:07 |
| poetaster | nephros_, there are some nice things to play with at https://superuser.com/questions/184307/bash-create-anonymous-fifo | 17:07 |
| nephros_ | poetaster: about the FDs, well the problem in this case is with an upstream python lib. I need to patch it to use something else than /dev/null. | 17:20 |
| nephros_ | About oneshots: There is a Sailfish way to do oneshots. | 17:21 |
| nephros_ | https://github.com/sailfishos/oneshot | 17:23 |
| poetaster | thank you! | 17:26 |
| nephros_ | poetaster: and many thanks for stppc! | 17:29 |
| poetaster | nephros_, ah, it had been sitting around, unfinished and I felt sorry :) | 17:29 |
| poetaster | nephros_, just trying to get the 'pactl load-module module-udev-detect' on boot part right. for usb dacs | 17:33 |
| poetaster | I think 'pactl load-module module-udev-detect' should not actually be oneshot, but I'm just trying to find a starting point. | 17:35 |
| nephros_ | poetaster: I refuse to becom more familiar with pulse, but that sounds like something that should be triggered by some file in /etc/pulse or so? | 17:42 |
| nephros_ | ... or even an udev rule | 17:43 |
| poetaster | yeah. it does, in theory :) | 17:43 |
| poetaster | nephros_, https://sailfishos.wiki/books/usb-audio-dac/page/udev-and-pulse | 17:45 |
| Keto | sailfish oneshot and systemd.service type=oneshot do very different things | 17:54 |
| Keto | and can't that 'load-module module-udev-detect' just go in /etc/pulse/default.pa.d/something.pa? | 17:56 |
| mal | ttps://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/etc/pulse/arm_droid_card_custom.pa like this | 18:15 |
| mal | https://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/etc/pulse/arm_droid_card_custom.pa | 18:15 |
| mal | but to use that module-udev-detect you need to have suitable udev rule to skip the internal audio card like this https://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/lib/udev/rules.d/99-pulseaudio-ignore-builtin-card.rules | 18:16 |
| mal | that id attribute is the one you find from /sys/class/sound/card0/id or something like that | 18:18 |
| joff | hi all, if my sony xperia 10 III have android 12 installed | 19:19 |
| joff | is this possible to flash SW BINARIES FOR XPERIA ANDROID 11 ? | 19:21 |
| joff | as described here : https://developer.sony.com/file/download/software-binaries-for-aosp-android-11-0-kernel-4-19-lena | 19:21 |
| tuplasuhveli[m] | Yes, you must use the binaries that are mentioned in the installation instructions. | 19:22 |
| joff | ok | 19:22 |
| joff | tuplasuhveli : no problem for you to use sony xperia 10 III ? drain battery is moderate ? | 19:25 |
| joff | just want to know how do you install chum market ? | 19:25 |
| joff | i have a problem when flash ! | 19:26 |
| joff | Votre Paste à été crée avec succès. Vous le trouverez à cette adresse (Ctrl+C) : | 19:26 |
| joff | https://debian-facile.org/paste-D9A74661F7-3bc1f8414c3fe881cb5a8437a8e26aa5 | 19:26 |
| joff | >> fastboot -s HQ618H27FF flash oem_a ./SW_binaries_for_Xperia_Android_11_4.19_v9a_lena.img | 19:28 |
| joff | Sending 'oem_a' (819200 KB) FAILED (remote: 'Requested download size is more than max allowed | 19:28 |
| joff | ') | 19:28 |
| joff | fastboot: error: Command failed | 19:28 |
| joff | Flashing failed (1) | 19:28 |
| poetaster | Keto, mal I have the ignore: https://sailfishos.wiki/books/usb-audio-dac/page/udev-and-pulse | 19:56 |
| poetaster | sorry: echo 'ATTRS{id}=="mtsndcard", ENV{PULSE_IGNORE}="1"' > /etc/udev/rules.d/89-pulseaudio-usb.rules | 19:57 |
| poetaster | and /etc/pulse/xpolicy.conf.d/usbaudio.conf | 19:57 |
| poetaster | Keto, mal and they work but pactl has to be called even though the pa config has the module load in place | 19:58 |
| poetaster | mal, Keto /etc/pulse/system.pa has load-module module-udev-detect | 20:00 |
| poetaster | mal, Keto ExecStart=/usr/bin/pulseaudio --daemonize=no --system --disallow-module-loading $CONFIG | 20:22 |
| Keto | hmm... weird | 20:29 |
| poetaster | Keto, not sure :) but load-module module-udev-detect from the /etc/pulse/system.pa is not effective and I thought maybe???? | 20:34 |
| Keto | aaa... system.pa is not loaded for the user session pulseaudio | 20:34 |
| Keto | you can put a .pa file in /etc/pulse/default_sailfish.pa.d and that should work | 20:35 |
| poetaster | ok, I'll try that. | 20:51 |
| poetaster | oh, doesn't exist on this port. will check the xperia 10iii | 20:52 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!