Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: Aardwolf on December 12, 2007, 11:49:10 am

Title: Please HELP (Linux)
Post by: Aardwolf on December 12, 2007, 11:49:10 am
I accidentally changed my Graphics Card settings in Linux to use a chip i thought I had but it turned out it was the wrong one, so now I can only run in terminal.

It's Kubuntu.

Please assist if you know how to change the graphics card used by X (Xserver) from terminal (no graphics will load, only terminal, so I can't even scroll up to look at the list of arguments available when I type in

X -help

So

HLP -help
Title: Re: Please HELP (Linux)
Post by: Scuddie on December 12, 2007, 12:54:03 pm
What gfx card do you have?

I don't know what the exact path/filename are, but I believe what you are looking for is this.

$ sudo nano /etc/xorg.conf (or /etc/xorg/x.conf)
Title: Re: Please HELP (Linux)
Post by: Herra Tohtori on December 12, 2007, 01:16:24 pm
...did you not make a backup file before editinf xorg.conf? :p

Anyway, you could try

$ sudo dpkg-reconfigure xserver-xorg (or run as root), select correct stuff and then restart X server with either Ctr-+Alt+Backspace, or if that doesn't work, $ sudo /etc/init.d/kdm restart could be a good bet.
Title: Re: Please HELP (Linux)
Post by: WMCoolmon on December 12, 2007, 01:42:44 pm
Did you use Kate?

If you did, by default it will store a file in the directory called "xorg~.conf". or something similar. Look for a "xorg.conf" with a tilde in the name from the terminal. That will be the original file that you started from, the last time you opened xorg.conf in kate.
Title: Re: Please HELP (Linux)
Post by: castor on December 12, 2007, 02:04:58 pm
..only terminal, so I can't even scroll up to look at the list of arguments available when I type in..
You can "scroll" in the terminal by pressing SHIFT+PageUp or PageDown.
Title: Re: Please HELP (Linux)
Post by: S-99 on December 12, 2007, 08:37:27 pm
dpkg-reconfigure xserver-xorg would probably be an easier command to do an easier switching of graphics drivers.  Mainly because linux newbs might not know their way around an xorg.conf file itself. Plus in dpkg-reconfigure xserver-xorg, it'll give you a list of graphics drivers to select from, so you can at least see if you have the right driver on your machine to select from besides the vesa driver.

Again aardwolf, what graphics card you have? If it's nvidia, then download the nvidia-glx driver. If ati then download the fglrx driver. And then do dpkg-reconfigure xserver-xorg to select the proper drivers. After the settings are applied just restart your machine. Or just restart X (i don't suggest this in kubuntu, kubuntu has a funky way of restarting X).