Keyboard mapping changes during boot

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
bpuppy
Posts: 4
Joined: Sat Aug 21, 2021 1:26 pm

Keyboard mapping changes during boot

Post by bpuppy »

Hi all,

I am using Bionic64 and up until a few months ago, all was fine with my keyboard.
But now, i have to run /usr/sbin/input-wizard everytime i boot this OS, not knowing what changed it.

Xorg.conf looks ok by asking the pc102 setup, but it gets changed after this loads:
Section "InputClass"
Identifier "keyboard-all"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbRules" "evdev"
Option "XkbModel" "pc102" #xkbmodel0
Option "XkbLayout" "us,ca"
Option "XkbVariant" "intl" #xkbvariant0
Option "XkbOptions" "terminate:ctrl_alt_bksp" #xkboptions0
EndSection

This situation is getting tiresome. Please can someone help?

bpuppy

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: Keyboard mapping changes during boot

Post by williams2 »

When you first boot, before you configure the keyboard, what do you get if you type/paste this in a terminal console:

setxkbmap -query

What is not working? the keymaps? how you switch keymaps?

What is in the file /etc/keymap ?

Typing this in a terminal should enable the 2 keymaps and allow you to switch between them by pressing the ctrl+shift keys:

setxkbmap 'us(intl),ca' -option grp:lctrl_lshift_toggle

You could put a script in /root/Startup/ so the command would run every time Puppy boots;

Code: Select all

#!/bin/sh
sleep 10
setxkbmap 'us(intl),ca' -option grp:lctrl_lshift_toggle
bpuppy
Posts: 4
Joined: Sat Aug 21, 2021 1:26 pm

Re: Keyboard mapping changes during boot

Post by bpuppy »

Here is a snapshot of what i get in the terminal as soon as the boot process is done:
Image

This looks normal but still the up and down arrows are not going up or down, say in a text file for example.
Other keys are not behaving the way it should like the left and right arrow, the delete key, insert... etc.
The regular a-z keys work normally though.
I don't know what is wrong and how to fix the problem.

Attachments
keyboard.png
keyboard.png (7.93 KiB) Viewed 378 times
williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: Keyboard mapping changes during boot

Post by williams2 »

I seem to remember there is a problem with arrow keys not being mapped properly, something to do with evdev, I think.
I never had this problem myself.

What happens if you type something like this:

setxkbmap 'us(intl),ca' -rules evdev -option grp:lctrl_lshift_toggle

Does that fix the arrow key behaviour?

My machine is using evdev rules. Your machine is using xorg rules, even though evdev is specified in xorg.conf.

Maybe the driver is not working.

Are there any error messages in the xorg log file?

grep EE /var/log/Xorg.0.log

Does the evdev driver seem to be loading and initializing properly?

grep -i evdev /var/log/Xorg.0.log

Also, you seem to have Mouse Keys enabled. The arrow keys on the keypad should move the mouse cursor, when Mouse Keys are enabled.

bpuppy
Posts: 4
Joined: Sat Aug 21, 2021 1:26 pm

Re: Keyboard mapping changes during boot [Solved]

Post by bpuppy »

Hi williams2,

Code: Select all

setxkbmap 'us(intl),ca' -rules evdev -option grp:lctrl_lshift_toggle

fixes the problem, not only for the arrow keys but the delete and other keys that did not behave normally.

Code: Select all

grep EE /var/log/Xorg.0.log

: no error show here except for a dbus-core connection error.

As for this command

Code: Select all

grep -i evdev /var/log/Xorg.0.log

i get this much info:

