LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-20-2011, 01:25 PM   #1
den_.
Member
 
Registered: Apr 2010
Posts: 39

Rep: Reputation: 15
How do I turn off X?


Hi,
I am trying to install some drivers for either a radeon or an nvidia graphics card. I have some drivers for the nvidia but after getting the installation script to run it suggests that I need to turn of 'X' I understand this to be the graphical interface for the desktop.

I have Ubuntu installed on a fairly old system but these graphics cards work fine in, dare I say it, Windows :-).

Thanks for any help

Den
 
Old 02-20-2011, 01:35 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
press CTRL_ALT_F1
login
type
Quote:
sudo /etc/init.d/gdm stop
replace gdm with kdm if you use KDE
or edit
/etc/inittab,
and set the runlevel to 3
reboot

Kind regards

Last edited by repo; 02-20-2011 at 01:36 PM.
 
Old 02-20-2011, 01:36 PM   #3
Amdx2_x64
Member
 
Registered: Jun 2008
Distribution: Left LQ. Mods are too Rude!
Posts: 598

Rep: Reputation: 50
The latest Nvidia drivers (Maybe ATI?) should be in the Ubuntu Software Center.
 
Old 02-20-2011, 02:10 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
*

Menu : System > Administration > Hardware Drivers :

And the correct drivers will be installed automagically.
 
Old 02-21-2011, 12:04 AM   #5
BoraxMan
Member
 
Registered: Apr 2010
Posts: 103

Rep: Reputation: 11
Quote:
Originally Posted by repo View Post
press CTRL_ALT_F1
login
type

replace gdm with kdm if you use KDE
or edit
/etc/inittab,
and set the runlevel to 3
reboot

Kind regards

You can set the runlevel to 3 by issuing the following command as root.

telinit 3

you can then go back to the GUI login with

telinit 5

Using this, you don't need to manually stop GDM (or KDM or XDM), as it will terminate when switching to run level 3.
 
Old 02-22-2011, 08:08 AM   #6
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
Thank you all for your help, I will try all suggestions and post back. I did try the software centre in Ubuntu but I couldn't find any drivers for either the Nvidia or the Radeon cards, maybe I should re-check.

Kind regards

Den
 
Old 02-27-2011, 05:08 PM   #7
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
Hi,

I should explain my situation a little further: I would like to install the software drivers for the mentioned graphics cards to enable better support for playing games as the officially supported ones don't allow games such as quake to run. I have read about the undesirable effects of installing the drivers found on the Nvidia or Ati web sites but am willing to try them because I have used a live distro called Sabayon using the mentioned graphics cards and all was well with quake.

Using the help that you have kindly given I have tried to turn off the X server using 'sudo /etc/init.d/gdm stop', this seemed to work but all I have is a black screen so I still cant install the drivers.
I know I am missing something any help please

When I run the Nvidia script to install the drivers I get the following error message:

ERROR: You appear to be running an X server; please exit X before

installing. For further details, please see the section INSTALLING

THE NVIDIA DRIVER in the README available on the Linux driver

download page at www.nvidia.com.

I have visited the Nvidia site but couldn't find any help with the correct way to install these drivers.

Thanks in advance for any help

Den
 
Old 02-28-2011, 01:05 AM   #8
BoraxMan
Member
 
Registered: Apr 2010
Posts: 103

Rep: Reputation: 11
Quote:
Originally Posted by den_. View Post
Hi,

I should explain my situation a little further: I would like to install the software drivers for the mentioned graphics cards to enable better support for playing games as the officially supported ones don't allow games such as quake to run. I have read about the undesirable effects of installing the drivers found on the Nvidia or Ati web sites but am willing to try them because I have used a live distro called Sabayon using the mentioned graphics cards and all was well with quake.

Using the help that you have kindly given I have tried to turn off the X server using 'sudo /etc/init.d/gdm stop', this seemed to work but all I have is a black screen so I still cant install the drivers.
I know I am missing something any help please

When I run the Nvidia script to install the drivers I get the following error message:

ERROR: You appear to be running an X server; please exit X before

installing. For further details, please see the section INSTALLING

THE NVIDIA DRIVER in the README available on the Linux driver

download page at www.nvidia.com.

I have visited the Nvidia site but couldn't find any help with the correct way to install these drivers.

Thanks in advance for any help

Den
As stated in my earlier message, switch to run level three.

When you are staring at your graphical log in screen press
CTRL-ALT-F1
or
CTRL-ALT-F2 if CTRL-ALT-F1 doesn't give you a text based log in screen

Log in a root

run
# telinit 3

This will switch to run level three, which is basically multiuser mode without graphical login. It will stop GDM and more importantly, stop it from restarting should you kill it.

Run the installer for your graphics card.

Then when done, run
# telinit 5 to bring back the graphical login.

This has always worked for me.
 
Old 03-02-2011, 09:33 AM   #9
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks for your help,
I didn't realise you had to press CTRL+ALT+F1 at start up! didn't have any success with 'telinit 3' but I used 'sudo /etc/init.d/gdm stop' and the installer ran for the first time. unfortunately there was an error, it appears the drivers are for a different kernel so I will have to try and find the correct version of the drivers for my system.
Thanks for your help so far as I am now able to run the installer scripts.

Den
 
  


Reply



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
LXer: Tune In. Turn On. Turn Key. LXer Syndicated Linux News 0 09-13-2010 05:20 AM
how to turn permanently turn on laptop fan?;] blorpton Linux - Laptop and Netbook 6 01-11-2010 11:48 AM
My CnMBook Manual page 5 shows how to turn off on desk top, but how do I turn on? salmagundi Linux - Newbie 2 04-04-2009 02:46 PM
How to start, stop, turn on, and turn off deamons BuckRogers01 Debian 3 08-16-2005 09:39 AM
How to turn off Xserver in the gui and turn it off in the command line geminiviper Linux - Newbie 8 08-20-2004 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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