My laptop’s keyboard input doesn’t work in Firefox. I can interact with Firefox using the trackpad, but not the keyboard. Keyboard input works in other applications. When I log out and log back in, keyboard input into Firefox appears to work. For what it’s worth, I noticed this recently in Fedora 41, but I’m using Fedora 42 Beta now.
00:10 - Firefox launched after boot and log in; keyboard input doesn’t work in Firefox
00:20 - Log out, log back in, and launch Firefox; keyboard input in Firefox works.
These two lines show up at 00:10 but not 00:20, so it looks like Firefox is having trouble connecting to ibus?
Apr 07 00:10:21 lemp13 org.mozilla.firefox.desktop[4236]: [Parent 4236, Main Thread] WARNING: Unable to connect to ibus: Could not connect: Connection refused: 'glib warning', file /builddir/build/BUILD/firefox-137.0-build/firefox-137.0/toolkit/xre/nsSigHandlers.cpp:201
Apr 07 00:10:21 lemp13 firefox[4236]: Unable to connect to ibus: Could not connect: Connection refused
$ journalctl -b | grep firefox
Apr 07 00:10:20 lemp13 systemd[3012]: Started dbus-:1.2-org.mozilla.firefox.SearchProvider@0.service.
Apr 07 00:10:20 lemp13 systemd[3012]: Started app-gnome-org.mozilla.firefox-4236.scope - Application launched by gnome-shell.
Apr 07 00:10:20 lemp13 org.mozilla.firefox.desktop[4236]: Error: Failed to open Wayland display, fallback to X11. WAYLAND_DISPLAY='wayland-0' DISPLAY=':0'
Apr 07 00:10:21 lemp13 org.mozilla.firefox.desktop[4236]: [Parent 4236, Main Thread] WARNING: Unable to connect to ibus: Could not connect: Connection refused: 'glib warning', file /builddir/build/BUILD/firefox-137.0-build/firefox-137.0/toolkit/xre/nsSigHandlers.cpp:201
Apr 07 00:10:21 lemp13 firefox[4236]: Unable to connect to ibus: Could not connect: Connection refused
Apr 07 00:10:21 lemp13 rtkit-daemon[1720]: Successfully made thread 4412 of process 4236 (/usr/lib64/firefox/firefox) owned by '1000' RT at priority 10.
Apr 07 00:10:22 lemp13 org.mozilla.firefox.desktop[4236]: (as)
Apr 07 00:10:22 lemp13 org.mozilla.firefox.desktop[4236]: (asas)
Apr 07 00:10:26 lemp13 org.mozilla.firefox.desktop[4381]: libva info: VA-API version 1.22.0
Apr 07 00:10:26 lemp13 org.mozilla.firefox.desktop[4381]: libva info: Trying to open /usr/lib64/dri-nonfree/iHD_drv_video.so
Apr 07 00:10:26 lemp13 org.mozilla.firefox.desktop[4381]: libva info: Found init function __vaDriverInit_1_22
Apr 07 00:10:26 lemp13 org.mozilla.firefox.desktop[4381]: libva info: va_openDriver() returns 0
Apr 07 00:10:28 lemp13 rtkit-daemon[1720]: Successfully made thread 4893 of process 4665 (/usr/lib64/firefox/firefox) owned by '1000' RT at priority 10.
Apr 07 00:10:34 lemp13 org.mozilla.firefox.desktop[4236]: (as)
Apr 07 00:10:34 lemp13 org.mozilla.firefox.desktop[4236]: (asas)
Apr 07 00:10:56 lemp13 packagekitd[2317]: Failed to get cache filename for firefox
Apr 07 00:18:21 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
Apr 07 00:18:43 lemp13 org.mozilla.firefox.desktop[4236]: (as)
Apr 07 00:18:43 lemp13 org.mozilla.firefox.desktop[4236]: (asas)
Apr 07 00:18:43 lemp13 org.mozilla.firefox.desktop[4236]: (asas)
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:24 lemp13 org.mozilla.firefox.desktop[4236]: [GFX1]: Error in eglSetDamageRegion: 0x3009
Apr 07 00:20:25 lemp13 systemd[3012]: app-gnome-org.mozilla.firefox-4236.scope: Consumed 1min 42.911s CPU time, 2.8G memory peak.
Apr 07 00:20:33 lemp13 firefox[4065]: [4065, Main Thread] WARNING: g_dbus_connection_unregister_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed: 'glib warning', file /builddir/build/BUILD/firefox-137.0-build/firefox-137.0/toolkit/xre/nsSigHandlers.cpp:201
Apr 07 00:20:33 lemp13 firefox[4065]: g_dbus_connection_unregister_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Apr 07 00:20:33 lemp13 systemd[3012]: dbus-:1.2-org.mozilla.firefox.SearchProvider@0.service: Consumed 81ms CPU time, 83M memory peak.
Apr 07 00:20:46 lemp13 systemd[3012]: Started dbus-:1.2-org.mozilla.firefox.SearchProvider@0.service.
Apr 07 00:20:46 lemp13 systemd[3012]: Started app-gnome-org.mozilla.firefox-8065.scope - Application launched by gnome-shell.
Apr 07 00:20:46 lemp13 org.mozilla.firefox.desktop[8065]: Error: Failed to open Wayland display, fallback to X11. WAYLAND_DISPLAY='wayland-0' DISPLAY=':0'
Apr 07 00:20:47 lemp13 rtkit-daemon[1720]: Successfully made thread 8226 of process 8065 (/usr/lib64/firefox/firefox) owned by '1000' RT at priority 10.
Apr 07 00:20:48 lemp13 org.mozilla.firefox.desktop[8065]: (as)
Apr 07 00:20:48 lemp13 org.mozilla.firefox.desktop[8065]: (asas)
Apr 07 00:20:52 lemp13 org.mozilla.firefox.desktop[8196]: libva info: VA-API version 1.22.0
Apr 07 00:20:52 lemp13 org.mozilla.firefox.desktop[8196]: libva info: Trying to open /usr/lib64/dri-nonfree/iHD_drv_video.so
Apr 07 00:20:52 lemp13 org.mozilla.firefox.desktop[8196]: libva info: Found init function __vaDriverInit_1_22
Apr 07 00:20:52 lemp13 org.mozilla.firefox.desktop[8196]: libva info: va_openDriver() returns 0
Apr 07 00:20:52 lemp13 rtkit-daemon[1720]: Successfully made thread 8544 of process 8424 (/usr/lib64/firefox/firefox) owned by '1000' RT at priority 10.
Apr 07 00:20:57 lemp13 org.mozilla.firefox.desktop[8065]: (as)
Apr 07 00:20:57 lemp13 org.mozilla.firefox.desktop[8065]: (asas)
Apr 07 00:20:59 lemp13 packagekitd[6165]: Failed to get cache filename for firefox
Apr 07 00:25:10 lemp13 org.mozilla.firefox.desktop[8065]: [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
The error message shows: WARNING: Unable to connect to ibus: Could not connect: Connection refused: 'glib warning', This message is associated with attempts to run GUI apps using sudo (maybe without the -H option or corresponding sudo configuration). How are you launching Firefox? Do you have multiple Firefox windows? What Firefox extensions are you using (see about:support page). Here:
I’m launching Firefox normally through the GUI: I boot the machine, log in, type “firefox” in the Gnome app search and hit Enter. I notice no keyboard input, so I log out, log back in, and launch Firefox the exact same way, and keyboard input works.
I have Firefox set to open previous session tab and windows, so Firefox usually starts with multiple tabs and windows open.
I took a stab and uninstalled the GNOME Shell integration add-on/extension, and this behavior seems to have changed? After a reboot, the first launch of Firefox exhibited this “no keyboard input” behavior, but after closing and re-opening Firefox, keyboard input worked, which was different behavior since previously I had to to log out and log back in before keyboard input started working again.
I rebooted again, and keyboard input worked on Firefox’s first launch.
I rebooted a third time, and the original behavior returned where I had to log out and log back in before Firefox didn’t throw an ibus warning in the logs. When Firefox was throwing the ibus warning, I tried launching Firefox using the Troubleshoot Mode by clicking Help → Troubleshoot Mode, which disables all the add-ons and extensions and reboots Firefox in a “safe mode” of sorts, but that didn’t solve the problem either. So, I don’t think it’s any of my add-ons or extensions? Very strange.
Does the issue occur if you revert this setting? I worry that this is hard to implement correctly for web sites that connect to an unstable list of 3rd party sites (I tend to only grant temporary access in NoScript). You could check to see if the issue is associated with a particular site by only having one site open when ending in a session.
check permissions (ls -lRZ ~/.mozilla/firefox). I see files/directories owned by me with 'unconfined_u:object_r:mozilla_home_t:s0`.
check for the issue with a newly created user (default Firefox configuration). Maybe try with default settings and then add the “open previous session” setting.