You are not logged in.

#1 2017-04-30 07:57:45

insanoflex
Member
Registered: 2017-04-29
Posts: 15

[SOLVED]black screen on xinit without a wm

I have a simple .xinitrc I'm using to start an x server.

#!/bin/bash
xrdb -m .Xresources
xterm -geometry 238x67+0+0 -font -schumacher-clean-bold-*-normal-17-120-100-100-*-*-*-* &

However, on xinit, my screen goes completely black and I can't switch back to the tty.
Adding a call to xinit before the xrdb fixes the issue, but then I have to close the first xterm, which doesn't use my .Xresources settings, to get to the xterm that does.

#!/bin/bash
xterm
xrdb -m .Xresources
xterm -geometry 238x67+0+0 -font -schumacher-clean-bold-*-normal-17-120-100-100-*-*-*-* &

I've tried adding a call to twm at the end. This also fixes it, the xterm displays, but I can't seem to get rid of the annoying title bar on the xterm window. Any help is much appreciated.

Last edited by insanoflex (2017-05-07 06:10:10)

Offline

#2 2017-04-30 08:31:04

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED]black screen on xinit without a wm

Try an exec before the last xterm line. Also, is the -m option of xrdb the same as -merge, because I can't seem to find it in the man page.

Offline

#3 2017-04-30 10:44:03

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: [SOLVED]black screen on xinit without a wm

Exec is irrelevant - that just removes and extra shell process.

While I'm not sure how it'd explain the symptoms described, neither of those xinitrc's should work (we'll, the second should for the first xterm, until it is closed).  You background your main xterm - so x should exit immediately.  Remove the ampersand (and if you want, add an exec) then report back on any changes.

I suspect you'll also need to quote the fonts string, otherwise the shell may try to expand the asterices.  (edit: I just tested, and this shouldn't matter ... unless you coincidentally have file names that'd actually match any expansion of the font string).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#4 2017-04-30 18:23:35

insanoflex
Member
Registered: 2017-04-29
Posts: 15

Re: [SOLVED]black screen on xinit without a wm

Ok, thanks. Getting rid of the ampersand after the xterm fixed it. Don't remember why I put that there.

Offline

#5 2017-05-02 03:58:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]black screen on xinit without a wm

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB