FedoraThis forum is for the discussion of the Fedora Project.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
Last edited by manwithaplan; 03-13-2009 at 08:20 PM.