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?
Write some bash scripts to automate your tasks on startup and shutdown. I know FC10 uses sessions for startup... not sure about the shutdown... Not sure of FC10 baselayout. I'm guessing you need to run the commands in "init3" on shutdown. After X closes. Check with Fedora on shutdown scripts. Check this thread
I've figure it out. I edited the startx script itlsef. Awesome!!! But I'm open to feedback if there are better approaches.
|All times are GMT -5. The time now is 07:15 PM.|