Score:5

ALT+TAB stops working after a while in Ubuntu 21.04

nl flag

After upgrading to Ubuntu 21.04 "hirsute", changing of program windows with ALT+TAB stops working. After a while I am not able to jump between programs.

Also the red dots in the favorites bar which shows that a program is open/active are not vanishing after closing / shutting down the program any more, at least for Thunderbird.

~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.04
DISTRIB_CODENAME=hirsute
DISTRIB_DESCRIPTION="Ubuntu 21.04"
~$ echo $XDG_CURRENT_DESKTOP
ubuntu:GNOME

Does anybody know how to get my workflow back?

Addition: it's not ALT+TAB which is not working. It is only "change windows". If I switch ALT+TAB to "change windows immediately" in the gnome settings for keyboard shortcuts, it works to change the windows directly. After a reboot and changing it back to "change windows" (with having a choice through all open programs) it works for a while then stops working again after some time. Strange...

24601 avatar
in flag
Ubuntu 21.04 is an interim release. You can advise the developers by [reporting a bug here](https://bugs.launchpad.net/ubuntu/+filebug/?no-redirect)
FedKad avatar
cn flag
Did you try to disable all GNOME add-ons?
Score:6
us flag

I was able to resolve the problem, yeah! :) I had exactly the same problem, i.e., both alt+tab not working and the red bullets at the thunderbird icon not disappearing.

Reading through that question I found out that it's related to Wayland not working correctly. Wayland is a display server protocol used by Ubuntu 21.04. Its predecessor used Xorg instead.

This is how you can confirm that Wayland is used -- and how you can change it. Note that my response is copied from the stackoverflow entry above, so please like that response as well if you found my response helpful!

  1. Type echo $XDG_SESSION_TYPE --> It will print Wayland (I suppose).
  2. Type sudo gedit /etc/gdm3/custom.conf --> You will find the entry #WaylandEnable=false, from which you will have to remove the comment symbol, i.e., remove the #. I assume that switches back to Xorg.
  3. Save, reboot, and enjoy alt+tab again! :)

(FYI: In my case, Ubuntu freezed altogether at some point, and it seems as if this is now resolved as well.)

johnk avatar
tw flag
Thank you so much. This also fixes my issues with Citrix Workspace remote desktop and Alt+Tab
Prof.Chaos avatar
us flag
You are very welcome. :) Happy to learn that it even solved further problems!
Pilosa avatar
no flag
Although my fiddly workaround for my problem worked (see my answer), I have now switched from Wayland to Xorg after all. Somehow it also feels a bit faster. Thanks for the tip!
in flag
I have the same problem with `XDG_SESSION_TYPE=x11`.
cn flag
at some unexpected time in the future will an update break this by re-enabling wayland?
Prof.Chaos avatar
us flag
I don't know... But is that still relevant? 22.04 has been released anyway!
Thomas avatar
in flag
I had the same problem with Ubuntu 21.10. Additionally, I could not scroll in some web pages in Firefox (especially banking web sites). All 3 Problems are solved after switching back to Xorg.
Nasimuddin Ansari avatar
ng flag
This is solved my other problem https://stackoverflow.com/questions/72512625/dual-monitor-setup-on-citrix-workspace-app-for-linux-is-not-working . thanks @Prof.Chaos
Score:1
uz flag

I'm also affected by this, but this worked, by Jakob Lell:

"I'm also affected by this bug when using Thunderbird but I've found a workaround: Unpin Thunderbird (right click on the icon and "Remove from Favorites"). After that you can still start Thunderbird manually, it won't trigger this bug any more when it is just a normal application (and not a "favorite" application with a fixed place in the Dock)."

Score:1
cn flag

I've been running 21.04 for a couple of months now without issues, but just yesterday, the problem described here started to happen for me, too. Seems to be due to a recent update of something.

Florian Friedrich avatar
cn flag
To add: there does seem something odd about Thunderbird. The behaviour described above of the Favourites Bar / launcher really only happens with Thunderbird, not other applications. Not sure whether it's related to the Task switcher issue, but they do seem to kick in at the same time.
Florian Friedrich avatar
cn flag
Filed a bug report: https://bugs.launchpad.net/ubuntu/+bug/1934527
Florian Friedrich avatar
cn flag
Apparently has to do with Thunderbird not properly de-registering an email window after sending mail. So the window switcher gets a null pointer to a window that does not exist, and crashes.
in flag
I have the Alt+Tab issue but I don't use thunderbird. I use another Mozilla product though: Firefox.
cn flag
@FlorianFriedrich so uh... can't you just restart the switcher?
Score:0
no flag

I get the same problem when sending emails with Thunderbird. However, if I press ALT+TAB directly after pressing "Send" in Thunderbird and keep ALT pressed until the mail is sent, then the problem does not occur.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.