Score:1

Unable to click ALT+TAB programmatically ubuntu 21.04

jp flag

I'm trying to understand why I am no longer able to perform alt-tab and other manipulations programmatically on Ubuntu 21.04. I guess this functionality won't work at all. Did something change from a security perspective? I'm using Kernel 5.11.0.40-generic.

question from StackOverflow with python and java example

Score:0
cn flag

Indeed this is due to Ubuntu 21.10 defaulting to the Wayland display driver (also after an upgrade) that uses different protocols and implements security mechanisms. For now, you need to move back to Xorg to keep this working until Python libraries with equivalent functionality become available for Wayland - you will likely need to adapt your code at that point.

To switch from Wayland to Xorg, log out. After selecting your name, click the cog wheel and select the Xorg session before entering your password.

enter image description here

Женя Кириченко avatar
jp flag
For now, you need to move back to X11 - what do you mean under X11? I guess rollback to the old kernel version is not an option for me (I have AMD Ryzen 7 4800h which works badly with the old kernel version) so I will just wait.
vanadium avatar
cn flag
No, I mean reverting to the X11 instead of Wayland, which can be done from the login screen. I will add some detail
Женя Кириченко avatar
jp flag
Works fine! Thank you! On Ubuntu 20.04 use Xorg by default?
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.