You are not logged in.

#1 2022-07-03 14:25:03

Doctor_Apparatus
Member
Registered: 2022-07-03
Posts: 6

Can't start BSPWM on second GPU

I am running a 2 GPU System and trying to start BSWPM on my second GPU. I switched from AwesomeWM to BSWPM.
What I've tried:
With AwesomeWM I just had:

export DISPLAY=:0; awesome &
export DISPLAY=:0.1; awesome &

which worked totally fine. But when I try the same thing with BSWPM:

export DISPLAY=:0; bspwm &
export DISPLAY=:0.1; bspwm &

I get the error message:

Another window manager is already running.

Anyone knows how to start BSPWM on another DISPLAY?

Last edited by Doctor_Apparatus (2022-07-03 14:25:43)

Offline

#2 2022-07-03 14:47:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,243

Re: Can't start BSPWM on second GPU

From which instance?
Also let's not mess around w/ the exports and have a sleep against race conditions:

DISPLAY=:0 bspwm &
echo "Started :0"
sleep 5
DISPLAY=:0.1 bspwm &
echo "Started :0.1"

Offline

#3 2022-07-03 16:43:38

Doctor_Apparatus
Member
Registered: 2022-07-03
Posts: 6

Re: Can't start BSPWM on second GPU

The first instance on Display 0 is starting without a problem. From within the first instance I am just opening a terminal emulator and then setting the DISPLAY and trying to start bspwm which results in the error.

Offline

#4 2022-07-03 19:04:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,243

Re: Can't start BSPWM on second GPU

DISPLAY=:0.1 xprop -root _NET_SUPPORTING_WM_CHECK
DISPLAY=:0.1 xprop -id 0xthe_id_from_above

Offline

#5 2022-07-06 19:38:14

Doctor_Apparatus
Member
Registered: 2022-07-03
Posts: 6

Re: Can't start BSPWM on second GPU

 DISPLAY=:0.1 xprop -root _NET_SUPPORTING_WM_CHECK 

results in

_NET_SUPPORTING_WM_CHECK:  not found.

Offline

#6 2022-07-06 20:20:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,243

Re: Can't start BSPWM on second GPU

Doesn't look like some NETWM … WM - bspwm actually just tests for the event mask https://github.com/baskerville/bspwm/bl … spwm.h#L37
You could try "xrestop -d :0.1" to see what is currently running on that display.

Last edited by seth (2022-07-06 20:21:07)

Offline

#7 2022-07-07 05:26:25

Doctor_Apparatus
Member
Registered: 2022-07-03
Posts: 6

Re: Can't start BSPWM on second GPU

 xrestop - Display: :0.1
          Monitoring 16 clients. XErrors: 0
          Pixmaps:   46731K total, Other:      16K total, All:   46747K total

res-base Wins  GCs Fnts Pxms Misc   Pxm mem  Other   Total   PID Identifier
0000000     2    0    2    0  282    14400K      8K  14408K   ?   <unknown>
0e00000     8    4    1    4   36     9221K      2K   9223K   ?   <unknown>
1a00000     0    0    0    1    0     9000K      0B   9000K   ?   <unknown>
1000000     1    2    0    0   14     8709K    408B   8710K   ?   <unknown>
1800000     0    0    0    1    0     5400K      0B   5400K   ?   <unknown>
0800000     0    0    0    0  112        0B      2K      2K   ?   <unknown>
0a00000     1    2    1    0   11        0B      1K      1K   ?   <unknown>
0600000     5    0    0    0   36        0B    984B    984B   ?   <unknown>
0400000     2    2    0    0    2        0B    144B    144B   ?   <unknown>
0c00000     0    2    0    0    2        0B     96B     96B   ?   <unknown>
1e00000     1    2    0    0    0        0B     72B     72B   ?   xrestop
1c00000     1    0    0    0    0        0B     24B     24B   ?   <unknown>
1600000     1    0    0    0    0        0B     24B     24B   ?   <unknown>
1400000     1    0    0    0    0        0B     24B     24B   ?   <unknown>
1200000     1    0    0    0    0        0B     24B     24B   ?   <unknown>
0200000     0    0    0    0    0        0B      0B      0B   ?   <unknown> 

Offline

#8 2022-07-07 06:25:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,243

Re: Can't start BSPWM on second GPU

Plenty of unidentifiable clients… "Great"
What other processes do you start on that display?

Offline

#9 2022-07-07 06:44:52

Doctor_Apparatus
Member
Registered: 2022-07-03
Posts: 6

Re: Can't start BSPWM on second GPU

export DISPLAY=:0.1
xwininfo -tree -root

xwininfo: Window id: 0x484 (the root window) (has no name)

  Root window id: 0x484 (the root window) (has no name)
  Parent window id: 0x0 (none)
     0 children.

Also thanks for helping me out with this. I am absolutely lost with this problem tbh.

Offline

#10 2022-07-07 07:08:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,243

Re: Can't start BSPWM on second GPU

The clients do not necessarily have a window.
If you just start an xterm on 0.0 and try to start bspwm on 0.1, does that work?
And can you afterwards run bspwm on 0.0?
Also, compare xrestop when there's just an xterm on 0.0

Offline

#11 2022-07-07 11:56:08

Doctor_Apparatus
Member
Registered: 2022-07-03
Posts: 6

Re: Can't start BSPWM on second GPU

I've started checking out bspwms code and the whole X11 connection segment is kinda how you do it. Started fixing some things and got it to work. Pull request will be sent out soon.

Offline

Board footer

Powered by FluxBB