<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5706&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5706</link>
		<description><![CDATA[The most recent posts in [SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries.]]></description>
		<lastBuildDate>Tue, 16 May 2023 07:22:30 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42274#p42274</link>
			<description><![CDATA[<p>Wow. Sometimes doing silly things pays off. Like wanting to type LWinKey-&quot;a&quot; and get an 𝐚.<br />Now, mathbold lowercase &quot;a&quot; (&quot;𝐚&quot;) is code point U+1D41A. It seems loadkeys (from kbd-utils project) does not like that. The Devuan kbd is version 2.3.0-3.</p><p>lhp@xanadu:~/sandbox/kbd$ apt list --installed|grep kbd<br />kbd/stable,now 2.3.0-3 amd64 [installed]</p><p>I checked out kbd from <a href="https://github.com/legionus/kbd" rel="nofollow">https://github.com/legionus/kbd</a> and compiled it.<br />The Devuan loadkeys gives this message:<br />lhp@xanadu:~/sandbox/kbd$ sudo loadkeys -v -C /dev/tty5 ~/cached_UTF-8_del.kmap<br />Loading /home/lhp/cached_UTF-8_del.kmap<br />too many (144) entries on one line</p><p>The presumably most recent version I built from source gives:<br />lhp@xanadu:~/sandbox/kbd$ sudo src/loadkeys -v -C /dev/tty5 ~/cached_UTF-8_del.kmap<br />Loading /home/lhp/cached_UTF-8_del.kmap<br />unicode keysym out of range: U+1d42a<br />syntax error, unexpected ERROR, expecting NUMBER or LITERAL or UNUMBER</p><p>So it was my silly tinkering, after all, that messed things up. (I&#039;d argue that it should be possible to type any Unicode code point, but that&#039;s not for me to decide. I guess I&#039;ll write a suggestion for the kbd project though.)</p>]]></description>
			<author><![CDATA[dummy@example.com (lhp)]]></author>
			<pubDate>Tue, 16 May 2023 07:22:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42274#p42274</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42272#p42272</link>
			<description><![CDATA[<p>Ah, it&#039;s so 𝐧𝐢𝐜𝐞 to have my mathbold Unicode letters back. Turned out there was a typo in my symbols file. Mea culpa.</p><p>However, the system has regenerated the /etc/console-setup/cached_* files, and the new cached_UTF-8_del.kmap.gz still causes loadkeys to hiccup with &quot;too many (144) entries on one line&quot;, and switching from X to a&#160; console with Ctrl-alt-F5 I can see that the console is not using Danish keyboard layout. I believe it used to. Just checked on other machine, and sure enough it does have the Danish keyboard set for the Ctrl-Alt-F5 console on tty5.</p><p>So now I would like to look at how the cached_UTF-8_del.kmap.gz file is generated, and why TF it gets to be malformed. (It might still be related to my tinkering, of course.) If anyone can shed some more light on this, I&#039;d be thankful, meanwhile I guess I&#039;ll cook a little Perl script to find the offending line with too many entries.</p>]]></description>
			<author><![CDATA[dummy@example.com (lhp)]]></author>
			<pubDate>Tue, 16 May 2023 05:23:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42272#p42272</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42266#p42266</link>
			<description><![CDATA[<p>Oh, a little general information, so people don&#039;t need to ask :&quot;what version of...?&quot;<br />uname -a ; cat /etc/os-release /etc/debian_version <br />Linux xanadu 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux<br />PRETTY_NAME=&quot;Devuan GNU/Linux 4 (chimaera)&quot;<br />NAME=&quot;Devuan GNU/Linux&quot;<br />VERSION_ID=&quot;4&quot;<br />VERSION=&quot;4 (chimaera)&quot;<br />VERSION_CODENAME=&quot;chimaera&quot;<br />ID=devuan<br />ID_LIKE=debian<br />HOME_URL=&quot;https://www.devuan.org/&quot;<br />SUPPORT_URL=&quot;https://devuan.org/os/community&quot;<br />BUG_REPORT_URL=&quot;https://bugs.devuan.org/&quot;<br />11.1</p>]]></description>
			<author><![CDATA[dummy@example.com (lhp)]]></author>
			<pubDate>Mon, 15 May 2023 14:37:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42266#p42266</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Odd error at boot Setting up keyboard layout...too many (144) entries]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=42265#p42265</link>
			<description><![CDATA[<p>I have been tinkering... yes, &quot;don&#039;t do that&quot;, I know. Anyway, I had changed four files in /usr/share/X11/xkb/: symbols/dk and rules/{base,evdev}.xml. It was/is an experiment to add mathbold Unicode letters to the keys using an extra keyboard variant, and use the Windows key to activate the variant when held down. Worked fine too.</p><p>However, after a reboot, both the console and XFCE keyboard seem stuck as US even if the Keyboard Settings show DA (Danish). So now I am debugging this problem. While doing so, I noticed an error message at boot time. From /var/log/boot:<br />Setting up keyboard layout...too many (144) entries on one line</p><p>However this seems to have happened on previous reboots as well, so it is probably unrelated to my tinkering. It may be worth looking into anyway, perhaps.<br />I don&#039;t know why setting up the console keyboard need to be so convoluted, but anyway, AFAICT, it does the following:<br />/etc/init.d/keyboard-setup # is run by init, obviously. It then runs (if given start or similar arguments)<br />/lib/console-setup/keyboard-setup.sh # which either checks if a cached command exists<br />/etc/console-setup/cached_setup_keyboard.sh # which it then runs, otherwise it does setupcon -k</p><p>The /etc/console-setup/cached_setup_keyboard.sh script checks if /run/console-setup/keymap_loaded exists, deletes it and exits if it does, or if it doesn&#039;t it runs kbd_mode &#039;-u&#039; /dev/ttyn on tty1 to tty6. After that it loads a cached keyboard map with the command:<br />loadkeys &#039;/etc/console-setup/cached_UTF-8_del.kmap.gz&#039; &gt; &#039;/dev/null&#039; </p><p>This file looks very strange, with loads of repetition, which I find hard to believe can be quite right.</p><p>Looking at a different machine (eldo), which has roughly the same config, but hasn&#039;t been tinkered, I just did a dumpkeys and&#160; compared it with a dump on this machine (xan).<br />$ diff xan_kmapdumped eldo_kmapdumped <br />3,4c3,4<br />&lt; number of keymaps in actual use:&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;7<br />&lt; of which 0 dynamically allocated<br />---<br />&gt; number of keymaps in actual use:&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;128<br />&gt; of which 121 dynamically allocated</p><p>something isn&#039;t right, I guess. Next, I&#039;ll be comparing the cached files on&#160; both machines, and see what&#039;s going on.</p><p>Now this is what I don&#039;t get: I can&#039;t find any documentation that says loadkeys will accept a gzipped keymap file, and looking at the source files does not seem to support this either. At this point I don&#039;t know what&#039;s going on anymore; my investigation in the main problem (with my tinkering) will probably take priority. But if anyone can point to a good explanation of how all this keyboard initialisation at boot works, it would be appreciated. I know this is most likely unrelated to the problem I caused by my tinkering, which I am aware that I have to debug in the context of X11/XFCE4 instead. However, the error message caught my eye, and made me curious.<br />Oh, and if you think I should be punished for my silly tinkering, I can assure you that typing this with a Danish physical keyboard and a US layout was not pleasant. ;-)</p>]]></description>
			<author><![CDATA[dummy@example.com (lhp)]]></author>
			<pubDate>Mon, 15 May 2023 14:33:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=42265#p42265</guid>
		</item>
	</channel>
</rss>
