1

I'm running two applications on two different ttys. Say application A runs on ttyA and application B runs on ttyB. If I switch from ttyA to ttyB I get the following message

x-daemon[544]: (II) AIGLX: Suspending AIGLX clients for VT switch.

So application A on ttyA, which obviously is a Xorg application, isn't updated anymore. This eventually causes my system to freeze due to a sort of memory leak as buffers in application A are not swapped anymore.

Question: Is it possible to keep refreshing X when the X server is not in the active tty?

I tried starting Xorg with -novtswitch but that didn't work.

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232

1 Answers1

0

Xorg takes control over the GPU. If another tty takes control over the monitor, Xorg has to release the GPU. Applications that use GPU hardware acceleration (AIGLX clients mentioned in your log) are suspended because the GPU cannot be shared across different ttys or multiple X servers.

You can run Xorg without hardware acceleration at all, compare: How to disable Hardware Acceleration in Linux?


A possibility for single applications are untrusted cookies:

You can forbid an application to have access to GPU with untrusted cookies. Example: xauth -f $HOME/mycookie generate . untrusted XAUTHORITY=$HOME/mycookie glxgears glxgears will fail to start because it has no GPU access. Using trusted instead of untrusted allows GPU access, and glxgears works.

(From https://security.stackexchange.com/a/161342/132289)

mviereck
  • 2,467