Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 07-24-2012, 06:58 AM   #1
LQ Newbie
Registered: Jun 2012
Location: Bangalore,India
Distribution: Linux Mint 13 XFCE,Windows XP
Posts: 29

Rep: Reputation: Disabled
Using sgfxi script for NVIDIA driver install

Some doubts about the sgfxi script:
1. How to use sgfxi script from smxi tool to install NVIDIA driver .run file downloaded from the NVIDIA website?
2.Is there any option which can be passed to the script to use the .run file instead of allowing the script itself to download the driver?
3. Can the driver files downloaded by the sgfxi script be preserved and used again if I need to re-install the OS again?

Thanks for the help.
Old 07-25-2012, 04:18 PM   #2
LQ 5k Club
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: AntiX 17 , ChromeOS
Posts: 5,112
Blog Entries: 20

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381

sgfxi will not install the run file. But you can install the .run file while out of X server.
another ubuntu user posted this

I installed latest drivers by this method

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

sudo apt-get update

sudo apt-get install nvidia-current
It is working fine with unity 3d.Thanks to
Old 07-25-2012, 06:35 PM   #3
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 462Reputation: 462Reputation: 462Reputation: 462Reputation: 462
sgfxi manual page :: Debian/Ubuntu/Arch install script for nvidia, fglrx, and xorg drivers :
$ sgfxi --help
While you can run this script in X, we recommend you run it in terminal.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Script Requirements: Debian/Ubuntu/Arch/Fedora based systems.
Xorg version required: 7.1/1.1 or greater - Your X version: 1.12
Linux Kernel required: 2.6.18 or greater - Your kernel: 3.2.0-3-486
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
'default(s):' - The driver installed automatically by sgfxi unless it is not supported by
your card. Some older cards will force an override of this basic default. Script will
print out what driver it will install when you start it up, with option to exit.

'supported-drivers:' choices require -o <see -o for correct syntax> to install>.
Fglrx:  default: 12-3
Other supported-drivers: 12-3 12-2 12-1 12-2 12-1 11-12 11-11 11-10 11-9 11-8 11-7 11-6 
11-5 11-4 11-3 11-2 11-1 10-12 10-11 10-10 10-9 10-8 10-7 10-6 10-5 10-4 10-3 10-2 
Nvidia: defaults (current + legacy - 3 2 1): 295.40 173.14.31 96.43.20 71.86.15
Other supported-drivers: 295.33 295.20 290.10 285.05.09 280.13 275.43 270.41.19 
260.19.44 256.53 195.36.31 190.53 185.18.36 180.60 177.82 173.14.30 173.14.25 169.12 
100.14.19 96.43.18 96.43.19 96.43.17 96.43.16 71.86.14 71.86.13 71.86.11 
The following drivers are available for testing purposes:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Script Options:
-A Run the install non-interactively. Will not restart x at end.
-b Enable tripleBuffer (nvidia only). triplebuffer can reduce 3d performance on cards
   with low graphics memory (64 mB or less). Default is disabled/off.
-B Use latest Beta Driver for your card type. Autodetects card type/beta driver (nVidia cards only).
   If no beta driver is available, the current stable driver for your card type is used.
   (Also checks nvidia for live latest beta information, and replaces script defaults with newer if present)
-c Force use of Xorg composite mode. Beryl/Compiz requires this for 3d. Old nvidia/ATI/Intel 
   cards not supported. Composite is default ON for newer nVidia/ATI cards (-c not required).
-C Skip Xorg configuration. Only use this if your Xorg is already working with your driver.
   Main use is if you have dual card output and don't want xorg.conf changed.
-d Installs distro packaged nVidia/fglrx drivers. ATI/nVidia cards only (formerly -s).
-D Build Distro (Debian/Ubuntu only) packages for fglrx with FGLRX binary run package,
   then install them (formerly -F). Not recommended. Because of constant package
   builder failures, the direct install method is now default.
-f Force option. Forces (re)install of your driver, bypasses module check/build (nVidia only).
-h View this help menu.
-j Alternate text/output script colors. Requires this syntax: -j 0 (sets to monochrome )
   -j 1 (default); -j 2 (pale); -j 3 (earthy); -j 4 (dark - for light console background)
-k Build kernel module either for current kernel or another kernel (with -K <kernel version
   Can be run in X. Simply builds the kernel module for that kernel, and does not remove
   any other modules or drivers, or update /etc/X11/xorg.conf. Requires previous install
   with sgfxi of the same driver to work. This feature only supports nVidia drivers.
   Hint: sgfxi -! 40 will install modules to all your non-running kernels automatically!
-K Installs nVidia/fglrx driver for another kernel. Syntax: sgfxi -K 2.6.25-2
   sgfxi will double check that the kernel exists (Debian/Ubuntu only).
-L List current live driver or status data then exit. Requires extra argument: d to show current drivers;
   n to show current nvidia support status; f to show current fglrx support status;
   v to show current latest local + remote sgfxi svn/server version information.
-n Automatically installs correct native xorg nv, intel, or ati driver for your system.
   Cleans up old binary driver stuff, updates xorg.conf with new driver information,
   and cleans nvidia and fgrlx stuff out of xorg.conf
-N Force install of specific xorg driver. Syntax: sgfxi -N <driver> Ex: sgfxi -N radeonhd
   Supported Xorg drivers:  apm ark ati chips cirrus cyrix fbdev glint i128 i740 intel i810
   imstt mach64 mga neomagic nsc nv openchrome nouveau radeon radeonhd rendition s3 s3virge
   savage siliconmotion sis sisusb tdfx tga trident tseng vesa vga via voodoo vmware v4l
   Also configures xorg.conf as required. Full radeon xorg 3d configuration automatically.
-o Override default: install a specific driver, this is an absolute override - syntax:
   -o 177.68 (for nVidia) or: -o 8-6 (for fglrx)
-q Turns off composite mode. Default is ON for newer nVidia/ATI cards.
-Q Skip start X Question, automatically start X post driver install.
-r Remove mode lines from xorg.conf
-R Skips self updating feature. No restart.
-U Forces sgfxi to update itself, must be root, but can be in x. Exits after.
-v Prints sgfxi current version information. Exits after.
-W Skip all wget downloads. Only use this to reinstall a driver that has already been
   downloaded using sgfxi at least once previously.
-x Reverts to default for system instead of nVidia package (nVidia only)
-X Use to skip auto X start/stop. Do not use this unless you have a good reason to not 
   want X start/stop tests to run. Gives start X option on completion if not in X.
-Y Clean script download and backup files. Shows a list of cleanup actions to carry out, including script uninstaller.
   Can be run in X, as root.
-z Backup and recreate xorg.conf using the command: X -configure (requires X/Xorg command)
   Only use if you know what you are doing! This creates a simple, basic xorg.conf file.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Advanced Options :: Only for Specialized Cases
-! 32 Remove/Purge all drivers; remove all grub modeline blacklists; restore system to default
      without redoing xorg.conf; moves xorg.conf to backup. Only use this on new Xorgs that do not
      require xorg.conf file to operate. Using this command restores system to default.
-! 33 - Skip Grub file tests. Important: Only use with nVidia/ATI if radeon/nouveau have been blacklisted.
-! 40 Create modules for all your kernels (nVidia only). Will loop through and test
      each if can be made, then create the modules, excluding your running kernel.
      You must have already installed an nVidia driver with sgfxi to use -! 40
      Note: if your installed driver is NOT the default sgfxi offers, you have to
      use either the -o <driver number> OR the -B option (if you are using current beta driver)
      as well as the -! 40 option. EG: to install beta to all kernels: sgfxi -B -! 40


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: Script to install Nvidia driver in Debian Squeeze with one click LXer Syndicated Linux News 0 09-14-2011 04:01 PM
How to Install Nvidia Driver ryan20fun Linux - Newbie 19 05-31-2011 07:07 PM
Nvidia driver install script: "Unable to determine the version of the kernel sources" lumix Linux - Software 9 12-18-2008 06:40 AM
[help]Could not install nvidia driver : ./nvidia-installer: No such file or directory anchunlei Debian 4 04-18-2008 05:30 AM
Nvidia Problem: can't install nvidia driver for FC6 Chuong Linux - Software 7 10-30-2006 04:43 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration