Wednesday, 2026-01-21

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/14615: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
poetasternephros, 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.service17:04
poetasternephros_, but this is kind of interesting.17:05
poetasterhttps://www.man7.org/linux/man-pages/man2/memfd_create.2.html17:05
poetasternephros_, exec 5<> <(:)17:07
poetasternephros_, there are some nice things to play with at https://superuser.com/questions/184307/bash-create-anonymous-fifo17: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/oneshot17:23
poetasterthank you!17:26
nephros_poetaster: and many thanks for stppc!17:29
poetasternephros_, ah, it had been sitting around, unfinished and I felt sorry :)17:29
poetasternephros_, just trying to get the 'pactl load-module module-udev-detect' on boot part right. for usb dacs17:33
poetasterI 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 rule17:43
poetasteryeah. it does, in theory :)17:43
poetasternephros_, https://sailfishos.wiki/books/usb-audio-dac/page/udev-and-pulse17:45
Ketosailfish oneshot and systemd.service type=oneshot do very different things17:54
Ketoand can't that 'load-module module-udev-detect' just go in /etc/pulse/default.pa.d/something.pa?17:56
malttps://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/etc/pulse/arm_droid_card_custom.pa like this18:15
malhttps://github.com/mer-hybris/droid-config-sony-murray/blob/master/sparse/etc/pulse/arm_droid_card_custom.pa18:15
malbut 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.rules18:16
malthat id attribute is the one you find from /sys/class/sound/card0/id or something like that18:18
joffhi all, if my sony xperia 10 III have android 12 installed19:19
joffis this possible to flash SW BINARIES FOR XPERIA ANDROID 11 ?19:21
joffas described here : https://developer.sony.com/file/download/software-binaries-for-aosp-android-11-0-kernel-4-19-lena19:21
tuplasuhveli[m]Yes, you must use the binaries that are mentioned in the installation instructions.19:22
joffok19:22
jofftuplasuhveli : no problem for you to use sony xperia 10 III ? drain battery is moderate ?19:25
joffjust want to know how do you install chum market ?19:25
joffi have a problem when flash !19:26
joffVotre Paste à été crée avec succès. Vous le trouverez à cette adresse (Ctrl+C) :19:26
joffhttps://debian-facile.org/paste-D9A74661F7-3bc1f8414c3fe881cb5a8437a8e26aa519:26
joff>> fastboot -s HQ618H27FF flash oem_a ./SW_binaries_for_Xperia_Android_11_4.19_v9a_lena.img19:28
joffSending 'oem_a' (819200 KB)                        FAILED (remote: 'Requested download size is more than max allowed19:28
joff')19:28
jofffastboot: error: Command failed19:28
joffFlashing failed (1)19:28
poetasterKeto, mal I have the ignore: https://sailfishos.wiki/books/usb-audio-dac/page/udev-and-pulse19:56
poetastersorry: echo 'ATTRS{id}=="mtsndcard", ENV{PULSE_IGNORE}="1"' > /etc/udev/rules.d/89-pulseaudio-usb.rules19:57
poetasterand /etc/pulse/xpolicy.conf.d/usbaudio.conf19:57
poetasterKeto, mal and they work but pactl has to be called even though the pa config has the module load in place19:58
poetastermal, Keto /etc/pulse/system.pa has load-module module-udev-detect20:00
poetastermal, Keto ExecStart=/usr/bin/pulseaudio --daemonize=no --system --disallow-module-loading $CONFIG20:22
Ketohmm... weird20:29
poetasterKeto, not sure :) but load-module module-udev-detect from the /etc/pulse/system.pa is not effective and I thought maybe????20:34
Ketoaaa... system.pa is not loaded for the user session pulseaudio20:34
Ketoyou can put a .pa file in /etc/pulse/default_sailfish.pa.d and that should work20:35
poetasterok, I'll try that.20:51
poetasteroh, doesn't exist on this port. will check the xperia 10iii20:52

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