how to apply nvidia settings from the command line?

Karl Auer kauer at biplane.com.au
Wed Jul 29 05:56:18 UTC 2009


On Wed, 2009-07-29 at 07:37 +0200, GĂ©rard BIGOT wrote:
> sudo nvidia-setings
> from a terminal session. 
> Then make your changes and press the button that commits it to
> xorg.conf
> It'll persist.

Thanks, but that's not what I need. Please read my question carefully.

- solution must be from the command line
- solution must not terminate the existing X session

Also, nvidia-setting can reset the X server (apparently) when *not*
root, and that is good. I don't *want* it to persist, necessarily - I
want to be able to switch from setup to setup from the command line.

Regards, K.

> I don't know why it's not by default launched as root.
> 
> And I know, it's not a direct reply to your question, but I believe it
> solves the root cause of your trouble.
> 
> G.
> 
> 2009/7/28 Karl Auer <kauer at biplane.com.au>
>         Hullo everyone.
>         
>         When I click "apply" in the NVidia configuration program
>         "nvidia-settings", the screen blanks, and after a second or
>         two
>         everything comes back with the new settings applied and all my
>         windows
>         intact. Great for switching between twinview mode and normal
>         mode.
>         
>         However, to do this I need to start nvidia-settings, click on
>         a few
>         things, click apply, then click "OK" to confirm I want to keep
>         the
>         changes, then "Quit" to exit. It's easy to make a mistake (the
>         GUI has a
>         few oddities), so I'd like to be able to automate it all.
>         
>         nvidia-settings has a command line mode, and I can get
>         nvidia-settings
>         to load a configuration OK, but it doesn't then do whatever
>         the "apply"
>         button does, and there seems to be no command line option to
>         tell it to
>         do so.
>         
>         The following answers are NOT correct:
>         
>           - use CTL-ALT-Backspace
>           - install dontzap, then use CTL-ALT-Backspace
>           - use rightAlt-printscreen-k
>           - sudo /etc/init.d/gdm restart (and variations like kdm, xdm
>         etc)
>           - log out and log back in
>         
>         All these cause all session information to be lost.
>         
>         I'll keep working on it, but if anyone has any good ideas...
>         
>         Regards, K.
>         
>         --
>         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>         Karl Auer (kauer at biplane.com.au)
>         +61-2-64957160 (h)
>         http://www.biplane.com.au/~kauer/
>          +61-428-957160 (mob)
>         
>         GPG fingerprint: 07F3 1DF9 9D45 8BCD 7DD5 00CE 4A44 6A03 F43A
>         7DEF
>         
>         
>         --
>         ubuntu-users mailing list
>         ubuntu-users at lists.ubuntu.com
>         Modify settings or unsubscribe at:
>         https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>         
> 
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)                   +61-2-64957160 (h)
http://www.biplane.com.au/~kauer/                  +61-428-957160 (mob)

GPG fingerprint: 07F3 1DF9 9D45 8BCD 7DD5 00CE 4A44 6A03 F43A 7DEF

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090729/450902be/attachment.sig>


More information about the ubuntu-users mailing list