Setting keyboard layout by kernel command line not working (Solved)
Moderators: 666philb, Forum moderators
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Setting keyboard layout by kernel command line not working (Solved)
Setting the keyboard layout by entry inside the kernel command line is not working.
I like to run Puppy without save files or save folders. So, I'm usually using pkeys=de within the kernel line of a boot menu entry. This doesn't work in FossaPup64 9.5.
Any chance to fix this?
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- bigpup
- Moderator
- Posts: 7593
- Joined: Tue Jul 14, 2020 11:19 pm
- Location: Earth, South Eastern U.S.
- Has thanked: 1038 times
- Been thanked: 1692 times
Re: Setting keyboard layout by kernel command line not working
Can you post what the kernel line looks like you tried and did not work?
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected
- norgo
- Posts: 301
- Joined: Mon Jul 13, 2020 6:39 pm
- Location: Germany
- Has thanked: 7 times
- Been thanked: 123 times
- Contact:
Re: Setting keyboard layout by kernel command line not working
Rainer look heretaersh wrote: Mon Sep 28, 2020 5:56 pm ... Setting the keyboard layout by entry inside the kernel command line is not working...
I like to run Puppy without save files or save folders. So, I'm usually using pkeys=de within the kernel line of a boot menu entry. This doesn't work in FossaPup64 9.5.
Any chance to fix this?
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: Setting keyboard layout by kernel command line not working
This is what's in all of my Puppy's Kernel lines of Grub4DOS boot loader.bigpup wrote: Tue Sep 29, 2020 12:11 am What boot loader are you using?
Can you post what the kernel line looks like you tried and did not work?
Code: Select all
plang=de_DE.UTF-8 pkeys=de
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: Setting keyboard layout by kernel command line not working
Thanks for the link. FossaPup64 doesn't have a script similar to /root/Startup/1-scpup-startup.sh.
I don't want to download ScPup64 only to have a look into that script.
So, I modified my N.E.M.E.S.I.S. functions to echo a script set-de-keyboard at boot up into /root/Startup, but this didn't work.
The script doesn't seem to be executed.

Since I could not find a solution I've edited the adrv .sfs and put the script set-de-keyboard into /root/Startup.
Code: Select all
#!/bin/sh
setxkbmap de
numlockx on

So, I've edited the adrv .sfs again and placed a .desktop file set-de-keyboard.desktop into /root/.config/autostart.
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=Application
NoDisplay=true
Name=Set DE Keyboard and switch NumLock to ON
Exec=/root/Startup/set-de-keyboard

I just don't know and can't understand why some of the scripts in /root/Startup being executed and some of them aren't executed.
That's weird.

My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- 666philb
- Posts: 429
- Joined: Thu Jul 09, 2020 3:18 pm
- Location: wales uk
- Has thanked: 111 times
- Been thanked: 151 times
Re: Setting keyboard layout by kernel command line not working
fossapup64 viewtopic.php?f=40&t=88
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: Setting keyboard layout by kernel command line not working
Thanks for the reply.
Is that new xorg-autoconf somewhere available to download yet?
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- 666philb
- Posts: 429
- Joined: Thu Jul 09, 2020 3:18 pm
- Location: wales uk
- Has thanked: 111 times
- Been thanked: 151 times
Re: Setting keyboard layout by kernel command line not working
yes it's in woof https://github.com/puppylinux-woof-CE/w ... g-autoconftaersh wrote: Tue Sep 29, 2020 4:51 pm Hi.
Thanks for the reply.
Is that new xorg-autoconf somewhere available to download yet?
fossapup64 viewtopic.php?f=40&t=88
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: Setting keyboard layout by kernel command line not working
Where do I find the file to replace its content with the content from the github xorg-autoconf file?
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- norgo
- Posts: 301
- Joined: Mon Jul 13, 2020 6:39 pm
- Location: Germany
- Has thanked: 7 times
- Been thanked: 123 times
- Contact:
Re: Setting keyboard layout by kernel command line not working
1. boot option pkeys will be detected and is working.
2. "first run" setup screen is showing "de"
3. if user push the enter key preferences will be overwritten - new settings are not active ( Xserver restart is required for this )
4. without restart of xerver a lot of keys are dead and some keys return a wrong keycode
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: Setting keyboard layout by kernel command line not working
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????norgo wrote: Mon Oct 05, 2020 1:50 am after some tests of modified xorg-autoconf script here my observation:
1. boot option pkeys will be detected and is working.
2. "first run" setup screen is showing "de"
3. if user push the enter key preferences will be overwritten - new settings are not active ( Xserver restart is required for this )
4. without restart of xerver a lot of keys are dead and some keys return a wrong keycode
@norgo ---> Your post is Not very helpful AT ALL!taersh wrote: Mon Oct 05, 2020 12:56 am There is no xorg-autoconf in FossaPup64!
Where do I find the file to replace its content with the content from the github xorg-autoconf file?
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- norgo
- Posts: 301
- Joined: Mon Jul 13, 2020 6:39 pm
- Location: Germany
- Has thanked: 7 times
- Been thanked: 123 times
- Contact:
Re: Setting keyboard layout by kernel command line not working
that's fine, so I don't need my glasses.
https://github.com/puppylinux-woof-CE/woof-CE/blob/testing/woof-code/rootfs-skeleton/usr/sbin/xorg-autoconf
https://github.com/puppylinux-woof-CE/w ... b9a963cb40
A short while ago you complained about nic007 and told he is aggressive.
Maybe you should think about it.
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: Setting keyboard layout by kernel command line not working
Perhaps you should have used your glasses!
I wrote: "There is no xorg-autoconf in FossaPup64!
Where do I find the file to replace its content with the content from the github xorg-autoconf file?"
I do have the file from github. The problem is, when using pfind to search xorg-autoconf in FossaPup64 pfind returns: File not found!
Was it really that hard to understand the problem?
Hopefully the problem is now clear at all?
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- 666philb
- Posts: 429
- Joined: Thu Jul 09, 2020 3:18 pm
- Location: wales uk
- Has thanked: 111 times
- Been thanked: 151 times
Re: Setting keyboard layout by kernel command line not working
github.com/puppylinux-woof-CE/woof-CE/blob/testing/woof-code/rootfs-skeleton/usr/sbin/xorg-autoconf
fossapup64 viewtopic.php?f=40&t=88
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: (Solved) Setting keyboard layout by kernel command line not working
Thanks.666philb wrote: Mon Oct 05, 2020 2:02 pm the path is the same as in woofce /usr/sbin/xorg-autoconf
github.com/puppylinux-woof-CE/woof-CE/blob/testing/woof-code/rootfs-skeleton/usr/sbin/xorg-autoconf
Meanwhile I found it by doing a manual search.
I don't know why pfind didn't find it first time.
Maybe I wrote accidentally xorg_autoconf instead of xorg-autoconf.
However: problem solved, DE keyboard is now recognized.
Again, thanks.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
Re: Setting keyboard layout by kernel command line not working (Solved)
I have experienced the same problem with the keyboard setting not saved - but I had a more pressing health problem and was in hospital.
So now I'm back at home and glad to see the problem is adressed and solved.
But: I am no professional - so can you please tell me how to download the "new" xorg-autoconf from the github link posted?
Or do I have to copy the code and replace the contents of the "old" xorg-autoconf in /usr/sbin/...
- norgo
- Posts: 301
- Joined: Mon Jul 13, 2020 6:39 pm
- Location: Germany
- Has thanked: 7 times
- Been thanked: 123 times
- Contact:
Re: Setting keyboard layout by kernel command line not working (Solved)
hope you are okay again.
Forum member taersh wrote problem solved, he is writing a lot of things, but it isn't.
As I wrote some posts above, as soon as you confirm the first run dialog and hit the enter key, the preferences will be overwritten.
Example:
I boot the machine with pkeys=de and first run dialog is showing "de" and everything works fine
Now I confirm this preferences with enter and setting will be overwritten
when I hit the "AltGr" key machine returns the keycode "13 0015 0x0d" this is the keycode for the enter key as example
or the keys del, arrow up and down doesn't work anymore
of course you can try it out
replace the file by the attached, remove tar fake extension and make the file executable
- Attachments
-
- xorg-autoconf.tar
- remove tar fake extension
- (29.2 KiB) Downloaded 52 times
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: Setting keyboard layout by kernel command line not working (Solved)
Hehe, it's my topic, I had the problem in my Puppy and it's now solved. Usually when a user has a problem that's being solved, one marks the topic as being solved. This topic was/is about my problem in FossaPup. Even though, the problem is also solved in Woof-CE and will not appear (hopefully) in a next Puppy again.norgo wrote: Tue Oct 06, 2020 1:21 pmForum member taersh wrote problem solved, he is writing a lot of things, but it isn't
Anyone having the same problem can solve it, by following/reading the topic.
So, yes: Solved!
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: Setting keyboard layout by kernel command line not working (Solved)
Seems like you have a problem on your keyboard in use, but not with FossaPup.Example:
I boot the machine with pkeys=de and first run dialog is showing "de" and everything works fine
Now I confirm this preferences with enter and setting will be overwritten
when I hit the "AltGr" key machine returns the keycode "13 0015 0x0d" this is the keycode for the enter key as example
or the keys del, arrow up and down doesn't work anymore
Posting this from FoassaPup with DE keyboard active and xorg-autoconf applied. So again: Solved.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
- norgo
- Posts: 301
- Joined: Mon Jul 13, 2020 6:39 pm
- Location: Germany
- Has thanked: 7 times
- Been thanked: 123 times
- Contact:
Re: Setting keyboard layout by kernel command line not working (Solved)
worked there indeed.
Will compare, maybe something is missing, we will see.
Re: Setting keyboard layout by kernel command line not working (Solved)
I took the xorg-autoconf file from norgo and replaced the one in puppy_fossapup64_9.5.sfs and all is well now!
@norgo I would still like to know how you got the xorg-autoconf - did you copy the new raw code and named it yourself or is there a direct download link on github? Please excuse my stupidity - I found no direct link to the file ...

peace
- taersh
- Posts: 951
- Joined: Tue Jul 07, 2020 11:13 pm
- Location: Germany
- Has thanked: 53 times
- Been thanked: 120 times
Re: Setting keyboard layout by kernel command line not working (Solved)
Then renamed that script to xorg-autoconf, made a backup of the original to xorg-autoconf-bak and replaced the original by the new version.
I did not search extensively for a link to download.
My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!
Re: Setting keyboard layout by kernel command line not working (Solved)
thank you again for your answer. What you described is the same I was planning to do - but @norgo kindly saved me the effort ...

peace