I am trying to understand how Xorg works.
I have created the following image to show my understanding (this image shows the state of the components after you press Ctrl+Alt+F7):
The following is the explanation of the image:
/dev/tty7is the controlling terminal for Xorg.
- Xorg directly talks to the VGA driver to draw on the screen (it does not send what it wants to draw to the TTY driver).
- Xorg directly receives input from the keyboard and mouse drivers (it does not receive keyboard and mouse input from the TTY driver).
- The Virtual terminal also receives input from the keyboard driver (but based on my testing, it receives the scan codes of the keys).
- The X clients (xterm and Firefox in the image) don't have a controlling terminal.
Is my understanding correct?