fbkeyboard: New framebuffer console keyboard tool
This adds a keyboard for framebuffer consoles. Tested on Nexus 5 and PinePhone. Works well with user interface "none" (No graphical environment). Requires /dev/uinput (kernel config CONFIG_INPUT_UINPUT)
Some screen tuning recommended for seamless use:
stty rows 40
(value depends on actual console size and font)
Cursor keys, scrollback and vt switching is also supported:
Merge request reports
Activity
added 1 commit
- e2822038 - main/fbkeyboard: New framebuffer console keyboard tool
By Ferenc Bakonyi on 2020-02-29T17:38:08
mentioned in merge request !1013 (merged)
By Ferenc Bakonyi on 2020-02-29T19:15:07
- Resolved by Administrator
This is awesome! Could it be used to replace osk-sdl for entering passwords in initramfs for unlocking a luks-encrypted rootfs?
By clayton craft on 2020-02-29T20:51:06
Edited by Ghost User
- Resolved by Administrator
I'm a bit worried about screen tuning, that
stty rows 40
. When should this be executed? In each real terminal (not in ssh session)? You are adding an openrc service in !1013 (merged), should that command be placed there or it won't work?By Alexey Min on 2020-02-29T21:29:21
Edited by Ghost User
- Resolved by Administrator
added 7 commits
-
96be032d...325ac073 - 6 commits from branch
postmarketOS:master
- a8f33531 - main/fbkeyboard: New framebuffer console keyboard tool
By Ferenc Bakonyi on 2020-03-01T06:02:44
-
96be032d...325ac073 - 6 commits from branch
- Resolved by Administrator
Requires /dev/uinput (kernel config CONFIG_INPUT_UINPUT)
pinephone:~$ zcat /proc/config.gz | grep UINPUT # CONFIG_INPUT_UINPUT is not set
Default pine64 config does not have that
(/dev/uinput: No such file or directory
)Add: I've filed !1051 (merged)
By Alexey Min on 2020-03-12T08:54:28
Edited by Administrator
pine:~$ fbkeyboard error: cannot open uinput device /dev/uinput: Permission denied pine:~$ ls -la /dev/uinput crw------- 1 root root 10, 223 Jan 1 1970 /dev/uinput
this needs more work :( nothing works out of the box
Probably needs some udev rule to assign the correct permissions on the device file? After doing
pine:~$ sudo chown root:input /dev/uinput pine:~$ sudo chmod g+rw /dev/uinput
it works: image
By Alexey Min on 2020-03-12T23:37:25
Edited by Administratormentioned in commit adbb9159
By Alexey Min on 2020-03-11T05:51:16
mentioned in merge request !1051 (merged)
By Alexey Min on 2020-03-11T05:52:17