No keyboard input
I don't have any keyboard input. When the app is running. When I type on the keyboard the text is typed in the cli that is still open behind/underneath the flutter app.
I am using a logitech K400 (azerty be) and the mouse does work perfectly. But the keyboard input does not work. I have also already tried with another keyboard (Keychron k3 wired) and that does not work either. What should I do?
I have configured my locale as en_GB as you can see here
➜ config locale
LANG=en_GB
LANGUAGE=en_GB
LC_CTYPE="en_GB"
LC_NUMERIC="en_GB"
LC_TIME="en_GB"
LC_COLLATE="en_GB"
LC_MONETARY="en_GB"
LC_MESSAGES="en_GB"
LC_PAPER="en_GB"
LC_NAME="en_GB"
LC_ADDRESS="en_GB"
LC_TELEPHONE="en_GB"
LC_MEASUREMENT="en_GB"
LC_IDENTIFICATION="en_GB"
LC_ALL=en_GB
When I run in desktopmode the keyboard does work in rasbian desktop (without flutter-pi).
I can see this when I run.
keyboard.c: Could not create compose table from locale.
user_input.c: Could not initialize keyboard configuration. Flutter-pi will run without text/raw keyboard input.
[text_input] warning: flutter requested native autocorrect, whichis not supported by flutter-pi.
My Full output
➜ pi: flutterpi_tool run --release -d pi
Launching lib/main.dart on pi in release mode...
Building Flutter-Pi bundle...
Installing app on device... 2,339ms
modesetting.c: Could not set DRM client universal planes capable. drmSetClientCap: Operation not supported
flutter-pi.c: Could not create drmdev from device at "/dev/dri/card0". Continuing.
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:39:34: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:40:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:41:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:42:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:43:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:44:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:45:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:46:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:47:27: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:48:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: string literal is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: too many errors
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: failed to parse file
keyboard.c: Could not create compose table from locale.
user_input.c: Could not initialize keyboard configuration. Flutter-pi will run without text/raw keyboard input.
[text_input] warning: flutter requested native autocorrect, whichis not supported by flutter-pi.
if I launch the app with flutterpi_tool (from my machine) the keyboard does not work. I launch the app with flutter-pi (after using flutterpi_tool to install it on the pi) it works. but it also types in the terminal that is still open behind (resulting in the escape button not working because it kills the app in the terminal behind the app)
Hello, were you able to find a solution for this? I'm having the same issue
For me, keyboard works with and without flutterpi_tool.
Make sure your /etc/default/keyboard file is correct. For me it looks like this:
KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="de"
XKBVARIANT="mac_nodeadkeys"
XKBOPTIONS="apple:badmap"
BACKSPACE="guess"
I have configured my locale as en_GB as you can see here
➜ config locale LANG=en_GB LANGUAGE=en_GB LC_CTYPE="en_GB" LC_NUMERIC="en_GB" LC_TIME="en_GB" LC_COLLATE="en_GB" LC_MONETARY="en_GB" LC_MESSAGES="en_GB" LC_PAPER="en_GB" LC_NAME="en_GB" LC_ADDRESS="en_GB" LC_TELEPHONE="en_GB" LC_MEASUREMENT="en_GB" LC_IDENTIFICATION="en_GB" LC_ALL=en_GB
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:39:34: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:40:29: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:41:29: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:42:29: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:43:29: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:44:27: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:45:27: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:46:27: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:47:27: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:48:29: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: string literal is not a valid UTF-8 string xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: too many errors xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: failed to parse file
That looks like you're using some non-UTF-8 locale that doesn't work with xkbcommon. Try setting en_GB.UTF-8 as the locale.
I launch the app with flutter-pi (after using flutterpi_tool to install it on the pi) it works. but it also types in the terminal that is still open behind (resulting in the escape button not working because it kills the app in the terminal behind the app)
Well, this is a bit controversial, since many people rely on exactly that behavior to be able to quit their app when developing. :) Generally, you probably want to disable FBCON when deploying the app in the wild. Being able to type commands into the console is a security issue even if flutter-pi would grab keyboard input, as the flutter app / flutter-pi might just as well crash, exposing the console again.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens and logs. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.