Link to home
Start Free TrialLog in
Avatar of akohan
akohan

asked on

How to restore my X back?


Hello,

I was trying to work around my laptop driver but it seems I have messed up with something! all windows (in Fedora 5) will attached to the top of the screen and I cannot see or even if Isee the menu I wouldn't be able to use them.
For instance, when I open a Terminal it goes up and attached to the left upper of my screen. If open Office then I cannot close it only I can close the text but the mainframe stays up and like a disable window.

Any solution to undo all changes?

Thanks,
Avatar of nedvis
nedvis
Flag of United States of America image

Whatever you did when installing proprietary video drivers from ATI Fedora hopefully saved your previous xorg.conf file ( backup copy ) . If you're lucky enough it's still there.
Open terminal windows ( console) and login as root ( su)
Change to directory where the file is located by typing:
cd /etc/X11
then type :
ls -l
to get the file list. If there are  xorg.conf.bak  or  xorg.conf.old  file(s) try this:

cp xorg.conf.bak  xorg.conf      (or cp xorg.conf.old  xorg.conf  depending on what file you have).

then depress  Ctrl+Alt+Backspace  keys at the same time to restart X server.
See if you have any better screen resolution.
=============================================================
If that does not work you can open terminal window and login as root.
Then type:
/usr/X11R6/bin/xorgcfg
which will bring graphical video configuration interface where you can change settings for your monitor
and video card. Save new configuration and restart X server by depressing Ctrl+Alt+backspace
=============================================================
Third solution to re-create default ( and very basic) xorg.conf  file is to press Ctrl+Alt+F1 in order to get
into text mode. Type : init 3 to switch to runlevel 3 and stop X server.
Then type :
cd /usr/X11R6/bin
where text mode X configuration tool is located.
Type :
xorgconfig
and follow prompts . Make sure to select appropriate entries for your monitor and video card .
save file and  type:
init 5
to return to graphical multiuser mode.

 
 
Avatar of akohan
akohan

ASKER


Hello nedvis,

Thank you. It is weird that I had restarted my system 2 times and on the third time everything was back to normal! but regarding your advice yes I did check the /etc/X11 and the xorg.conf.bak file was there but since the OS is working fine then I didn't do any thing else.

However, still one question is remaining; when I start my computer before it gets to X the part which is text and comes up with messages about hardware devices gets to 1024x768 but as soon as it gets close to graphic part it goes back to 800x600 mode.
why is that? is there any way I can keep it in high resolution even in X?

Thanks.
AKOHAN
ASKER CERTIFIED SOLUTION
Avatar of nedvis
nedvis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ssvl
just delete the .g* in your home dir
Avatar of akohan

ASKER



Thanks! but it was so strange. Before I submit the quesetion I had restarted my machine twice but no luck. Anyway, after I turned it down all setting came back!!!
so it is working just fine and the resolution problem got solved too.

Thanks all.