Detect Keyboard  [Solved]

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
fehlix
Developer
Posts: 12613
Joined: Wed Apr 11, 2018 5:09 pm

Re: Detect Keyboard

#11 Post by fehlix »

Collier wrote: Sun Jul 21, 2024 12:55 pm So in answer to my question 'Is there a way in which my PC can detect the physical keyboard I am using' I presume the answer is no? ie the actual type layout of keyboard
So it is about the Keyboard layout, not about detecting a connected keyboard, right?
The layout needs to be chosen by the user, b/c the physical
keyboard does not report how the keys are labeled, or have been re-labeled.

In MX Linux are 4 levels to choose a keyboard layout,
in case the default English US keyboard layout is not desired:

1) At LiveBoot menu, when going to install the system,
one can select the keyboard layout, together with language and timezone
which would be available for the Live-session.

2) When running the installer to install the system,
the first window offers keyboard-selection, in case the selection at LiveBoot menu was missed.

3) and even if this was not chosen,
one can run the system-keyboard selection tool to be fount within MX tools

4) And further, one can select instead of the system-keyboard layout another layout for
the user session, using the keyboard layout tool in Xfce settings.

Now tell us what is not working for you and why not?

User avatar
rokytnji.1
Global Moderator
Posts: 827
Joined: Sun Apr 13, 2014 9:06 pm

Re: Detect Keyboard

#12 Post by rokytnji.1 »

Mlocate works pretty well also

Code: Select all

harry@antiX:~
$ locate keyboard
/boot/grub/i386-pc/at_keyboard.mod
/boot/grub/i386-pc/usb_keyboard.mod
/etc/acpi/asus-keyboard-backlight.sh
/etc/acpi/events/asus-keyboard-backlight-down
/etc/acpi/events/asus-keyboard-backlight-up
/etc/console-setup/cached_setup_keyboard.sh
/etc/default/keyboard
/etc/init.d/keyboard-setup.sh
/etc/rcS.d/S04keyboard-setup.sh
/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
/home/harry/.cache/jgmenu/icons/system-keyboard-qt
/usr/bin/system-keyboard-qt
/usr/include/X11/bitmaps/keyboard16
/usr/include/linux/keyboard.h
/usr/lib/calibre/calibre/gui2/keyboard.py
/usr/lib/calibre/calibre/gui2/__pycache__/keyboard.cpython-311.pyc
/usr/lib/calibre/calibre/gui2/preferences/keyboard.py
/usr/lib/calibre/calibre/gui2/preferences/__pycache__/keyboard.cpython-311.pyc
/usr/lib/console-setup/keyboard-setup.sh
/usr/lib/grub/i386-efi/at_keyboard.mod
/usr/lib/grub/i386-efi/usb_keyboard.mod
/usr/lib/grub/i386-pc/at_keyboard.mod
/usr/lib/grub/i386-pc/usb_keyboard.mod
/usr/lib/grub/x86_64-efi/at_keyboard.mod
/usr/lib/grub/x86_64-efi/usb_keyboard.mod
/usr/lib/modules/5.10.188-antix.1-amd64-smp/kernel/drivers/input/keyboard
/usr/lib/modules/5.10.188-antix.1-amd64-smp/kernel/drivers/input/keyboard/adc-keys.ko
<snip>

User avatar
fehlix
Developer
Posts: 12613
Joined: Wed Apr 11, 2018 5:09 pm

Re: Detect Keyboard

#13 Post by fehlix »

rokytnji.1 wrote: Sun Jul 21, 2024 1:37 pm Mlocate works pretty well also
To answer what question?
Collier wrote: ↑Sun Jul 21, 2024 11:55 am
So in answer to my question 'Is there a way in which my PC can detect the physical keyboard I am using' I presume the answer is no? ie the actual type layout of keyboard

Collier
Posts: 14
Joined: Mon Dec 23, 2019 4:14 pm

Re: Detect Keyboard

#14 Post by Collier »

Eadwine Rose wrote: Sun Jul 21, 2024 1:22 pm Not the question. User wants to see if the keyboard can be identified in MX, I wager something like setxkbmap? Mine gives the following on this line. Is that kind of what you mean with your question?

Code: Select all

 $ setxkbmap -query | grep layout
layout:     us
Thank you that is exactly what I meant I need to know what the keyboard is so i can set MX to the correct layout - it is an older keyboard & Generic 105 etc do not work

User avatar
Eadwine Rose
Administrator
Posts: 14452
Joined: Wed Jul 12, 2006 2:10 am

Re: Detect Keyboard

#15 Post by Eadwine Rose »

Great! Did you manage to get it to work now? If so, please click the checkmark in the top right of the post (to the left of the user name/image) that holds the solution to mark the topic solved, thanks :)
MX-23.6_x64 July 31 2023 * 6.1.0-34amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.216.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Collier
Posts: 14
Joined: Mon Dec 23, 2019 4:14 pm

Re: Detect Keyboard

#16 Post by Collier »

No sorry
Keyboard worked ok with MX19
I do not know what layout the keyboard is nor can I asceratin just by looking at it
I know what I have set the MX linux system to [UK 105 keys] but it does not work
Muy question is - is iit possible for the PC to see what type of keyboard I am using so I can then set MX to the correct settings for this keyboard
thanks

User avatar
j2mcgreg
Global Moderator
Posts: 6587
Joined: Tue Oct 23, 2007 12:04 pm

Re: Detect Keyboard

#17 Post by j2mcgreg »

Is there any branding on the keyboard that we could use to identify it?
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

User avatar
siamhie
Global Moderator
Posts: 3219
Joined: Fri Aug 20, 2021 5:45 pm

Re: Detect Keyboard

#18 Post by siamhie »

Collier wrote: Mon Jul 22, 2024 10:13 am No sorry
Keyboard worked ok with MX19
I do not know what layout the keyboard is nor can I asceratin just by looking at it

Sometimes lsusb can tell you the brand but there maybe times it can't.

In my case it's reported as an Apple aluminum keyboard.
Image


but if I open Quick System Info, select the kern.log and search for " input: " it will show me the brand name.
Image
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Collier
Posts: 14
Joined: Mon Dec 23, 2019 4:14 pm

Re: Detect Keyboard

#19 Post by Collier »

Thank you Really helpful!!!!!!
I got Hewlett-Packard Company HP USB Smart Card Keyboard
but I can't see that as an option in set keyboard
Anyone know which option I could take [or if there isn't one]

User avatar
siamhie
Global Moderator
Posts: 3219
Joined: Fri Aug 20, 2021 5:45 pm

Re: Detect Keyboard  [Solved]

#20 Post by siamhie »

Collier wrote: Mon Jul 22, 2024 11:27 am Thank you Really helpful!!!!!!
I got Hewlett-Packard Company HP USB Smart Card Keyboard
but I can't see that as an option in set keyboard
Anyone know which option I could take [or if there isn't one]

This Amazon listing shows that it is a 104 key keyboard.

HP USB Business Slim Smartcard Keyboard
https://www.amazon.com/USB-Slim-Ccid-Sm ... roduct_top


You could open System Keyboard and try Generic 104-key PC
Image
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Post Reply

Return to “Bugs and Non-Package Requests Forum”