Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

in order to fix a problem with the setup of the screen brightness I try to create a xorg.conf

This is done by the command X -configure right?

Trying to run this command as root, I will get:

Fatal server error:
Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.

Trying to run this command in recovery modus, I will get the same. After remove the mentioned file I get the error: cannot create file /tmp/.X0-lock Just to make sure: Yep I have the rights as I am logged in as root.

share|improve this question
    
I`m with the same problem and after do this in the 3. sudo Xorg -configure show List of video driver ... ... ... (++) Using config file? "/root/xorg.conf.new" (==) Using system config directory "/usr/share/X11/xorg.conf.d" Number of created screens does not match number of detected devices. Configuration filed. Server terminated with error (2). Closing log file. Please help me!!!!! –  Jamal Malik Mar 14 '13 at 1:06

1 Answer 1

i think you have to stop the xserver first. Try this:

  1. create Terminal with CTRL+ALT+F1 and login
  2. sudo stop lightdm (or kdm or gdm instead if you installed kubuntu or GNOME shell)
  3. sudo Xorg -configure
  4. sudo start lightdm (or kdm or gdm instead if you installed kubuntu or GNOME shell)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.