libera/#devuan/ Wednesday, 2023-08-02

jkfwhfhow to configure what power button (the actual button, not on keyboard) does?02:25
jkfwhfe.g. so it does nothing02:26
gnarfaceon a PC with a ATX power supply? you just unplug it from the motherboard02:27
gnarfaceof course then turning it back on becomes a complication...02:27
gnarfaceusually a decent BIOS/EFI will have some behavioral variations for it but "disabled" usually isn't one of them02:29
gnarfacei suppose you might be able to get it to still power up by keyboard in some of those cases, so maybe unplugging it isn't a showstopper02:30
fsmithred_tape a bottle cap over the power button02:32
rwpjkfwhf, Power events in Linux are handled through the ACPI system.03:13
rwpEveryone will want acpi-support-base and acpid installed but if you remove those then the power button generally stops working.03:13
rwpI suggest keeping those installed and then looking at /etc/acpi/powerbtn-acpi-support.sh for how things work and adjusting things there.03:14
rwpBut you could remove the package as a brute force approach.03:14
jkfwhfgnarface I mean, the linux hooks when device driver detect button press03:49
jkfwhfonly long-power-button-press causes firmware to actually shut down power.   short press makes it send some ACPI event or something03:50
jkfwhfshort press is on OS-level03:50
jkfwhfon Debian it is https://wiki.debian.org/ConfigurePowerButton  /etc/acpi/events/powerbtn-acpi-support03:51
jkfwhfbut on Devuan?  I guess other init system may play a role, maybe other dev (udev???) and overall things can change, so I thought better ask here.03:51
jkfwhfrwp right, so no change from Debian?03:52
rwpjkfwhf, No change from Debian.  And you are right that the long push hold 10 seconds power drop is motherboard firmware.  Would need to unplug the wire to avoid that.04:05
rwpDevuan is an overlay of about 100 some packages only to avoid systemd dependencies and acpi is not one of the forked ones.04:06
rwpFor everything else Devuan is Debian verbatim.04:06
rwpAFAIK the init system is not related to the initial triggering of power (and laptop lid) events.  But on Debian systemd does take over all of those events after the event has been triggered.04:08
gnarfacejkfwhf: no, depends on motherboard firmware settings04:15
gnarfacethere's some opportunity for software hooks in there but for them to work the motherboard has to allow it04:16
gnarfaceand actually safely making it do nothing from userspace software, i can't be sure that's possible with all harware04:17
gnarfacehardware*04:17
gnarfaceif the bios is set to something like "pwrbttn < 4s: instant off" it's gonna shut off04:18
gnarfaceymmv04:18
rwpUnplug the wire.04:21
gnarfacei could imagine with newer laptops that don't have that bios setting and only have a soft power button to begin with, things may be different04:22
gnarfacebut on your typical PC where the power button connects by two wires to the motherboard, the motherboard firmware is what gets first pick at what happens04:23
gnarfaceand their options to hand off different button-length presses to userspace vary04:23
gnarfacetrue though, acpi is what handles that in userspace, so whatever options there are are in those scripts04:24
gnarface(systemd absorbed that functionality into itself afaik)04:25
gnarfaceyou can probably stop it from going to sleep or hibernating on button press, but you probably cannot completely disable it04:25
gnarfaceanyway, i don't mean to discourage you from looking into acpi, but i thought you just wanted to be sure it was completely inert04:27
gnarfaceand note that if you do end up just unplugging it for those reasons, you'll probably want to unplug the reset button too (if furnished)04:29
gnarfacerwp: wait, systemd didn't replace acpid? i thought they did05:13
gnarfaceor did they just not remove it yet05:14
masonIt's still packaged.05:21
masonacpid and acpica-tools05:21
gnarfacedo they actually use it or does systemd supersede it in their default installs?05:22
masonur, acpica-tools might be something quite different05:23
masongnarface: Pretty sure systemd-logind has oozed over that domain as well.05:23
masonbut they work if you use sysvinit etc.05:23
jkfwhffile /etc/acpi/events/powerbtn-acpi-support doesnt exist06:08
jkfwhfthere area other files in that dir, for lid and AC power06:10
jkfwhfnevermind all ok. just install acpid06:15
jkfwhfstill happens... something else handles that acpi event??06:22
jkfwhfputting exit 1 on top of that script doesnt help...06:35
gnarfacejkfwhf: i seem to recall there being some other source of scripts... not sure what package they're in but they might get pulled in if you install the "task-laptop" meta-package06:52
gnarfacehave you looked at the bios settings at all for this machine?06:53
gnarfacethere may or may not be something relevant in there06:53
gnarfacesome setting about power button handling switched from something like "instant-off" to "soft-off" may enable handoff to the script06:54
gnarfaceno guarantees they'll have furnished such an option but worth looking anyway06:54
rrqjkfwhf: if you have elogin installed, then it will want to handle "power key' and power off the system.07:02
rrqedit /etc/elogind/logind.conf and make HandlePowerKey=ignore07:02
jkfwhf*linux moment*07:26
jkfwhf52 ways to do things, mostly conflicting and with no good central roadmap nor list what does what.  at least it's not the sound subsystem07:26
jkfwhfgnarface it is ACPI event, the linux handles it.  probably the elong thing07:27
jkfwhfelogind was installed. but changing to =ignore did NOT help07:33
rrqafter restarted logind ?07:33
jkfwhfrestarted entire machine07:34
gnarfaceoh, i keep forgetting elogind can handle it too. i'm not using that here.07:34
jkfwhfsadly who-ever handles it, doesn't seem to write to system log to admit it's him07:34
jkfwhfa common sin among developers07:35
gnarfacecould still happening in the bios then07:35
jkfwhfgnarface no... how07:35
jkfwhfgnarface linux is reacting. it's not computer cutting power.07:35
gnarfaceoh, you see a shutdown process happen?07:35
jkfwhfyea07:36
gnarfaceyou sure absolutely nothing in the logs? tried tailing them all at once?07:36
jkfwhfhow to tell org.bluez to not spam logs?07:36
rrqmaye some "power management" thingy with the desktop environment? like "upower" ?07:36
gnarfacebluez is related to bluetooth, but org.* stuff might be coming from dbus  i think07:37
gnarfaceor ... gvfsd or whatever that's called, if you installed it07:37
jkfwhfit exits with code 1, like 100 times07:37
rrqwith "dpkg -l | grep -i power" you'd get a package list07:38
gnarfaceare you using bluetooth?07:38
jkfwhfhardware for it is not present, no07:38
gnarfacemaybe if you just disable /etc/init.d/bluetooth temporarily that'll be enough to stop the log spam while you check for acpi events07:39
gnarfacei'm sure there's a better way to do it07:39
gnarfacealthough, now that i'm thinking of it, maybe you're missing firmware and that's why it's exiting `107:39
gnarfacecheck "dmesg |grep -i firmware" for errors07:39
gnarfaceit's pretty common for bluetooth devices to need non-free firmware07:40
jkfwhfshutdown: shutting down for system halt (but will not tell you why, lol)07:40
jkfwhfinit: Switching to runlevel: 007:41
jkfwhfnothing more07:43
jkfwhfI am in text console while pressing power. no DM is running at all07:43
gnarfaceyou remembered to uncomment that HandlePowerKey line, right?07:44
jkfwhfyes07:45
jkfwhf=ignore07:45
gnarfacemake sure that line has no "#" at the front of it07:45
gnarfaceand the line you put in the acpi script, is it still there?07:46
jkfwhfthe exit 1, yes07:47
gnarfacemaybe add an echo07:47
jkfwhfhours-days of debugging can save you minutes of adding printf debug explaining who does what and why ;)07:47
gnarfacei'm sure there's a better way to deal with this but i am not an expert on shutting down computers. i usually just leave mine on.07:48
gnarfacewhich release were you on? chimaera? daedalus?07:49
jkfwhfchimeaera07:50
rrqhmm there seems to be a udev rules file talking power button; mayb trye disarming that file by making an empty same-named file in /etc/udev/rules.d/07:54
rrqless /lib/udev/rules.d/70-power-switch.rules07:54
jkfwhfadded "logger" to the ACPI script.  it IS called when I press button.  yes, still, despite exit 1 right below it,   shutdown[2310]: shutting down for system halt  happens in same second07:55
jkfwhfshould user just edit /lib/udev/ files?   I guess a work around for now but07:57
gnarfaceno you should put your versions in /etc/udev/rules.d07:57
gnarfaceshould override the ones named the same i think...07:58
gnarfacetest that to be sure07:58
jkfwhfk07:58
jkfwhfreload somehow?07:58
rrqrestarting udev or eudev should be ok07:58
jkfwhfcreated empty 70-power.......rules there in /etc/....07:58
jkfwhfrestarted.   power button still did same thing - linux shutdown07:59
gnarfacewhy would the acpid script continue after exit 1? that's not a bash vs dash difference is it?07:59
jkfwhfim pretty sure it exits, but something else runs other script or just a program sees event and does some syscall?08:00
jkfwhfwill add more debug to confirm exit worked08:00
gnarfacejkfwhf: do you have a file at /etc/acpi/events/powerbtn-acpi-support?08:01
gnarfaceor anything else in /etc/acpi/events/ for that matter?08:01
rrqI missed some backlog: the "exit 1" statememnt is in /etc/acpi/powerbtn-acpi-support.sh i guess08:03
jkfwhfall else is as default08:03
rrqdid you try stoping acipd, udevd and elogind-daemon  then check the power button ... if it still reacts, then it's something additional08:05
jkfwhffixxeed08:05
* jkfwhf wonders what he did last08:05
rrqgreat08:06
jkfwhfI removed also  brtltty and task-console-productivity to stop log spam... but why power btn disabling works now08:06
jkfwhfpressing button sure calls the /etc/acpi/powerbtn....sh, and the exit 1 there DOES work08:06
gnarfacemaybe it's the type of thing where you had to disable all the possible handlers at once08:10
jkfwhfok it was the empty /etc/udev/rules.d/70-power-switch.rules    though this change takes effect after reboot of computer, not after service restart eudev08:11
jkfwhf(and probably as well needs the change to /etc/acpi/powerbtn.... yes)08:12
gnarfaceyea, udev rules are weirdly sticky... i've found that when i'm working on them i had to figure out a double udevadm call to actually fully flush them without rebooting the whole machine08:13
gnarfacei forget exactly but it's not always enough to just restart udev with the init script, but you can pull it off with udevadm, i think called twice with different parameters08:13
gnarfaceor maybe just one udevadm call then restarting udev, not sure08:13
jkfwhfisnt udev just creating devices?  who handles that, if not just the /etc/acpi/powerbtn08:14
gnarfacei don't know, but i know it's not just limited to creating devices, it can also be running commands or assigning scripts to events related to them08:16
gnarfacecheck that original 70-power-switch.rules for clues maybe. i don't have that one here.08:16
gnarfacefor all i know there could be a line in there hardcoded to call shutdown directly08:19
* jkfwhf enjoys pressing the power button while nothing happens at all08:19
jkfwhfanother victory of humans over machines08:20
gnarfaceyou should make it play sounds08:20
jkfwhfthat leads to the other problems mentioned above - soundsystems - hot seating... how to even play sound in console 1 while I am in console 2? not to mention from a script run on no seat by root08:20
gnarfacewell pulseaudio and pipewire and the like can significantly complicate this, but they both rely on alsa and any user in the "audio" group should be able to access alsa08:21
jkfwhfand not in group audio?  only white his seat is active?08:22
gnarfacei'm not even sure seats have anything to do with it where they're relevant, which afaik was after chimaera08:23
gnarfacepulseaudio and pipewire might react to seatd in some way on later releases, i don't know08:23
gnarfacethe last release i have relevant pulseaudio experience with though is beowulf, and there it's just about whoever is logged in currently08:24
gnarfacein the default configuration i'd seen, pulseaudio was started by kde as the logged-in user08:24
gnarfaceaudio group may have been necessary still, not sure08:24
gnarfacenote that this is something systemd will do differently, as systemd just grants full admin access to all devices to the logged in user08:26
gnarfaceit basically just ignores permissions in /dev/ if you're locally logged in08:26
gnarfacejust start by putting yourself in the audio group and assume that only root can play audio otherwise08:27
gnarfacepulseaudio might obviate that while you're logged in but i'm not sure08:28
gnarface(the benefit of this of course is that you can play sounds while not logged in too, if you wish)08:39
gnarface(for example on a timer, or while logged in remotely)08:39
brocashelmif i want to use daedalus, how would i be able to pin certain packages from ceres (because they aren't available on daedalus)? for example, packages like corectrl, which are only found on ceres and (eventually) excalibur09:47
clemens3I just read: https://weblog.antranigv.am/posts/2023/08/freebsd-jail-devuan-linux-openrc/11:07
clemens3very col11:07
clemens3col=cool11:08
bb|hcbbrocashelm: I can share what I would do - get the package source and build a backported .deb for daedalus... Like apt -t ceres source package; apt build-dep package; etc, etc...13:33
EHeMThe backports archive has version 6.1.27-1~bpo11+1 of linux-source-6.1, but unstable has 6.1.38-1; given the current situation I get the suspicion backports is lagging a bit on security updates.20:52
EHeMHmm, perhaps not.20:55
EHeMHrmm, looks like unstable though is lagging a bit since Debian had 6.1.38-2, 3 days ago.20:58
EHeM(this is also a security update so a bit urgent)21:08
Guest58quick Q22:07
debdogfaster A22:08
Guest58running Chimaera, is there a package for python 3.8 that I missing? needed for dependancies for a manual package22:08
Guest58trying to upgrade OBS to something compiled in the last two years, as teh default package is VERY out of date22:10
debdogcan you provide a detailed error message? maybe a file it's looking for or such22:11
Guest58apt install ./obs-studio_29.1.3-0obsproject1.focal_amd64.deb22:11
Guest58Reading package lists... Done22:11
Guest58Building dependency tree... Done22:11
Guest58Reading state information... Done22:11
Guest58Note, selecting 'obs-studio' instead of './obs-studio_29.1.3-0obsproject1.focal_amd64.deb'22:11
Guest58Some packages could not be installed. This may mean that you have22:11
Guest58requested an impossible situation or if you are using the unstable22:11
Guest58distribution that some required packages have not yet been created22:11
Guest58or been moved out of Incoming.22:11
Guest58The following information may help to resolve the situation:22:11
Guest58The following packages have unmet dependencies:22:11
Guest58 obs-studio : Depends: libpython3.8 (>= 3.8.2) but it is not installable22:12
Guest58              Depends: libx264-155 but it is not installable22:12
Guest58E: Unable to correct problems, you have held broken packages.22:12
Guest58python3 --version22:13
Guest58Python 3.9.222:13
debdogI do not actually use python so this is just a guess: it explicitly looks for "libpython3.8" and not 3.922:16
Guest58all this cased by wanting an OBS version that is somewhat recent, as the version in teh repo is more than 2 years old.22:16
Guest58(26.1.2, released jan 8th, 2021)22:17
Guest58Yes, ists dep'd on 3.822:18
debdogmayhap you're able to download that package somewhere and install it manually. (dpkg prolly will warn you if it conflicts with the 3.9 version)22:19
Guest58yeah. I may have to try that. of course the repo search is useless. it tells me the package exists, but not where...22:21
Guest58maybe I'll get luck an its in one of the additional repos22:22
jonadabPython is a real pain about version compatibility, more than nearly any other language.22:24
debdoghttps://packages.debian.org/search?keywords=libpython3.8&searchon=names&suite=all&section=all that is not encouraging. maybe the OBS folks know how to satisfy that dependency?22:24
jonadabCode written for one verison won't necessarily work with a later version.22:24
Guest58python is a pain, period.22:24
jonadabWhich, all languages occasionally have instances of that.22:24
jonadabBut Python has more than its fair share of it.22:25
Guest58I've never liked python, probably never will. whitespace is NOT a deliminator.22:25
jonadabI'm not a huge fan of it either.22:25
debdogbutbutbut... what about Monty?22:26
jonadabThough it's better than Node.js22:26
jonadabdebdog: Monty is full.22:26
jonadabWhy do you ask?22:26
* Guest58 bangs head against the wall.22:27
debdogwell.... Monty... Python...22:28
jonadabThat's a deep subject.22:28
Guest58MInistry os Silly Codes.22:28
Guest58I'll try reaching out to the OBS devs and ask WTF...22:32
debdogsearch results suggest there may have been a libpython3.8 package for debian, like https://packages.debian.org/de/sid/libpython3.8-dev22:33
Guest58BUT, at the same time... why teh feck does the chimaera repo have a package that was deprecated almost 3 years ago....22:33
debdogmayhap it never went stable22:33
debdogwell, chimaera is quite old by now22:33
debdogyou may update to daedalus22:34
Guest58didn't realize that was a thing22:35
Guest58latest release on the website is chimaera22:35
jonadabMan, I'm still trying to track down and update all the systems that still have beowulf.22:36
debdogwell, it's not quite release yet (but that, AFAIK, is because of the installer and not the repos)22:36
jonadabWell, by "trying" I mean I will get around to it eventually.22:36
debdog*released22:36
jonadabAh, so is it probably going to release relatively soon then?  Interesting.22:37
* Guest58 shrugs. its worth a shot. apt-get distro-upgrade. ;)22:37
jonadabI will keep a weather eye peeled for that.22:37
debdogGuest58: just out of curiousity, what is OBS?22:38
debdogahh, obs-studio22:38
Guest58Open Broadcast Studio22:39
jonadabDesktop recording and streaming software.22:39
Guest58redundant package name is stupid22:39
debdogGuest58: daedalus ships with version obs-studio (29.0.2+dfsg-122:39
jonadabGuest58: It's not redundant, it's recursive.22:40
Guest58yeah, that will fix most of my problem22:40
jonadabRecursive RAS-Syndrom acronyms are often helpful for clarity.22:41
bb|hcbGuest58: daedalus is ready and released, just install .ISO files and website are not ready. If you upgrade, you should be file22:42
Guest58time to edit sources then. ;-)22:42
debdogI was just looking at OBS' build instructions and they are not straight forward... https://github.com/obsproject/obs-studio/wiki/build-instructions-for-linux22:43
jonadabCan't be any more complicated than building OpenSRF.22:44
Guest58no, their build instructions are far worse than 'non-straightforward'22:44
Guest58probably qualify as total-shite22:44
debdoghehe22:44
debdogwell, not that funny, actually22:44
Guest58nope22:44
jonadabOh, eww, cmake.22:45
Guest58but its true, so we laugh so we dont cry.22:45
jonadab*Still* not as bad as OpenSRF/OpenILS.22:45
Guest58kicking off the upgrade now. finders crossed.22:47
Guest58*fingers22:48
Guest58hopefully it doesn't fuck up all of my pulseaudio fixes...22:48
jonadabGood luck with that.  pulseaudio is ridiculously brittle.22:49
Guest58audio on linux is rediculously fucking bad.22:50
bb|hcb... and reason #1 is pulse :(22:50
jonadabIt didn't matter so much that avahi was brittle, because absolutely nothing depended on it working, so when it broke, nobody noticed.22:50
jonadabThere were issues even before pulse.  Mostly related to some software wanting to use esound and other software not wanting to use esound.22:51
Guest58maybe I'll get lucky and this will fix my sudoers issue as well.22:51
jonadabBut yes, pulse is bad.22:51
jonadabThe stated issues that it was supposed to solve, were real issues, and the features it promised, would be useful if they worked.22:52
Guest58linux audio has been flakey since kernel 0.5, when audio started working...22:52
jonadabIf it had had something like esound from the very early days, it would've been better.  Because pretty much everything could've used that.22:53
jonadabBut because it was introduced too late, a lot of software didn't use it.22:53
jonadabAnd that created problems.22:53
jonadabALSA for its part is good, but does not provide everything that's wanted.22:54
Guest58yeah, and there was a lot of drama around ALSA for a while.22:55
jonadabOh, I don't remember that; perhaps I was oblivious to it.22:57
Guest58was around 200222:58
Guest58really early years22:58
jonadabI mean, I started using Debian in 1998.22:58
jonadabBack in the dselect era.  Wasn't *that* a pile of garbage.22:59
Guest58there were some real flame wars about linux audio for a while22:59
Guest58I remember how happy I was when the first slak release happened and we could stop hex-editing bootloaders onto the drives.23:00
debdogmaybe that's because of re-engineering because manufacturers became more secretive about their audio chip's datasheets23:01
Guest58might get dropped with the upgrade23:02
Guest58but yeah, linux audio has never been great, which sucks23:04
Guest58because there's so many good OSS audio tools23:05
brocashelmbb|hcb: ok, i'll try that later, thanks23:07
brocashelm(regarding the backports for daedalus)23:07
EHeMGuest58: You're overrating how good Linux audio isn't.23:09
jonadabEh, it's not really that much worse than BSD.23:15
Guest5811yeah, it dropped me23:22
Guest5811oh well23:22
Guest5811at least my OBS upgraded ;)23:23

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