LinuxQuestions.org
Help answer threads with 0 replies.
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 05-31-2009, 03:25 PM   #1
Rikieman1
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
Driver Problem


Even tough I'm a total newbie to Linux I know this isn't right. My problem is very complicated (at least, I think so :s ) so try to stay with me.

First, It troubled me that there weren't any resolutions available over 800*600. My monitor and graphics card both support 1640*1050 (22" + NVIDIA 9800GT) so that's not the problem. I thought it might be the driver, but it appeared to have the latest driver installed. It was not activated however. When I turned it on it said the computer needed to restart in order for it to take effect, so I did (takes AGES somehow). And when I check, it's disabled again.

When I go to System -> Preferences -> display it says
"It appears that your graphics driver does not support the necessary extensions to use this tool. Do you want to use your graphics driver vendor's tool instead?"

And when I click yes it says
"You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server."

However, I can't run nvidia-xconfig even though I'm root. And when I try to use the chmod command it returns "chmod: changing permissions of `/etc/X11': Operation not permitted"

So can someone tell me what the hell is going on and how to fix this? If you can help me that would be great. If you can't thanks for going trough the trouble of reading all this ^.^'

PS:
Almost forgot to mention my Linux version >.<
Ubuntu 9.04 on a live USB stick.
 
Old 05-31-2009, 05:34 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Are you logged in as root or a user? the commands you have mentioned require root permissions to run. Before doing the nvidia-xconfig command try using su first and login in as root, alternatively if sudo is set-up you can also try "sudo nvidia-xconfig", however that does require that sudo is set-up to allow this for the user.
 
Old 05-31-2009, 05:35 PM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You did a pretty good job of describing your problem, the actions that you took to resolve the problem, and the results. Most people don't do as well writing posts. I just have a few questions.

Quote:
Originally Posted by Rikieman1 View Post
... I thought it might be the driver, but it appeared to have the latest driver installed. It was not activated however. When I turned it on it said the computer needed to restart in order for it to take effect, so I did (takes AGES somehow). And when I check, it's disabled again.
What exactly did you do to 'activate' the graphic driver? Is it the same thing that you describe in the following paragraph?
Quote:
Originally Posted by Rikieman1 View Post
When I go to System -> Preferences -> display it says
"It appears that your graphics driver does not support the necessary extensions to use this tool. Do you want to use your graphics driver vendor's tool instead?"And when I click yes it says "You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server."
Is this the procedure that you talked about in the previous paragraph?
Quote:
Originally Posted by Rikieman1 View Post
However, I can't run nvidia-xconfig even though I'm root. And when I try to use the chmod command it returns "chmod: changing permissions of `/etc/X11': Operation not permitted"
Exactly how did you attempt to run nvidia-xconfig? Was it in a terminal window? If it was in a terminal window what did it say? Copy and paste the attempt to execute this utility. Here is what happens when I attempt to run nvidia-xconfig, which isn't installed on my computer.
Code:
$ nvidia-xconfig
The program 'nvidia-xconfig' can be found in the following packages:
 * nvidia-xconfig
 * nvidia-glx
 * nvidia-glx-new
Try: sudo apt-get install <selected package>
bash: nvidia-xconfig: command not found
What exactly is the error when you use chmod? Try performing an ls -lh on the nvidia-xconfig file and then changing the permissions on it. Copy and paste that here as well. Here is an example of me changing the permissions on my $HOME/.bashrc.
Code:
$ ls -lah .bashrc
-rw-r--r-- 1 user user 162 2009-05-24 22:32 .bashrc
$ chmod -c o-r .bashrc
mode of `.bashrc' changed to 0640 (rw-r-----)
$
Quote:
Originally Posted by Rikieman1 View Post
Ubuntu 9.04 on a live USB stick.
That is helpful. When I started reading your post I would have quessed that you were using Fedora Core because of the 800x600 resolution.

Last edited by stress_junkie; 05-31-2009 at 05:44 PM.
 
Old 06-01-2009, 04:15 AM   #4
Rikieman1
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie View Post
You did a pretty good job of describing your problem, the actions that you took to resolve the problem, and the results. Most people don't do as well writing posts. I just have a few questions.


What exactly did you do to 'activate' the graphic driver? Is it the same thing that you describe in the following paragraph?

Is this the procedure that you talked about in the previous paragraph?

Exactly how did you attempt to run nvidia-xconfig? Was it in a terminal window? If it was in a terminal window what did it say? Copy and paste the attempt to execute this utility. Here is what happens when I attempt to run nvidia-xconfig, which isn't installed on my computer.
Code:
$ nvidia-xconfig
The program 'nvidia-xconfig' can be found in the following packages:
 * nvidia-xconfig
 * nvidia-glx
 * nvidia-glx-new
Try: sudo apt-get install <selected package>
bash: nvidia-xconfig: command not found
What exactly is the error when you use chmod? Try performing an ls -lh on the nvidia-xconfig file and then changing the permissions on it. Copy and paste that here as well. Here is an example of me changing the permissions on my $HOME/.bashrc.
Code:
$ ls -lah .bashrc
-rw-r--r-- 1 user user 162 2009-05-24 22:32 .bashrc
$ chmod -c o-r .bashrc
mode of `.bashrc' changed to 0640 (rw-r-----)
$
That is helpful. When I started reading your post I would have quessed that you were using Fedora Core because of the 800x600 resolution.
By activating the driver I mean going to system -> administration -> hardware drivers and double clicking on the driver available.

When trying to run nvidia-xconfig in the terminal it returns this message:
Code:
ubuntu@ubuntu:~$ nvidia-xconfig

Using X configuration file: "/etc/X11/xorg.conf".

ERROR: Unable to write to directory '/etc/X11'.
And I don't really get what you meant with all those commands. I don't really understand the terminal so can you tell me exactly what to enter in it?
When I enter "chmod 777 /etc/X11/xorg.conf" in the terminal it return the following:
Code:
ubuntu@ubuntu:~$ chmod 777 /etc/X11/xorg.conf
chmod: changing permissions of `/etc/X11/xorg.conf': Operation not permitted
Could you tell me what exactly to enter in the console to try and fix this?

It basically comes down to not having the authority to do anything, while I am in fact logged in as root. If you can help me solve this problem I will be very thanksfull.
 
Old 06-01-2009, 06:20 AM   #5
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Okay you are doing fine. I have one more question. How exactly did you log in as root? I ask that because Ubuntu does not allow root logins by default so this is an important point.

I am currently thinking that you have not logged in as root so you don't have the required privileges to make the changes that you intend to make.

Usually in Ubuntu you use the sudo command in front of commands that require root privileges as in this example.
Code:
$ sudo nvidia-xconfig
However there are usually applications that provide 'Administrator Mode' in order to perform system configuration without having to log on as root.

So please explain exactly how you log on as root.
 
Old 06-01-2009, 06:45 AM   #6
Rikieman1
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Well, after I booted ubuntu for the first time, I already was. I never changed anything with the permissions, and when I first logged in my Nickname was root, my real name was root, my group was root and my permission group was root. Everything indicates that I am in fact root, except for the actual permissions. I'm guessing I'm not really logged in as root then.
How do I make sure I am logged in as root?
 
Old 06-01-2009, 10:52 AM   #7
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
The philosophy behind Ubuntu is that you will never log in as root.

Now that I take a closer look at reply #4 I see that your prompt is ubuntu@ubuntu. That should mean that your computer is named ubuntu and your user account is named ubuntu.

Try the example that I showed you in reply #5. Open a terminal window and enter the following command.
Code:
sudo nvidia-xconfig
 
Old 06-01-2009, 11:37 AM   #8
Rikieman1
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks, I tried what you said, but it returned another error.
Code:
ubuntu@ubuntu:~$ sudo nvidia-xconfig

Using X configuration file: "/etc/X11/xorg.conf".

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
                  Device section "Configured Video Device" must have a Driver
                  line.

Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'
Now that I think about it, there's something strange about my xorg.conf
When I google it and see the xorg.conf of otherpeople it has much more information then mine.

Here's what my xorg.conf sais:
Code:
Section "Device"
	Identifier	"Configured Video Device"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
EndSection
There seem to be lines missing. As the terminal also indicates. I tried to add lines from what I saw on the internet but it doesn't let me save changes to it.
 
Old 06-01-2009, 12:25 PM   #9
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
If you think that you are knowledgeable enough to edit the xorg.conf file then use this command.
Code:
sudo gedit /etc/X11/xorg.conf
The driver line should look like this.
Code:
Driver "nv"
On the other hand you could be creating more problems for yourself.

In any case once you have entered the missing line then run sudo nvidia-xconfig again.

Last edited by stress_junkie; 06-01-2009 at 12:28 PM.
 
Old 06-03-2009, 02:36 PM   #10
Rikieman1
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by stress_junkie View Post
If you think that you are knowledgeable enough to edit the xorg.conf file then use this command.
Code:
sudo gedit /etc/X11/xorg.conf
The driver line should look like this.
Code:
Driver "nv"
On the other hand you could be creating more problems for yourself.

In any case once you have entered the missing line then run sudo nvidia-xconfig again.
Thanks! It's running like a charm now
 
  


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
ALSA driver problem: Intel HDA card driver Digital Watches Linux - Hardware 8 04-11-2008 07:02 AM
nv driver problem snowcc Debian 1 04-09-2005 04:04 PM
driver problem... Zerodark Linux - Newbie 4 03-09-2003 08:06 PM
Problem with RH 7.2 and GF 4 Ti Driver Nabu_gow Linux - Newbie 1 02-20-2003 04:57 AM
md driver problem Fenno Linux - Software 0 07-08-2001 06:18 AM

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

All times are GMT -5. The time now is 03:57 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