unload & load a module before X starts.
I'm on FC10. Wheres the best place to put some commands that I need to run before X server starts or after X server exits.
I'm using the commercial fglrx driver for my ATI Radeon HD. It took me days to do all the fixing before it ran. Everything works flawless except X server hangs after I start x second time. I mean, I manually do a startx from text mode, and work on X. I logout of X to text mode after some time. And if I do a startx again, my computer hangs.
After a lot of fiddling, I figured out that if I unload the flgrx module and reload it again before starting the X the second time, it works.
I just need to do a "modprobe -r fglrx && modprobe fglrx" and I need to do it after I exit out from the X so that my computer doesn't hang the next time I do startx. Or, if I can achieve the same before loading X, it'll work for me.
Where do I put those command? xinitrc? xinitrc-common? Plzzz note that its loading and unloading of graphics module so it cannot be done when X is running. The sequence is important.
Or any other approaches, u'd suggest? Any other way of reloading modules?