[ 26.337] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 26.337] (II) LoadModule: "evdev"
[ 26.337] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[ 26.374] (II) Module evdev: vendor="X.Org Foundation"
[ 26.374] (II) Using input driver 'evdev' for 'Power Button'
[ 26.374] (**) evdev: Power Button: Device: "/dev/input/event1"
[ 26.374] (--) evdev: Power Button: Vendor 0 Product 0x1
[ 26.374] (--) evdev: Power Button: Found keys
[ 26.374] (II) evdev: Power Button: Configuring as keyboard
[ 26.374] (**) Option "xkb_rules" "evdev"
[ 26.406] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[ 26.406] (II) Using input driver 'evdev' for 'Video Bus'
[ 26.406] (**) evdev: Video Bus: Device: "/dev/input/event13"
[ 26.406] (--) evdev: Video Bus: Vendor 0 Product 0x6
[ 26.406] (--) evdev: Video Bus: Found keys
[ 26.406] (II) evdev: Video Bus: Configuring as keyboard
[ 26.406] (**) Option "xkb_rules" "evdev"
[ 26.406] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[ 26.406] (II) Using input driver 'evdev' for 'Power Button'
[ 26.406] (**) evdev: Power Button: Device: "/dev/input/event0"
[ 26.406] (--) evdev: Power Button: Vendor 0 Product 0x1
[ 26.406] (--) evdev: Power Button: Found keys
[ 26.406] (II) evdev: Power Button: Configuring as keyboard
[ 26.406] (**) Option "xkb_rules" "evdev"
[ 26.407] (**) Lite-On Technology Corp. Wireless Device: Applying InputClass "evdev keyboard catchall"
[ 26.407] (II) Using input driver 'evdev' for 'Lite-On Technology Corp. Wireless Device'
[ 26.407] (**) evdev: Lite-On Technology Corp. Wireless Device: Device: "/dev/input/event2"
[ 26.407] (--) evdev: Lite-On Technology Corp. Wireless Device: Vendor 0x4ca Product 0x6f
[ 26.407] (--) evdev: Lite-On Technology Corp. Wireless Device: Found keys
[ 26.407] (II) evdev: Lite-On Technology Corp. Wireless Device: Configuring as keyboard
[ 26.407] (**) Option "xkb_rules" "evdev"
[ 26.407] (**) Lite-On Technology Corp. Wireless Device Consumer Control: Applying InputClass "evdev keyboard catchall"
[ 26.407] (II) Using input driver 'evdev' for 'Lite-On Technology Corp. Wireless Device Consumer Control'
[ 26.407] (**) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Device: "/dev/input/event3"
[ 26.407] (--) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Vendor 0x4ca Product 0x6f
[ 26.407] (--) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Found 1 mouse buttons
[ 26.407] (--) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Found scroll wheel(s)
[ 26.407] (--) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Found relative axes
[ 26.407] (II) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Forcing relative x/y axes to exist.
[ 26.407] (--) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Found absolute axes
[ 26.407] (II) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Forcing absolute x/y axes to exist.
[ 26.407] (--) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Found keys
[ 26.407] (II) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Configuring as mouse
[ 26.407] (II) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Configuring as keyboard
[ 26.407] (II) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: Adding scrollwheel support
[ 26.407] (**) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: YAxisMapping: buttons 4 and 5
[ 26.407] (**) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 26.407] (**) Option "xkb_rules" "evdev"
[ 26.408] (II) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: initialized for relative axes.
[ 26.408] (WW) evdev: Lite-On Technology Corp. Wireless Device Consumer Control: ignoring absolute axes.
[ 26.408] (**) Lite-On Technology Corp. Wireless Device System Control: Applying InputClass "evdev keyboard catchall"
[ 26.408] (II) Using input driver 'evdev' for 'Lite-On Technology Corp. Wireless Device System Control'
[ 26.408] (**) evdev: Lite-On Technology Corp. Wireless Device System Control: Device: "/dev/input/event4"
[ 26.408] (--) evdev: Lite-On Technology Corp. Wireless Device System Control: Vendor 0x4ca Product 0x6f
[ 26.408] (--) evdev: Lite-On Technology Corp. Wireless Device System Control: Found keys
[ 26.408] (II) evdev: Lite-On Technology Corp. Wireless Device System Control: Configuring as keyboard
[ 26.408] (**) Option "xkb_rules" "evdev"
[ 26.408] (**) Lite-On Technology Corp. Wireless Device: Applying InputClass "evdev keyboard catchall"
[ 26.408] (II) Using input driver 'evdev' for 'Lite-On Technology Corp. Wireless Device'
[ 26.408] (**) evdev: Lite-On Technology Corp. Wireless Device: Device: "/dev/input/event5"
[ 26.408] (--) evdev: Lite-On Technology Corp. Wireless Device: Vendor 0x4ca Product 0x6f
[ 26.408] (--) evdev: Lite-On Technology Corp. Wireless Device: Found keys
[ 26.408] (II) evdev: Lite-On Technology Corp. Wireless Device: Configuring as keyboard
[ 26.408] (**) Option "xkb_rules" "evdev"
[ 26.409] (**) Lite-On Technology Corp. Wireless Device: Applying InputClass "evdev pointer catchall"
[ 26.608] (**) HP 1.0MP High Definition Webcam: Applying InputClass "evdev keyboard catchall"
[ 26.608] (II) Using input driver 'evdev' for 'HP 1.0MP High Definition Webcam'
[ 26.608] (**) evdev: HP 1.0MP High Definition Webcam: Device: "/dev/input/event18"
[ 26.608] (--) evdev: HP 1.0MP High Definition Webcam: Vendor 0xbda Product 0x58b6
[ 26.609] (--) evdev: HP 1.0MP High Definition Webcam: Found keys
[ 26.609] (II) evdev: HP 1.0MP High Definition Webcam: Configuring as keyboard
[ 26.609] (**) Option "xkb_rules" "evdev"
[ 26.609] (**) SONiX USB DEVICE: Applying InputClass "evdev keyboard catchall"
[ 26.609] (II) Using input driver 'evdev' for 'SONiX USB DEVICE'
[ 26.609] (**) evdev: SONiX USB DEVICE: Device: "/dev/input/event7"
[ 26.609] (--) evdev: SONiX USB DEVICE: Vendor 0xc45 Product 0x5004
[ 26.609] (--) evdev: SONiX USB DEVICE: Found keys
[ 26.609] (II) evdev: SONiX USB DEVICE: Configuring as keyboard
[ 26.609] (**) Option "xkb_rules" "evdev"
[ 26.610] (**) SONiX USB DEVICE System Control: Applying InputClass "evdev keyboard catchall"
[ 26.610] (II) Using input driver 'evdev' for 'SONiX USB DEVICE System Control'
[ 26.610] (**) evdev: SONiX USB DEVICE System Control: Device: "/dev/input/event9"
[ 26.610] (--) evdev: SONiX USB DEVICE System Control: Vendor 0xc45 Product 0x5004
[ 26.610] (--) evdev: SONiX USB DEVICE System Control: Found keys
[ 26.610] (II) evdev: SONiX USB DEVICE System Control: Configuring as keyboard
[ 26.610] (**) Option "xkb_rules" "evdev"
[ 26.610] (**) SONiX USB DEVICE Consumer Control: Applying InputClass "evdev keyboard catchall"
[ 26.610] (II) Using input driver 'evdev' for 'SONiX USB DEVICE Consumer Control'
[ 26.610] (**) evdev: SONiX USB DEVICE Consumer Control: Device: "/dev/input/event10"
[ 26.610] (--) evdev: SONiX USB DEVICE Consumer Control: Vendor 0xc45 Product 0x5004
[ 26.610] (--) evdev: SONiX USB DEVICE Consumer Control: Found 1 mouse buttons
[ 26.610] (--) evdev: SONiX USB DEVICE Consumer Control: Found scroll wheel(s)
[ 26.610] (--) evdev: SONiX USB DEVICE Consumer Control: Found relative axes
[ 26.610] (II) evdev: SONiX USB DEVICE Consumer Control: Forcing relative x/y axes to exist.
[ 26.610] (--) evdev: SONiX USB DEVICE Consumer Control: Found absolute axes
[ 26.610] (II) evdev: SONiX USB DEVICE Consumer Control: Forcing absolute x/y axes to exist.
[ 26.610] (--) evdev: SONiX USB DEVICE Consumer Control: Found keys
[ 26.610] (II) evdev: SONiX USB DEVICE Consumer Control: Configuring as mouse
[ 26.610] (II) evdev: SONiX USB DEVICE Consumer Control: Configuring as keyboard
[ 26.610] (II) evdev: SONiX USB DEVICE Consumer Control: Adding scrollwheel support
[ 26.610] (**) evdev: SONiX USB DEVICE Consumer Control: YAxisMapping: buttons 4 and 5
[ 26.610] (**) evdev: SONiX USB DEVICE Consumer Control: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[ 26.610] (**) Option "xkb_rules" "evdev"
[ 26.611] (II) evdev: SONiX USB DEVICE Consumer Control: initialized for relative axes.
[ 26.611] (WW) evdev: SONiX USB DEVICE Consumer Control: ignoring absolute axes.
[ 26.611] (**) SONiX USB DEVICE Keyboard: Applying InputClass "evdev keyboard catchall"
[ 26.611] (II) Using input driver 'evdev' for 'SONiX USB DEVICE Keyboard'
[ 26.611] (**) evdev: SONiX USB DEVICE Keyboard: Device: "/dev/input/event8"
[ 26.611] (--) evdev: SONiX USB DEVICE Keyboard: Vendor 0xc45 Product 0x5004
[ 26.611] (--) evdev: SONiX USB DEVICE Keyboard: Found keys
[ 26.611] (II) evdev: SONiX USB DEVICE Keyboard: Configuring as keyboard
[ 26.611] (**) Option "xkb_rules" "evdev"
[ 26.612] (**) HP WMI hotkeys: Applying InputClass "evdev keyboard catchall"
[ 26.612] (II) Using input driver 'evdev' for 'HP WMI hotkeys'
[ 26.612] (**) evdev: HP WMI hotkeys: Device: "/dev/input/event12"
[ 26.612] (--) evdev: HP WMI hotkeys: Vendor 0 Product 0
[ 26.612] (--) evdev: HP WMI hotkeys: Found keys
[ 26.612] (II) evdev: HP WMI hotkeys: Configuring as keyboard
[ 26.612] (**) Option "xkb_rules" "evdev"

Thank you so much for solving this. As you can see the evdev driver is loading. Please let me know if you find a questionable entry tin the list above.

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: Keyboard mapping changes during boot

Post by williams2 »

Maybe evdev is not configured properly, in xorg.conf.

My xorg.conf file, has this:
Section "ServerFlags"
Option "AutoAddDevices" "true"

and this:
Section "InputClass"
Driver "evdev"

I don't see anything wrong in your log file, at least, at first glance.

User avatar
bigpup
Moderator
Posts: 6983
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 903 times
Been thanked: 1522 times

Re: Keyboard mapping changes during boot

Post by bigpup »

I am using Bionic64

Have you run Quickpet->Info->Bionicpup updates?
Quickpet program runs from Quickpet icon on desktop.
Rebooted, updating the bionicpupsave, and now using these changes?

How much free space is showing in the personal storage?
Hover the mouse pointer over the personal storage icon (right side of the tray) to get info.

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

bpuppy
Posts: 4
Joined: Sat Aug 21, 2021 1:26 pm

Re: Keyboard mapping changes during boot

Post by bpuppy »

@williams2 My xorg.conf has the same entries as yours.

@bigpup i updated Bionic64 as per your suggestion.

It is working well now.
Thank you both of you.
bpuppy

Post Reply

Return to “Users”