StruckOFF

Untitled

May 7th, 2012
352
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.64 KB | None | 0 0
  1. nvidia-settings(1) nvidia-settings(1)
  2.  
  3. NAME
  4. nvidia-settings - configure the NVIDIA graphics driver
  5.  
  6. SYNOPSIS
  7. nvidia-settings [options]
  8. nvidia-settings [options] --no-config
  9. nvidia-settings [options] --load-config-only
  10. nvidia-settings [options] {--query=attr | --assign=attr=value} ...
  11. nvidia-settings [options] --glxinfo
  12.  
  13. Options: [-vh] [--config=configfile] [-c ctrl-display]
  14. [--verbose={errors | warnings | all}]
  15. [--describe={all | list | attribute_name}]
  16.  
  17. attr has the form:
  18. DISPLAY/attribute_name[display_devices]
  19.  
  20. DESCRIPTION
  21. The nvidia-settings utility is a tool for configuring the NVIDIA graphics driver. It operates by communicating with the NVIDIA X driver, querying
  22. and updating state as appropriate. This communication is done via the NV-CONTROL, GLX, XVideo, and RandR X extensions.
  23.  
  24. Values such as brightness and gamma, XVideo attributes, temperature, and OpenGL settings can be queried and configured via nvidia-settings.
  25.  
  26. When nvidia-settings starts, it reads the current settings from its configuration file and sends those settings to the X server. Then, it displays a
  27. graphical user interface (GUI) for configuring the current settings. When nvidia-settings exits, it queries the current settings from the X server
  28. and saves them to the configuration file.
  29.  
  30. OPTIONS
  31. -v, --version
  32. Print the nvidia-settings version and exit.
  33.  
  34. -h, --help
  35. Print usage information and exit.
  36.  
  37. --config=CONFIG
  38. Use the configuration file CONFIG rather than the default ~/.nvidia-settings-rc
  39.  
  40. -c, --ctrl-display=CTRL-DISPLAY
  41. Control the specified X display. If this option is not given, then nvidia-settings will control the display specified by '--display' ; if
  42. that is not given, then the $DISPLAY environment variable is used.
  43.  
  44. -l, --load-config-only
  45. Load the configuration file, send the values specified therein to the X server, and exit. This mode of operation is useful to place in your
  46. xinitrc file, for example.
  47.  
  48. -n, --no-config
  49. Do not load the configuration file. This mode of operation is useful if nvidia-settings has difficulties starting due to problems with apply‐
  50. ing settings in the configuration file.
  51.  
  52. -r, --rewrite-config-file
  53. Write the X server configuration to the configuration file, and exit, without starting the graphical user interface. See EXAMPLES section.
  54.  
  55. -V, --verbose=VERBOSE
  56. Controls how much information is printed. By default, the verbosity is errors and only error messages are printed. Valid values are 'none'
  57. (do not print messages), 'errors' (print error messages), 'warnings' (print error and warning messages), and 'all' (print error, warning and
  58. other informational messages).
  59.  
  60. -a, --assign=ASSIGN
  61. The ASSIGN argument to the '--assign' command line option is of the form:
  62.  
  63. {DISPLAY}/{attribute name}[{display devices}]={value}
  64.  
  65. This assigns the attribute {attribute name} to the value {value} on the X Display {DISPLAY}. {DISPLAY} follows the usual {host}:{dis‐
  66. play}.{screen} syntax of the DISPLAY environment variable and is optional; when it is not specified, then it is implied following the same
  67. rule as the --ctrl-display option. If the X screen is not specified, then the assignment is made to all X screens. Note that the '/' is only
  68. required when {DISPLAY} is present.
  69.  
  70. {DISPLAY} can additionally include a target specification to direct an assignment to something other than an X screen. A target specification
  71. is contained within brackets and consists of a target type name, a colon, and the target id. The target type name can be one of screen , gpu
  72. , framelock , vcs , gvi , or fan ; the target id is the index into the list of targets (for that target type). The target specification can
  73. be used in {DISPLAY} wherever an X screen can be used, following the syntax {host}:{display}[{target_type}:{target_id}]. See the output of
  74.  
  75. nvidia-settings -q all
  76.  
  77. for information on which target types can be used with which attributes. See the output of
  78.  
  79. nvidia-settings -q screens -q gpus -q framelocks -q vcs -q gvis -q fans
  80.  
  81. for lists of targets for each target type.
  82.  
  83. The [{display devices}] portion is also optional; if it is not specified, then the attribute is assigned to all display devices.
  84.  
  85. Some examples:
  86.  
  87. -a FSAA=5
  88. -a localhost:0.0/DigitalVibrance[CRT-0]=0
  89. --assign="SyncToVBlank=1"
  90. -a [gpu:0]/DigitalVibrance[DFP-1]=63
  91.  
  92. -q, --query=QUERY
  93. The QUERY argument to the '--query' command line option is of the form:
  94.  
  95. {DISPLAY}/{attribute name}[{display devices}]
  96.  
  97. This queries the current value of the attribute {attribute name} on the X Display {DISPLAY}. The syntax is the same as that for the
  98. '--assign' option, without '= {value}' ; specify '-q screens', '-q gpus', '-q framelocks', '-q vcs', '-q gvis', or '-q fans' to query a list
  99. of X screens, GPUs, Frame Lock devices, Visual Computing Systems, SDI Input Devices, or Fans, respectively, that are present on the X Display
  100. {DISPLAY}. Specify '-q all' to query all attributes.
  101.  
  102. -t, --terse
  103. When querying attribute values with the '--query' command line option, only print the current value, rather than the more verbose description
  104. of the attribute, its valid values, and its current value.
  105.  
  106. -d, --display-device-string
  107. When printing attribute values in response to the '--query' option, if the attribute value is a display device mask, print the value as a list
  108. of display devices (e.g., "CRT-0, DFP-0"), rather than a hexadecimal bit mask (e.g., 0x00010001).
  109.  
  110. -g, --glxinfo
  111. Print GLX Information for the X display and exit.
  112.  
  113. -e, --describe=DESCRIBE
  114. Prints information about a particular attribute. Specify 'all' to list the descriptions of all attributes. Specify 'list' to list the
  115. attribute names without a descriptions.
  116.  
  117. -p, --page=PAGE
  118. The PAGE argument to the '--page' commandline option selects a particular page in the nvidia-settings user interface to display upon starting
  119. nvidia-settings. Valid values are the page names in the tree view on the left side of the nvidia-settings user interface; e.g.,
  120.  
  121. --page="X Screen 0"
  122.  
  123. Because some page names are not unique (e.g., a "PowerMizer" page is present under each GPU), the page name can optionally be prepended with
  124. the name of the parent X Screen or GPU page, followed by a comma. E.g.,
  125.  
  126. --page="GPU 0 - (Quadro 6000), PowerMizer"
  127.  
  128. The first page with a name matching the PAGE argument will be used. By default, the "X Server Information" page is displayed.
  129.  
  130. USER GUIDE
  131. Contents
  132. 1. Layout of the nvidia-settings GUI
  133. 2. How OpenGL Interacts with nvidia-settings
  134. 3. Loading Settings Automatically
  135. 4. Command Line Interface
  136. 5. X Display Names in the Config File
  137. 6. Connecting to Remote X Servers
  138. 7. Licensing
  139. 8. TODO
  140.  
  141. 1. Layout of the nvidia-settings GUI
  142. The nvidia-settings GUI is organized with a list of different categories on the left side. Only one entry in the list can be selected at once, and
  143. the selected category controls which "page" is displayed on the right side of the nvidia-settings GUI.
  144.  
  145. The category list is organized in a tree: each X screen contains the relevant subcategories beneath it. Similarly, the Display Devices category for
  146. a screen contains all the enabled display devices beneath it. Besides each X screen, the other top level category is "nvidia-settings Configura‐
  147. tion", which configures behavior of the nvidia-settings application itself.
  148.  
  149. Along the bottom of the nvidia-settings GUI, from left to right, is:
  150.  
  151. 1) a status bar which indicates the most recently altered option;
  152.  
  153. 2) a Help button that toggles the display of a help window which provides a detailed explanation of the available options in the current page;
  154. and
  155.  
  156. 3) a Quit button to exit nvidia-settings.
  157.  
  158. Most options throughout nvidia-settings are applied immediately. Notable exceptions are OpenGL options which are only read by OpenGL when an OpenGL
  159. application starts.
  160.  
  161. Details about the options on each page of nvidia-settings are available in the help window.
  162.  
  163. 2. How OpenGL Interacts with nvidia-settings
  164. When an OpenGL application starts, it downloads the current values from the X driver, and then reads the environment (see APPENDIX E: OPENGL ENVIRON‐
  165. MENT VARIABLE SETTINGS in the README). Settings from the X server override OpenGL's default values, and settings from the environment override val‐
  166. ues from the X server.
  167.  
  168. For example, by default OpenGL uses the FSAA setting requested by the application (normally, applications do not request any FSAA). An FSAA setting
  169. specified in nvidia-settings would override the OpenGL application's request. Similarly, the __GL_FSAA_MODE environment variable will override the
  170. application's FSAA setting, as well as any FSAA setting specified in nvidia-settings.
  171.  
  172. Note that an OpenGL application only retrieves settings from the X server when it starts, so if you make a change to an OpenGL value in nvidia-set‐
  173. tings, it will only apply to OpenGL applications which are started after that point in time.
  174.  
  175. 3. Loading Settings Automatically
  176. The NVIDIA X driver does not preserve values set with nvidia-settings between runs of the X server (or even between logging in and logging out of X,
  177. with xdm(1), gdm, or kdm ). This is intentional, because different users may have different preferences, thus these settings are stored on a per-
  178. user basis in a configuration file stored in the user's home directory.
  179.  
  180. The configuration file is named ~/.nvidia-settings-rc. You can specify a different configuration file name with the --config command line option.
  181.  
  182. After you have run nvidia-settings once and have generated a configuration file, you can then run:
  183.  
  184. nvidia-settings --load-config-only
  185.  
  186. at any time in the future to upload these settings to the X server again. For example, you might place the above command in your ~/.xinitrc file so
  187. that your settings are applied automatically when you log in to X.
  188.  
  189. Your .xinitrc file, which controls what X applications should be started when you log into X (or startx), might look something like this:
  190.  
  191. nvidia-settings --load-config-only &
  192. xterm &
  193. evilwm
  194.  
  195. or:
  196.  
  197. nvidia-settings --load-config-only &
  198. gnome-session
  199.  
  200. If you do not already have an ~/.xinitrc file, then chances are that xinit(1) is using a system-wide xinitrc file. This system wide file is typi‐
  201. cally here:
  202.  
  203. /etc/X11/xinit/xinitrc
  204.  
  205. To use it, but also have nvidia-settings upload your settings, you could create an ~/.xinitrc with the contents:
  206.  
  207. nvidia-settings --load-config-only &
  208. . /etc/X11/xinit/xinitrc
  209.  
  210. System administrators may choose to place the nvidia-settings load command directly in the system xinitrc script.
  211.  
  212. Please see the xinit(1) man page for further details of configuring your ~/.xinitrc file.
  213.  
  214. 4. Command Line Interface
  215. nvidia-settings has a rich command line interface: all attributes that can be manipulated with the GUI can also be queried and set from the command
  216. line. The command line syntax for querying and assigning attributes matches that of the .nvidia-settings-rc configuration file.
  217.  
  218. The --query option can be used to query the current value of attributes. This will also report the valid values for the attribute. You can run
  219. nvidia-settings --query all for a complete list of available attributes, what the current value is, what values are valid for the attribute, and
  220. through which target types (e.g., X screens, GPUs) the attributes can be addressed. Additionally, individual attributes may be specified like this:
  221.  
  222. nvidia-settings --query CursorShadow
  223.  
  224. Attributes that may differ per display device (for example, DigitalVibrance can be set independently on each display device when in TwinView) can be
  225. appended with a "display device name" within brackets; e.g.:
  226.  
  227. nvidia-settings --query DigitalVibrance[CRT-0]
  228.  
  229. If an attribute is display device specific, but the query does not specify a display device, then the attribute value for all display devices will be
  230. queried.
  231.  
  232. An attribute name may be prepended with an X Display name and a forward slash to indicate a different X Display; e.g.:
  233.  
  234. nvidia-settings --query localhost:0.0/DigitalVibrance[DFP-1]
  235.  
  236. An attribute name may also just be prepended with the screen number and a forward slash:
  237.  
  238. nvidia-settings --query 0/DigitalVibrance[DFP-1]
  239.  
  240. in which case the default X Display will be used, but you can indicate to which X screen to direct the query (if your X server has multiple X
  241. screens). If no X screen is specified, then the attribute value will be queried for all X screens.
  242.  
  243. Attributes can be addressed through "target types". A target type indicates the object that is queried when you query an attribute. The default
  244. target type is an X screen, but other possible target types are GPUs, Frame Lock devices, Visual Computing Systems, SDI Input Devices, and fans.
  245.  
  246. Target types give you different granularities with which to perform queries and assignments. Since X screens can span multiple GPUs (in the case of
  247. Xinerama, or SLI), and multiple X screens can exist on the same GPU, it is sometimes useful to address attributes by GPU rather than X screen.
  248.  
  249. A target specification is contained within brackets and consists of a target type name, a colon, and the target id. The target type name can be one
  250. of screen, gpu, framelock, vcs, gvi, or fan; the target id is the index into the list of targets (for that target type). Target specifications can
  251. be used wherever an X screen is used in query and assignment commands; the target specification can be used either by itself on the left side of the
  252. forward slash, or as part of an X Display name.
  253.  
  254. For example, the following queries address X screen 0 on the localhost:
  255.  
  256. nvidia-settings --query 0/VideoRam
  257. nvidia-settings --query localhost:0.0/VideoRam
  258. nvidia-settings --query [screen:0]/VideoRam
  259. nvidia-settings --query localhost:0[screen:0]/VideoRam
  260.  
  261. To address GPU 0 instead, you can use either of:
  262.  
  263. nvidia-settings --query [gpu:0]/VideoRam
  264. nvidia-settings --query localhost:0[gpu:0]/VideoRam
  265.  
  266. See the output of
  267.  
  268. nvidia-settings --query all
  269.  
  270. for what targets types can be used with each attribute. See the output of
  271.  
  272. nvidia-settings --query screens --query gpus --query framelocks --query vcs --query gvis --query fans
  273.  
  274. for lists of targets for each target type.
  275.  
  276. The --assign option can be used to assign a new value to an attribute. The valid values for an attribute are reported when the attribute is queried.
  277. The syntax for --assign is the same as --query, with the additional requirement that assignments also have an equal sign and the new value. For
  278. example:
  279.  
  280. nvidia-settings --assign FSAA=2
  281. nvidia-settings --assign 0/DigitalVibrance[CRT-1]=9
  282. nvidia-settings --assign [gpu:0]/DigitalVibrance=0
  283.  
  284. Multiple queries and assignments may be specified on the command line for a single invocation of nvidia-settings.
  285.  
  286. If either the --query or --assign options are passed to nvidia-settings, the GUI will not be presented, and nvidia-settings will exit after process‐
  287. ing the assignments and/or queries. In this case, settings contained within the ~/.nvidia-settings-rc configuration file will not be automatically
  288. uploaded to the X server, nor will the ~/.nvidia-settings-rc configuration file be automatically updated to reflect attribute assignments made via
  289. the --assign option.
  290.  
  291. 5. X Display Names in the Config File
  292. In the Command Line Interface section above, it was noted that you can specify an attribute without any X Display qualifiers, with only an X screen
  293. qualifier, or with a full X Display name. For example:
  294.  
  295. nvidia-settings --query FSAA
  296. nvidia-settings --query 0/FSAA
  297. nvidia-settings --query stravinsky.nvidia.com:0/FSAA
  298.  
  299. In the first two cases, the default X Display will be used, in the second case, the screen from the default X Display can be overridden, and in the
  300. third case, the entire default X Display can be overridden.
  301.  
  302. The same possibilities are available in the ~/.nvidia-settings-rc configuration file.
  303.  
  304. For example, in a computer lab environment, you might log into any of multiple workstations, and your home directory is NFS mounted to each worksta‐
  305. tion. In such a situation, you might want your ~/.nvidia-settings-rc file to be applicable to all the workstations. Therefore, you would not want
  306. your config file to qualify each attribute with an X Display Name. Leave the "Include X Display Names in the Config File" option unchecked on the
  307. nvidia-settings Configuration page (this is the default).
  308.  
  309. There may be cases when you do want attributes in the config file to be qualified with the X Display name. If you know what you are doing and want
  310. config file attributes to be qualified with an X Display, check the "Include X Display Names in the Config File" option on the nvidia-settings Con‐
  311. figuration page.
  312.  
  313. In the typical home user environment where your home directory is local to one computer and you are only configuring one X Display, then it does not
  314. matter whether each attribute setting is qualified with an X Display Name.
  315.  
  316. 6. Connecting to Remote X Servers
  317. nvidia-settings is an X client, but uses two separate X connections: one to display the GUI, and another to communicate the NV-CONTROL requests.
  318. These two X connections do not need to be to the same X server. For example, you might run nvidia-settings on the computer stravinsky.nvidia.com,
  319. export the display to the computer bartok.nvidia.com, but be configuring the X server on the computer schoenberg.nvidia.com:
  320.  
  321. nvidia-settings --display=bartok.nvidia.com:0 \
  322. --ctrl-display=schoenberg.nvidia.com:0
  323.  
  324. If --ctrl-display is not specified, then the X Display to control is what --display indicates. If --display is also not specified, then the $DISPLAY
  325. environment variable is used.
  326.  
  327. Note, however, that you will need to have X permissions configured such that you can establish an X connection from the computer on which you are
  328. running nvidia-settings (stravinsky.nvidia.com) to the computer where you are displaying the GUI (bartok.nvidia.com) and the computer whose X Display
  329. you are configuring (schoenberg.nvidia.com).
  330.  
  331. The simplest, most common, and least secure mechanism to do this is to use 'xhost' to allow access from the computer on which you are running
  332. nvidia-settings.
  333.  
  334. (issued from bartok.nvidia.com)
  335. xhost +stravinsky.nvidia.com
  336.  
  337. (issued from schoenberg.nvidia.com)
  338. xhost +stravinsky.nvidia.com
  339.  
  340. This will allow all X clients run on stravinsky.nvidia.com to connect and display on bartok.nvidia.com's X server and configure schoen‐
  341. berg.nvidia.com's X server.
  342.  
  343. Please see the xauth(1) and xhost(1) man pages, or refer to your system documentation on remote X applications and security. You might also Google
  344. for terms such as "remote X security" or "remote X Windows", and see documents such as the Remote X Apps mini-HOWTO:
  345.  
  346. ⟨http://www.tldp.org/HOWTO/Remote-X-Apps.html⟩
  347.  
  348. Please also note that the remote X server to be controlled must be using the NVIDIA X driver.
  349.  
  350. 7. Licensing
  351. The source code to nvidia-settings is released as GPL. The most recent official version of the source code is available here:
  352.  
  353. ⟨ftp://download.nvidia.com/XFree86/nvidia-settings/⟩
  354.  
  355. Note that nvidia-settings is simply an NV-CONTROL client. It uses the NV-CONTROL X extension to communicate with the NVIDIA X server to query cur‐
  356. rent settings and make changes to settings.
  357.  
  358. You can make additions directly to nvidia-settings, or write your own NV-CONTROL client, using nvidia-settings as an example.
  359.  
  360. Documentation on the NV-CONTROL extension and additional sample clients are available in the nvidia-settings source tarball. Patches can be submit‐
  361.  
  362. 8. TODO
  363. There are many things still to be added to nvidia-settings, some of which include:
  364.  
  365. - different toolkits? The GUI for nvidia-settings is cleanly abstracted from the back-end of nvidia-settings that parses the configuration file
  366. and command line, communicates with the X server, etc. If someone were so inclined, a different front-end GUI could be implemented.
  367.  
  368. - write a design document explaining how nvidia-settings is designed; presumably this would make it easier for people to become familiar with
  369. the code base.
  370.  
  371. If there are other things you would like to see added (or better yet, would like to add yourself), please contact [email protected].
  372.  
  373. FILES
  374. ~/.nvidia-settings-rc
  375.  
  376. EXAMPLES
  377. nvidia-settings
  378. Starts the nvidia-settings graphical interface.
  379.  
  380. nvidia-settings --load-config-only
  381. Loads the settings stored in ~/.nvidia-settings-rc and exits.
  382.  
  383. nvidia-settings --rewrite-config-file
  384. Writes the current X server configuration to ~/.nvidia-settings-rc file and exits.
  385.  
  386. nvidia-settings --query FSAA
  387. Query the value of the full-screen antialiasing setting.
  388.  
  389. nvidia-settings --assign RedGamma=2.0 --assign BlueGamma=2.0 --assign GreenGamma=2.0
  390. Set the gamma of the screen to 2.0.
  391.  
  392. AUTHOR
  393. Aaron Plattner
  394. NVIDIA Corporation
  395.  
  396. SEE ALSO
  397. nvidia-xconfig(1), nvidia-installer(1)
  398.  
  399. COPYRIGHT
  400. Copyright © 2010 NVIDIA Corporation.
  401.  
  402. nvidia-settings 295.40 2012-04-05 nvidia-settings(1)
Advertisement
Comments
  • Vorvedorn
    218 days
    # CSS 0.86 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1S1iTruSLkgEPO8QtTuo2twS4f2FoJ3_l0-p4GKqeAUY/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
Add Comment
Please, Sign In to add comment