As root, try this:
It's not perfect, but it will probe your system's hardware to see which configuration variables should be set. This will give you a good starting point with XF86Config. You can test the configuration file it generates by following the instructions it gives you after it completes.
As always, read the manpages. In this case,
man XF86Config If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke