Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94240 - [PATCH] nvidia-settings: enable usage of nvidia-settings without $DISPLAY defined.
Summary: [PATCH] nvidia-settings: enable usage of nvidia-settings without $DISPLAY def...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Piotr Jaroszyński (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-05-27 19:09 UTC by Tommy Yu
Modified: 2007-11-20 20:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The patch to allow nvidia-settings to run without $DISPLAY (nvidia-gtk_init_check.patch,3.11 KB, patch)
2005-05-27 19:11 UTC, Tommy Yu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tommy Yu 2005-05-27 19:09:41 UTC
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 Tommy Yu 2005-05-27 19:11:22 UTC
Created attachment 59988 [details, diff]
The patch to allow nvidia-settings to run without $DISPLAY
Comment 2 Tommy Yu 2005-05-27 19:28:34 UTC
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 Dennis Schridde 2006-06-29 06:42:04 UTC
You could write to linux-bugs@nvidia.com
Comment 4 Xake 2006-10-15 12:58:02 UTC
So is this still a issue or is it time to mak this as upstream?
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-10-30 07:24:05 UTC
Well, hopefully it would be fixed upstream.  Does anyone know if this is fixed in the latest version of nvidia-settings?
Comment 6 Piotr Jaroszyński (RETIRED) gentoo-dev 2007-03-07 22:42:24 UTC
esp. in nvidia-settings-1.0.20070302
Comment 7 Ben Cheever 2007-04-30 15:20:48 UTC
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 Doug Goldstein (RETIRED) gentoo-dev 2007-11-12 20:21:37 UTC
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 Tommy Yu 2007-11-20 20:21:07 UTC
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 Piotr Jaroszyński (RETIRED) gentoo-dev 2007-11-20 20:25:21 UTC
Thanks all, I have added 169.04 with the patch.