legionus / kbd

Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git
https://kbd-project.org
Other
84 stars 41 forks source link

`kbd_mode` |keyboard declared as being in an unknown mode #115

Closed Ricky-Tigg closed 5 months ago

Ricky-Tigg commented 5 months ago

v. 2.6.4 | Package kbd from Fedora Linux repository

Hello.

$ kbd_mode
Couldn't get a file descriptor referring to the console.
$ sudo kbd_mode
The keyboard is in some unknown mode

Is it not so however that the mode cannot be other than one of these: RAW, MEDIUMRAW, XLATE, UNICODE?

legionus commented 5 months ago

@Ricky-Tigg Unknown mode appears when the console is not a terminal. I'm assuming you are running the utility in a terminal emulator. You can specify the --console=DEV option to specify a real terminal.

Ricky-Tigg commented 5 months ago

According to a comment of yours in another report of mine, your assumption must be correct. I should investigate what is what in order to learn what conditions need to be met in order to be able to be in a console that is a terminal – exactly as such. Closing accordingly.