You are not logged in.

#1 2018-09-17 15:56:43

StevenC21
Member
Registered: 2018-09-17
Posts: 59

LXDM Won't Launch at Startup.

Disclaimer: I have read the wiki page on LXDM, and enabled lxdm.service, to no effect.

Basically, regardless of what I do, LXDM will not launch. LXDE itself works fine, I just have to startx it every time I want to use the desktop, which isn't super annoying, but it means I have to do one more thing at my computer, y'know? I can provide logs and config files, but you guys would have to tell me which ones to provide, I don't know which ones are most likely borked (if config files are the issue). I am using the nvidia driver, 396.51 (or maybe 54, again, not at home), if it matters.

Thanks guys for reading this, even if you can't help.

smile

Edit:

/etc/X11/xorg.conf:

Section "Module"
        Load "modesetting"
EndSection

Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "1:0:0"
        Option "AllowEmptyInitialConfiguration"
EndSection

Last edited by StevenC21 (2018-09-19 15:17:44)

Offline

#2 2018-09-17 16:45:27

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: LXDM Won't Launch at Startup.

StevenC21 wrote:

Basically, regardless of what I do

Could you be a little more precise, what are you doing and what result do you get? (Unexpected black screen, error message, etc.). I think there is a ~/.xsession-errors file, could you examine it?

But just a question. Have you enabled it?

systemctl set-default graphical.target
systemctl enable -f lxdm

Last edited by olive (2018-09-17 16:47:28)

Offline

#3 2018-09-17 22:31:45

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

I get a black screen at startup.

I do not have a .xsession-errors file, sorry.

I have enabled your systemctl options, I will see what they do!

Offline

#4 2018-09-17 22:41:29

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

To clarify: When I have those systemctl options enabled, I am greeted with a black screen on startup (after GRUB of course).

Offline

#5 2018-09-17 22:54:54

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: LXDM Won't Launch at Startup.

What is the contents of Xorg.log and the journal output for lxdm?  Is the system using optimus is looks like it may be from xorg.conf?  If so how is lxdm configured for it?

Offline

#6 2018-09-17 23:23:51

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

Re: LXDM Won't Launch at Startup.

If the only reason you are using (trying to use) a DM is so you don't need to type startx, then ditch the DM, just set up to autostart X and optionally autologin.


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

Offline

#7 2018-09-18 00:07:54

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

Loqs:

Here is a pastebin to /var/log/Xorg.0.log

url: https://ptpb.pw/QeCp

Trilby:

I honestly really want to use the DM, mostly because I am stubborn and will be very upset if I can't get it to work.

Offline

#8 2018-09-18 00:55:40

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: LXDM Won't Launch at Startup.

Xorg.log again looks like incorrectly configured NVIDIA_Optimus
You can also drop the boot options

modprobe.blacklist=nouveau rd.driver.blacklist=nouveau nouveau.blacklist blacklist=nouveau

The nvidia package provides usr/lib/modprobe.d/nvidia.conf which blacklists the nouveau kernel driver.

Offline

#9 2018-09-18 01:00:55

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

I can drop those options? Cool, thanks!

And what specifically is configured wrong? I swear I've redone that file so many times, I just can't tell whats wrong.

And thank you for your help. smile

Offline

#10 2018-09-18 01:07:41

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: LXDM Won't Launch at Startup.

Nothing is wrong with that xorg.conf that I am aware of.  Did you add

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

to /etc/lxdm/LoginReady ?

Offline

#11 2018-09-18 01:09:53

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

No I did not. However, that script says that "it is a sample and will not be run as is".

/etc/lxdm/LoginReady

#!/bin/sh
#
# Note: this is a sample and will not be run as is.

I did add your options though, but have not updated systemctl yet, in case that the file is wrong.

Last edited by StevenC21 (2018-09-18 01:11:18)

Offline

#12 2018-09-18 01:20:56

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

I have added your options to /etc/lxdm/LoginReady, but it did not help. I still get a black screen instead of LXDM.

Offline

#13 2018-09-18 10:37:09

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: LXDM Won't Launch at Startup.

https://wiki.gentoo.org/wiki/NVIDIA/Opt … .28LXDM.29 was my source for that being the correct location as LXDM is not covered on the arch wiki's optimus page.
What is the contents of /etc/lxdm/LoginReady now after editing?

Offline

#14 2018-09-18 11:25:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: LXDM Won't Launch at Startup.

FWIW, is the file executable? It's likely necessary to be executable if this works similarly to other DMs

Offline

#15 2018-09-18 11:26:06

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

Re: LXDM Won't Launch at Startup.

Principal question: do you actually want to run the session on the nvidia blob (draining your battery) or would you prefer to only invoke the nvidia chip for games etc.?
Did you consult https://wiki.archlinux.org/index.php/NVIDIA_Optimus ?

Offline

#16 2018-09-18 14:38:01

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

Loqs:

#!/bin/sh
#
# Note: this is a sample and will not be run as is.

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

V1del:

I will "chmod +x" it.

Seth:

Yeah I'm fine with using the nVidia card for everything. My laptop is usually plugged in anyways.

Thank you for the concern though. smile

Offline

#17 2018-09-18 20:31:40

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: LXDM Won't Launch at Startup.

#!/bin/sh
#
# Note: this is a sample and will not be run as is.

xrandr &> /tmp/lxdm.before
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr &> /tmp/lxdm.after

If you modify /etc/lxdm/LoginReady as above are the two files created in /tmp?  If so please post their contents.

Offline

#18 2018-09-19 01:28:35

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

Just to clarify, I should run the systemctl commands to re-attempt LXDM?

Offline

#19 2018-09-19 05:43:17

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

Re: LXDM Won't Launch at Startup.

systemctl set-default graphical.target
systemctl enable -f lxdm

What do they do? Why and when do you therefore have to run them?

Offline

#20 2018-09-19 05:45:57

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

Loqs? About the systemctl commands. Do I need to re-run them and reboot?

Offline

#21 2018-09-19 05:50:40

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

Re: LXDM Won't Launch at Startup.

You need to understand what they do. That will answer your question.
If you refuse to think about and understand things, arch is not the proper distro for you.

Offline

#22 2018-09-19 15:16:32

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

Oh, sorry seth! I didn't realize that you were trying to get me to answer those questions.

I wasn't blowing you off.

Yes, I will look up those commands, I misunderstood what you were saying.

Offline

#23 2018-09-22 01:05:13

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

Oh, darn. I forgot about this. If anyone still cares, both /tmp/lxdm.before and /tmp/lxdm.after show:

No protocol specified
Can't open display :0

I hope someone will see this haha.

Offline

#24 2018-09-22 01:09:21

StevenC21
Member
Registered: 2018-09-17
Posts: 59

Re: LXDM Won't Launch at Startup.

Oh, one more thing I just realized!

I don't know if it matters, but lxdm.conf had an error in it!

It was attempting to start openbox instead of lxde.

We shall see next reboot if that will help.

Offline

#25 2018-09-22 06:15:18

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

Re: LXDM Won't Launch at Startup.

Try using "/etc/lxdm/PreLogin" - apparently "LoginReady" is executed before the X11 server is started.

Offline

Board footer

Powered by FluxBB