Web lists-archives.com

Re: VT2 for Xorg?

On Sat, Jul 07, 2018 at 04:35:16PM -0400, Carl Fink wrote:
> Anyone else have this? Since using the nVidia fix posted to this list, Xorg is claiming VT2, not VT7 as usual.
> No biggie once I figured it out, but odd.

When Xorg starts, there's an optional -keeptty

There's also a deallocvt command

With a bash fn like:
  ttyGetNum () { return $(tty | grep -oE '[0-9]+$') ; }

Then something like this will id your current tty:
  ttyGetNum;  export Xorg_vt=vt$?

I don't have nvidia

Good luck,