libera/#devuan/ Monday, 2024-12-02

blebanyone know the proper way to run setupcon?16:50
blebit's a script that sets up your console based on /etc/default/keyboard16:52
blebbut it's not run automatically16:52
fsmithredbleb, dpkg-reconfigure console-setup16:56
fsmithreddpkg-reconfigure keyboard-configuration16:56
blebnice interfaces but I still need to run setupcon after each boot in order for the settings in /etc/default/keyboard to take effect17:09
blebI can put setupcon in ~/.profile but then caps lock is still active when I'm typing my username/password17:19
freemsomething is probably reconfiguring console in your back, normally dpkg-reconfigure saves it's stuff17:27
rwpbleb, Since a standard system does not do this then it means that it MUST be something that you have done modifying it in order to have it do this to you.17:31
blebstandard system does not do what?17:32
blebfwiw dpkg-reconfigure is aware of modifications to /etc/default/keyboard, but it doesn't provide an interface to set them17:33
blebit asked if I wanted to retain the settings in /etc/default/keyboard.  I tested and if I say no it reverts the settings to default, but it doesn't provide an interface to setting e.g. XKBOPTIONS="ctrl:nocaps" in /etc/default/keyboard17:34
blebso if dpkg-reconfigure saves its stuff, it's fair to say that XKBOPTIONS is not "its stuff"17:35
bleband it requires the running of setupcon to take effect17:36
blebor would you suggest an alternative way to map caps lock to control in the console?17:36
freema stnadard system does not resets the console settings at boot17:39
rwpA standard system does not set CAPSLOCK active at boot time.  Does not.17:39
rwpIf you are trying to map control onto capslock then I personally use xmodmap to do this.17:39
freemah, that too17:39
blebby active I mean that if I hit the caps lock key it enables caps lock17:40
n4dirhow do you run setupcon?17:40
n4dirjust run, or have to get active while doing so?17:40
blebfrom the shell, as root17:40
blebrwp: xmodmap only works in the x session17:41
blebI want it to work in the console17:41
rwpOn the console you must use dumpkeys and loadkeys.17:42
rwpI have this line in my /etc/rc.local file: 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 -q17:43
rwpI put this info print on the line before it: echo "Setting local customized keymap for CapsLock, Control and Escape."17:43
blebok17:44
n4diri too thought about putting it in rc.local. After searching what the heck setupcon might be, the web claims you'd have to run update-initramfs -u; to make it stick. I sure wouldn't know17:44
bleblink?17:45
n4dirhttps://superuser.com/questions/646425/permanently-change-default-language-and-keyboard-settings-what-am-i-missing17:46
n4diri mean, a web result is a web result, might well be wrong. After finding that info, i thought i might also share it (all is searched was what setupcon is, as said)17:48
rwpIf you want keyboard customization at the GRUB screen before the OS loads then one would need to build it into the initramfs.17:48
blebI guess the earlier the better17:49
n4diri always assumed if /etc/default/keyboard is edited, it just works. I do remember setting to german in TTY always was a bit of a clusterfeck, but dpkg-reconfigure, as mentioned, was involved17:49
rwpI only rarely need to interact significantly with GRUB and if I do then I am fixing some other significant boot problem to boot.  It's a hassle to ensure initramfs customization.  So I don't do it.  I leave that uncustomized.17:50
n4dirif either  the link or rc.local works, to me it wouldn't matter too much what the right way is17:50
blebwell update-initramfs -u didn't work for me anyway18:05
blebso rc.local it is18:05

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