| bleb | anyone know the proper way to run setupcon? | 16:50 |
|---|---|---|
| bleb | it's a script that sets up your console based on /etc/default/keyboard | 16:52 |
| bleb | but it's not run automatically | 16:52 |
| fsmithred | bleb, dpkg-reconfigure console-setup | 16:56 |
| fsmithred | dpkg-reconfigure keyboard-configuration | 16:56 |
| bleb | nice interfaces but I still need to run setupcon after each boot in order for the settings in /etc/default/keyboard to take effect | 17:09 |
| bleb | I can put setupcon in ~/.profile but then caps lock is still active when I'm typing my username/password | 17:19 |
| freem | something is probably reconfiguring console in your back, normally dpkg-reconfigure saves it's stuff | 17:27 |
| rwp | bleb, 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 |
| bleb | standard system does not do what? | 17:32 |
| bleb | fwiw dpkg-reconfigure is aware of modifications to /etc/default/keyboard, but it doesn't provide an interface to set them | 17:33 |
| bleb | it 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/keyboard | 17:34 |
| bleb | so if dpkg-reconfigure saves its stuff, it's fair to say that XKBOPTIONS is not "its stuff" | 17:35 |
| bleb | and it requires the running of setupcon to take effect | 17:36 |
| bleb | or would you suggest an alternative way to map caps lock to control in the console? | 17:36 |
| freem | a stnadard system does not resets the console settings at boot | 17:39 |
| rwp | A standard system does not set CAPSLOCK active at boot time. Does not. | 17:39 |
| rwp | If you are trying to map control onto capslock then I personally use xmodmap to do this. | 17:39 |
| freem | ah, that too | 17:39 |
| bleb | by active I mean that if I hit the caps lock key it enables caps lock | 17:40 |
| n4dir | how do you run setupcon? | 17:40 |
| n4dir | just run, or have to get active while doing so? | 17:40 |
| bleb | from the shell, as root | 17:40 |
| bleb | rwp: xmodmap only works in the x session | 17:41 |
| bleb | I want it to work in the console | 17:41 |
| rwp | On the console you must use dumpkeys and loadkeys. | 17:42 |
| rwp | I 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 -q | 17:43 |
| rwp | I put this info print on the line before it: echo "Setting local customized keymap for CapsLock, Control and Escape." | 17:43 |
| bleb | ok | 17:44 |
| n4dir | i 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 know | 17:44 |
| bleb | link? | 17:45 |
| n4dir | https://superuser.com/questions/646425/permanently-change-default-language-and-keyboard-settings-what-am-i-missing | 17:46 |
| n4dir | i 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 |
| rwp | If you want keyboard customization at the GRUB screen before the OS loads then one would need to build it into the initramfs. | 17:48 |
| bleb | I guess the earlier the better | 17:49 |
| n4dir | i 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 involved | 17:49 |
| rwp | I 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 |
| n4dir | if either the link or rc.local works, to me it wouldn't matter too much what the right way is | 17:50 |
| bleb | well update-initramfs -u didn't work for me anyway | 18:05 |
| bleb | so rc.local it is | 18:05 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!