libera/#devuan/ Thursday, 2023-06-01

gnarfacegot everything working right now rhys?00:02
gnarfaceer, sorry rhy^00:02
gnarfacei'm curious about your accounts of performance, i've heard some previous accounts that the nvidia cards in these devices are often not faster than the integrated intel gpu for many tasks since intel fixed their opengl support00:03
gnarfacewhen the hardware was originally released the intel drivers were seriously sandbagged crap on linux00:03
gnarfacebut later that changed significantly when intel dumped a bunch of money into mesa support, trying to keep up with AMD00:04
gnarface(nvidia's drivers don't use mesa, they have their own proprietary thing, so they can't benefit from those mesa improvements)00:04
hiddenerwhat is thinkpad console audio control in alsamixer? it seems it causes the warning at boot: failed to import hw:29 use case configuration07:19
hiddenerthere are 2 cards: 0 and 29, 29 is thinkpad console audio control and can't control it at all, 0 works fine07:24
gnarfacehiddener: do you have all these packages? alsa-tools alsa-topology-conf alsa-ucm-conf alsa-utils07:28
hiddenergnarface: i've just installed alsa-tools, the missing one07:32
darwinwhen I try boot install using a radeon rx 6900 xt and select 'install', I always get a screen just full of disorganized lines like it wasn't initialized right07:34
darwininstaller07:34
darwinregardless of monitor (4K, 1600x1200, 1920x1080)07:35
DashiePiedoes Devuan have support for a 6900 XT?07:36
darwinLinux kernels have had that for years07:37
darwinit works fine with three *BSD UNIXes, Slackware, several other GNU/Linux, Windows, etc.07:37
DashiePiewhat is Chimaera's kernel version, and what kernel version is required for a 6900 XT?07:37
brocashelmif debian has support for it, devuan also07:37
hiddenergnarface: i think alsactl --no-ucm restore would fix it, but how do I make the thinkpad console audio control work? i've selected it in alsamixer and I see 0007:38
brocashelm5.10 for main chimaera kernel07:38
brocashelmbackports is 6.107:38
DashiePieah, okay, 6900 XT needs 5.907:39
hiddenergnarface: doesn't go up or down with arrows or audio buttons07:39
DashiePieI just remembered when I ordered a 5900 XT, Beowulf didn't have the required kernel version07:39
DashiePieI still have not gotten my parts07:39
darwinyou mean 5700?07:39
DashiePieyeah07:39
DashiePieI forgot, since it's been over 2 1/2 years07:40
brocashelmit is possible to run a newer kernel on beowulf if you have the right deb files to install with dpkg -i, but this is not supported and you can break your system if not careful07:40
gnarfacehiddener: try alsamixer -c 1, alsamixer -c 2, etc07:40
gnarfacehiddener: or try hitting F607:40
gnarfacehiddener: you may need to stop pulseaudio first07:40
hiddenergnarface: i have no pulseaudio07:41
darwinis there any other option I should try in installer to find out what the heck is going on?07:42
gnarfacedarwin: daedalus test installers are available07:43
gnarfacethere's also live isos07:43
gnarfacechimaera has a 5.10 kernel in the repo, but perhaps the installer itself is something older07:44
gnarfacejust to be sure, which installer did you actually try?07:44
darwinchimaera07:45
gnarfaceno i mean show me the exact download link07:45
gnarfaceso i can sanity check it07:45
darwini got it from devuan.org07:45
gnarfacehow long ago?07:46
darwina few days ago07:46
gnarfacegot time to try the daedalus one?07:46
gnarfaceor one of the live isos either release?07:46
darwini'll get a live ISO07:51
gnarfacehiddener: the output of "aplay -l" will show you the current default, alsa defaults to whichever is #007:57
gnarfaceyou may need to set a different default in your alsa config, sometimes #0 is something useless07:58
gnarface(like the HDMI jack)07:58
hiddenergnarface: yes, i can default it with /etc/asound.conf like i do with the usb speakers08:07
hiddenerbut what exactly does it do, the thinkpad console audio control? do I need to connect a device in order to control it?08:09
darwinseems to be no link to the live ISO on devuan.org frontpage... where is it?11:17
darwini found it but didn't want to use it.  I wanted the full 4GB+ desktop installer11:20
gnarfacedarwin: you're looking for this: https://files.devuan.org/12:03
gnarfacespecifically, probably this: https://files.devuan.org/devuan_chimaera/desktop-live/12:03
gnarfaceor maybe this: https://files.devuan.org/devuan_daedalus/desktop-live/12:04
gnarfacethis is just for testing the drivers, i'm not telling you to also use the live disk as the installer12:04
gnarfaceactual installer images are up on files.devuan.org too though12:04
gnarfaceif hiddener comes back someone tell them i thought i knew what they were talking about but now realize i did not12:05
darwinthanks12:47
darwini will try it tomorrow hopefully12:48
temp64is there a way to change init on a running system? at the moment i'm using this openrc-on-sysvinit thing, i'd like to change it to runit without nuking the whole installation17:21
rwptemp64, You should be able to install runit and then reboot.18:03
rwpI don't which of the three runit packages is needed to be installed though.18:03
fsmithredtemp64, install runit-init and optionally install runit-services18:06
fsmithredthe latter has more run scripts.18:07
fsmithredrunit will use sysvinit scripts if there are no run scripts for the service.18:07
rwpI am looking at openrc and runit-init and can see where runit-init has a conflicts with systemd-sysv, sysvinit-core but not with openrc.18:09
fsmithredso one could have both installed and boot one or the other?18:10
rwpHmm...  I might guess that migrating that direction might need a manual remove of openrc on the way.  "apt-get install runit-init openrc-" or something?  I don't know.18:10
rwpOr another alternative route from openrc to runit might be openrc to sysvinit and then sysvinit to runit.  Since those paths should be well tested.18:11
fsmithredoh, when installing openrc, do you still get told to make links yourself?18:12
fsmithredand it provided the command to run.18:13
rwpGood question.  I don't know.  I haven't played with openrc.18:13
fsmithredafk18:14
rwptemp64, You should be able to migrate but if there is a difficulty remember that the netinst iso is a good rescue boot tool which can be used to boot and make a repair if needed.  Always good to make sure you have one of those available to boot first, just in case it is needed.18:16
rwpAlso I get a lot of use out of the refracta-nox live-boot system.18:17
temp64fsmithred, rwp: thanks, suddenly reinstalling with runit doesn't seem like that bad of an idea :P18:19
temp64i have a script that mounts my $HOME as tmpfs, reading from a disk backup on boot and saving it back on shutdown. i'd have to figure out how to make it work after switching18:21
fsmithredwhy would it be different?18:24
fsmithredhey, rwp - last week we talked about rsync -X for extended attributes. I use rsync -a and the man page say that -a includes -X.18:26
fsmithredgotta go again. bbl.18:30
temp64fsmithred, i thought i had to make sure my $HOME is set up before the display manager gets to it but it probably shouldn't touch my user account unless i actually try to log in18:38
temp64btw, i use rsync -aO <src> <dest> --delete to back up and rsync -aO <src> <dest> to reload tmpfs18:39
rwpfsmithred, My man page for rsync 3.2.7-1 says "--archive, -a   archive mode is -rlptgoD (no -A,-X,-U,-N,-H)" with a *no -X* there.18:50
rwp(It's strange they list what isn't there.  Since they list what is there.  As they add new options they will need to keep adding to the "no" list.  Every versions gets longer there.)18:52
n4dirspeaking of rsync: i took the example from arch wiki, and it has an option: --exclude{"/dev/*", ...}19:18
n4dirwhat is the purpose of the quotes around the exludes?19:18
n4dirin other words: i did echo that command into an executable file, it somehow removed the quotes19:19
n4dirnow it seems rsync would copy all data again, instead only what has changed19:19
n4diri wonder if that relates to the quotes, or if i screwed it by other means19:20
rwpThe "*" character is a shell "meta-character" which means the shell (bash, zsh, other) will read it and try to expand it as a file glob.19:30
rwpThe * character is called a file glob character because it matches a glob of file characters from the directory.19:30
rwpPutting quotes around shell meta-characters keeps the shell from interpreting those characters.19:30
rwpIf one uses echo /dev/* without quotes it will expand the * to match all of the files in /dev but echo "/dev/*" will echo out the literal /dev/* characters without file glob expansion.19:32
n4dirinterpreting the * as a literal * ?19:32
rwpRight.  Interpreting * as a literal * and not expanding it.19:32
n4dirthanks. For sure not the source of the problem re-rsync'ing the whole shebang. God only knows why that happens19:32
rwpNote that --exclude{"foo"} is not a syntax I recognize for rsync.  But --exclude="/dev/*" would be.19:33
n4diri copied it from the arch wiki though. Let me check again, perhaps i made a typo when posting it here19:34
rwpHowever I would not suggest --exclude="/dev/*" but perhaps instead --exclude=/dev or better use -x to avoid crossing mount points.19:34
rwpURL?  So I can look at that page too?19:34
n4dirrsync -aAXHv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /media/disk/19:34
n4dirthat is the command, let me quickly look for the URL19:34
rwpOkay.  That's a better syntax that way.  That is using bash curly brace expansion.19:35
n4dirhttps://wiki.archlinux.org/title/Rsync#Full_system_backup19:35
rwpThe bash shell (and perhaps some others) will see the {a,b,c} part and make that into brace expansion.19:35
n4dirnot sure if i remember correct, i think i usually just did "rsync -auv ..." and that worked too. No clue what -AXH do19:35
rwpTry this: echo /dev/{one,two,three}19:35
n4diryeah, that trick i do remember19:36
rwpAnd see that it will basically be the same as: echo $(for f in one two three; do echo /dev/$f; done)19:36
rwpSo that --exclude={a,b,c} part is a bash expansion to avoid saying --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* with the --exclude= part repeated for each argument.  Instead the bash curly brace expansion does it.19:37
n4dirah, right. thanks19:38
rwpAlso if the file glob characters like * and ? do not match a file then the characters are passed through verbatim.19:38
n4dirso nothing was excluded, but, say, /dev/* literally19:38
rwpSo...  echo ./doesnotexist* will echo out the '*' character because there is no match.19:39
n4dirstill wouldn't explain why all data gets rsynced again19:39
rwpBut if I touch ./doesnotexist then it will match and won't.  And if I touch ./doesnotexistfoofoofoo then it will echo out both of those.19:39
rwpCreating what I would call a data dependent failure.  So ALWAYS quote shell meta-characters if they are used in a way that needs to be passed through verbatim.19:40
n4diri usually do, at least i think so, here it got screwed by runing echo " full-rsync-command " >> backup_os19:40
rwpShell under-quoting is one of the most common bugs seen.  It's a persistent problem.  So everyone is overly sensitive to it.19:40
n4dirwhen i saw all data gets rsynced again, i checked what i did echo into said file, backup_os, then saw the missing quotes19:41
rwpSo why would rsync copy things twice?  Run it with the -n option to see what it would do without actually doing anything.  I do that a very lot when testing.19:41
n4dirfun fact: i ran the very same command for the other external hard-disk just before that, and there it worked as expected19:42
n4dironce this rsync command finished, i will run it again, at least as a dry run19:42
rwpMeanwhile...  I don't like that suggested rsync command with all of those excludes.  I would suggest instead using -x.19:42
* rwp has phone call...19:42
n4dirbye-bye and thanks19:42
n4dirrwp: for later, running it again it works. I screwed it somehow, it seems, but am a step forward in what is not the problem. thanks again19:44
hacksenwerkHi. How can I disable the suspend mode on lid close? I want only the screen to turn off when I close the lid. I tried installing mate power manager to check if it changes some neccessary system files, that stay changed after removing mate power manager again, but tha is not the case... I also treid laptop-mode-tools but they work neither. When I search the web I get flooded with systemdeath tutorials19:58
hacksenwerkfor that workcase... -.-19:59
hacksenwerkOh and I tried xset -dpms, that works neither19:59
hacksenwerkBut I woluld like something that works under x _and_ on tty. But if not possible, at least it should work when running the xserver.20:00
fluffywolfprobably elogind being worse-than-worthless, as usual20:00
hacksenwerkfluffywolf: was that for me? is elogind trigger that behaviour?20:02
fluffywolfyep.20:02
hacksenwerkI can remove it anyway as it seems, cause I donÄt need anything that it offers as far as I understand.20:02
fluffywolfstop elogind and see if it stops suspending.  if so, either change elogind's config, or, preferably, kill it with fire.20:03
rwpSuspend on lid is most likely handled by your Desktop Environment.  Check those settings first.  Then elogind (logind replacment) does it.  Then lastly folks like me with ACPI.20:03
hacksenwerkrwp: I have no desktop enviroment. :)20:03
hacksenwerkI use a bare xserver with evilwm as window manager and keylaunch as program starter and that's it.20:03
hacksenwerkAnd xloadimager to set a background (fancy stuff though xD)20:04
hacksenwerk*xloadimage20:04
rwpIn that case look for the ACPI configuration in /etc/acpi/lid.sh to see if you are getting suspended that way.20:05
hacksenwerkI try removing elogind, it takes 25 other packages with it and it seems that this is stuff I do not need any longer (gvfs, polkit etc.)20:05
hacksenwerkrwp: I don't have that file.20:05
fluffywolf/etc/init.d/elogind stop, see if it still suspends20:05
hacksenwerkI don't even have /etc/acpi20:06
rwpDEs are heavy and almost all of them will use (e)logind for control-group functionality.20:06
hacksenwerkfluffywolf: rigth good idea before removing :)20:06
rwpI would also look in /var/log/syslog very closely to see if it is logging what is triggering the suspend action.20:06
hacksenwerkrwp: yeah I used xfce before, so there's is still stuff there after the removal...20:06
rwpLooking here I have /etc/elogind/logind.conf and the default listed is HandleLidSwitch=suspend here.  So override that action.20:07
fluffywolfimho, devuan's default .conf should disable it doing anything except the bare minimum required to make things that depend on it happy, and certainly not having it doing power management unexpectedly.20:08
hacksenwerkYuppie /etc/init.d/elogind stop does what I want! :D20:08
fluffywolffigured.  now either edit the config to disable suspending, or, as I said, kill it with extreme prejudice.  I prefer the latter.20:09
hacksenwerkfluffywolf: turning off the screen would be ok for default imho20:09
fluffywolfdoing nothing should be the default for a program that claims to manage logins.  power management is not managing logins.20:10
hacksenwerkI will change that config rwp posted and start the service again and then I will remove that packages20:10
hacksenwerkfluffywolf: Oh! yeah right, I totally agreee!20:10
fluffywolfit's breaking the "do one thing and do it right" rule.20:10
rwpThe problem is that people switching from windoze will have been trained already that closing the lid allows them to put it in their heat insulated bag and so if it does not suspend by default they will have an overheated machine accidentally.20:10
hacksenwerkOne programm one task20:10
hacksenwerkrwp: lol20:10
fluffywolfif there's a need for a program to be installed by default that does power management, then split it into a separate program that only does power management.20:11
hacksenwerkI can already hear the windows fanboys screaming: "Linux burned my laptop down!11!"20:11
scorpion2185[m]good rule20:11
rwpAgreed.  But elogind is a compromise replacement for systemd-logind which as we know violates that whole keep it simple philosophy.20:11
hacksenwerkrwp: :( bad that we have to do such compromise...20:12
fluffywolfI'm not against having a power management daemon installed by default nearly as much as I am against it being hidden in what seems like an entirely unrelated program that causes people to be unable to find how to configure it.  this is like the tenth time I've helped someone kill elogind to fix a power management issue.20:13
rwpI mostly run a simple window manager and so I don't need (e)logind on my main systems.  I have yet to truly understand the DE stand that they *require* the functionality that systemd-logind and D-Bus provides.20:14
scorpion2185[m]there is that that other powe manag. daemon acpi(?)20:14
rwpPerhaps you are thinking of upowerd?20:14
fluffywolfI run a simple window manager too, but if you try using any program starting with a "g" or a "k", or I think even an "x" these days, it becomes a dependency, even if you use no other part of those environments.20:15
scorpion2185[m]acpid20:15
hacksenwerkOk I enabled HandleLidSwitchExternalPower=ignore in /etc/elogind/logind.conf and started the service again. Now it only power off the screen.20:15
fluffywolfI ended up using equivs to make a fake package to keep apt happy.20:15
hacksenwerkBut I remove that elogind thing now20:15
rwpacpid is a framework daemon for handling acpi events.  It's not evil by itself.20:15
hacksenwerkfluffywolf: rwp: Thank you very much! :)20:16
fluffywolfso far not a single thing has broken, which means it's excessive dependencies.20:16
rwpLot's of hardware things generate acpi events.  All of the hardware buttons and switches on the physical system.20:16
fluffywolfyes, and some program with "power" or "acpi" in the name should handle them, not some login manager that got dragged in as a dependency.20:17
rwpAlso virtual machines guests are signaled by the host using acpi events as if it were an actual power button pressed to shutdown, suspend, reboot.  VMs use ACPI events too.20:17
hacksenwerkOuch! After removing elogind and the 25 packges it took with it, I ran deborphan to check and I know that deborphan does stupid things sometimes, but it also show that package libelogind-compat and when I want to remove that one it takes a lot of pakacges with it that I want to keep, like cmus, ffmpeg, mpv, the whole xserver even and much more20:19
fluffywolfagain...  I think we should handle them.  I don't think elogind should be handling them.20:19
rwpIf you have a VM that does not respond to host controls to reboot and needs to be forced off then most likely acpid and acpi-support-base is not installed there.  For example.  It's a good thing to have installed.20:19
hacksenwerkThat seems like some weird dependency issue...20:20
rwpI don't know about deborphan but for apt if those were installed as a dependency and that upstream package is gone then they will still be marked as automatically installed and will be candidates for autoremove.20:21
rwpMeaning that you will need to mark them as manually installed for them to remain behind.20:21
rwpEither "apt-get install foo" or "apt-mark manual foo".  See the apt-mark man page.20:21
hacksenwerkrwp: Ok thank you. I will check that tomorrow, I'm very tired now. ^^20:22
rwpI will usually "apt-get autoremove --purge" (--purge because etckeeper rocks!) and then REVIEW THE LIST, SAY NO, and then mark the things I want to keep and repeat until it does not want to remove something I want to keep.20:22
rwpbbiab myself20:23
hacksenwerkYeah I use always apt-get autoremove --purge to remove packages20:23
hacksenwerkCan I give apt-mark a list?20:25
hacksenwerkYes it does. ^^20:27
hacksenwerkHmm.. but it still want to remove some packages I want to keep... Anyway I'll come back tomorrow. Good night! ^^20:28

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