libera/#devuan/ Sunday, 2024-01-07

* systemdlete once again wonders if his memory is playing tricks on them...01:14
systemdleteHotswapping drives used to work automatically, right?01:14
systemdleteNow it seems I have to echo "0 0 0" to some nasty path into the /sys fs.  I don't ever recall doing that in the past when inserting or withdrawing a drive.01:15
systemdleteBut, once again, maybe I just haven't done this in so long that perhaps the linux API has changed.  I just don't know.01:15
systemdleteI am using a multi-bay disk unit which is connected to the mainboard directly (no card in between).  The connectors are essentially just extensions of the cables which are, in turn, connected to the mainboard.01:16
systemdleteThis is happening on two machines, one of which has an eSATA connector, but the behavior is the same on both:  Neither one recognizes a drive when inserted into the unit.01:17
systemdletebtw, happy new year to all.01:19
rwpAutomatically is depending upon a lot of details.  Let's focus only on the hardware level and not the OS mounting side.01:26
systemdleteWhen I said "automatically" I just meant that I did not have to do anything special for hotswapping to work.01:27
rwpIf an unmounted not-busy disk is ejected then I have not needed to "delete" (echo 1 > /sys/block/sdX/device/delete) it from the system in a long time.01:27
rwpAnd when I have inserted a SATA disk I have not needed to force a SATA bus rescan (echo "0 0 0" >/sys/class/scsi_host/host{N}/scan) in a long time.  But that used to be needed.01:27
systemdletereally?  "used to be needed?"01:27
systemdleteI never recall having done that.01:28
rwpBut I could imagine that if either of those things did not happen then it might be needed to do those again.01:28
rwpWell...  If it was never needed then why do those actions exist?  Why do we even know about them?  If it were always automatic then there would be no such action needed nor available.01:28
systemdleteno idea.01:28
rwpOn the OS side it is most important to unmount devices before detatching them.  If it is an mdadm raid then I can usually just detach them.01:29
rwpI have one Seagate disk that freaks out every 2-3 months and I have to eject it in order to power cycle it and then insert it again.  Rather routinely.01:30
systemdleteI find that mdadm is pretty resilient, even to sudden disconnects.  I don't recall losing an md device.01:30
rwpWhen I do that I have to mdadk --re-add it back into the raid.01:30
systemdletewell, right.01:30
rwpIt usually sync's up quickly and no problem.01:30
systemdleteI have to re-add it also.  But if I boot the system, mdadm finds the drives in the set and re-syncs them.01:31
systemdlete(yes, same here)01:31
systemdletemdadm is finding the component drives by the uuid I think.01:31
rwpYes.  UUIDs.  Most things use UUIDs internally now.  Which is good.01:32
systemdleterobust and reliable01:32
systemdleteI've been reading through posts about this issue, and a lot of them are really old.  I'm talking 2006 and 2009 old.01:33
rwpLooking through my notes I have at one point needed to "mdadm --manage /dev/md2 --fail /dev/sda2" and "mdadm --manage /dev/md2 --remove /dev/sda2" a disk for part in 2, 3, 4, 5, and then re-add them again after resetting that pesky Seagate drive.01:33
rwpNothing has really changed since 2006 on this topic anyway.  Those should all still be relevant.01:34
systemdleteYeah.  Sounds like that SG drive is a problem.   I have 2 of them here, and both of them report smart values below their thresholds.  One of them is BRAND NEW.01:34
systemdletethankfully, all of my other drives are WD01:35
rwpSince 2019 until now I have had to power cycle this pesky Seagate 22 times by my logs of it.  The Toshibas in the array have been okay the entire time.01:35
rwpI must run off but I will just leave this command here as useful: ls -l /dev/disk/by-id/ | awk '{print$NF,$(NF-2)}' | sed -n '/\.\.\/\.\.\//s/^......//p' | grep '^sd. ata' | sort01:36
rwpBBIAB01:37
systemdleteI have a script that does the same thing.01:37
systemdletebut thanks01:37
systemdleteAt least a few others are having a similar experience:  https://forums.linuxmint.com/viewtopic.php?t=39879101:45
hyperrealI'm currently trying to host a Devuan mirror. I had my public key added to access via rsync, but now I'm seeing "host key verification failed".02:07
onefangApologies hyperreal, I've been ill and on holiday recovering, so I've not managed to keep up with my package mirror herding work.02:10
hyperrealonefang: no worries. Can you just remove my mirror from the list?02:11
onefangAww, sorry to see you go.  I'll remove you.02:11
hyperrealThank you02:12
rrqbtw "host key verification failed" is usually the client end making noise about the server's key, typically that they don't having in their "known_hosts" file.02:14
onefangIn this case could also be coming from a different IP than the one they told me about.02:15
hyperrealrrq right, I wouldn't mind having that issue resolved, but if no one is maintaining mirror admin then I don't see the point.02:15
onefangOr both, why not both?02:15
onefangIf I wasn't bed ridden for most of December, this would have been sorted out then.02:17
hyperrealrrq: wait, let me check if it's in there. I thought I added it but it may have been for another user02:17
rrqyes in this case it was the client end missing setup; perhaps when you shifted from manual (testing mode) to automated02:17
hyperrealokay it's working now. onefang: you don't have to remove me02:19
onefangYay!02:19
onefangWelcome back.02:19
hyperrealyeah silly me. I added it with my normal user but root is the one running the rsync command.02:19
hyperrealonefang: I'd be happy to help any way I could. Sorry you've been ill and such.02:20
hyperrealon the apt-panopticon page I see my mirror has some errors but I don't know what's causing them02:21
onefangHopefully now that it's working your mirror will pass apt-panopticon's weekly update stats test in a weeks time, then I can fully activate it.02:21
onefangWell the big one is being fully up to date, which you failed coz your rsync wasn't working until a few minutes ago.02:22
onefangWe should take this to #devuan-infra.02:23
hyperrealonefang: np02:23
Xenguyrawr03:29
fluffywolfI got a pair of bluetooth headphones today.  I connected to them with bluetoothctl.  now how do I send audio to them?  alsa isn't showing anything.04:22
fluffywolf /etc/init.d/alsa-utils restart  didn't find anything new either04:23
brocashelmhave you also installed bluez-alsa-utils and libasound2-plugin-bluez?04:24
brocashelmalso, have you added your user to the bluetooth and audio groups?04:25
fluffywolfE: Unable to locate package bluez-alsa-utils04:25
fluffywolfI didn't see anything that looked like it combined bluez and alsa when apt-cache searching...04:25
brocashelmwhat version of devuan?04:25
brocashelmshows for daedalus04:25
fluffywolfchimaera04:25
fluffywolfdaedalus broke everything way too badly on the laptop I upgraded to it on, might skip it entirely on this one.04:26
brocashelmthen it sounds like you'll have to compile it from source04:27
brocashelmfor bluez-alsa-utils04:27
fluffywolfsurely "chimaera doesn't have bluetooth" is not the answer here?04:27
brocashelmdaedalus is the first devuan release to have those packages04:27
brocashelmno, i think it's just due to incompetent maintainers in debianland not getting the packages in sooner04:28
brocashelmif you compile it, you should be able to get alsa audio with bluetooth04:28
brocashelmsadly, doesn't seem like it'll get backported by them04:28
fluffywolfso you're saying there's no working bluetooth on chimaera, despite bluetooth being a standard for years and everyone using bluetooth earbuds and crap?04:28
fluffywolfthat's...  really sad if true.04:29
brocashelmdon't ask me, that's on debian04:29
brocashelmthere are software i use that i can't easily install on beowulf or chimaera, having to either compile or use some third-party deb as the only options04:30
fluffywolfbut surely there's some other software that does something as basic as send audio to a bluetooth device, even if those packages don't exist yet?04:31
fluffywolfI don't have enough bandwidth left to try upgrading to daedalus right now even if I did want to risk breaking everything...  might try frankendebianing it.04:32
fluffywolfbah, of course libc6 is very incompatible, and frankendebianing is not going to be easy.04:36
onefangToo much fluffy wolf fur in the way?04:37
fluffywolf?04:39
onefangGetting between your blue teeth and your ears.04:39
fluffywolfaptitude wants to remove consolekit.  will this break anything?04:40
* fluffywolf always looks at the package lists very carefully when doing stupid things...04:41
fluffywolfok, bluealsa --help does not provide sufficient information to know how to use it.  lol04:44
gnarfacefluffywolf: AIUI pulseaudio absorbed bluetooth audio functionality and they removed bare alsa bluetooth audio support some releases back. (that they apparently re-added it to daedalus is in fact news to me) - data and gamepad inputs should have always been possible through that time with separate packages, but driver support has been so spotty that gambling a pair of devices would work together has been a bad bet in04:44
gnarfacegeneral04:44
Xenguybluetooth, won't fix04:45
fluffywolfbluealsa: E: main.c:131: Couldn't acquire D-Bus name. Please check D-Bus configuration. Requested name: org.bluealsa04:45
gnarface... even if they used to work before kernel 3.1, as i found out the hard way04:45
brocashelmxenguy: "your use case don't exist, go away" ~ debian bluetooth team04:46
debdogfluffywolf: this https://wiki.debian.org/BluetoothUser and this https://wiki.debian.org/BluetoothUser/a2dp seem to do without bluez. they mention bluealsa04:46
fluffywolfah, has to be root...04:46
fluffywolfseems like it's doing things, but aplay -L still only shows the same devices.04:47
Xenguybrocashelm, When did Debian go so south ?04:48
XenguyOr maybe it's upstream04:48
XenguyStill a shrug04:48
fluffywolfthis is being way too difficult.  we won't have "linux on the desktop" if people can't make their earbuds work.  lol04:50
brocashelmbecause a new audio server is being (re)written every 5-10 years04:51
rrqI had bluealasa working on chimaera04:51
brocashelmoss, alsa, portaudio, jack, pulseaudio, gstreamer, pipewire...04:52
rrq.. together with bluez .. there was some tweaking needed to get the dbus connection working04:52
brocashelmsdl/sdl2, too04:52
fluffywolfthe bluealsa manpage references utilities which don't exist and I can't find a package for.04:52
onefangesound.04:52
rrqfluffywolf: you need bluez for hanlding the actual bluetooth networking04:53
gnarfacei think i last had it working in debian sarge04:53
gnarfaceor maybe squeeze04:54
gnarfaceone of the "s" ones04:54
gnarface(putting devuan releases in alphabetical order was a smart call)04:54
rrqfluffywolf: then you can pair the headset04:54
fluffywolfrrq:  I am paired with the headset.  the problem is sending audio to it.04:55
rrqthen the bluealsa process need to be started to be the a2p server that links alsa with bluetooth04:55
rrqthen also need to be configured to pass audio to bluealsa04:56
fluffywolfand I have bluealsa running with -p a2dp-source -c LDAC04:56
fluffywolfgnarface:  even smarter would be not putting "ae" in them.  :P04:57
rrqright. your .asoundrc set up to pass "default" to bluealsa?04:57
fluffywolfI haven't done anything to my .asoundrc at all.  I was expecting a card to appear when reloading alsa.04:58
rrqyes but program sends sound to "default" and you need a pcm of typ bluealsa04:59
fluffywolfa "bluealsa" device appeared without any of the normal controls you'd expect of an audio device, but if I try using it, I get:04:59
fluffywolfD: bluealsa-pcm.c:1309: Getting BlueALSA PCM: PLAYBACK 00:00:00:00:00:00 a2dp04:59
fluffywolfALSA lib bluealsa-pcm.c:1313:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA PCM: PCM not found04:59
rrqto guide it to... the blualsa pcm needs a "device" setting with macaddr and "profile" a2dp04:59
rrq5 lines:05:00
rrqpcm.bt_aeropex {05:00
rrqtype bluealsa05:00
rrqdevice 20:74:CF:C0:22:8105:00
rrqprofile a2dp05:00
rrq}05:00
rrqthat's my pcm for my bone-conducting earphones05:00
fluffywolfbluealsa-aplay -l shows no devices, despite bluealsa finding and acting like it's doing things with the device.05:01
rrqit needs the device macaddr05:02
onefangThat's the sort of thing I meant.  Bone-conducting doesn't work so well when it has an extra layer of fluffy wolf fur in the way.  B-)05:02
rrqbluealsa-aplay captures from a bluetooth mic05:04
rrqnot for playback to blueooth05:04
fluffywolfyes, but it has a -l option that lists things, and it finds nothing.05:04
fluffywolfbluealsa seems to think it's working, and only works with -i hci0, so it's finding one device...05:05
rrqbluealsa is a sound deamon for both playback and capture05:06
rrqbluealsa-aplay talks to bluealsa asking for microphones05:06
fluffywolfyes05:06
fluffywolfbluealsa-aplay -l lists both input and output devices05:07
rrqbluealsa may be tied to a single macaddr via /etc/default/bluez-alsa05:07
fluffywolf~$ bluealsa-aplay -l05:07
fluffywolf**** List of PLAYBACK Bluetooth Devices ****05:07
fluffywolf**** List of CAPTURE Bluetooth Devices ****05:07
rrqI have OPTIONS="-i 30:21:DC:50:9E:89"05:07
fluffywolfexcept it lists none, while every example I find online shows it listing things.05:07
rrq(that's my blueatooth Qudo speaker)05:09
fluffywolfok, and does bluealsa-aplay -l list it?05:09
rrq(it's a bit loud so I have that wrapped within a "softvol" pcm)05:10
rrqit's not connected at the moment... I'm afraid that speaker is packed away atm05:10
fluffywolfI'm not finding anything googling about bluealsa thinking it's doing things, but bluealsa-aplay not...05:11
rrqthe deal is still that alsa need a pcm set up for type bluealsa05:11
rrqforget bluealsa-aplay05:11
rrqbiab05:12
fluffywolfok..  progress.  if I pair with the device AFTER running bluealsa, it shows up in bluealsa-aplay, even though bluealsa does the exact same things.05:15
fluffywolfand my headphones make...  noises!05:15
fluffywolfthe noises are not, however, the audio I'm playing.05:15
fluffywolfit sounds like it's dropping every other buffer05:16
fluffywolfno, it's playing every buffer...  just with a 1/4s delay between each one.05:18
fluffywolfand the audio source (mpv) is counting time at roughly 1 second of file per 4 seconds of wall time05:19
fluffywolfok...  does bluealsa entire ignore the -c/--codec option?  I'm trying to use different ones to see if it makes a difference, but as far as I can tell the option does nothing.05:22
fluffywolfgrrrrrrrrrrrrrrrrrrrrr05:34
fluffywolf...  you know why LDAC doesn't work?05:35
onefangFur?05:35
fluffywolfbecause I got sent the wrong headphones!05:35
onefangOops!05:35
fluffywolfthere's two versions that look identical...  an old one and a new one.  old ones only support SBC.05:35
fluffywolfwhich version isn't even labeled on the unit anywhere.  the box is for the new version.05:36
fluffywolfthis explains why bluealsa is ignoring the codec option...  but doesn't explain why SBC is playing at 1/4 speed and skipping.05:37
fluffywolfso...  why am I getting what sounds like buffer underruns, and playing at 1/4 speed?05:41
XenguyYou should play chess instead  = )05:46
fluffywolfit's way too late at night, and I haven't played chess in months.05:46
XenguyAnother time perhaps05:47
fluffywolfnot finding much googling05:50
rrqmismatched sample rates?05:57
fluffywolfit seems to be intermittant...  now it's playing fine.  then before this it would play fine for a few seconds, then play 1/4 speed for a few seconds, then go back to fine...05:58
fluffywolfit's not a signal issue.05:58
fluffywolfbbl, bedtime for pissed off wolfies06:11
fluffywolfbluealsa: D: bluez.c:1247: Signal: org.freedesktop.DBus.Properties.PropertiesChanged(): org.bluez.MediaTransport1: Delay06:11
fluffywolfbluealsa is spamming these, may be related06:11
fluffywolfbbl06:12
cousin_luigiCan one start a service automatically with extra parameters?10:17
cousin_luigiI mean, dnsmasq has an "INSTANCE" parameter: can I pass it at startup somehow?10:17
cousin_luigiOr do I have to create two init files?10:17
onefangThis might be useful /etc/default/10:18
flakehello. running a dist-upgrade from 4 to 5. after apt upgrade on new repositories my computer got offline and ifup seems to not being able to pickup anything. any ideas.10:39
flakei was looking into this https://www.devuan.org/os/documentation/install-guides/chimaera/network-configuration10:40
flakebut maybe im doing something wrong10:40
gnarfaceflake: were you using network-manager or anything like that?10:46
gnarfacei think 5 is daedalus though, fyi10:47
gnarfaceyea, it's daedalus not chimaera10:47
gnarfaceif network fails after an update, the first thing you should usually check is if any graphical networking utilities you were using before got removed, or if you weren't using any, if any got added (in either case it can take down your network)10:49
gnarfaceif flake comes back, someone tell them that the non-free firmware required by many network devices got moved from "non-free" to "non-free-firmware"10:50
cousin_luigionefang: ?10:55
cousin_luigieach instance also sources different files from /etc/default, but that comes later.10:55
cousin_luigiI need to pass /etc/init.d/foo start bar10:56
rrqhmm "service dnsmasq start blaha" offers "blaha" as 2nd argument to the /etc/init.d/dnsmasq service script ... isn't that what you want?11:07
cousin_luigirrq: Yes. Can I do it on startup?11:11
rrqmmm no doesn't seem like there's a trivial way to do that11:13
rrqhacking the service script is probably the easiest option11:14
rrqlike changing ${2} to ${2-blaha} and make that an invocation default11:15
rrq... and thereby make that ...11:16
flakeim on tty1 but on 7 is my graphical interface11:19
flakebut doesnt loqd anymore11:19
flakejust a background11:19
flakeyes its daedalus. i am going frim chimaera, uwing this last 1.5 years11:20
flakeif i run nmcli i see my wlan connected but iam clearly offline. wonder if thats a remain on my vpn which i cant access now or smth to do with changes through the upgrade.11:26
flakemade it work. it was the hanging vpn12:29
flakehowever after reboot i dont see any vpn connections and wire is deaf as well. doni have to install non free software as well12:30
gnarfaceflake: note that they moved all the non-free drivers and firmware packages from "non-free" to "non-free-firmware" as of daedalus12:31
gnarfaceso if you didn't make that change to your sources.list, the upgrade may have removed your wifi firmware package without replacing it12:32
flakeactually made it apl work. thank you13:23
flakehappy user of devuan 5 now13:23
flakebtw will there be se gnome upgrades?13:24
flake*some13:24
cousin_luigirrq: Yeah, that's what I thought. It was worth asking though.14:23
Besnik_bHello! Clicking “Generate package download script” in Synaptic returns a window saying “Nothing to install/upgrade Please select the “Mark all Upgrades” button or some packages to install/upgrade” Is that the normal behaviour?16:16
Besnik_b(I was expecting some script or some message about some script…)16:17
gnarfacei don't use Synaptic, i could only guess that it probably means that if you're already up-to-date then there's no packages to download to put in a download script in the first place unless you mark something new to be installed16:18
Besnik_bgnarface, thanks I just wanted to create the script for my new installation of Devuan16:19
gnarfacebut i'm guessing at what this means too, because i've never used it16:19
Besnik_bIt works, the message is wrong16:19
Besnik_bIt does produce the script16:19
Besnik_bBut one have to choose all packages first16:20
gnarfaceah16:20
gnarfacelemme know if the script succeeds16:20
gnarfacei'm just curious16:20
Besnik_bYou might be right doubting as I don’t see any entry for importing such script in Synaptic…16:23
Besnik_bsuch a mees16:23
Besnik_bmess16:23
Besnik_bIs there another way to do that? Command libe maybe?16:30
Besnik_bI’ll install the same distro and the same programs I have in this one from where I’m writing (I booted it through SystemRescue)16:31
gnarfaceuh... check into refracta tools maybe, though i'm not sure if they can create something that's not a live iso16:32
gnarfacemy method is more sloppy16:32
gnarface(i just backup the output of dpkg --get-selections and debconf-get-selections to text files in /root/ and then use tar to archive the whole thing)16:38
gnarface^ there's no automatic recovery process for this though, because neither of those text files can be reliably fed back into anything unaltered)16:39
Besnik_bgrep " install " /var/log/dpkg.log and grep " install " /var/log/dpkg.log.1 will be enough for me, just to remember the programs I added to vanilla. I did not make any important change to Daedalus, I did not have time… :D16:41
gnarfacei mean, in theory you could use debconf-get-selections in a preseeding file, but in practice you usually can't get reproducible results from anything more than a very minimal install16:41
gnarfaceyou'd have to clean it up by hand or have carefully selected packages that have clean debconf output16:42
gnarfacethe important thing about my method is it should preserve all relevant data in a form where the install can be reconstituted by hand, albeit ignoring the forensic effort that might be required to do so16:44
gnarfacei thought there was a refracta tool for this though16:46
gnarfacejust not seeing anything in the repo with a description that doesn't claim to be explicitly for live isos16:47
Besnik_bdpkg --set-selections > installed-applications.txt gets me all packages added by me16:49
Besnik_bdpkg --set-selections < installed-applications.txt gets all packages added by me to my new system16:50
gnarfaceyea, like with debconf-get-selections, it might work with a fresh new system, but the problem comes when you have a older system and that list has more than just a clean list of installs and it chokes on it at input16:51
gnarfacemight work fine for fresh, new, minimal installs, but there are pitfalls past there, can't be relied on16:52
gnarfaceyou will find you might have to touch the file up by hand16:52
gnarfacelike removing entries for broken packages in partial install status, etc16:52
gnarfacedebconf strings are supposed to represent the package configuration in a way that can be fed back in as a selection cleanly but in practice they can't enforce it, so some packages don't represent their state in a way that can reproduce said state16:58
gnarfaceit's kinda a mess16:58
gnarface(or sometimes it's worse and they can represent the default state correctly but some configurations not)16:59
fsmithredshould be --get-selections on one of those, shouldn't there?17:01
gnarfacei assumed it was a typo17:01
fsmithredI did write a script for get/set selections long ago. I'll find a link. It'e probably still useful, but be careful.17:02
gnarfaceyea, should be "dpkg --get-selections > installed-applications.txt" and dpkg --set-selections < installed-applications.txt"17:02
gnarfaceer, should be "dpkg --get-selections > installed-applications.txt" and "dpkg --set-selections < installed-applications.txt" (forgot a quote)17:02
fsmithredhttps://github.com/fsmithred/scripts   get-selections.sh and set-selections.sh17:03
fsmithredBesnik_b, ^^^17:03
Besnik_bThank you, fsmithred!17:04
fsmithredbe careful. using those script is the only time I've gotten a full paragraph warning asking if I'm sure that I really want to do that.17:04
fsmithredBecause there's a place in there where you could wipe out the whole system.17:04
Besnik_bI’ try first with the Synaptic script, then with installed-applications.txt method17:05
fsmithredyou could just run the commands instead of the script itself17:05
fsmithredI prefer to make a live-iso of the system for reinstall, but if you want to use debian/devuan installer, that doesn't work.17:06
fsmithredrefractainstaller works, but has some limitations17:06
fsmithredbbl17:10
fluffywolfshould bluealsa have an init script?17:46
fluffywolf"The main component of BlueALSA is a program called bluealsa. By default, this program shall be run as a root during system startup." per their github, but there's no init script for it that I can see.17:49
fluffywolfI guess this is an issue where I'm insufficiently familiar with devuan.  The package appears to provide /lib/systemd/system/bluealsa.service.  Do these somehow get executed on devuan, or not?  Should the package also provide an /etc/init.d/bluealsa or such?  Is not doing so a bug?17:56
gnarfacefluffywolf: no, the systemd service files do not get used. they are vestigial. unless the thing i mentioned before about it expecting something else (like your session manager or something) to start it then it's a bug18:57
fluffywolffrom what I can tell, it's supposed to start on boot, but only has systemd stuff, no sysvinit stuff.18:57
fluffywolfand I don't know if it's a bug, since debian's policy pages now seem to say packages shouldn't bother with init scripts.  :(18:58
gnarfacelook in /usr/share/doc/bluealsa/ and see if there are old sysvinit examples18:58
gnarfacefailing that, if it's in a previous debian release maybe you can steal the init script from there18:59
fluffywolfonly changelog and copyright in there18:59
gnarfaceand if not, they're not that hard to write, usually18:59
gnarfaceand to be clear, no, debian won't consider this a bug, but i think devuan does18:59
gnarfacenot a bug worth forking the package over probably, but someone is keeping a package of orphaned sysvinit scripts around here somewhere19:00
fluffywolfdoes a script that goes in init.d and parses enough of a systemd unit to pretend to work exist?19:01
gnarfacefor this particular package, i could not say19:02
gnarfaceask fsmithred19:02
fluffywolfat least looking at bluealsa's file, "ExecStart=" seems to be the only thing in there relevant whatsoever.  heh.19:02
gnarfacewell all an init script really has to do is react to start and stop19:02
fluffywolfif I'm going to write my own init script, it's going to be one that looks for a .service file with the same name as the init script and tries to get relevant bits from it...19:04
gnarfacethat sounds... unnecessary and perverse, but have fun19:04
fluffywolfbut not today.  today is sunny.19:04
nietzapols about that, gettin nicks in20:11
fsmithredfluffywolf, look at /lib/init/init-d-script to make a generic init script. I thought there was one to convert a systemd unit file to init script, but I don't see it.20:38
fsmithredThat file is part of sysvinit-utils package20:38
fluffywolfhttps://fossies.org/linux/sysvinit/contrib/sysd2v.sh21:01
fsmithredfluffywolf, thanks. I bookmarked it.21:05
fluffywolfis included in 3.00-1+devuan1 source21:06
fluffywolfsysvinit, that is21:06
fsmithredbut it doesn't go into the package?21:06
fluffywolfnot sure, I have 2.something installed, and it's not in the source for it21:08
fsmithredit's not in my daedalus install21:09
fluffywolfyeah, not in sysvinit-core_3.00-1+devuan1_amd64.deb21:11
fluffywolfhaven't checked the other packages built from the same source21:12
fluffywolflooks like it doesn't end up in any packages21:13
fluffywolfgenerates a valid-looking init-d-script from the bluealsa.service...21:15
fsmithredcool21:15
fsmithredI think we'll be seeing more use of that script21:16
fluffywolfsince it's in a forked source package already, should we make sysvinit-utils or something contain it, so it gets installed?21:18
fluffywolfI need to rtfm on init-d-script more21:23
fsmithredLeePen would be the one to talk to about including that script.21:31
fsmithredmaybe file a wishlist bug report to devuan21:31
rrqthat "bluealsa.service" file is actually a declaration for an org.bluealsa.service file via the systemd facility to create such on the fly21:40
rrqmine is at http://paste.rrq.au/GfHsxFvcxE/org.bluealsa.service, to be placed at /usr/share/dbus-1/system-services/org.bluealsa.service21:42
rrqthere is alread a /etc/dbus-1/system.d/bluealsa.conf for its permissions21:43
fluffywolfI don't have the background to understand that.  never done anything with dbus.21:44
fluffywolfalso, 40421:44
rrqby that blualsa will be started on demand21:45
fluffywolfby...  dbus?21:45
rrqyes21:45
rrqhmm the 404 is boring.. must be my fault21:46
fluffywolfI had no idea dbus did things like that.21:46
fluffywolf...  why is anything with "bus" in the name involved with starting services?21:46
rrqshould be https not http21:47
fluffywolfthat's an unusual cause of a 404.21:48
rrqnot for that site :)21:48
fluffywolfhttps is "runtime error: invalid memory address or nil pointer dereference"21:48
fluffywolfeven more fun.21:48
fluffywolflol21:48
rrqput these 4 lines into /usr/share/dbus-1/system-services/org.bluealsa.service21:49
rrq[D-BUS Service]21:49
rrqName=org.bluealsa21:49
rrqUser=root21:49
rrqExec=/usr/bin/bluealsa -p a2dp-sink -p a2dp-source -S21:49
rrqchange to your program argument21:50
fluffywolfwill that start it before bluetoothctl pairs?  I found the order is very important.  if you pair first, then run bluealsa, it looks like it's working but doesn't.21:51
rrqmmm it tarts when a program requests the org.bluealsa service from dbus21:52
rrqI think the answer is "no"21:52
rustyaxe-.- my xfce-terminal recently stopped being able to display unicode21:52
fluffywolfthe script above generates an init file that starts it on boot, which is how the github page says it should be ran...21:53
fluffywolfwhy is it that the more I use anything from fd.o, the more I hate fd.o?21:56
rrqwell the systemd service thingy is actually on-the-fly dbus service confgiuration; dbus has been tied to systemd in that way ... but I agree that an init service is a good alternative21:57
rrqeven if I don't have one21:57
fluffywolfthat seems like a larger issue that devuan will need to address21:59
fluffywolfi.e. this isn't going to be the only package with this problem21:59
rustyaxefluffywolf: I feel you on there21:59
rustyaxefd.o i swear exists to make linux desktop as bad as windows21:59
brocashelmindeed22:00
rrqagree. and several dbus services has been change to use that way for their startup definitions22:00
rrq(have been changed)22:00
fluffywolfso the current state of devuan is all those packages, except ones that have been forked, don't work, without non-obvious manual configuration?22:01
rrqwould be right I think22:02
rustyaxeSpeaking of22:03
fluffywolfin this case, making bluetooth headphones/earbuds work is a pretty common end-user desktop experience thing, and we shouldn't have it broken.  heh.22:03
rustyaxeYesterday or day before i had to manually fix eudev initscript22:03
rustyaxeit couldnt find sed so i had to add the /usr/bin/ path in single user mode to get it to run and get back into X ;o22:04
fluffywolfI think bluez-alsa-utils definitely counts as bugged, but we'd need to fork it to fix it...22:04
fluffywolfor solve what will likely be an increasing problem of packages wanting to be started by dbus but not working on devuan.22:05
fluffywolfin addition to the no-init-script problem...22:06
rustyaxeLinux sound is a nightmare worse now than the OSS/early alsa split days i swear22:07
fluffywolfalsa still works fine22:07
rustyaxeI deal with a lot of non-gui programs that need to deal with pipewire without an X session, that's its own dread.22:07
fluffywolfI haven't played with pipewire yet.22:08
rustyaxeWhere usable, yes. Unfortunately to do a bit more advanced things than alsa can do as i hook radios to PBXes and other weird shit ;)22:08
rustyaxeThat gets even more dreadful trying to throw an audio processing chain in.. For now i have to just start up a VNC display that sits detached , so pipewire runs, etc22:09
fluffywolfrrq:  with your dbus thingy, it fails the first time and works the second time, but both are after pairing anyway and will not actually work based on what I saw.22:09
fluffywolfrrq:  http://paste.debian.net/1303376/  it seems to get started *after* it's needed, so only works the second time.22:09
fluffywolfand...  how do you stop it or interact with it?  (other than kill, of course)22:10
rrqyes it's on the crap end of the quality scale22:11
fluffywolfI think starting it with an init script is the better option anyway.  lol.  does it suck like this on systemd systems too?22:11
rrqI ended up looking into dbus ... and there I had quite a time with small-headedness22:12
rrq(like binary padding before the data unit)22:12
fluffywolfhow do you stop or otherwise interact with things started by dbus?22:13
rrq /usr/bin/kill22:13
fluffywolfi.e. now that it's started an org.bluealsa service, what if I want to stop it?  heh22:13
fluffywolfyeah, I've been killall bluealsa'ing it, but that can't be the right method.  :P22:14
rrqas root22:14
rrqit also has a timeout, so that'd be the /user/rest/mojito app22:14
fluffywolfgoogling only finds systemd things22:15
fluffywolfwith systemctl22:15
rustyaxein systemdos, the kernel only exists to boot the system, then it takes over and replaces most of the userland with one massive pile of suck :P22:16
rrqafact the dbus protocol only has "start" and not "stop" so it would have to be an internal service function22:16
rrq(and "start" is convoluted of course)22:17
fluffywolfgoogling says systemctl does it.  no idea how it does it.  also can change when it starts, prevent it from starting, etc.22:17
fluffywolfsounds like dbus and systemd are very tightly related.22:17
rrqyes22:19
fluffywolfso devuan has dbus, but no tool to manage services in place of systemctl?22:20
rrqthe systemd kiddies have hooks into almost everything (elogind, eudev, dbus, ...) and patching around it while preserving useful functionality is becoming impossible22:21
rrqI can't see a sane reason for doing any of what they do, so I assume there's money and commercial interests involved22:22
fluffywolfthis is getting into too much of a project than I have time for right now...  I don't mean just today, but in general.  sounds like a lot of coding is going to be needed to make a more-general solution instead of just making my headphones work for me.22:24
won43im confused... i see talk about not being able to install/run Mullvad VPN on Devuan because it requires systemd, however it installed/runs just fine for me... why is this?22:47
won43topics such as this https://github.com/mullvad/mullvadvpn-app/issues/489422:49
fluffywolfI'm not familiar with that program, but devuan is continually working on improving compatability, and it could be whatever you saw has been fixed.22:49
brocashelmit's not a debian package, so not forked/blacklisted, which means it's a risk you're willing to take22:51
brocashelmwhy not use openvpn as your client (whether in command line or with a graphical networking tool like connman) with the mullvad vpn ovpn files?22:52
won43im just curious why it is working on my system when it should not be...22:52
won43i do have the systemctl-replacement installed..22:52
won43if that might have to do with it22:53
fluffywolfthat might definitely have to do with it, and be one of the improvements I mentioned.  lol22:53
won43mullvad, according to them, does not support non-systemd systems22:53
won43ok22:53
won43weird22:54
fluffywolfoh, is that the docker-only one?  I may be confused.22:54
won43it's the one that devuan installs by default (i think)22:55
won43i dont remember installing it. it's definitely in the devuan repos tho22:56
won43https://i.imgur.com/ItUvgeX.png22:57
won43oh well. not like im complaining. it works. just odd22:57
fluffywolfit's not odd.  things are supposed to work.  lol.22:58
won43like i said, according to mullvad, systemd is required.23:00
brocashelmyeah, the daemonless systemctl that devuan forked exists solely to make such packages "work"23:00
brocashelmif i recall correctly, i had problems getting radeon-profile to install without that faux systemctl23:01
won43i see23:01
fluffywolfwon43:  it seems that rather than systemd being required, only systemctl is required.23:01
fluffywolfthat is, the program doesn't use any systemd features, just wants systemd to start it, with systemctl.23:01
won43if that's the case, i wonder why they (mullvad) doesnt offer that as a simple solution.23:02
won43yes23:02
won43ok23:02
brocashelmsadly, can't say the same about avoiding certain parts of systemd that are needed for a full desktop experience: elogind and eudev come to mind23:02
won43im happy :)23:03
brocashelmthe dummy-logind exists, but it would require a bit of a workaround to get things like polkit/pkexec "working"23:03
brocashelmconsolekit2 might work23:03
plasma41from a brief glance, it looks like they'd need to generalize their debian package to use the 'service' command rather than the 'systemctl' command in order to work on Devuan without the 'systemctl-replacement' workaround package installed23:10
won43interesting23:12
won43yes, it installs fine, but it hangs on a post-install script. however it installs fine, you just need to start the service manually.23:12

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