libera/#devuan/ Friday, 2023-04-21

uncloudedksx4system: I use ZFS on Devuan 3, but only for backing things up, so I wouldn't notice any performance issues since backup runs at 3 am in the morning!07:32
Bill_PI'd like to be able to hibernate a Devuan PC from a user program. This is for a dedicated  single-user system.14:37
Bill_PIs there a system call that can do that?14:47
sixwheeledbeastDebian wiki covers hibernate and it's caveats https://wiki.debian.org/Hibernation14:54
Bill_PHmm, most of the files they refer to don't exist on my Devuan system15:31
Bill_P   /etc/hibernate, /etc/pm/*15:32
debdogI bet the key is logind D-Bus API Documentation[2]15:35
debdogwell15:36
gnarfacei'm not sure the debian wiki is a good place to point people for that anymore16:22
gnarfacehe should have been directed to install acpid16:22
gnarfaceor make sure it's there then check the docs for the old pm scripts16:22
enycWhats' going on towards Devuan based on debian bookworm12 ?   Big dependency nightmare?  Much better prepared now?  etc...17:43
gnarfaceseems fine right now17:46
PolaritonCondens<enyc> "Whats' going on towards Devuan..." <- I've moved 2 systems from Chimaera to Daedalus and they were the most uneventful upgrades I've had (in about 20 years of Linux).  Daedalus itself has been as stable as expected.17:56
rwpgnarface, I fear Bill_P needed to install pm-utils (and probably also acpid) and not having pm-utils was why those commands were missing.18:05
gnarfaceyea but the debian wiki doesn't mention that anymore18:06
rwpAnd agreed that wiki page seems completely not useful and does not match anything I would write to help someone with hibernation and suspend.18:06
gnarfacewell, the note about initrd config is still relevant18:06
gnarfacebut the rest is not helpful18:07
rwp"initrd"?  I do not find that string in the wiki page anywhere.  Are you talking about the RESUME partition?  Yes.  That's still important.18:07
rwpI think wiki pages like that should preserve the historical information in an appendix area.  So the Lenny and Jessie sections I would preserve but moved to a historical section.18:09
gnarfaceinitramfs18:09
rwpAlso...  "apt-get install --reinstall initramfs-tools" seems like a harsh way to trigger "update-initramfs -u" too.  Oh well.18:13
nemofsmithred_: did you say dædalus is safe to use right now?18:23
nemohmmm well PolaritonCondens certainly thinks so18:25
nemoso. guess I'll try it18:25
nemorandom person on IRC said it was fine! ☺18:25
n4dirmost of the times answering the "safe" question are relative to what exactly the user expects, needs, such. If someone wants to be sure is system works 24/7 i'd always go for stable. Though with a solid backup all you need is an hour or two hours of time to go back to "working system"18:27
nemon4dir: this is for a work dev VM, was getting tired of things like mercurial and nodejs and java being out of date by default. can be worked around, but I do like using package manager18:27
nemoAFAIK they keep 3 months of daily snapshots18:28
nsklausi'm search which package holds the keymap for configuring tty ? on other distro it's in kbd package, devuan has it installed but when i list the content of kbd package i do not see the usual keymaps18:29
nsklaus*i'm searching (typo)18:29
n4dirnemo: i think i got it. All i can see (regarding debian itself) is that in those 15+ years i hardly experienced or heard  about crashes regarding "testing" (or sid). They do/can happen, but most of the time they don't seem too. Anyway, just 2 cents. Good luck18:30
n4dirall i can say, not see. dang. I seem to be really tired.18:30
nsklausi've also looked for console-setup and console-setup-linux, but not of them holds keymaps usualy found at /usr/share/kbd/keymaps/  on other distros18:30
nsklaus*none of them... sorry for the bad typing skills ;)18:31
n4dirnsklaus: perhaps console-data.18:31
nsklausn4dir: there's no such package installed18:32
enycPolaritonCondens: hrr that then raises the question if Daedalus expected to be relased along with bookworm.  I NOTE the RC2 bookworm installer expected soon week or 218:33
nemonsklaus: might want to install it then ☺18:33
enycwhen that is out might be a good time to try to make a derivative daedalus test image18:33
nsklausnemo: my problem is not that it isn't installed and i'm lacking correct keymap,18:33
nemowhat distro does /usr/share/kbd/keymaps ?   my gentoo and debian both seem to do /usr/share/keymaps18:34
nsklausi already have the system working fine, and i would like to copy over the keymap being used on devuan, and transplant it on another distro18:34
nsklausnemo: arch linux uses /usr/share/kbd/18:34
nsklausfedora uses /usr/lib/kdb/18:34
nsklausi think debian use /usr/share/kbd too18:35
nemooh?18:35
nsklausnot certain about that last one, that is why i said "i think"18:35
nsklausbut the two previous ones (fedora and arch) i'm certain18:35
nsklausalso on my devuan there's no /usr/share/keymaps18:37
nsklausso where are keymaps files located in devuan ?18:37
DPAconsole-data contains /usr/share/keymaps/18:38
nemohttps://superuser.com/questions/469538/where-are-the-keymaps-in-debian-using-loadkeys-to-change-keymap18:38
nemohttps://packages.debian.org/bullseye/console-data18:38
nsklausDPA: there must be something else, because i don't have that package installed, and my system uses the correct keymap (that cannot be a coincidence, since my laptop uses a very exotic keymap)18:39
nsklausi have setup that devuan laptop quite a while ago18:39
nsklausat the time i must have done something to set it up correctly,18:39
nsklausi don't remember what was it18:39
nemonsklaus: does it work on the console, or just in your gui?18:40
nsklausand now i'd like to pick and copy the keymap file used on that devuan laptop, and copy it over some other laptop with another distro in use (archà18:40
nsklaus)18:40
nsklausnemo: all this keymap talk is about tty, no graphical env at all, plain term at login18:41
nsklausthat is what i'm interested at copying the keymap for tty of devuan and copy it over to some other distro for testing18:41
nemook. just checking... trying to imagine where else a keymap might be.18:42
nemoi.e. some gnome magic18:42
nemohm. I wonder if there's a ~/.local override18:42
nemolike ~/.local/share/keymaps or something18:42
nsklauscannot be, i hate gnome, the install system is minimal, and i haven't started any X session or nothing like that, it's plain tty session18:42
nsklaus~/.local/ could be an idea i look18:43
nsklausno, nothing keymap related there either18:43
fsmithred_the package you reconfigure to change the keyboard is called keyboard-configuration18:45
nemonsklaus: locate turns up a keymap under /etc/console-setup/  I don't know what it does18:45
nemoperhaps it's part of the installer?18:46
fsmithred_Depends: liblocale-gettext-perl18:46
nsklausi have some keyboard related stuff in /etc/console-setup, but it's not the real keymap files, they are not in gz format, they are plain text .inc (keymap includes)18:47
nemokay. I have one called cached_UTF-8_del.kmap.gz18:48
nsklausi wonder how i did configure my keymap when i install that devuan, that must have been 1 year ago or something like that18:48
fsmithred_console-data provides those .gz files18:49
nemofsmithred_: ahhh. heh18:49
nsklausnemo: yes i have that too, but it look like something dynamicaly setup18:49
nsklausi was after the plain key.map.gz file18:49
fsmithred_locate and apt-file don't find key.map.gz18:50
nsklausfsmithred_: how is it possible that my devuan install have the correct keymap, while not having that package console-data installed at all ?18:50
fsmithred_maybe in the gettext libs?18:50
fsmithred_that's a guess18:51
nsklaus"key.map.gz" was a an example, that keymap file i'm after , on other distro it's named : "fr-mac.map.gz" or "mac-fr-ext.map.gz"18:51
nsklausi have an azerty keyboard on a macbook pro machine, so yes it's a bit exotic18:52
n4dirlocate map.gz doesn't give output here either (minus the example "key")18:52
nsklausno chance devuan would have picked that up on its own during install and automaticaly set it up correctly.18:52
fsmithred_console-data: /usr/share/keymaps/i386/azerty/mac-usb-fr.kmap.gz18:53
nsklausfind /usr/ -iname "*map.gz*"  return only two results, unrelated javascript stuff18:54
nsklausfsmithred_: yes but how to explain it is correctly setup, and console-data package is not installed ?18:54
fsmithred_I don't know.18:55
nemoI find it way easier to just type french using the digraph system than learn new mappings, so I guess I've pretty much no customising familiariy apart from changing the odd key bind18:55
n4dirmight be you copied it around on your own?18:55
nsklauswhen devuan boots, where does it pickup the correct keymap to load, if console-data is not even installed ?18:55
nsklausn4dir: that might be a possibility18:55
nsklauswhere in devuan is specified the keymap to use in tty ?  (there's no /etc/vconsole.conf and no /etc/locale.conf18:56
nsklaus)18:56
n4dirfrom what i understand you need that map.gz file to copy it on another system? Couldn't you then simply install console-data and use the provided file that way?18:57
nsklausmy devuan machine, just booted, keymap is correct, and i have no console-data package.18:57
fsmithred_there's /etc/default/keyboard for the layout and /etc/default/console-setup for the font18:58
nsklausi want this specific keymap that allowed my machine to boot with correct keymap18:58
fsmithred_what's it say in /etc/default/keyboard?18:59
nsklausfsmithred_: yes, that file :  /etc/default/keyboard, i see this is where i have configured my keyboard for tty18:59
nsklausthank you for helping me about that point19:00
nsklausin that file i have set it like that:19:00
fsmithred_yw. Both of those files come from console-setup19:00
nemooh... shoot. kinda assumed you knew that was there ☺19:00
nsklausxkblayout="fr"  xkbvariant="mac"19:00
fsmithred_ok, so that probably got set during install19:01
fsmithred_language, keyboard and time zone get set early in the install.19:01
nemothe other thing that confuses me is I thought xkb was an X11 module...  so how does it work on the console?19:01
nsklausso, these values, do manage to pull a keymap somewhere on the system, and have proper keyboard support. the question is: where is located that magical keymap ? :)19:01
nemonsklaus: well, the config file says to read man keyboard which is indeed very informative ☺19:02
nemobut... I still thought this was all "x"19:02
nemowhich was why I was wondering about your gui.19:02
nemonot console19:02
fsmithred_locate kmap.gz19:02
fsmithred_^^^ maybe run that19:02
nsklausi may be wrong in assuming that this was where i did setup tty keymap, maybe that file is just for X, in that case it's not what i'm searching for19:02
nemothe FILES section of man page has some paths19:02
fsmithred_man keyboard is from console-setup19:03
nsklausfsmithred_: i don't have locate, and earlier i did "find /usr/ -iname "*map.gz*"  which should provide what locate would have19:03
fsmithred_yeah, unless it got put someplace else.19:03
nsklausi can do / instead of /usr/19:04
nsklauslet me see19:04
fsmithred_got anything in /etc/console/ or /etc/console-setup?19:05
nsklausyes, on the whole system i only have 3 match for "find / -iname "*map.gz*"19:05
nsklaustwo are unrelated javascript stuff, and one is that /etc/console-setup/cached_UTF-8_del.kmap.gz19:06
nsklausmaybe there was some option at install to pick up a keymap, and that resulted in this unique file19:07
nsklausand the system uses it, and somehow it all works without having even console-data installed ... would that make sense ?19:08
fsmithred_yes, I think so19:08
n4dirlittle joke: nothing makes any sense regarding the keyboard to me. And in debian(based) it seems even more confusing than on other distros.19:09
nsklausfsmithred_: ok, thank you for telling19:11
nsklausi'll try working with that file19:11
fsmithred_do you need to change it? Is there some reason you can't install console-data?19:13
nsklausfsmithred_: it's not that i cannot install console-data, it's that i wanted that specific running keymap19:18
nsklausnot install a package and hope i'll find the correct keymap in it, but grab the current running one, since it works well19:18
nsklausfsmithred_: from what i understand, kbd have a problem with macbook keyboards, they are all broken mac-fr, mac-de, mac-us ..19:19
nsklaussome distro worked around that, and some other did not19:19
nsklausarch did not19:20
nsklausfedora, suse, devuan, have the correct tty keymap for example19:20
nsklausand arch do not19:20
nsklausso i'm trying to get a working copy, and keep it around, eventualy paste it over when testing distro and that they happen to have a broken one19:21
rwpnsklaus, I also have /etc/console/boottime.kmap.gz too.  Regardless you should be able to save the active keymap with "dumpkeys --full-table".20:09
rwpI do this hack where I run that through sed and modify the existing keymap for my preferences and then pipe the result to loadkeys -q.20:10
rwpEasier for me to modify the existing one on various systems than to keep a unique static one for each system.  Keyboards being different on different systems.20:11
nsklausthank you for these infos rwp, i didn't how dumpkeys, that's interesting20:25
rwpnsklaus, I set a custom keymap for me moving capslock, control, and escape with this: dumpkeys --full-table | sed -n '/^keycode  *29/p;/^keycode  *58/p' | sed '/^keycode  *29/s/Control/Escape/g;/^keycode  *58/s/CtrlL_Lock/Control/g' | loadkeys -q21:38
rwpThat changes the current keymap, whatever that happens to be on that system at boot, on the fly with sed, and then loads it.21:39
rwpI do this in /etc/rc.local (or equiv /etc/boot.d/*) as a local customization.21:40

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