Bug 94240 - [PATCH] nvidia-settings: enable usage of nvidia-settings without $DISPLAY defined.
Bug#: 94240 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: peper@gentoo.org Reported By: a_korner@hotmail.com
Component: Applications
URL: 
Summary: [PATCH] nvidia-settings: enable usage of nvidia-settings without $DISPLAY defined.
Keywords:  Inclusion
Status Whiteboard: 
Opened: 2005-05-27 19:09 0000
Description:   Opened: 2005-05-27 19:09 0000
As per nvidia-settings-1.0/src/nvidia-settings.c

    /*
     * initialize the ui
     *
     * XXX it would be nice if we didn't do this up front, since we
     * may not even use the gui, but we want the toolkit to have a
     * chance to parse the commandline before we do... we should
     * investigate gtk_init_check().

Rewrote a few lines of code to enable that.  This would allow nvidia-settings to
run without getting this error:

(nvidia-settings:17616): Gtk-WARNING **: cannot open display:

Will attach patch, which is verified (by me) to work on 6629 and 7167.  

I wanted to submit this to Nvidia, but I don't know how.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Tommy Yu 2005-05-27 19:11:22 0000 -------
Created an attachment (id=59988) [details]
The patch to allow nvidia-settings to run without $DISPLAY

------- Comment #2 From Tommy Yu 2005-05-27 19:28:34 0000 -------
I meant to say:

This would allow nvidia-settings to run without getting this error:
 
(nvidia-settings:17616): Gtk-WARNING **: cannot open display:

_when run from a normal ssh connection without X._

------- Comment #3 From Dennis Schridde 2006-06-29 06:42:04 0000 -------
You could write to linux-bugs@nvidia.com

------- Comment #4 From Xake 2006-10-15 12:58:02 0000 -------
So is this still a issue or is it time to mak this as upstream?

------- Comment #5 From Chris Gianelloni (RETIRED) 2006-10-30 07:24:05 0000 -------
Well, hopefully it would be fixed upstream.  Does anyone know if this is fixed
in the latest version of nvidia-settings?

------- Comment #6 From Piotr Jaroszyński 2007-03-07 22:42:24 0000 -------
esp. in nvidia-settings-1.0.20070302

------- Comment #7 From Ben Cheever 2007-04-30 15:20:48 0000 -------
I just have a question. Is this enough to keep it from being marked as stable
x86? I have emerged this package succesfully on several different machines all
of which it runs fine (as long as I'm not trying to run a GTK+ tool through an
non-x ssh session).

What do you think?
Let me know if you want to see my output of my make.conf and emerge
nvidia-settings.

------- Comment #8 From Doug Goldstein 2007-11-12 20:21:37 0000 -------
Took care of following up on this submission to NVIDIA. They are considering
this for inclusion and it is tracked internally as bug #368579.

peper: You could probably be safe in committing this.

------- Comment #9 From Tommy Yu 2007-11-20 20:21:07 0000 -------
I am marking this as fixed, as upstream has applied the patch.  Aaron Plattner
at Nvidia has sent myself, Doug Klima and Piotr Jaroszyński this message:

Hi guys,

I just wanted to let you know that your patch has been applied and will be 
included in a future nvidia-settings release.  I don't have an account at 
bugs.gentoo.org so I'm emailing you instead.

-- Aaron

------- Comment #10 From Piotr Jaroszyński 2007-11-20 20:25:21 0000 -------
Thanks all, I have added 169.04 with the patch.