I have installed the latest 64-bit with-desktop image today using the Raspberry Pi Imager.
It looks like that image comes with the following packages pre-installed that are required for the on-screen keyboard to work:
If you have an up-to-date install of Raspberry Pi OS Bookworm, and the above packages are installed, then none of the scripts or workarounds mentioned earlier in this thread should be needed.
Chances are the small keyboard icon still doesn’t show up in your panel because reasons. In that case, you can investigate by ssh-ing into your Pi, run the `sbout` command and look what happens.
Tangent: In fact, my own clean install that I did today with the latest image still managed to be broken on arrival.
Turns out that the Raspberry Pi Imager in its current version doesn’t seem to set up custom locales correctly. In the image customization phase, it allowed me to specify a custom locale (e.g. German). But it never actually generated the locale on my behalf, which led to issues and warnings in many programs, including the `sbout` command that is supposed to launch the Squeekboard panel entry.
I fixed the issue by running the following commands over an SSH session. Here’s the exact command line I ran for the German locale:
If you’re uncomfortable running commands that a stranger on the internet asks you to run, you can do it manually, too: First, run the `squeekboard` command once over an SSH session so you get the on-screen keyboard temporarily so you can actually edit things. Then open a terminal and run the `locale` command to figure out which locales your system expects. Now open the `/etc/locale.gen` file (using root privileges) in a text editor of your choice. Uncomment all the locales you need, then save your modifications and go back to your terminal. Finally, run `sudo locale-gen` to generate the locales. After the next reboot, your on-screen keyboard should now hopefully work as intended.
tl;dr On latest Bookworm, a small keyboard icon should appear in your panel. So in theory, you shouldn’t have to apply any of the workarounds mentioned in this thread. In practice, things can still go wrong because there are so many moving parts. If the small icon is still missing from your panel, you can inspect the output of `sbout`. Make sure you have generated all the needed locales, too.
It looks like that image comes with the following packages pre-installed that are required for the on-screen keyboard to work:
- `lxde` (a desktop environment);
- `wayfire` (a Wayland compositor);
- `squeekboard` (an on-screen keyboard); and
- `wfplug-squeek` (a plugin that shows a small icon for the on-screen keyboard in the panel, which you can tap when needed, plus it attempts to auto-show and hide).
If you have an up-to-date install of Raspberry Pi OS Bookworm, and the above packages are installed, then none of the scripts or workarounds mentioned earlier in this thread should be needed.
Chances are the small keyboard icon still doesn’t show up in your panel because reasons. In that case, you can investigate by ssh-ing into your Pi, run the `sbout` command and look what happens.
Tangent: In fact, my own clean install that I did today with the latest image still managed to be broken on arrival.
Turns out that the Raspberry Pi Imager in its current version doesn’t seem to set up custom locales correctly. In the image customization phase, it allowed me to specify a custom locale (e.g. German). But it never actually generated the locale on my behalf, which led to issues and warnings in many programs, including the `sbout` command that is supposed to launch the Squeekboard panel entry.
I fixed the issue by running the following commands over an SSH session. Here’s the exact command line I ran for the German locale:
Code:
sudo sed -i -E 's/^#\s*((de_DE|en_GB|en_US)\.UTF-8\s.*)/\1/' /etc/locale.gen && sudo locale-gen
tl;dr On latest Bookworm, a small keyboard icon should appear in your panel. So in theory, you shouldn’t have to apply any of the workarounds mentioned in this thread. In practice, things can still go wrong because there are so many moving parts. If the small icon is still missing from your panel, you can inspect the output of `sbout`. Make sure you have generated all the needed locales, too.
Statistics: Posted by Queen Rasp — Wed Dec 11, 2024 7:12 pm