You are not logged in.

#1 2019-07-28 12:47:37

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Xorg/lightdm not recognizing my laptop display.

Trying to solve this for 2 weeks/ Kindly help me.

I installed Arch linux with lightdm, xorg and i3. My laptop has Nvidia gtx 1070.

every time I boot into arch, I need a secondary monitor or else the booting fails and I get a black screen (I can still login with tty).

(I have installed nvidia drivers and blacklisted nouveau, if that means anything)

I have added the logs below.

Xorg log:   http://s000.tinyupload.com/?file_id=867 … 3344885797

lightdm log: https://gofile.io/?c=XLO3ii

ix.io link

Xorg log: http://ix.io/1PPU

lightdm log: http://ix.io/1PQ1

Last edited by reaganrewop (2019-07-28 13:49:20)

Offline

#2 2019-07-28 13:11:59

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Xorg/lightdm not recognizing my laptop display.

Please use a pastebin client (not pastebin.com) that does not require us to download your logs.

Offline

#3 2019-07-28 13:19:23

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Re: Xorg/lightdm not recognizing my laptop display.

Offline

#4 2019-07-28 13:24:24

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

Re: Xorg/lightdm not recognizing my laptop display.

There's nothing broken, use ix.io.

Offline

#5 2019-07-28 13:49:48

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Re: Xorg/lightdm not recognizing my laptop display.

seth wrote:

There's nothing broken, use ix.io.

sorry, done now. kindly check.

Offline

#6 2019-07-28 14:02:00

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

Re: Xorg/lightdm not recognizing my laptop display.

How do you attempt to configure the optimus config?
Read https://wiki.archlinux.org/index.php/NVIDIA_Optimus and follow the relevant links.

Offline

#7 2019-07-28 14:14:14

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Re: Xorg/lightdm not recognizing my laptop display.

seth wrote:

How do you attempt to configure the optimus config?
Read https://wiki.archlinux.org/index.php/NVIDIA_Optimus and follow the relevant links.


ah! I went through that before. but why would that be an issue? If I am able to login in with a secondary monitor, then everything works w.r.t graphic card right?

or am I wrong?

Offline

#8 2019-07-28 14:15:55

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

Re: Xorg/lightdm not recognizing my laptop display.

You went through that in what direction? Why do you start X11 on the nvidia blob? Do you think your internal display is wired to the nvidia chip? If not, what did you do to deal w/ that?

Offline

#9 2019-07-28 15:02:02

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Re: Xorg/lightdm not recognizing my laptop display.

seth wrote:

You went through that in what direction? Why do you start X11 on the nvidia blob? Do you think your internal display is wired to the nvidia chip? If not, what did you do to deal w/ that?


I went through the wiki and added xorg.conf file like they mentioned and edited ~/.xinitrc with the following

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

In lightDM added the below

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

and edited this in lightdm.conf

display-setup-script=/etc/lightdm/display_setup.sh


but, after rebooting my display just started blinking rapidly. log didn't show anything except that it got a kill signal and therefore it is stopping the lightdm proces.

Offline

#10 2019-07-28 15:36:44

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

Re: Xorg/lightdm not recognizing my laptop display.

The journal you posted before suggest you had edited

Jul 28 18:01:54 ray sudo[2462]:    ray__ : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/usr/bin/gedit /etc/X11/xorg.conf.d/10-nvidia.conf

How?

Overmore the xorg logs do not indicate an addition of the nvidia library paths and also

[    18.890] (EE) No devices detected.

what means the GPU isn't found and it's also not identified anywhere.

You must have taken other steps before, please elaborate on that and paste the complete output of "sudo journalctl -b"

Offline

#11 2019-07-28 15:46:16

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Re: Xorg/lightdm not recognizing my laptop display.

seth wrote:

The journal you posted before suggest you had edited

Jul 28 18:01:54 ray sudo[2462]:    ray__ : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/usr/bin/gedit /etc/X11/xorg.conf.d/10-nvidia.conf

How?

ix.io was refusing the file. so I trimmed it down. Will try to put the full one.

seth wrote:

Overmore the xorg logs do not indicate an addition of the nvidia library paths and also

[    18.890] (EE) No devices detected.

what means the GPU isn't found and it's also not identified anywhere.

But, I am able to run nvidia-smi and nvidia-settings. I thought the "no devices" meant display device.

seth wrote:

You must have taken other steps before, please elaborate on that and paste the complete output of "sudo journalctl -b"

with respect to nvidia, this is all I did.

sudo pacman -S nvidia nvidia-utils nvidia-settings xorg-server xorg-apps xorg-xinit i3 numlockx

Offline

#12 2019-07-28 15:48:51

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

Re: Xorg/lightdm not recognizing my laptop display.

How do you run nvidia-settings w/o an X11 server??

Offline

#13 2019-07-28 15:53:54

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Re: Xorg/lightdm not recognizing my laptop display.

seth wrote:

How do you run nvidia-settings w/o an X11 server??

Am I getting something wrong? you will get X11 with Xorg installation right?

Offline

#14 2019-07-28 15:55:36

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

Re: Xorg/lightdm not recognizing my laptop display.

Ah, you do that with the second monitor attached when things work (sorry, semi-forgot)
Please post the xorg log of the working server as well then.

Offline

#15 2019-07-28 16:03:52

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Re: Xorg/lightdm not recognizing my laptop display.

seth wrote:

Ah, you do that with the second monitor attached when things work (sorry, semi-forgot)
Please post the xorg log of the working server as well then.

you mean the jourmalctl logs?

I am not able to push them to ix.io. It is closing the connection early

curl -F 'f:1=@file.log' ix.io

Is the above command right?

Last edited by reaganrewop (2019-07-28 16:04:14)

Offline

#16 2019-07-29 10:42:09

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Re: Xorg/lightdm not recognizing my laptop display.

Hey, I did a quick hot fix for right now by adding the below command in my i3 config file.

xrandr --output HDMI-0 --off --output DP-0 --off --output DP-1 --off --output eDP-1-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal

can you tell me how do I make this config stable in either lightdm or xorg instead of a WM?

and any idea why I need to specifically mention my laptop monitor as primary?

Offline

#17 2019-07-29 12:17:22

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

Re: Xorg/lightdm not recognizing my laptop display.

Is the above command right?

Is file.log the actual name of the file right in the current path?? Should be more sth. like Xorg.0.log

Section "Monitor"
	Identifier "eDP-1-1"
	Option	"Enable"	"True"
	Option	"Primary"	"True"
EndSection

However that does not reflect the problem from your xorg log which indicates a completely failing X11 server. This could not be fixed by some xrandr call (notably since there'd be no X11 server for xrandr to talk to…)

Offline

#18 2019-07-29 17:57:34

reaganrewop
Member
Registered: 2018-09-29
Posts: 25

Re: Xorg/lightdm not recognizing my laptop display.

Is file.log the actual name of the file right in the current path?? Should be more sth. like Xorg.0.log

I just renamed the file.

However that does not reflect the problem from your xorg log which indicates a completely failing X11 server. This could not be fixed by some xrandr call (notably since there'd be no X11 server for xrandr to talk to…)

how are you saying that my X11 server failed to start? from the logs which I gave above, it reports a message that no screen to display and during my manual reboot, it may have exited with logging that error.

and when I tried to do

 xrandr 

. it said, "cannot open display". I presume if the Xorg server wasn't running, it would have stated that instead.

Offline

#19 2019-07-29 19:59:58

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

Re: Xorg/lightdm not recognizing my laptop display.

Not sure why the upload would fail, but you can simply post the contents here (in quote tags)


how are you saying that my X11 server failed to start?

[    18.890] (EE) No devices detected.
[    18.890] (EE) 
Fatal server error:
[    18.890] (EE) no screens found(EE) 
[    18.890] (EE) 

Devices essentially refer to your GPU, the "screen" is the fundamental part of the X11 server, thus we end up with a "fatal" error.
This is the reason why milliseconds later the server aborts with an error

[    18.917] (EE) Server terminated with error (1). Closing log file.

Also a functional server would spill wayyyyy more messages.
The log may be dated and no longer reflect the status of yor system, but it's the information we've got.

If this however would still be the problematic condition, there's no way an xrandr call in your i3wm config could ever fix it.

I'm unsure about what you're trying to say in the last sentence, but "cannot open display" means that either there's no X11 server or it can't be found because the DISPLAY variable isn't correctly set.

Offline

Board footer

Powered by FluxBB