12 Star 0 Fork 14

src-openEuler/kbd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
kbd-1.15-keycodes-man.patch 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
wangkerong 提交于 2021-12-07 16:41 . update to 2.4.0
diff -c -r old/docs/man/man1/showkey.1 kbd-2.4.0/docs/man/man1/showkey.1
*** old/docs/man/man1/showkey.1 2020-12-15 22:32:21.000000000 +0800
--- kbd-2.4.0/docs/man/man1/showkey.1 2021-12-03 22:01:27.702550615 +0800
***************
*** 84,89 ****
--- 84,102 ----
to know the scan codes sent by various keys it is better to boot a
2.4 kernel. Since 2.6.9 there also is the boot option atkbd.softraw=0
that tells the 2.6 kernel to return the actual scan codes.
+
+ .SH NOTES
+ The raw scan codes are available only on AT and PS/2 keyboards,
+ and even then they are disabled unless the
+ .B atkbd.softraw=0
+ kernel parameter is used.
+ When the raw scan codes are not available, the kernel uses a fixed built-in
+ table to produce scan codes from keycodes. Thus,
+ .BR setkeycodes (8)
+ can affect the output of
+ .B showkey
+ in scan code dump mode.
+
.SH "SEE ALSO"
.BR loadkeys (1),
.BR dumpkeys (1),
diff -c -r old/docs/man/man8/setkeycodes.8 kbd-2.4.0/docs/man/man8/setkeycodes.8
*** old/docs/man/man8/setkeycodes.8 2020-12-15 22:32:21.000000000 +0800
--- kbd-2.4.0/docs/man/man8/setkeycodes.8 2021-12-03 22:02:45.193516342 +0800
***************
*** 42,47 ****
--- 42,51 ----
will assign the keycode 112 to it, and then
.BR loadkeys (1)
can be used to define the function of this key.
+
+ USB keyboards have standardized keycodes and
+ .B setkeycodes
+ doesn't affect them at all.
.LP
Some older kernels might hardwire a low scancode range to the
equivalent keycodes; setkeycodes will fail when you try to remap
***************
*** 60,65 ****
--- 64,77 ----
.SH BUGS
The keycodes of X have nothing to do with those of Linux.
Unusual keys can be made visible under Linux, but not under X.
+
+ .B setkeycodes
+ affects only the "first" input device
+ that has modifiable scancode-to-keycode mapping.
+ If there is more than one such device,
+ .B setkeycodes
+ cannot change the mapping of other devices than the "first" one.
+
.SH "SEE ALSO"
.BR dumpkeys (1),
.BR loadkeys (1),
~
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/kbd.git
[email protected]:src-openeuler/kbd.git
src-openeuler
kbd
kbd
master

搜索帮助