This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

[SOLVED] Login Screen appears on LCD instead HDMI Monitor

chrissi55

Wed Aug 23, 2017 3:33:48 pm

I'm using Zorin OS 12.1 on a Notebook with Intel onboard and NVidia GeForce GTX 960M Grafic

I did changes to the Monitor Settings -> my primary Monitor should be the HDMI external one.

The settings are working fine so far after Login into the Session. But they are not working for the greeter or the Login Screen.

My Login always appears on the LCD Monitor and not on the external Monitor.

How and where should I make changes to bring up the Login Screen on my HDMI Monitor.

With Super Key + P or with Fn + F7 it is possible to change the Screen - but I have to do it on every Boot.

Thank You for help.

qnarkill

Thu Aug 24, 2017 7:19:14 pm

At least with Ubuntu 16.04, which includes lightdm-gtk-greeeter 2.0.1, the following entry in /etc/lightdm/lightdm-gtk-greeter.conf can be used to fix the initial position of the login dialog on a certain monitor.
Code:
[greeter]
active-monitor=0

chrissi55

Fri Aug 25, 2017 12:27:24 pm

Thanks for your reply.

I needed to install lightdm-gtk-greeter at first because the path wasn't there
After install i configured lightdm-gtk-greeter.conf as you've posted.

But nothing changed. I still had the Login on my Laptop LCD.
So I installed the package lightdm-gtk-greeter-settings too.
And I configured some settings like background / position .e.g.

There was an option Multimonitor Configuration ...
I opened it and found configured Monitors HDMI-1-1 only??

So I checked my /etc/X11/default-diplay-manager config => /usr/sbin/gdm3 (not lightdm!)
Although /usr/sbin/lightdm exists - when I change my default display manager to

#/usr/sbin/gdm3
/usr/sbin/lightdm

I'm running into a black screen - startx isn't possible.

So my question, is there a similar config active-monitor=0 for Display Manager GDM (/usr/sbin/gdm3) ??

chrissi55

Sat Aug 26, 2017 5:46:22 am

I tried the following

sudo dpkg-reconfigure lightdm

Then i highlighted the lightdm Option and switched to lightdm.

A check at /etc/X11/default-display-manager says

/usr/sbin/lightdm

The line
#/usr/sbin/gdm3 was deleted

Then a reboot. Yes the Screen appears as expected! But I run into a login loop -> after entering Password and ENTER i always get back my loginscreen -> not entering the session.
Is there something missing in my homedir?

qnarkill

Sat Aug 26, 2017 7:54:49 am

What i would 1st check that you have drwxr-xr-x rights to your home folder.
Code:
ls -l /home


Then check that /etc/X11/Xsession is executable?
Code:
ls -l /etc/X11/Xsession

To do enforce it..
sudo chmod +x /etc/X11/Xsession

Check which greeter you are using /etc/lightdm/lightdm.conf
That could be the reason why your not able to login..?

chrissi55

Sat Aug 26, 2017 1:51:00 pm

ls -l /home is fine

Owner = Username (myName)
Group = Groupname (myName)

rwxr-xr-x

That's ok so far.

/etc/X11/Xsession already was executable but I repeat chmod +x /etc/X11/Xsession once more

The Path /etc/lightdm contains this on my Notebook:
lightdm.conf.d (Folder is empty)
lightdm-gtk-greeter.conf users.conf (2 Files)

lightdm-gtk-greeter.conf looks like this:

[greeter]
background = /usr/share/backgrounds/Moon.jpg
theme-name = Adwaita
icon-theme-name = Zorin
active-monitor = 0

The file /etc/lightdm/lightdm.conf doesn't exist.

chrissi55

Sat Aug 26, 2017 2:03:08 pm

I figured out what was wrong

I checked
cat ~/.xsession-errors

and then
chown $USER:$USER .Xauthority

after that I did
mv .Xauthority .Xauthority.bak

followed by
$ sudo dpkg-reconfigure lightdm (what i did before)

Now I was able to login using lightdm as Display Manager and the Login Screen appears at the external Sceen at HDMI Output.

Thanks for your replies

chrissi55

Thu May 30, 2019 3:30:11 pm

***Update for Zorin 15***

I saw that zorinos 15 uses gdm3 as default, right?

So i wanted my login screen / greeter again on my external (second) Monitor.
Everything that was edited unter /etc/gdm3/greeter.dconf-defaults had been ignored.

So what helped was

Step1: make your preferred monitor settings under your own user account. A file named ~/.config/monitors.xml will be stored in your homedir.

Step2: if everything is working well under your session we need the same settings for the greeter. Copy the file to /var/lib/gdm3/.config
by command
$ sudo cp ~/.config/monitors.xml /var/lib/gdm3/.config

On next boot you will see the logon-screen on the default monitor (in my case HDMI monitor as external)

Hope it will help you before cracking your brain ;)

Swarfendor437

Fri May 31, 2019 7:01:28 am

Great job! Thanks for contributing!