Setting keyboard layout by kernel command line not working (Solved)

Moderators: 666philb, Forum moderators

Post Reply
User avatar
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)

Post by taersh »

Hi.

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?
Last edited by taersh on Mon Oct 05, 2020 8:36 pm, edited 1 time in total.

My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!

User avatar
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

Post by bigpup »

What boot loader are you using?

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 :o

User avatar
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

Post by norgo »

taersh 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?
Rainer look here
User avatar
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

Post by taersh »

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?
This is what's in all of my Puppy's Kernel lines of Grub4DOS boot loader.

Code: Select all

plang=de_DE.UTF-8 pkeys=de
FossaPup64 is the first Puppy for a long time that' won't recognize 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!

User avatar
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

Post by taersh »

norgo wrote: Tue Sep 29, 2020 12:38 am Rainer look here
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. :thumbdown:

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
But this doesn't work also. Neither DE keyboard nor NumLock was recognized! :thumbdown:

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
Now DE keyboard AND NumLock is recognized! :thumbup:

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. :roll:

My Music:
https://soundcloud.com/user-633698367
Using my own build of Bionic64
The far-left is as fascist as the far-right is!

User avatar
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

Post by 666philb »

the new xorg-autoconf is what stops that working although has been fixed now so will work in the next pups built https://github.com/puppylinux-woof-CE/w ... ssues/1874
User avatar
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

Post by taersh »

Hi.

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!

User avatar
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

Post by 666philb »

taersh wrote: Tue Sep 29, 2020 4:51 pm Hi.

Thanks for the reply.

Is that new xorg-autoconf somewhere available to download yet?
yes it's in woof https://github.com/puppylinux-woof-CE/w ... g-autoconf
User avatar
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

Post by taersh »

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!

User avatar
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

Post by norgo »

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
User avatar
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

Post by taersh »

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
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
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?
@norgo ---> Your post is Not very helpful 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!

User avatar
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

Post by norgo »

Hello Rainer,

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.
User avatar
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

Post by taersh »

Hi.

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!

User avatar
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

Post by 666philb »

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
User avatar
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

Post by taersh »

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
Thanks.

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!

one
Posts: 247
Joined: Sun Jul 12, 2020 7:53 am
Has thanked: 16 times
Been thanked: 59 times

Re: Setting keyboard layout by kernel command line not working (Solved)

Post by one »

Hi,

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/...
User avatar
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)

Post by norgo »

Hello @one

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
User avatar
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)

Post by taersh »

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
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.

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!

User avatar
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)

Post by taersh »

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
Seems like you have a problem on your keyboard in use, but not with FossaPup.

Bildschirmfoto_2020-10-06_19-48-21.png
Bildschirmfoto_2020-10-06_19-48-21.png (75.9 KiB) Viewed 1192 times

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!

User avatar
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)

Post by norgo »

downloaded Fossapup64 and replaced xorg-autoconf for test.
worked there indeed.
Will compare, maybe something is missing, we will see.
one
Posts: 247
Joined: Sun Jul 12, 2020 7:53 am
Has thanked: 16 times
Been thanked: 59 times

Re: Setting keyboard layout by kernel command line not working (Solved)

Post by one »

Thank you both @norgo and @taersh

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
User avatar
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)

Post by taersh »

I for myself just copied the content from the page and pasted it into an empty script.
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!

one
Posts: 247
Joined: Sun Jul 12, 2020 7:53 am
Has thanked: 16 times
Been thanked: 59 times

Re: Setting keyboard layout by kernel command line not working (Solved)

Post by one »

Hi @taersh

thank you again for your answer. What you described is the same I was planning to do - but @norgo kindly saved me the effort ... :thumbup:

peace
Post Reply

Return to “Fossapup64”