You are not logged in.

#26 2022-05-01 15:15:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 28,366
Website

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

Good news is, we're back to where we started.  I asked for your ~/.xinitrc in post #2 as it sounds like the original problem was there.  But then that original problem was compounded by downgrading, removing / changing drivers, and creating an xorg.conf.  Now it sounds like you've undone all those additional problems, so now we just need to fix your xinitrc.  The first step is for you to post the full contents of your ~/.xinitrc here.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#27 2022-05-01 15:19:41

Aram1s
Member
Registered: 2022-01-16
Posts: 25

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

By removing everything else in my .xinitrc except dwm it still terminates after 3 seconds. I followed the archlinux installation guide Arch Linux Installation Guide and Mental Outlaws youtube video. This has not been an issue before so I can't see why my installation is the problem.


my .xinitrc sucks

Offline

#28 2022-05-01 15:23:53

Aram1s
Member
Registered: 2022-01-16
Posts: 25

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

my .xinitrc:
dwm &


my .xinitrc sucks

Offline

#29 2022-05-01 15:24:38

seth
Member
Registered: 2012-09-03
Posts: 38,654

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

Because then likely DWM crashes?
Did you rebuild it after recent updates?

And your xinitrc is broken nevertheless, see the last link below…

Offline

#30 2022-05-01 15:25:25

Scimmia
Fellow
Registered: 2012-09-01
Posts: 10,375

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

You're backgrounding your WM, of course X.org exits as there's nothing it's running.

Offline

#31 2022-05-01 15:28:22

Aram1s
Member
Registered: 2022-01-16
Posts: 25

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

Yes I believe that I did rebuild it. I did so again but I can't find any errors.


my .xinitrc sucks

Offline

#32 2022-05-01 15:33:48

Aram1s
Member
Registered: 2022-01-16
Posts: 25

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

Now it "works" just not how i configured it. I actually managed to get to this point previously only that it required root privileges.
EDIT: No keyboard or mouse input works and it is showing on the laptop not external monitor.

Last edited by Aram1s (2022-05-01 15:36:05)


my .xinitrc sucks

Offline

#33 2022-05-01 15:36:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 28,366
Website

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

DO NOT RUN X AS ROOT!

Read the above line several times.  Feel free to yell it outloud as indicated by the all caps.  The fact that it "works" is because running as root doesn't use your completely broken xinitrc.  Fix your xinitrc.  Really.  That's been the only real problem since the start of this thread.  But you keep creating other problems by ignoring the advice you are given and instead flailing doing foolish things that cause more breakage.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#34 2022-05-01 15:36:23

seth
Member
Registered: 2012-09-03
Posts: 38,654

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

That xinitrc *cannot* "work" and if you do/did something stupid like "sudo startx" your $HOME is full of wrong file ownerships (that will block subsequent X11 starts)…

I followed … Mental Outlaws youtube video.

ftfy.

Offline

#35 2022-05-01 15:39:39

Aram1s
Member
Registered: 2022-01-16
Posts: 25

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

What should I do?
Reinstall everything?

Last edited by Aram1s (2022-05-01 15:40:25)


my .xinitrc sucks

Offline

#36 2022-05-01 15:41:00

seth
Member
Registered: 2012-09-03
Posts: 38,654

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

Install ubuntu…

Alternatively fix your xinitrc and check the files in your $HOME for bogus ownership??

Offline

#37 2022-05-01 15:46:47

Aram1s
Member
Registered: 2022-01-16
Posts: 25

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

I am sorry that I did not take the advice correctly, and that I have wasted a lot of your time. I will look into what you said about ownership.


my .xinitrc sucks

Offline

#38 2023-05-26 11:25:37

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,377

Re: xinit: unable to connect to X server: Connection refused [SOLVED]

Troll split from this old topic. Closing.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB