From: Lennart Poettering <lennart@poettering.net>
To: Chris Wilson <chris@chris-wilson.co.uk>,
Jani Nikula <jani.nikula@linux.intel.com>,
Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@linux.ie>,
Daniel Vetter <daniel.vetter@intel.com>,
intel-gfx@lists.freedesktop.org
Subject: Re: drm i915 weirdness with /sys/class/drm/card0*/status
Date: Tue, 16 Jun 2015 23:28:19 +0200 [thread overview]
Message-ID: <20150616212819.GC28290@gardel-login> (raw)
In-Reply-To: <20150616113739.GS28462@nuc-i3427.alporthouse.com>
On Tue, 16.06.15 12:37, Chris Wilson (chris@chris-wilson.co.uk) wrote:
> On Tue, Jun 16, 2015 at 01:17:29PM +0200, Lennart Poettering wrote:
> > On Tue, 16.06.15 10:14, Chris Wilson (chris@chris-wilson.co.uk) wrote:
> >
> > > The biggest change here is 4.1 stopped forcing the probe from sysfs
> > > precisely because systemd was hitting them so often for illogical
> > > reasons (being docked depends on having the lid open and an
> > > external display connected!). To force the probe, you must do
> > > $ echo detect > /sys/class/drm/*/status
> >
> > The way people "dock" their laptops these days is apparently that
> > they plug in an external keyboard+mouse and a display, close the lid
> > and stash the laptop away somewhere. logind hence counts the displays
> > connected, and if its >= 2 it doesn't suspend the machine even if the
> > lid is closed. Before logind, GNOME implemented the very same
> > logic. It's hence hardly "illogical", it's just how this works...
>
> Note that a closed lid causes the internal panel to be reported as
> disconnected - it always has (with the exception of a module parameter
> to force otherwise to accommodate broken lid buttons). Using the number
> of connected displays is thus flawed.
Hmm, if I change the algorithm to ignore the eDP and LVDS outputs and
see if any of the others is plugged + enabled should fix this, correct?
Lennart
--
Lennart Poettering, Red Hat
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-06-16 21:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 23:45 drm i915 weirdness with /sys/class/drm/card0*/status Lennart Poettering
2015-06-16 7:47 ` Daniel Vetter
2015-06-16 8:12 ` Jani Nikula
2015-06-16 9:14 ` Chris Wilson
2015-06-16 10:25 ` Daniel Vetter
2015-06-16 11:22 ` Lennart Poettering
2015-06-16 11:47 ` Daniel Vetter
2015-06-16 21:25 ` Lennart Poettering
2015-06-17 8:29 ` David Herrmann
2015-06-17 11:11 ` Daniel Vetter
2015-06-17 16:41 ` Lennart Poettering
2015-06-16 21:08 ` Lennart Poettering
2015-06-16 22:39 ` Dave Airlie
2015-06-16 11:17 ` Lennart Poettering
2015-06-16 11:37 ` Chris Wilson
2015-06-16 21:28 ` Lennart Poettering [this message]
2015-06-17 7:45 ` Chris Wilson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150616212819.GC28290@gardel-login \
--to=lennart@poettering.net \
--cc=airlied@linux.ie \
--cc=chris@chris-wilson.co.uk \
--cc=daniel.vetter@intel.com \
--cc=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox