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.

I am trying to stop X Server so I can install some new NVidia drivers. However, the moment I type "sudo service lightdm stop", the computer goes into a blank screen, and nothing happens.

Any ideas?

Thanks.

MacBook Pro Retina (10,1), Xubuntu 13.04

share|improve this question
    
lightdm AFAIK is login Window and its not the Xserver –  Stefano May 15 '13 at 14:28
2  
... but stopping it will also kill your X-session. –  aquaherd May 15 '13 at 18:09
    
I have the same problem, drivers are installed. It seems to me that my problem is in presence of gdm (I have both lightdm and gdm installed, I am using lightdm). But still not sure how to fix it. –  g3n1uss Feb 22 at 1:09
add comment

4 Answers

Try pushing Ctrl+Alt+F1 (or whatever the Mac has) and login to install your drivers

share|improve this answer
    
Thanks, this is another strange part. All my virtual terminals are a blank screen, black, nothing. Then when I go CTRL+ALT+F7, the X Windows comes back. I do not understand. –  symbolix May 15 '13 at 14:31
    
You can also try to reboot into Recovery Mode and access the terminal If you have the option –  BeryJu May 15 '13 at 14:33
    
So? Any driver updates etc. I make under Recovery Mode's terminal will have effect on the actual SYS, right? –  symbolix May 15 '13 at 14:47
    
yes, as long as you boot using the Recovery Mode from the SYS –  BeryJu May 15 '13 at 15:00
add comment

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

If you are using GNOME:

sudo /etc/init.d/lightdm stop

to start again:

sudo /etc/init.d/lightdm start

If you are using GNOME:

sudo /etc/init.d/gdm stop

to start again:

sudo /etc/init.d/gdm start

If you are using kde:

sudo /etc/init.d/kdm stop

to start again:

sudo /etc/init.d/kdm start

Once you stop X, you need to get to virtual terminal. In Ubuntu its Ctrl+Alt+F1 - F7, to login, and gain access to the system.

share|improve this answer
    
Non of these commands work :( It just returns command not found. –  symbolix May 15 '13 at 14:46
    
Which display manager are you using? –  Mitch May 15 '13 at 14:48
    
Thanks: "sudo /etc/init.d/lightdm stop" kills X Server but I am immediately left with a blank screen, not terminal, just I like I am dropped into a blank screen when I hit CTRL+ALT+F1. Something is fundamentally broken. :( –  symbolix May 15 '13 at 14:49
    
X Server? It is Xubuntu 13.04. –  symbolix May 15 '13 at 14:57
add comment

you could install the driver from "Software Sources" in the last tab, if you want a beta driver add the xorg edgers ppa

if you have any hardware that need a nvidia/amd/ati/wifi driver is will show you a option there
you could boot recovery mode and drop to a root console and install the driver that way, but you will have to reinstall it after every kernel upgrade

share|improve this answer
    
nVidida Drivers need to be installed with no running XServer I think, also it's mostly better to download drivers from nvidia.com because they are newer. –  BeryJu May 15 '13 at 15:11
    
if you add the PPA i linked you can get the latest, only lag a day or 2 behind, stable drivers are in the xswat ppa –  GM-Script-Writer-62850 May 15 '13 at 15:30
    
Hi, thanks for the help. I messed up my Linux badly by installing an Nvidia driver that was not compatible with my Kernel. Then I got a Kernel-Driver mismatch and could not really recover. Just re-installed Xubuntu 13.04 and started from scratch. This is tricky and I do not understand how to do this right. –  symbolix May 15 '13 at 17:19
    
I assume you want the 319 driver, it will slow up in the xswat ppa soon, atm there is no raring repo there, you can get the beta driver from the xorg edgers ppa (BETA TESTING) if you cant wait sudo apt-add-repository ppa:xorg-edgers/ppa;sudo apt-get update;sudo apt-get dist-upgrade you may need to go into software sources to get the 319 driver –  GM-Script-Writer-62850 May 15 '13 at 22:56
    
Hi, I will start a new question related to this. Could you please help me in understand how to find the right driver? The question will be: askubuntu.com/questions/296168/… Thanks. –  symbolix May 16 '13 at 11:03
add comment

Here is another not so elegant solution that worked for me, I had same problem (still don't know why..): Just start up an ssh server before you kill the X server and do the driver install remotely from another machine.

share|improve this answer
add comment

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.