You are not logged in.

#1 2021-06-08 13:50:10

Wispy
Member
Registered: 2021-04-02
Posts: 24

Xdmx fails for a weird reason

Trying to set up Xdmx to use a laptop like a second monitor. However, I always come across this message

What I have tired:
1. ```xhost +```
2. Setting X Forwarding on

The command:

startx -- /usr/bin/Xdmx :1 +xinerama -display localhost:10.0 -display :0.0 -norender -noglxproxy -fontpath /usr/share/fonts -ignorebadfontpaths

The output:

(II) dmx: Using 3286x1080 as global bounding box
(II) dmx: XSync batching with 100 ms interval
(!!) dmx: The DMX server failed to set the following font paths on screen #0:
(!!) dmx:     built-ins
(!!) dmx: These font paths will not be used because the "-ignorebadfontpaths"
(!!) dmx: option is set.
(!!) dmx: After removing the font paths above, no valid font paths were
(!!) dmx: available.  Please check that the font paths set on the command
(!!) dmx: line or in the configuration file via the "-fontpath" option
(!!) dmx: are valid on all back-end servers.  See the Xdmx man page for
(!!) dmx: more information on font paths.
(EE) 
Fatal server error:
(EE) could not open default font 'fixed'(EE) 
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console.

Please help!

Last edited by Wispy (2021-06-08 23:12:43)

Offline

#2 2021-06-08 15:32:52

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

bbcode, not markdown.
https://bbs.archlinux.org/help.php#bbcode

Did you read the error?

(!!) dmx: The DMX server failed to set the following font paths on screen #0:
(!!) dmx:     built-ins
(!!) dmx: These font paths will not be used because the "-ignorebadfontpaths" option is set.
(!!) dmx: After removing the font paths above, no valid font paths were available.  Please check that the font paths set on the command line or in the configuration file via the "-fontpath" option are valid on all back-end servers.  See the Xdmx man page for more information on font paths.

What do you think that means?

Offline

#3 2021-06-08 20:08:39

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

Thanks, I'll edit it when I get time to.
Yes, obviously I've read the error, but I don't know to list "built-ins" directory or how to provide a font for "fixed" family.

Offline

#4 2021-06-08 21:07:57

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

xset q | grep -iC3 font

Everywhere.

See https://www.x.org/releases/X11R7.6/doc/ … mx.1.xhtml on fontpath.

Offline

#5 2021-06-08 23:11:19

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

All machines provide the same fontpaths. I've read the documentation already. The problem is that it cannot set "built-ins". I tried just adding it to the fontpath option but that didn't do anything.

Last edited by Wispy (2021-06-08 23:13:41)

Offline

#6 2021-06-09 05:19:31

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

And what are those paths?
Is "/usr/share/fonts" among them?

Offline

#7 2021-06-09 05:29:29

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

Yes! Yes it is, I posted the command I use in my initial post.

Offline

#8 2021-06-09 05:36:10

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

I don't mean what you issue to xdmx, post the output(s) of the command in #4
/usr/share/fonts is typically *not* a font path in X11 and you cannot pass a parent directory to hold stuff recursively here.

Offline

#9 2021-06-09 05:39:17

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: Xdmx fails for a weird reason

ls -l /usr/share/fonts

Offline

#10 2021-06-09 17:06:06

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

tucuxi wrote:
ls -l /usr/share/fonts
total 272
drwxr-xr-x 2 root root 90112 Jun  8 14:41 100dpi
drwxr-xr-x 2 root root 90112 Jun  8 15:08 75dpi
drwxr-xr-x 2 root root  4096 Jun  8 14:41 adobe-source-code-pro
drwxr-xr-x 2 root root  4096 Jun  8 14:41 cantarell
drwxr-xr-x 3 root root  4096 Jun  8 14:52 encodings
drwxr-xr-x 2 root root  4096 Jun  8 14:41 gsfonts
drwxr-xr-x 2 root root 20480 Jun  8 14:51 misc
drwxr-xr-x 2 root root 36864 Jun  8 14:41 noto
drwxr-xr-x 2 root root  4096 Jun  8 14:51 OTF
drwxr-xr-x 2 root root  4096 Jun  8 14:51 TTF
drwxr-xr-x 2 root root  4096 Jun  8 14:52 util
d-wx--xrwx 2 root root 12288 Jun  8 14:41 WindowsFonts

Offline

#11 2021-06-09 17:08:10

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

seth wrote:

I don't mean what you issue to xdmx, post the output(s) of the command in #4
/usr/share/fonts is typically *not* a font path in X11 and you cannot pass a parent directory to hold stuff recursively here.

Oh, sorry. Here's the output:

  timeout:  0    cycle:  600
Colors:
  default colormap:  0x20    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/misc,/usr/share/fonts/TTF,/usr/share/fonts/OTF,/usr/share/fonts/100dpi,/usr/share/fonts/75dpi,built-ins
DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Disabled

It seems fine?

Offline

#12 2021-06-09 17:55:32

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

Is /usr/share/fonts part of that font path?
(Revisit #8 for a spoiler)

Offline

#13 2021-06-09 19:19:48

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

seth wrote:

Is /usr/share/fonts part of that font path?
(Revisit #8 for a spoiler)

No, it's not? I provided "-fontpath /usr/share/fonts" because without it, it couldn't find any font directories from /usr/share/fonts. The only directory it can't find now is "built-ins". What do I do here?

Offline

#14 2021-06-09 19:26:57

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

(!!) dmx: The DMX server failed to set the following font paths on screen #0:
(!!) dmx:     built-ins
(!!) dmx: These font paths will not be used because the "-ignorebadfontpaths" option is set.
(!!) dmx: After removing the font paths above, no valid font paths were available.  Please check that the font paths set on the command line or in the configuration file via the "-fontpath" option are valid on all back-end servers.  See the Xdmx man page for more information on font paths.

Tried passing some valid paths to -fontpath?

… -fontpath /usr/share/fonts/misc -fontpath /usr/share/fonts/TTF -fontpath /usr/share/fonts/OTF -fontpath /usr/share/fonts/100dpi -fontpath /usr/share/fonts/75dpi …

Offline

#15 2021-06-09 20:04:56

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

seth wrote:

(!!) dmx: The DMX server failed to set the following font paths on screen #0:
(!!) dmx:     built-ins
(!!) dmx: These font paths will not be used because the "-ignorebadfontpaths" option is set.
(!!) dmx: After removing the font paths above, no valid font paths were available.  Please check that the font paths set on the command line or in the configuration file via the "-fontpath" option are valid on all back-end servers.  See the Xdmx man page for more information on font paths.

Tried passing some valid paths to -fontpath?

… -fontpath /usr/share/fonts/misc -fontpath /usr/share/fonts/TTF -fontpath /usr/share/fonts/OTF -fontpath /usr/share/fonts/100dpi -fontpath /usr/share/fonts/75dpi …

I ran this command now, following your last post:

startx -- /usr/bin/Xdmx :1 +xinerama -display localhost:10.0 -display :0.0 -norender -noglxproxy -fontpath /usr/share/fonts/misc -fontpath /usr/share/fonts/TTF -fontpath /usr/share/fonts/OTF -fontpath /usr/share/fonts/100dpi -fontpath /usr/share/fonts/75dpi

Unfortunately, it couldn't find anything this time at all.

(II) dmx: Using 3286x1080 as global bounding box
(II) dmx: XSync batching with 100 ms interval
(!!) dmx: The DMX server failed to set the following font paths on screen #0:
(!!) dmx:     /usr/share/fonts/misc
(!!) dmx:     /usr/share/fonts/TTF
(!!) dmx:     /usr/share/fonts/OTF
(!!) dmx:     /usr/share/fonts/100dpi
(!!) dmx:     /usr/share/fonts/75dpi
(!!) dmx:     built-ins
(!!) dmx: Please remove these font paths from the command line or
(!!) dmx: configuration file, or set the "-ignorebadfontpaths" option to
(!!) dmx: ignore them.  For more information on these options, see the
(!!) dmx: Xdmx man page.
(EE) 
Fatal server error:
(EE) could not open default font 'fixed'(EE)

Offline

#16 2021-06-09 20:18:13

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

There're two backend servers, does xset report the same font paths for both?

xset -display :0.0 -q
xset -display localhost:10.0

Since both are on localhost, sanity check: why do you think you want to use xdmx?

Offline

#17 2021-06-09 21:12:28

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

I want to use Xdmx as a way to extend my desktop over to my laptop (xinerama effect), since laptops aren't really good at being monitors and I do want to put it to a good use.

:0.0

Font Path:
  /usr/share/fonts/misc,/usr/share/fonts/TTF,/usr/share/fonts/OTF,/usr/share/fonts/100dpi,/usr/share/fonts/75dpi,built-ins

localhost:10.0

Font Path:
  /usr/share/fonts/TTF,/usr/share/fonts/100dpi,/usr/share/fonts/75dpi,built-ins

Well, not the same but similar.

Offline

#18 2021-06-09 21:42:41

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

ls /usr/share/fonts/75dpi

extend my desktop over to my laptop

You're running all servers on the same system, though?

since laptops aren't really good at being monitors

???

Is the idea to use your laptop as a second monitor for your desktop?
And are you running a desktop environment like KDE or gnome?

Offline

#19 2021-06-09 22:05:22

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

Yes, the idea is to use laptop as a second monitor. I run on KDE.
I run X.Org on the system computer and on the client computer

Last edited by Wispy (2021-06-09 22:14:18)

Offline

#20 2021-06-09 22:13:09

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

Do you want me to send you the entire output of #18? It's not empty, if that's what you're asking

Offline

#21 2021-06-09 22:20:56

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

Did you see the note at the bottom of https://wiki.archlinux.org/title/Extreme_Multihead#Xdmx ?
Also running KDE remote over X11 (regardless of xdmx) is going to be super-painful (because it only uses XPutImage and GLX)

Look at VNC instead.

Offline

#22 2021-06-09 23:17:31

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

seth wrote:

Did you see the note at the bottom of https://wiki.archlinux.org/title/Extreme_Multihead#Xdmx ?
Also running KDE remote over X11 (regardless of xdmx) is going to be super-painful (because it only uses XPutImage and GLX)

Look at VNC instead.

Aww, that's sad. Can I use DVI-D output for a virtual monitor using VNC?

Offline

#23 2021-06-10 05:40:18

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

In theory you can use any unused output.

Offline

#24 2021-06-10 22:26:47

Wispy
Member
Registered: 2021-04-02
Posts: 24

Re: Xdmx fails for a weird reason

I've tried using the VNC method, a few problems though.
I couldn't get Barrier server set up, turns out I just had to run it as root. Sadly, I couldn't figure out how to connect to the server on a client computer, it just stuck at "Barrier is starting."
As stated in https://wiki.archlinux.org/title/Extrem … DMI_output, I need to force the output to be enabled, but /sys/kernel/debug/dri/0/DVI-D-0/force doesn't exist and I can't make directories in there.

Offline

#25 2021-06-11 06:37:09

seth
Member
Registered: 2012-09-03
Posts: 49,979

Re: Xdmx fails for a weird reason

sudo ls -R /sys/kernel/debug/dri/0/

I couldn't get Barrier server set up

Barrier is a different approach, you could strace the process to see where it stalls.

Offline

Board footer

Powered by FluxBB