LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   edit Xorg.conf in Kubuntu 11.10 (https://www.linuxquestions.org/questions/ubuntu-63/edit-xorg-conf-in-kubuntu-11-10-a-911669/)

starsage77 11-03-2011 10:08 AM

edit Xorg.conf in Kubuntu 11.10
 
Okay..so I've posted a similar question before but the situation is a little different now. I'm running Kubuntu 11.10 and I can't get KDE to save my default display resolution once I've changed it in K.

I'm running an older IBM Thinkpad T30 and my ATI Radeon Mobility 7500 is no longer supported by the proprietary ATI linux driver (so I left it to the default driver..did not try installing ATI one).

I've done a little reading up and I know by default Oneiric Ocelot (11.10) does not have an Xorg.conf file but I can't figure out how to generate one. Or where to copy it to.

Any suggestions? Thanks

P.S. I promise to backup my xorg next time ;)

tommcd 11-04-2011 02:02 AM

See this to generate an xorg.conf file for K/Ubuntu: http://askubuntu.com/questions/4662/...figure-x-there
You can then edit the xorg.conf to your needs.
You can also try using xrandr: https://wiki.ubuntu.com/X/Config/Resolution
You can also try looking into and editing the files located in /etc/X11/xorg.conf.d/. The newer versions of Xorg use those files as well.
I know that this seems more complicated than it used to be when you just had to know about the xorg.conf file. Things are supposed to work automatically nowadays. However, things get more complicated when automatic configuration fails.

starsage77 11-12-2011 10:36 AM

after booting into recovery mode and running 'X -configure'

I attempt to copy the configuration file using 'cp /root/xorg.conf.new'
to '/usr/share/X11/xorg.conf.d/'

and I receive the error..

'could not create lock file in /tmp/.tX0 -lock'

any advice?

widget 11-12-2011 02:24 PM

Quote:

Originally Posted by starsage77 (Post 4522286)
after booting into recovery mode and running 'X -configure'

I attempt to copy the configuration file using 'cp /root/xorg.conf.new'
to '/usr/share/X11/xorg.conf.d/'

and I receive the error..

'could not create lock file in /tmp/.tX0 -lock'

any advice?

Were you doing this as root?

starsage77 11-12-2011 02:42 PM

if I'm in recovery mode do I need to specify root (via 'sudo') or is this the default?

tommcd 11-13-2011 09:57 AM

Quote:

Originally Posted by starsage77 (Post 4522430)
if I'm in recovery mode do I need to specify root (via 'sudo') or is this the default?

When you boot into recovery mode and drop to the root shell you are root. Therefore you do not need to use sudo.

In my last post I suggested looking at the files in the /etc/X11/xorg.conf.d/ directory. However, on my
Lubuntu 11.10 system I do not even have a /xorg.conf.d/ directory in the /etc/X11/ directory. It seems that this directory is no longer used as far as I can see. I assume this is also true on Kubuntu and Ubuntu as well as on my Lubuntu.
As I suggested in my last post, you can also try using xrandr to set the proper resolution: https://wiki.ubuntu.com/X/Config/Resolution

I am not very familiar with the KDE desktop. There must be some settings that you can adjust in KDE to set the proper resolution. How exactly have you tried setting the proper resolution on Kubuntu 11.10?

starsage77 11-13-2011 10:04 AM

it's not a matter of setting my desktop resolution during my session in K
it's a matter of trying to get K to store this new resolution as my default
for each and every subsequent session.

there is an option within the control panel to save as default but this is
just a ruse as the display reverts to maximum resolution on the next session

if this were the old days I could boot as root but Ubuntu won't allow this

tommcd 11-13-2011 10:20 AM

Quote:

Originally Posted by starsage77 (Post 4522932)
it's not a matter of setting my desktop resolution during my session in K
it's a matter of trying to get K to store this new resolution as my default
for each and every subsequent session.
there is an option within the control panel to save as default but this is
just a ruse as the display reverts to maximum resolution on the next session

This is the problem with all of this automatic (i.e., no xorg.conf needed) configuration. When it works, as it usually does with most graphics cards, it is great. However, when it does not work it can be difficult to override the automatic configuration to set things up the way you want them.

Have you managed to create an xorg.conf file while in recovery mode at all?
If you are still having trouble doing this, try booting to recovery mode and run X -configure. Then reboot to the desktop and run:
Code:

sudo cp /root/xorg.conf.new /etc/X11/xorg.conf
to copy the new xorg.conf to the /etc/X11/ directory. Then edit the xorg.conf file to your needs. Then reboot into (hopefully) your desired resolution.
If you have a known good xorg.conf file saved somewhere from a previous Ubuntu install, you could just use that and it would likely work. Or if you can find one on the internet somewhere, just use that and edit it to your needs.
Have you tried using xrandr as in the tutorial that I linked to? I'm not sure what else I can suggest.

starsage77 11-13-2011 11:56 AM

tried running those commands in recovery mode and still received the same error:

'could not create lock file in /tmp/.tX0-lock ddxSigGiveUp: Closing Log'

I'm afraid I'm not that familiar with Xrandr. Will this help to set my default
resolution for each session?

widget 11-13-2011 02:06 PM

That is a strange error to be getting.

Try just booting normally and when you get to the login screen, no matter what it looks like, hit Ctrl+Alt+F2. This should give you a tty login prompt. Log in. Run;
Code:

sudo su
This will give you the same root prompt but maybe (not likely) with different results.

Try this before anything else;
Code:

apt-get update
if that works try;
Code:

apt-get upgrade
if those both work try the your other command.

If not try;
[code]
dpkg-reconfigure -a
[code]
Might help.

starsage77 11-13-2011 03:08 PM

this isn't going to change my grub menu or anything will it?

the last time I altered my grub config I ended up not being
able to boot to the desktop and didn't know enough command
line to rebuild my grub

widget 11-13-2011 05:23 PM

If any of that effects the grub menu in anyway you have some very large problems indeed.

There is no mention of "update-grub" (a harmless command), "grub-install /dev/sdx" which could cause problems if you don't know the address of your drive. Nope, I don't think it will bother grub.

dpkg-reconfigure -a should make sure that the basic system is within the default rules for that system as seen by the package management tools. Basically are they installed right and some basic configuration.

It is just one of the dpkg commands that I use on package management problems. I like to run it early to see if it works. It has fixed things I didn't think it should. Unfortunately I doubt it will here but it will not hurt any thing.

starsage77 11-16-2011 05:58 PM

Okay.. so I ran 'apt-get update' and 'apt-get upgrade' the system located and installed updates. I successfully rebooted, went into recovery mode and went through the same process as before and still got the same error..

'could not create lock file in /tmp/.tX0-lock'

cynwulf 11-17-2011 07:45 AM

Quote:

Originally Posted by starsage77 (Post 4522286)
and I receive the error..

'could not create lock file in /tmp/.tX0 -lock'

any advice?

That error message won't appear when you copy files. It can appear when you try to do something silly like startx as root or when there is an .Xauthority problem.

First boot the system normally, then CTRL+ALT+F1, login as your normal user and then do

Code:

sudo invoke-rc.d gdm3 stop
Next WITHOUT root privileges (e.g. no su or sudo)

Code:

rm -rf ~/.Xauth*
To get rid of any stale .Xauthority files.

Then copy your xorg.conf to the correct location as instructed above and then

Code:

sudo invoke-rc.d gdm3 start
Login, what happens - if there are errors post the full details of the error(s).

starsage77 11-22-2011 05:09 PM

tried 'sudo invoke-rc.d gdm3 stop'

received the error: 'unknown initscript. /etc/init.d/gdm3 not found'


All times are GMT -5. The time now is 09:25 AM.