Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Absolute Beginner Talk
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Absolute Beginner Talk
The perfect starting place to find out more about computers, Linux and Ubuntu.

 
Thread Tools Display Modes
Old July 24th, 2007   #1
Lokanna
5 Cups of Ubuntu
 
Lokanna's Avatar
 
Join Date: Jul 2007
Location: Delaware
Beans: 16
Edubuntu 7.04 Feisty Fawn
Question [SOLVED] Unable to save resolution via nvidia control panel and editing x's config

First off, I'd like to thank everyone who has ever tried to help anyone on these forums. I spent a few days lurking, reading, and deciding to dual boot and use Ubuntu.

My first install was smooth, in fact, smoother than most windows installs go. I was up and running, browsing sites, reading and replying to emails, and I'd even managed to listen to some old mp3's. Google+ubuntuforums.org have helped me immensely, so thank you!

Unfortunately, on day1, I was annoyed at the low resolution that gnome was using and decided to try and get my nvidia card up and running. The mistake I made was I failed to google or read up about how to do this first and I think I "broke" x-server.

The first step I did was go to restricted drivers and enable the nvidia card listed there. Upon reboot I could not get into the GUI. I booted back into my Windows and googled the issue.

I tried first to dpkg xconfig (or something equivalent). I was able to select various resolutions doing this and set up my video card. However, as soon as I selected the color bit's, it crashed (for a lack of the knowledge of proper terminology) back to the CLI. I tried all options for color bits but I continually crashed and make multiple xorg.conf.########## files.

I was finally able to reinstall the GUI and was back up and running. I then envy'd the nvidia drivers and everything installed and ran fine -- until I tried to save the resolution to the X configuration file!

When I did that, I received the error message: Unable to remove old X config backup file '/etc/X11/xorg.conf.backup'.

So, being the stubborn, curious individual I am, I tried to open the directory it was in and just move it to the trash. No luck. The OS said: Unable to move to trash:Access denied. Needless to say, it was time to fire up the CLI and just rm the file, right?

Wrong. Apparently I can't get into the X11 directory in my /etc directory.

Long story short (I know, too late!), I'm past this newb's level of tolerance. While I can manually set the resolution every time I reboot, it's fairly annoying. I've essentially completely migrated from Windows (and in under 48 hours no less) with the exception of some games. I'm quite fond of the Wesner game I grabbed from the ubuntu programs, so I've actually not used Windows since yesterday's driver issue.

Can someone please point me in the direction on how to resolve this issue? I just want to be able to save the x configuration file (via nvidia, CLI, anything) so that I can continue to learn this new OS.

As I stated previously, thanks again though. I've already utilized these forums immensely in the past 40 hours or so, and I wanted to give thanks!
Lokanna is offline   Reply With Quote
Old July 24th, 2007   #2
sad_iq
Quad Shot of Ubuntu
 
Join Date: Sep 2006
Location: Spain
Beans: 404
Kubuntu 7.04 Feisty Fawn
Re: Unable to save resolution via nvidia control panel and editing x's config

Have you tried using
Code:
gksu gedit /etc/X11/xorg.conf
to edit the file??? Also to remove the file in /etc/X11/xorg.conf you have to use sudo: sudo rm /etc/X11/xorg.backup. If you still get in trouble post the model of your nvidia card and your xorg.conf!!!
sad_iq is offline   Reply With Quote
Old July 24th, 2007   #3
benx009
Way Too Much Ubuntu
 
benx009's Avatar
 
Join Date: Sep 2006
Location: UT2004
Beans: 254
Kubuntu 7.10 Gutsy Gibbon
Send a message via Yahoo to benx009
Re: Unable to save resolution via nvidia control panel and editing x's config

the reason you are probably constantly getting the "access denied" error message is because you are not browsing as root. are you familiar w/ the command "sudo su"? it will grant you the permissions you need to edit virtually anything in ubuntu. why don't you try saving the your xorg.conf file as root and see what happens? use "sudo" only when you need it though, and try to be wary and what you are editing (make sure you're doing things right the first time) or you might just end up "crashing" your system again. i can say that from experience
benx009 is offline   Reply With Quote
Old July 24th, 2007   #4
Lokanna
5 Cups of Ubuntu
 
Lokanna's Avatar
 
Join Date: Jul 2007
Location: Delaware
Beans: 16
Edubuntu 7.04 Feisty Fawn
Cool Re: Unable to save resolution via nvidia control panel and editing x's config

Quote:
Originally Posted by benx009 View Post
the reason you are probably constantly getting the "access denied" error message is because you are not browsing as root. are you familiar w/ the command "sudo su"? it will grant you the permissions you need to edit virtually anything in ubuntu. why don't you try saving the your xorg.conf file as root and see what happens? use "sudo" only when you need it though, and try to be wary and what you are editing (make sure you're doing things right the first time) or you might just end up "crashing" your system again. i can say that from experience
I was unfamiliar with the sudo su command. I was finally able to remove the xorg.conf.backup file, however, the control panel can't create a new one.

Quote:
Have you tried using
Code:

gksu gedit /etc/X11/xorg.conf

to edit the file??? Also to remove the file in /etc/X11/xorg.conf you have to use sudo: sudo rm /etc/X11/xorg.backup. If you still get in trouble post the model of your nvidia card and your xorg.conf!!!
No, I have not tried that command until I read your post. I'm sorry, but I was unaware of it's existence and was impatient, I apologize for not discovering it sooner.

That said, I did use the command and gedit, however, as I'm weary of completely destroying this file once again, I'm hesitant to edit. I guess I may as well live and learn..

Quote:
When you run the xconfig utility, the color bits setting is the last setting in the utility. After you select color bits, the utility autosaves the xorg.conf file and closes without prompting you.
Now there's some info I didn't know either. Thanks for the tip! However, now I'm even more confused. If what you're saying is true, why won't the gui save the resolution, especially considering it's saving correctly?

Thank you all for the responses. I'm off to try and get this thing worked out.
Lokanna is offline   Reply With Quote
Old July 24th, 2007   #5
TheAmazingDave
5 Cups of Ubuntu
 
TheAmazingDave's Avatar
 
Join Date: Jul 2007
Beans: 17
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to TheAmazingDave
Re: Unable to save resolution via nvidia control panel and editing x's config

When you run the xconfig utility, the color bits setting is the last setting in the utility. After you select color bits, the utility autosaves the xorg.conf file and closes without prompting you.
TheAmazingDave is offline   Reply With Quote
Old July 24th, 2007   #6
Lokanna
5 Cups of Ubuntu
 
Lokanna's Avatar
 
Join Date: Jul 2007
Location: Delaware
Beans: 16
Edubuntu 7.04 Feisty Fawn
Re: Unable to save resolution via nvidia control panel and editing x's config

Using gedit, I was able to preview the control panels output and manually enter the info into the xorg.conf file. I rebooted and my resolution is sticking.

Thanks for the responses, I really appreciate the info.
Lokanna is offline   Reply With Quote
Old August 12th, 2007   #7
jaygo
A Carafe of Ubuntu
 
Join Date: Aug 2007
Location: US
Beans: 134
Ubuntu 9.10 Karmic Koala
Re: [SOLVED] Unable to save resolution via nvidia control panel and editing x's confi

Posting for posterity ...
The reason it wasn't saving to your xorg.conf from the nvidia-settings applet is that you weren't running the applet as root. (I just found this one out myself). You can launch (apparently) any applet you need to, as root, by using 'gksudo'. 'sudo' will launch things as well but doesn't seem to give the GUI version. In your case, you would have wanted to use (in the terminal)
Code:
gksudo nvidia-settings
to run the applet as root or
Code:
gksudo gedit /etc/X11/xorg.conf
to edit it manually.
One note, closing the terminal seems to take down the launched applet (gedit or nvidia-settings) with it, so leave it open until you're done.
jaygo is offline   Reply With Quote
Old June 9th, 2008   #8
itisbasi
Just Give Me the Beans!
 
itisbasi's Avatar
 
Join Date: Nov 2007
Location: Bangalore,Karnataka,India
Beans: 63
Ubuntu 8.10 Intrepid Ibex
Send a message via Skype™ to itisbasi
Re: [SOLVED] Unable to save resolution via nvidia control panel and editing x's confi

That's great. It worked for me. Thanks a lot. I guess that's one of the problems of being a newb in linux, haha something as simple as opening the application as root....
itisbasi is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:33 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry