How can I call the system's built-in on-screen keyboard using a command in Ubuntu? (original) (raw)

Hi!
My environment is Ubuntu 22.04 with GNOME 42, and I’m using a Raspberry Pi with a touch panel to control it. I disabled all gestures to avoid using them, but this also disabled the swipe-up gesture that calls the on-screen keyboard (OSK). Is it possible to call the keyboard using a command in the terminal?

Sid (Sid) March 14, 2025, 8:55am 2

Totolo_Chen (Totolo Chen) March 14, 2025, 12:51pm 3

The built-in on-screen keyboard (OSK) in GNOME 42 does not appear to be Caribou.

mcatanzaro (Michael Catanzaro) March 14, 2025, 3:25pm 4

Caribou was replaced several years ago. The current OSK is part of gnome-shell itself. I don’t see any D-Bus interface, but you could probably create a gnome-shell extension to add one.

Sid (Sid)

March 14, 2025, 6:14pm 5

current OSK is part of gnome-shell itself.

Interesting. I see the daemon process (second entry below) started when enabling 'Screen Keyboard' from the Accessibility menu on Debian Unstable.

Is this Debian downstream specific behavior?

gnome-caribou-debian-unstable

rschupp (Roderich Schupp) March 16, 2025, 5:11pm 6

@Sid

Is this Debian downstream specific behavior?

I don’t see this on my Debian unstable desktop (but I see the OSK when enabling Screen Keyboard). You probably have some leftovers installed - the only thing in current Debian unstable that depends on caribou stuff is the cinnamon desktop.

Sid (Sid) March 21, 2025, 11:30am 7

Tracing APT history, it appears I manually installed 'libcaribou-dev' as a build dependency some time back on my Debian Unstable, and it was not autoremoved during upgrades as it’s a manual install. After removing all caribou packages, 'Screen Keyboard' still works.

I’m not sure why enabling 'Screen Keyboard' from a11y menu

skeller (Sebastian Keller) March 21, 2025, 4:58pm 8

Because the caribou autostart desktop file specifies to be started when the gsettings option is enabled: data/caribou-autostart.desktop.in.in · 9c900f0139af225bb35bf34bb2aee83f47495ba5 · Archive / caribou · GitLab

The OSK of gnome-shell does not need to be started since it is not a separate process. Enabling that option allows the gnome-shell OSK to be triggered by applications. If it is not triggered this can be due to applications not triggering it.

There is no specific interface for OSKs, so there is no way of detecting this.

system (system) Closed May 5, 2025, 4:58pm 9

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.