[SOLVED] Set lightdm greeter screen resolution

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

[SOLVED] Set lightdm greeter screen resolution

#1 Post by ticojohn »

I am running Debian 11, XFCE, lightdm on an Intel NUC. I recently bought a 60" TV and have been having FUN getting display resolutions set to my liking. It took awhile but managed to get the grub screen set as I wanted, But I am having trouble getting the lightdm greeter set to the resolution I want. I tried the LightDM Gretter GTK tool, but it doesn't appear to have a way to set resolution from that tool. So here's what I have done so far.

1. Edited /etc/lightdm/lightdm.conf and changed the following line

Code: Select all

 display-setup-script = /etc/lightdm/display_conf.sh
2. Created the file /etc/lightdm/display_conf.sh and verified that the xrandr command works from a terminal

Code: Select all

#!/bin/sh
xrandr --output HDMI1 -- mode 1920x1080
3. Changed the mod of the script to make it executable

Code: Select all

chmod 755 /etc/lightdm/display_conf.sh
The steps outlined above don't seem to work. I would appreciate some positive feedback on this . Thanks in advance.

EDIT: Perhaps my error is in making the script executable. I also tried chmod u+x, but no joy. Any help there?
Last edited by ticojohn on 2022-07-02 16:36, edited 1 time in total.
I am not irrational, I'm just quantum probabilistic.

User avatar
Head_on_a_Stick
Posts: 14113
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 135 times

Re: [EDITED] Set lightdm greeter screen resolution

#2 Post by Head_on_a_Stick »

Is the resolution correct at the desktop?

Please post the output of

Code: Select all

xrandr
lspci -knn | grep -iA3 'vga\|3d\|display'
deadbang

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: [EDITED] Set lightdm greeter screen resolution

#3 Post by ticojohn »

Thanks for the response @Head_on_a_Stick. The desktop resolution is fine. The problem is setting the lightdm login screen resolution. Here are the outputs you requested.

For xrandr:

Code: Select all

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1330mm x 750mm
   3840x2160     30.00 +  25.00    24.00    29.97    23.98  
   4096x2160     30.00    24.00    29.97    23.98  
   2560x1440     59.95  
   1920x1080     60.00*   50.00    59.94    30.00    25.00    24.00    29.97    23.98  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1440x900      59.90  
   1280x800      59.91  
   1152x864      75.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32  
   720x576       50.00  
   720x576i      50.00  
   720x480       60.00    59.94  
   720x480i      60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
For lscpi:

Code: Select all

00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 6000 [8086:1626] (rev 09)
	Subsystem: Intel Corporation HD Graphics 6000 [8086:2057]
	Kernel driver in use: i915
	Kernel modules: i915
I am not irrational, I'm just quantum probabilistic.

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: [EDITED] Set lightdm greeter screen resolution

#4 Post by ticojohn »

UPDATE: I tried putting the xrandr command directly into the lightdm.conf file as such:

Code: Select all

display-setup-script=xrandr --output HDMI1 --mode 1920x1080
Still no go. I also tried several other resolutions to no avail. Itś really strange as I am following pretty much everything I have found on this subject.
I am not irrational, I'm just quantum probabilistic.

User avatar
Head_on_a_Stick
Posts: 14113
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 135 times

Re: [EDITED] Set lightdm greeter screen resolution

#5 Post by Head_on_a_Stick »

ticojohn wrote: 2022-07-01 22:391. Edited /etc/lightdm/lightdm.conf and changed the following line

Code: Select all

 display-setup-script = /etc/lightdm/display_conf.sh
Have you removed the comment ("#" symbol) from the start of that line? Try removing the spaces around the equals sign. All the other options don't have those spaces.

Otherwise see https://forums.bunsenlabs.org/viewtopic ... 225#p69225
deadbang

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: [EDITED] Set lightdm greeter screen resolution

#6 Post by ticojohn »

Head_on_a_Stick wrote: 2022-07-02 14:48
ticojohn wrote: 2022-07-01 22:391. Edited /etc/lightdm/lightdm.conf and changed the following line

Code: Select all

 display-setup-script = /etc/lightdm/display_conf.sh
Have you removed the comment ("#" symbol) from the start of that line? Try removing the spaces around the equals sign. All the other options don't have those spaces.

Otherwise see https://forums.bunsenlabs.org/viewtopic ... 225#p69225
Yes I removed the # symbol and removed the spaces around the equals sign. I'll take a look at that link. Thanks.
I am not irrational, I'm just quantum probabilistic.

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: [SOLVED] Set lightdm greeter screen resolution

#7 Post by ticojohn »

Thanks @Head_on_a_Stick. That link from bunsenlabs did the trick. Apparently the display-setup-script line needs to be the first line after [SEAT*]. Works great. You get a thumbs up for that.

EDIT: Just for clarity I thought I would provide exactly how I modified /etc/lightdm/lightdm.conf (first few lines after [Seat:*] only). My mod is the first line after [Seat:*]

Code: Select all

[Seat:*]
display-setup-script=xrandr -s 1920x1080
#type=xlocal
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
The -s option for xrandr sets the size. In my case 1920x1080.
I am not irrational, I'm just quantum probabilistic.

Post Reply