You are not logged in.
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.
![]()
Edit:
/etc/X11/xorg.conf:
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "1:0:0"
Option "AllowEmptyInitialConfiguration"
EndSectionLast edited by StevenC21 (2018-09-19 15:17:44)
Offline
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 lxdmLast edited by olive (2018-09-17 16:47:28)
Offline
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
To clarify: When I have those systemctl options enabled, I am greeted with a black screen on startup (after GRUB of course).
Offline
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
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
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
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=nouveauThe nvidia package provides usr/lib/modprobe.d/nvidia.conf which blacklists the nouveau kernel driver.
Offline
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. ![]()
Offline
Nothing is wrong with that xorg.conf that I am aware of. Did you add
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --autoto /etc/lxdm/LoginReady ?
Offline
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
I have added your options to /etc/lxdm/LoginReady, but it did not help. I still get a black screen instead of LXDM.
Offline
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
FWIW, is the file executable? It's likely necessary to be executable if this works similarly to other DMs
Offline
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
Loqs:
#!/bin/sh
#
# Note: this is a sample and will not be run as is.
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --autoV1del:
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. ![]()
Offline
#!/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.afterIf you modify /etc/lxdm/LoginReady as above are the two files created in /tmp? If so please post their contents.
Offline
Just to clarify, I should run the systemctl commands to re-attempt LXDM?
Offline
systemctl set-default graphical.target systemctl enable -f lxdm
What do they do? Why and when do you therefore have to run them?
Offline
Loqs? About the systemctl commands. Do I need to re-run them and reboot?
Offline
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
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
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 :0I hope someone will see this haha.
Offline
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
Try using "/etc/lxdm/PreLogin" - apparently "LoginReady" is executed before the X11 server is started.
Offline