LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2007, 02:38 PM   #1
Jayla
Member
 
Registered: Nov 2005
Location: Suffolk, UK
Distribution: kubuntu 9.04
Posts: 188

Rep: Reputation: 30
I've been a newb, please help (urgent!)


Hi Guys

I've been a bit of a newb, I seem to have corrupted my xorg file or something, as I'm unable to run startx or startkdm due to an nvidia driver problem.

Can anyone tell me what the command is to revert back to the default graphics drivers where from installation? I can't start up KDE and have to post this using Lynx at the command line (I'm laughing at myself for this)

I installed the nvidia package from synaptic pkg manager, and ran the command that was listed at the bottom of the info page for that package, seemed fine to me, but after restarting X server i'm screwed!

Please help!

Thanks
 
Old 11-19-2007, 02:44 PM   #2
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 37
The open source driver is called nv. Just change xorg.conf from where it says
Code:
    Driver         "nvidia"
to
Code:
    Driver         "nv"
 
Old 11-19-2007, 02:45 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
If you're using Ubuntu like your profile says, try running from the command line sudo dpkg-reconfigure xserver-xorg and select either the "nv" driver or the "vesa" driver.
 
Old 11-19-2007, 03:10 PM   #4
wit_273
Member
 
Registered: Mar 2007
Location: Nebraska
Distribution: CentOS
Posts: 82

Rep: Reputation: 15
Assuming that it is not as simple as what general failure suggest this may help. It is a couple less steps then pljvaldez suggest although his way is probably the most correct way.

I screwed one of my systems up by installing the wrong video driver on an Ubuntu 7.10 system before too. The fix was to get rid of the xorg.conf file-- I just moved it to a backup file. The next time I started X xorg.conf was rebuilt with usable settings. I am guessing this will solve your issue also.

Once you log into terminal do this.
Code:
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf_orig
Worst case scenario if this does not work is you have to move the file back and manually edit xorg.conf.
 
Old 11-19-2007, 03:12 PM   #5
Jayla
Member
 
Registered: Nov 2005
Location: Suffolk, UK
Distribution: kubuntu 9.04
Posts: 188

Original Poster
Rep: Reputation: 30
Thanks pljvaldez, running that command I was able to go through the setup, however it failed due to authority over a file it wrote to my desktop?

i ran sudo dpkg-reconfigure -phigh xserver-xorg then startx to get me into Gnome

however, if I log out i have to perform those steps again, how can I resolve this and return to KDE?


xorg.conf
Code:
Section "Files"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"gb"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"stylus"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"stylus"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"eraser"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"eraser"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "InputDevice"
	Driver		"wacom"
	Identifier	"cursor"
	Option		"Device"	"/dev/input/wacom"
	Option		"Type"		"cursor"
	Option		"ForceDevice"	"ISDV4"		# Tablet PC ONLY
EndSection

Section "Device"
	Identifier	"nVidia Corporation G71 [GeForce 7900 GS]"
	Driver		"nv"
	BusID		"PCI:3:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	28-64
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"nVidia Corporation G71 [GeForce 7900 GS]"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Modes		"1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"

# Uncomment if you have a wacom tablet
#	InputDevice     "stylus"	"SendCoreEvents"
#	InputDevice     "cursor"	"SendCoreEvents"
#	InputDevice     "eraser"	"SendCoreEvents"
EndSection

regards
 
Old 11-19-2007, 03:33 PM   #6
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 37
Edit your xorg.conf at /etc/xorg.conf or /etc/X11/xorg.conf and remove the one you saved to your folder.
 
Old 11-19-2007, 04:59 PM   #7
Jayla
Member
 
Registered: Nov 2005
Location: Suffolk, UK
Distribution: kubuntu 9.04
Posts: 188

Original Poster
Rep: Reputation: 30
thanks for the advice guys

Just some info for anyone that comes across this post in the future with the same problem

I ran sudo dpgk-reconfigure -phigh xserver-xorg which, correct me if I'm wrong, re-created the xorg.conf file?

It didnt seem to work after running that command (ie couldnt start up KDE), but after a hard-restart (sudo reboot -h) it seemed to work as normal?!

Thanks for the help

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 10:21 AM
Urgent newb question about driver installation error. Help!! rockmanneo Linux - Newbie 2 03-27-2007 05:36 PM
Newb Needs Urgent Help! hustla Slackware - Installation 2 10-21-2006 08:47 AM
Suse Newb: Not Linux Newb rodericj SUSE / openSUSE 9 03-25-2005 10:03 AM
The first step to ascending newb status, acknowledging you're a newb :P LordRaven LinuxQuestions.org Member Intro 1 08-24-2004 05:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration