Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] nvidia-settings over ssh sees my local GPU?
Date: Thu, 23 Jun 2011 18:34:32
Message-Id: BANLkTinxfZ3eryAbiyuj1Dsgi-imyHXxyg@mail.gmail.com
In Reply to: Re: [gentoo-user] nvidia-settings over ssh sees my local GPU? by YoYo Siska
1 On Thu, Jun 23, 2011 at 10:39 AM, YoYo Siska <yoyo@××××××.sk> wrote:
2 > On Thu, Jun 23, 2011 at 05:21:07PM +0100, Neil Bothwick wrote:
3 >> On Thu, 23 Jun 2011 08:54:01 -0700, Mark Knecht wrote:
4 >>
5 >> >    My question is about running nvidia-settings. I'm finding that if I
6 >> > shell into his machine using
7 >> >
8 >> > ssh -X -Y -C IP-address
9 >> >
10 >> > and run nvidia-settings I get it displayed here, as it should be. The
11 >> > problem is it is seeing my GTX 465 and not his 8400GS.
12 >>
13 >> Looking at the man page, it appears you need to use the -ctrl-display
14 >> parameter or the $DISPLAY env var. The man page mentions that
15 >> nvidia-settings queries the X server, which is running locally. It looks
16 >> like this setting may force it to use another.
17 >
18 >
19 > as neil wrote, it is
20 > nvidia-settings -c :0
21 >
22 > nvidia-settings connects  to the remote xserver to communicate
23 > with the graphics card (through a special nvidia xtenstion to the x
24 > protocol), so you need to be able to access the remote xserver, if you
25 > are logged in as the user running the xserver, you should be ok
26 >
27 > yoy
28
29 Yeah, I've been tripping over doing this right since Neil pointed me
30 toward the -c command. I think the problem is that I don't have the
31 permissions set correctly to allow this to work right. The owner of
32 the remote machine is logged in and possibly using X. I'm not sure
33 about that but I'm not 'running the X server' in any meaningful way.
34 I'm just remotely trying to access his GPU with nvidia-settings but
35 display the GUI here. The problem seems to be getting the right number
36 of his server or else permissions.
37
38 This page is one of the better ones I've found about running
39 nvidia-settings remotely, specifically section 6 which gives this
40 example:
41 http://www.makelinux.com/man/1/A/alt-nvidia-173-settings
42
43 (issued from bartok.nvidia.com)
44 xhost +stravinsky.nvidia.com
45
46 (issued from schoenberg.nvidia.com)
47 xhost +stravinsky.nvidia.com
48
49 nvidia-settings --display=bartok.nvidia.com:0
50 --ctrl-display=schoenberg.nvidia.com:0
51
52 which "allows all X clients run on stravinsky.nvidia.com to connect
53 and display on bartok.nvidia.com's X server and configure
54 schoenberg.nvidia.com's X server."
55
56 It seems this program allows you to run it from machine1, display it
57 on machine2 which controlling machine3?
58
59 So, locally I ran
60
61 mark@c2stable ~ $ xhost
62 access control enabled, only authorized clients can connect
63 mark@c2stable ~ $ xhost +DWP-Linux
64 DWP-Linux being added to access control list
65 mark@c2stable ~ $ xhost
66 access control enabled, only authorized clients can connect
67 INET:DWP-Linux
68 mark@c2stable ~ $
69
70 which I think allows the remote machine access here in my server. I
71 then log in which creates the .Xauthority file:
72
73 mark@c2stable ~ $ ssh -XYC DWP-Linux
74 Password:
75 Last login: Thu Jun 23 14:11:33 EDT 2011 from
76 c-67-161-57-1.hsd1.ca.comcast.net on pts/3
77 /usr/bin/xauth: file /home/mark/.Xauthority does not exist
78 mark@DWP-Linux ~ $ ls -al .Xauthority
79 -rw------- 1 mark mark 55 Jun 23 14:21 .Xauthority
80 mark@DWP-Linux ~ $ cat .Xauthority
81 DWP-Linux11MIT-MAGIC-COOKIE-1��:��T'6�@R��mark@DWP-Linux ~ $
82 mark@DWP-Linux ~ $
83
84 On that machine I see this $DISPLAY:
85
86 mark@DWP-Linux ~ $ echo $DISPLAY
87 localhost:11.0
88 mark@DWP-Linux ~ $
89
90 so I run
91
92 mark@DWP-Linux ~ $ nvidia-settings -c :11
93
94 which sees my GPU, not his, presumably because I said to control my
95 system with -c :11. However if I try something like
96
97 mark@DWP-Linux ~ $ nvidia-settings -c :0
98
99 I get a bunch of stuff ending with
100
101
102 ERROR: Unable to assign attribute XVideoSyncToDisplay specified on
103 line 62 of configuration file
104 '/home/mark/.nvidia-settings-rc' (no Display connection).
105
106 No protocol specified
107
108 ERROR: Cannot open display ':0'.
109
110 mark@DWP-Linux ~ $
111
112 I'm a bit lost at this point. (OBVIOUSLY!) :-)
113
114 Thanks for any guidance,
115 Mark

Replies

Subject Author
Re: [gentoo-user] nvidia-settings over ssh sees my local GPU? YoYo Siska <yoyo@××××××.sk>