ERROR: vgl failed to start #1

Closed
ex0hunt opened this Issue Mar 2, 2012 · 33 comments

Comments

Projects
None yet
8 participants
@ex0hunt

ex0hunt commented Mar 2, 2012

When I emerge and run bumblebee. Get error this:

  • Caching service dependencies ... [ ok ]
  • Starting VirtualGL ...
    xauth: error in locking authority file (\S+)/
    xauth: (argv):1: bad "add" command line [ !! ]
  • ERROR: vgl failed to start
  • ERROR: cannot start bumblebee as vgl would not start

Gentoo 3.2.1-gentoo-r2 x86_64
x11-misc/virtualgl-2.3-r1 from bumblebee-gentoo overlay
x11-misc/bumblebee-3.0 from bumblebee-gentoo overlay

@Nicias

This comment has been minimized.

Show comment
Hide comment
@Nicias

Nicias Mar 12, 2012

I had the same issue. Go into /etc/conf.d/vgl and comment out the "common case" line and uncomment the line that matches your display manager.

Nicias commented Mar 12, 2012

I had the same issue. Go into /etc/conf.d/vgl and comment out the "common case" line and uncomment the line that matches your display manager.

@z0rr0

This comment has been minimized.

Show comment
Hide comment
@z0rr0

z0rr0 Mar 16, 2012

Edit /etc/conf.d/vgl does not solve the problem, in my case.

z0rr0 commented Mar 16, 2012

Edit /etc/conf.d/vgl does not solve the problem, in my case.

@ex0hunt

This comment has been minimized.

Show comment
Hide comment
@ex0hunt

ex0hunt Mar 16, 2012

@z0rr0, try to add XAUTHORITY="$(python /opt/vglparse.py)" in /etc/conf.d/vgl and comment another "XAUTHORITY" strings.
Download this script http://pastebin.com/CW2Z7p2X and move to /opt/vglparse.py

It's ugly hack, but it's works for me:)

ex0hunt commented Mar 16, 2012

@z0rr0, try to add XAUTHORITY="$(python /opt/vglparse.py)" in /etc/conf.d/vgl and comment another "XAUTHORITY" strings.
Download this script http://pastebin.com/CW2Z7p2X and move to /opt/vglparse.py

It's ugly hack, but it's works for me:)

@z0rr0

This comment has been minimized.

Show comment
Hide comment
@z0rr0

z0rr0 Mar 16, 2012

Thanks, it works well.

z0rr0 commented Mar 16, 2012

Thanks, it works well.

@msva

This comment has been minimized.

Show comment
Hide comment
@msva

msva Mar 29, 2012

Contributor

Hi guys, sorry for long unavailability :( :(
z0rr0, can you tell me, what is you DM?
fang90, O_o Maybe let's think about "coreutils"
z0rr0, can you tell me, what is you DM?
fang90, O_o Maybe let's think about "coreutils" variant instead of python/find/perl/sed magic? :)

Contributor

msva commented Mar 29, 2012

Hi guys, sorry for long unavailability :( :(
z0rr0, can you tell me, what is you DM?
fang90, O_o Maybe let's think about "coreutils"
z0rr0, can you tell me, what is you DM?
fang90, O_o Maybe let's think about "coreutils" variant instead of python/find/perl/sed magic? :)

@ex0hunt

This comment has been minimized.

Show comment
Hide comment
@ex0hunt

ex0hunt Mar 29, 2012

@msva yep, of course. My solution with python is not better:).
Another way for Gnome3(gdm ver 3.2.1.1-r2) may use this XAUTHORITY="/var/run/gdm/auth-for-gdm-*/database" string in /etc/conf.d/vgl.

ex0hunt commented Mar 29, 2012

@msva yep, of course. My solution with python is not better:).
Another way for Gnome3(gdm ver 3.2.1.1-r2) may use this XAUTHORITY="/var/run/gdm/auth-for-gdm-*/database" string in /etc/conf.d/vgl.

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Mar 30, 2012

Contributor

Yes, gdm for Gnome 2 and 3 have different -auth parameters for Xorg, I came up with this for the later:
XAUTHORITY="$(ps -C Xorg -o args= | grep -o /var/run/gdm/auth-for-gdm-.*/database)"
but this ps command doesn't work on stable systems and the fang90's solution obviously is much nicer. Only question might be if it needs to check for multiple Xorg instances.

Contributor

Reinis commented Mar 30, 2012

Yes, gdm for Gnome 2 and 3 have different -auth parameters for Xorg, I came up with this for the later:
XAUTHORITY="$(ps -C Xorg -o args= | grep -o /var/run/gdm/auth-for-gdm-.*/database)"
but this ps command doesn't work on stable systems and the fang90's solution obviously is much nicer. Only question might be if it needs to check for multiple Xorg instances.

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Mar 30, 2012

Contributor

It would be good to add message in ebuild for users to check /etc/conf.d/vgl and in that conf file add comments to help users set up XAUTHORITY for their system, e.g., say to check Xorg parameter -auth with 'ps wwaux | grep [-]auth' for idea how to construct the variable.

Contributor

Reinis commented Mar 30, 2012

It would be good to add message in ebuild for users to check /etc/conf.d/vgl and in that conf file add comments to help users set up XAUTHORITY for their system, e.g., say to check Xorg parameter -auth with 'ps wwaux | grep [-]auth' for idea how to construct the variable.

@ex0hunt

This comment has been minimized.

Show comment
Hide comment
@ex0hunt

ex0hunt Mar 30, 2012

@Reinis I thought about multiple Xorg instances and found another solution
ps wwwaux | grep -o "/var/run/gdm/auth-for-gdm-[0-Z]/[a-Z]"

correct command: http://pastebin.com/RQ00TH0h

ex0hunt commented Mar 30, 2012

@Reinis I thought about multiple Xorg instances and found another solution
ps wwwaux | grep -o "/var/run/gdm/auth-for-gdm-[0-Z]/[a-Z]"

correct command: http://pastebin.com/RQ00TH0h

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Mar 30, 2012

Contributor

@fang90 I don't think it is any better then previous versions. Moreover, I don't think that "/database" part changes. In case of multiple Xorg instances only one should be used for setting XAUTHORITY. Which one, that depends on the system. A good guess might be the one which started first:
XAUTHORITY="$(ps -C Xorg -o args= --sort=-stime | grep -o /var/run/gdm/auth-for-gdm-./database | head -1)"
or simpler:
XAUTHORITY="$(ls -tr1 /var/run/gdm/auth-for-gdm-
/database | head -1)"

Alternatively we could select the instance based on the $DISPLAY it is running on.

Contributor

Reinis commented Mar 30, 2012

@fang90 I don't think it is any better then previous versions. Moreover, I don't think that "/database" part changes. In case of multiple Xorg instances only one should be used for setting XAUTHORITY. Which one, that depends on the system. A good guess might be the one which started first:
XAUTHORITY="$(ps -C Xorg -o args= --sort=-stime | grep -o /var/run/gdm/auth-for-gdm-./database | head -1)"
or simpler:
XAUTHORITY="$(ls -tr1 /var/run/gdm/auth-for-gdm-
/database | head -1)"

Alternatively we could select the instance based on the $DISPLAY it is running on.

@ex0hunt

This comment has been minimized.

Show comment
Hide comment
@ex0hunt

ex0hunt Mar 30, 2012

may be this a more flexible solution:
ps wwwaux | grep Xorg | grep -o "/var[^[:space:]]auth[^[:space:]]"

ex0hunt commented Mar 30, 2012

may be this a more flexible solution:
ps wwwaux | grep Xorg | grep -o "/var[^[:space:]]auth[^[:space:]]"

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Mar 30, 2012

Contributor

@fang90 if you want to use one expression for Gnome 2 and 3 then it wouldn't work, but this would:
ps wwwaux | grep '\b/usr/bin/(X|Xorg)\b' | grep -o '/var[^[:space:]]auth[^[:space:]]'

Still it could be improved, e.g. 'wwwu' for ps command could be replaced with '-o args=':
ps ax -o args= | grep '^/usr/bin/(X|Xorg)\b' | grep -o '/var/\Sauth\S'

And to ensure that we take only one line:
ps ax -o args= --sort=-stime | grep -m 1 '^/usr/bin/(X|Xorg)\b' | grep -o '/var/\Sauth\S'

Contributor

Reinis commented Mar 30, 2012

@fang90 if you want to use one expression for Gnome 2 and 3 then it wouldn't work, but this would:
ps wwwaux | grep '\b/usr/bin/(X|Xorg)\b' | grep -o '/var[^[:space:]]auth[^[:space:]]'

Still it could be improved, e.g. 'wwwu' for ps command could be replaced with '-o args=':
ps ax -o args= | grep '^/usr/bin/(X|Xorg)\b' | grep -o '/var/\Sauth\S'

And to ensure that we take only one line:
ps ax -o args= --sort=-stime | grep -m 1 '^/usr/bin/(X|Xorg)\b' | grep -o '/var/\Sauth\S'

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Mar 30, 2012

Contributor

Ok, just realized why my command with ps -C didn't work on stable system :D
This works for both (gdm on ~arch and arch):
ps -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '/var/\Sauth\S'

This is the shortest and simplest variant so far :)
But I'm not sure if that isn't too general and hence a security risk. It is possible to make the regexp more specific but that obfuscates it quite a bit, tough a little better situation is if we use extended regexps for grep:
ps -C X,Xorg -o args= --sort=-stime | grep -E -m 1 -o "\B/var/(run/)?gdm/(${DISPLAY}.X)?auth(-for-gdm-.*/database)?\b"

Maybe better is this variant which makes sure that we get the argument of -auth flag:
ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var/\Sauth\S' | cut -d ' ' -f 2

Contributor

Reinis commented Mar 30, 2012

Ok, just realized why my command with ps -C didn't work on stable system :D
This works for both (gdm on ~arch and arch):
ps -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '/var/\Sauth\S'

This is the shortest and simplest variant so far :)
But I'm not sure if that isn't too general and hence a security risk. It is possible to make the regexp more specific but that obfuscates it quite a bit, tough a little better situation is if we use extended regexps for grep:
ps -C X,Xorg -o args= --sort=-stime | grep -E -m 1 -o "\B/var/(run/)?gdm/(${DISPLAY}.X)?auth(-for-gdm-.*/database)?\b"

Maybe better is this variant which makes sure that we get the argument of -auth flag:
ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var/\Sauth\S' | cut -d ' ' -f 2

@msva

This comment has been minimized.

Show comment
Hide comment
@msva

msva Mar 31, 2012

Contributor

31.03.2012 04:57, Reinis написал:

ps -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '/var/\S_auth\S_'
Works on KDM too.
So, okay, I'll add this to conf.d/vgl

Contributor

msva commented Mar 31, 2012

31.03.2012 04:57, Reinis написал:

ps -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '/var/\S_auth\S_'
Works on KDM too.
So, okay, I'll add this to conf.d/vgl

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Apr 2, 2012

Contributor

@msva Does the last command work also for KDM? I think that is the best from the variants we discussed so far

  • It adds 'ww' to ensure that we get the full command line for X (-o args= still didn't gave the full width for output)
  • Takes the auth parameter from the oldest X instance running
  • Puts exactly one parameter in XAUTHORITY
  • Makes sure it gets the parameter from -auth argument of X
  • Works for GDM with ~arch and arch (and probably KDM also)

ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var/\Sauth\S' | cut -d ' ' -f 2

Contributor

Reinis commented Apr 2, 2012

@msva Does the last command work also for KDM? I think that is the best from the variants we discussed so far

  • It adds 'ww' to ensure that we get the full command line for X (-o args= still didn't gave the full width for output)
  • Takes the auth parameter from the oldest X instance running
  • Puts exactly one parameter in XAUTHORITY
  • Makes sure it gets the parameter from -auth argument of X
  • Works for GDM with ~arch and arch (and probably KDM also)

ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var/\Sauth\S' | cut -d ' ' -f 2

@msva

This comment has been minimized.

Show comment
Hide comment
@msva

msva Apr 3, 2012

Contributor

yep, it works brilliant.
But I have one improvement:
ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var/run/\S_auth\S*' | cut -d ' ' -f 2

(it adds "run" to path in /var, since all the time X's auth is in /var/run )

So, if you agree with my improvement — I'll commit it in repo.

Contributor

msva commented Apr 3, 2012

yep, it works brilliant.
But I have one improvement:
ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var/run/\S_auth\S*' | cut -d ' ' -f 2

(it adds "run" to path in /var, since all the time X's auth is in /var/run )

So, if you agree with my improvement — I'll commit it in repo.

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Apr 3, 2012

Contributor

No, it is not always in /var/run. On stable GDM it is in /var/gdm/:0.Xauth. Thats why in the last before that version where I used grep with extended regexp the /run part was marked with ? (zero or one times).

Contributor

Reinis commented Apr 3, 2012

No, it is not always in /var/run. On stable GDM it is in /var/gdm/:0.Xauth. Thats why in the last before that version where I used grep with extended regexp the /run part was marked with ? (zero or one times).

@msva

This comment has been minimized.

Show comment
Hide comment
@msva

msva Apr 3, 2012

Contributor

okay

Contributor

msva commented Apr 3, 2012

okay

@msva msva closed this Apr 3, 2012

@satellitexf

This comment has been minimized.

Show comment
Hide comment
@satellitexf

satellitexf Jun 4, 2012

gentoo 3.2.12 x86_64
virtualgl-2.3-r1
In /etc/conf.d/vgl :
XAUTHORITY="$(ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var/\S_auth\S*' | cut -d ' ' -f 2)"
when i start virtualgl,the output:
Caching service dependencies ... [ ok ]
Starting VirtualGL ...
xauth: (argv):1: bad "add" command line [ !! ]
ERROR: vgl failed to start

when i run (ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var/\S_auth\S*' | cut -d ' ' -f 2) in a terminal, the output is "/var/lib/xdm/authdir/authfiles/A:0-f67v6a"

gentoo 3.2.12 x86_64
virtualgl-2.3-r1
In /etc/conf.d/vgl :
XAUTHORITY="$(ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var/\S_auth\S*' | cut -d ' ' -f 2)"
when i start virtualgl,the output:
Caching service dependencies ... [ ok ]
Starting VirtualGL ...
xauth: (argv):1: bad "add" command line [ !! ]
ERROR: vgl failed to start

when i run (ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var/\S_auth\S*' | cut -d ' ' -f 2) in a terminal, the output is "/var/lib/xdm/authdir/authfiles/A:0-f67v6a"

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Jun 4, 2012

Contributor

Which login manager are you using? Are you using virtualgl from bumblebee overlay or from the main tree? Have you updated configuration files (with dispatch-conf or etc-update) after emerging virtualgl?

Contributor

Reinis commented Jun 4, 2012

Which login manager are you using? Are you using virtualgl from bumblebee overlay or from the main tree? Have you updated configuration files (with dispatch-conf or etc-update) after emerging virtualgl?

@satellitexf

This comment has been minimized.

Show comment
Hide comment
@satellitexf

satellitexf Jun 5, 2012

Thanks for Reinis!
my dm is xdm
I install virtualgl-2.3-r1 from bumblebee-gentoo.
I have installed virtualgl-2.3 via emerging in gentoo,but it don't work, the error is same.
so I install virtualgl-2.3-r1, after downloading the bumblebee-gentoo in this site.
I updated configuration use dispatch-conf each time.

Thanks for Reinis!
my dm is xdm
I install virtualgl-2.3-r1 from bumblebee-gentoo.
I have installed virtualgl-2.3 via emerging in gentoo,but it don't work, the error is same.
so I install virtualgl-2.3-r1, after downloading the bumblebee-gentoo in this site.
I updated configuration use dispatch-conf each time.

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Jun 5, 2012

Contributor

If you are using ebuilds from here, you don't have to download them, you can use layman, to add this overlay:

# layman -a bumblebee

Check if the file which is reported by ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s/var/\S*auth\S' | cut -d ' ' -f 2 exists.
I presume you are using openrc as your init system. Do you start vgl service as part of boot process or manually by running /etc/init.d/vgl start?

Contributor

Reinis commented Jun 5, 2012

If you are using ebuilds from here, you don't have to download them, you can use layman, to add this overlay:

# layman -a bumblebee

Check if the file which is reported by ps ww -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s/var/\S*auth\S' | cut -d ' ' -f 2 exists.
I presume you are using openrc as your init system. Do you start vgl service as part of boot process or manually by running /etc/init.d/vgl start?

@satellitexf

This comment has been minimized.

Show comment
Hide comment
@satellitexf

satellitexf Jun 5, 2012

I reinsatll virtualgl-2.3-r1, the errors is the same.
the file which is reported by the command exist.
ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var\S_auth\S*' | cut -d ' ' -f 2
/var/lib/xdm/authdir/authfiles/A:0-AjmSOz
I use openrc-0.9.8.4
I both try to start vgl service by setting the boot process or manually start. the output is:
xauth: (argv):1: bad "add" command line

I reinsatll virtualgl-2.3-r1, the errors is the same.
the file which is reported by the command exist.
ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var\S_auth\S*' | cut -d ' ' -f 2
/var/lib/xdm/authdir/authfiles/A:0-AjmSOz
I use openrc-0.9.8.4
I both try to start vgl service by setting the boot process or manually start. the output is:
xauth: (argv):1: bad "add" command line

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Jun 5, 2012

Contributor

What is the output of the following command?

xauth -f $(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*auth\S*' | cut -d ' ' -f 2) list
Contributor

Reinis commented Jun 5, 2012

What is the output of the following command?

xauth -f $(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s*/var\S*auth\S*' | cut -d ' ' -f 2) list
@satellitexf

This comment has been minimized.

Show comment
Hide comment
@satellitexf

satellitexf Jun 6, 2012

#ffff##: XDM-AUTHORIZATION-1 4a2b2dbbb2752547004f578134b2c3e5
#ffff##: MIT-MAGIC-COOKIE-1 10e46337bf8fc22af8b5c7337f3ac7d1

#ffff##: XDM-AUTHORIZATION-1 4a2b2dbbb2752547004f578134b2c3e5
#ffff##: MIT-MAGIC-COOKIE-1 10e46337bf8fc22af8b5c7337f3ac7d1

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Jun 6, 2012

Contributor

Try editing /etc/init.d/vgl this line

xauth -f /etc/VirtualGL/vgl_xauth_key add $DISPLAY . `xauth -f $XAUTHORITY list | awk '{print $3}'` && \

to this:

xauth -f /etc/VirtualGL/vgl_xauth_key add $DISPLAY . `xauth -f $XAUTHORITY list | tail -1 | awk '{print $3}'` && \

And see if it works.

Contributor

Reinis commented Jun 6, 2012

Try editing /etc/init.d/vgl this line

xauth -f /etc/VirtualGL/vgl_xauth_key add $DISPLAY . `xauth -f $XAUTHORITY list | awk '{print $3}'` && \

to this:

xauth -f /etc/VirtualGL/vgl_xauth_key add $DISPLAY . `xauth -f $XAUTHORITY list | tail -1 | awk '{print $3}'` && \

And see if it works.

@satellitexf

This comment has been minimized.

Show comment
Hide comment
@satellitexf

satellitexf Jun 6, 2012

thanks! It works. vgl service start.

thanks! It works. vgl service start.

@Reinis

This comment has been minimized.

Show comment
Hide comment
@Reinis

Reinis Jun 6, 2012

Contributor

Does bumblebee service also starts successfully and are you able to run applications with it using optirun program_name?

Contributor

Reinis commented Jun 6, 2012

Does bumblebee service also starts successfully and are you able to run applications with it using optirun program_name?

@satellitexf

This comment has been minimized.

Show comment
Hide comment
@satellitexf

satellitexf Jun 7, 2012

yes,bumblebee daemon starts, I success to run with using optirun glxspheres. The result show:
$ glxspheres
Polygons in scene: 62464
Visual ID of window: 0x9f
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Sandybridge Mobile
59.987886 frames/sec - 55.044884 Mpixels/sec

$ optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 550M/PCIe/SSE2
109.808281 frames/sec - 100.760079 Mpixels/sec

yes,bumblebee daemon starts, I success to run with using optirun glxspheres. The result show:
$ glxspheres
Polygons in scene: 62464
Visual ID of window: 0x9f
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Sandybridge Mobile
59.987886 frames/sec - 55.044884 Mpixels/sec

$ optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x21
Context is Direct
OpenGL Renderer: GeForce GT 550M/PCIe/SSE2
109.808281 frames/sec - 100.760079 Mpixels/sec

@Lekensteyn Lekensteyn referenced this issue in Bumblebee-Project/Bumblebee Oct 17, 2012

Closed

Could not enable discrete graphics card on Gentoo #265

@joaocarlos

This comment has been minimized.

Show comment
Hide comment
@joaocarlos

joaocarlos Oct 17, 2012

I'm running gentoo with sources 3.5.
I can run optirun as root user normaly, but when I try to launch any application as normal user it keeps giving me:

[VGL] ERROR: Could not open display :1.

I tryed some random solutions posted here but none of them change my situation.
I aready did tried to change de XAUTHORITY on vlg conf to the kdm sugestion, and also change to some custom commands posted here.

Is there anything else that I could do?

I'm running gentoo with sources 3.5.
I can run optirun as root user normaly, but when I try to launch any application as normal user it keeps giving me:

[VGL] ERROR: Could not open display :1.

I tryed some random solutions posted here but none of them change my situation.
I aready did tried to change de XAUTHORITY on vlg conf to the kdm sugestion, and also change to some custom commands posted here.

Is there anything else that I could do?

@msva

This comment has been minimized.

Show comment
Hide comment
@msva

msva Oct 23, 2012

Contributor

and how do you run Xorg?

Contributor

msva commented Oct 23, 2012

and how do you run Xorg?

@satellitexf

This comment has been minimized.

Show comment
Hide comment
@satellitexf

satellitexf Oct 23, 2012

slim+openbox

slim+openbox

@BlGene

This comment has been minimized.

Show comment
Hide comment
@BlGene

BlGene Nov 25, 2012

I am not running xdm or any display manager, I had to do the following:
change /etc/conf.d/vgl from
XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var\S_auth\S_' | cut -d ' ' -f 2)"
to
XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/home\S_auth\S_' | cut -d ' ' -f 2)"

and change /etc/init.d/vgl
from
xauth -f /var/lib/VirtualGL/vgl_xauth_key add $DISPLAY . 'xauth -f $XAUTHORITY list | awk '{print $3}' &&
to
xauth -f /var/lib/VirtualGL/vgl_xauth_key add $DISPLAY . 'xauth -f $XAUTHORITY list |grep $DISPLAY| awk '{print $3}'` && \

BlGene commented Nov 25, 2012

I am not running xdm or any display manager, I had to do the following:
change /etc/conf.d/vgl from
XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/var\S_auth\S_' | cut -d ' ' -f 2)"
to
XAUTHORITY="$(ps wwax -C X,Xorg -o args= --sort=-stime | grep -m 1 -o '\B[-]auth\s_/home\S_auth\S_' | cut -d ' ' -f 2)"

and change /etc/init.d/vgl
from
xauth -f /var/lib/VirtualGL/vgl_xauth_key add $DISPLAY . 'xauth -f $XAUTHORITY list | awk '{print $3}' &&
to
xauth -f /var/lib/VirtualGL/vgl_xauth_key add $DISPLAY . 'xauth -f $XAUTHORITY list |grep $DISPLAY| awk '{print $3}'` && \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment