I'm working on a device running Linux system, however, the display device needs to be configured manually before Xserver starts, otherwise the framebuffer device won't work.
There are 2 methods to implement this "manual operation":
Run this operation before xinit, however, after googling and reading startx script, I found that there's no script hook that runs before xinit running;
Implement a systemd unit to do this "manual operation" before Xserver starts, I searched but cannot find the information that can tell me which service or which process that actually runs "startx" or brings up Xserver;
So I post this question here, hope that someone can give me a hint.