You are not logged in.

#1 2019-12-29 19:27:18

TheStroyer
Member
Registered: 2018-08-28
Posts: 54

[SOLVED] LXDM starts with a black screen

After I installed arch on my laptop I wanted to have a display manager. So I tried installing LXDM, but when I enable the LXDM service and proceed to reboot I end up with a black screen.
I am able to login using my keyboard.

I think what happens is instead of using my laptop screen, my HDMI output is used, so my screen stays black.

How can I make sure LXDM shows the right monitor?

Last edited by TheStroyer (2020-01-13 16:52:09)

Offline

#2 2020-01-01 14:50:47

7etc/
Member
Registered: 2010-05-08
Posts: 47

Re: [SOLVED] LXDM starts with a black screen

There a lot of ways to manage two screens. You don't give any info about the issue, but the wiki has a lot of info about that.
In any case if you're running an Nvida graphic card is as easy as install nvidia-settings...

Last edited by 7etc/ (2020-01-01 15:06:15)

Offline

#3 2020-01-12 17:05:29

TheStroyer
Member
Registered: 2018-08-28
Posts: 54

Re: [SOLVED] LXDM starts with a black screen

Sorry to reply so late.
I don't want to manage two screens. The issue is that the HDMI port of my laptop is selected by default, but I want to set my laptop's own display as the default.
I installed nvidia-settings, but my laptop's display doesn't show in nvidia-settings by default. Only when I turn on the display by hand with xrandr I can see it in nvidia settings.
Nvidia-settings calls it a PRIME display and says that it must be controlled with and external RandR program.
I have tried to make a script that gets run on every startup which turns off the hdmi output and turns on my laptops display. That script works, but it wasn't the nicest solution and I couldn't get it to auto-run after installing a login manager.
So I was wondering if there might be another solution. If there isn't I would like to know how to auto-run my script upon booting (yes, I've read the wiki, but I couldn't make it work).

Offline

#4 2020-01-12 17:58:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: [SOLVED] LXDM starts with a black screen

This page has general information on how to handle dual gpu systems https://wiki.archlinux.org/index.php/NVIDIA_Optimus

If you have a working script and just want to use that for lightdm, just check https://wiki.archlinux.org/index.php/NV … us#LightDM

Offline

#5 2020-01-13 15:54:24

TheStroyer
Member
Registered: 2018-08-28
Posts: 54

Re: [SOLVED] LXDM starts with a black screen

V1de wrote:

If you have a working script and just want to use that for lightdm, just check https://wiki.archlinux.org/index.php/NV … us#LightDM

I copied my scipt to the right location and edited the config. Now, after booting my screen is black and ocationally some weird artifacts are visible. My display setup doesn't contain the line
"xrandr --setprovideroutputsource modesetting NVIDIA-0". Is that what's wrong?
The script worked fine when I let i3 run it.

Offline

#6 2020-01-13 16:16:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: [SOLVED] LXDM starts with a black screen

Not necessarily, what are you trying to do? Post your script.

Offline

#7 2020-01-13 16:51:45

TheStroyer
Member
Registered: 2018-08-28
Posts: 54

Re: [SOLVED] LXDM starts with a black screen

Oh I forgot the '#!/bin/sh'... With i3 I executed it with 'sh script'. Now it works. Thanks for the help!

Offline

Board footer

Powered by FluxBB