LightDM resolution on additional screen is not correctly set

Bug #1358366 reported by Thomas Barandon
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
elementary OS
Confirmed
Undecided
Unassigned

Bug Description

Hi,

This issue can be reproduced only when you add a second monitor with a different resolution (i.e additional screen on a laptop).
The lightdm selected resolution on the second screen is not correct and result to a really bad layout.
This issue occurs at the logon screen and also when the screen is locked.

Is it possible to implement a display setup script for lightdm using xrandr & auto conf ?

BR,

ProblemType: Bug
DistroRelease: elementary OS 0.3
Package: elementary-desktop 1.349+393~ubuntu0.3.1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4
Uname: Linux 3.13.0-34-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
CrashDB: elementary_meta
CurrentDesktop: Pantheon
Date: Mon Aug 18 17:29:32 2014
InstallationDate: Installed on 2014-08-12 (6 days ago)
InstallationMedia: elementary OS 0.3 "Freya" - Daily amd64 (20140810)
ProcEnviron:
 LANGUAGE=fr
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
SourcePackage: elementary-meta
SuspiciousXErrors: [WARNING:flash/platform/pepper/pep_module.cpp(63)] SANDBOXED
ThirdParty: True
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Thomas Barandon (anapivirtua) wrote :
Revision history for this message
wrksyn (wrksync+ubuntuone) wrote :

I've gone through the following steps to solve this issue for me.

- create [1] '/usr/bin/fixlightdmxrandr.sh'

- execute 'xrandr' and find out the display you want to disable (INTERNAL_OUTPUT)

- modify '/usr/bin/fixlightdmxrandr.sh' accordingly

- edit [2] '/etc/lightdm/lightdm.conf' to include the '/usr/bin/fixlightdmxrandr.sh' script.

- reboot, or restart lightgdm

- hopefully enjoy your new fullscreen lightdm ;-)

[1] '/etc/lightdm/lightdm.conf'

<code>
[SeatDefaults]
allow-guest=false
display-setup-script=/usr/bin/fixlightdmxrandr.sh
session-setup-script=/usr/bin/fixlightdmxrandr.sh
</code>

[2] '/usr/bin/fixlightdmxrandr.sh'
<code>
#!/bin/sh
EXTERNAL_OUTPUT="HDMI2"
INTERNAL_OUTPUT="LVDS1"

xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
    xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto
else
    xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
fi
</code>

Revision history for this message
Gamunu Balagalla (gamunu) wrote :

Confirm affected by this bug. Previously, I had Ubuntu 16.04 installed although,
with Ubuntu I don't see this bug.

see: screenshot.png

Laptop display: 1366x768(16:9)
External monitor (HDMI): 1920x1280(16:9)

xrandr | fgrep '*'
   1366x768 60.00*+ 48.00
   1920x1080 60.00*+ 50.00 59.94

Graphic controller:
00:02.0 VGA compatible controller [0300]: Intel Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09) (prog-if 00 [VGA controller])
 DeviceName: Onboard IGD
 Subsystem: Dell Broadwell-U Integrated Graphics [1028:062e]
 Flags: bus master, fast devsel, latency 0, IRQ 48
 Memory at f6000000 (64-bit, non-prefetchable) [size=16M]
 Memory at e0000000 (64-bit, prefetchable) [size=256M]
 I/O ports at f000 [size=64]
 Expansion ROM at <unassigned> [disabled]
 Capabilities: <access denied>
 Kernel driver in use: i915
 Kernel modules: i915

00:03.0 Audio device [0403]: Intel Corporation Broadwell-U Audio Controller [8086:160c] (rev 09)

System Information
 Manufacturer: Dell Inc.
 Product Name: Latitude E7450
 Version: Not Specified
 Wake-up Type: Power Switch
 Family: Not Specified

Revision history for this message
Gamunu Balagalla (gamunu) wrote :

For comment #3

Currently I'm running,

Distributor ID: elementary OS
Description: elementary OS Loki
Release: 0.4
Codename: loki

Changed in elementaryos:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.