Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp606926imm; Thu, 5 Jul 2018 06:03:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfsoGsV80JXcIcEbM62mT7Wv3pivquVmnpqgH3u+bmzUXXotJRZ3U6z1uJ0galvKOPvusNE X-Received: by 2002:a62:4808:: with SMTP id v8-v6mr6368518pfa.89.1530795810811; Thu, 05 Jul 2018 06:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530795810; cv=none; d=google.com; s=arc-20160816; b=RUtvgxbWtnzzEe4C662iVRhGCLNHvzsxVJa5MzpX5nUHauQCQfo8z7WiC8p7y3i7Ip SQi0qQqmmo28yKin/6CEg3nBy6i5Fcx3C4iX9Abvg5fMdD+kt7i18+fp+ibg3lnQz1dg rXr+dOjTo4hBmOIJRx+3rFeVFMkaaTjqgBsy+CTY0uEEzPhoFHmUI9RCoNxT13Pr1cED Yr6GRnU0L5ZyoN1GR74DLYp+rYuET3tPQtSFOXB9X9Zr27X/nr+L306DGdNMQ2qzlY32 3aYoGcYvEdkjU2LfcjwU+dbyGY1J0dH9pI2SwG6PsNjCMo3a8x2pWoLHQXe9md4U+YeF pmQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=FvDgZa0Wva+Tso+w+nRx0WxA3aRsah69Es3t1DHCh2k=; b=DyvHiU4D96ksvIuEw6OgM4lma5DmhEtjE9mM9uSbPlZkK5kAuD49a8N2uh6k5Efxq2 BT7JgO+YHRGkOJRB70bBAiPM5YnLoZ10yV4u5hqbijYf3ZEVhP2Vc2rc8ZseaZ24+qiJ GXc4tIOWJSdezj4KIqOZ1haCfhdL9J1V1t+CfHQEKYfplHlN99W+AgYxQd4awSHTPxVL gUsfqaS+M+3m2tHapHKJd9t2uNoMp+ZYZkZX1ilK26rnNekGbhLa+kXGJrag86oFUStA WG6zcS7KRQpbX2+8s4h1GgvFinxpFqC2sX3eaFYQ9rVNP7Xh5AFEOGLGtgLZJuB8WNSQ QqnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=EF8mG6b7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z12-v6si5218336pgu.692.2018.07.05.06.03.14; Thu, 05 Jul 2018 06:03:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=EF8mG6b7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754116AbeGENC3 (ORCPT + 99 others); Thu, 5 Jul 2018 09:02:29 -0400 Received: from mail-ed1-f52.google.com ([209.85.208.52]:42942 "EHLO mail-ed1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753981AbeGENC2 (ORCPT ); Thu, 5 Jul 2018 09:02:28 -0400 Received: by mail-ed1-f52.google.com with SMTP id g12-v6so6290504edi.9 for ; Thu, 05 Jul 2018 06:02:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FvDgZa0Wva+Tso+w+nRx0WxA3aRsah69Es3t1DHCh2k=; b=EF8mG6b76lzM2L6JXDvomCPKNI+5lesZRLa08Ltkv3eKByzgSmiUzMBDKkfUt+Ja61 SBBRB7BUAWIOIELT6CEPwRceNs5CI662YSCpJiSJ3TXlgl2sy0ja+A8dSEfXgEV84Xwj RCGp+pSGZej7IfyAAjdhWVNajxB8e4AY9IHANATXuWVBAaVnI4YZb2G7ka7S85bYUna7 wdE+uWAAersr6DVnQ1gzVpC0uX7vHWmFq3lIquKfpzd4U331Nf4kksQ4P83sALs/EV8p z/rdDCp/qPgOECCmp+JUksQlrL9RSX4NTJRpBqQJDbZqb7DPgxo7+0UajBj84mlXyd5Y X76g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FvDgZa0Wva+Tso+w+nRx0WxA3aRsah69Es3t1DHCh2k=; b=q88qN8ypXrr2zr9wP7jydLIo8kgX3QYSa/mOlzGNCQOLEpPPy0s2CLg3VUPy3zVWES 9u9IzBs8WU0RGUrSROC3mDseKghz6IYwyqPyQHmNY3ignB6RDpBxXY8ddp/6tvc7uxj8 4uns88WRxGpEN+QXABGs4qXEeYf/0OlpfYpqtyWv4c6yjr0NQxPtKtek8tuCKGCogrwR rh/2dzi3iubhyKWPRDYihkZ3JRpvkMKXcJQoOUGQpsPpgO8pSkKSLDtOXc23DpyxJtyL K6sDisdk0HO57F3OJqJLMQ2n4SCtLBccyzNmG72wpkZWk61IsoUk+LFDX/vaz71n0a66 rsUQ== X-Gm-Message-State: APt69E2bgW2LmjpZ7Yuj9jHulFO2b+YmT1C+jpUkLZ0SfaDwp2s0Ry3O O0QG9d40mfkj/3FhKjJ7gmNFlxjDJuzQ1J4tHWh2PRqi X-Received: by 2002:a50:cc01:: with SMTP id m1-v6mr6805603edi.171.1530795746927; Thu, 05 Jul 2018 06:02:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:90f9:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 06:02:26 -0700 (PDT) In-Reply-To: <87bmbmowek.fsf@intel.com> References: <87efgioy7i.fsf@intel.com> <153078146934.15734.3696654838092752426@skylake-alporthouse-com> <87bmbmowek.fsf@intel.com> From: Chris Chiu Date: Thu, 5 Jul 2018 21:02:26 +0800 Message-ID: Subject: Re: [BUG] i915 HDMI connector status is connected after disconnection To: Jani Nikula Cc: Chris Wilson , David Airlie , joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, intel-gfx@lists.freedesktop.org, Linux Upstreaming Team , Linux Kernel , dri-devel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 5, 2018 at 5:37 PM, Jani Nikula wrote: > On Thu, 05 Jul 2018, Chris Wilson wrote: >> Quoting Jani Nikula (2018-07-05 09:58:57) >>> On Thu, 05 Jul 2018, Chris Chiu wrote: >>> > Hi, >>> > We have few ASUS laptops X705FD (The new WiskyLake), X560UD (intel >>> > i5-8250U), X530UN (intel i7-8550U) share the same problem, which is >>> > the HDMI connector status stays connected even the HDMI cable has been >>> > unplugged. Look into the "/sys/class/drm/card0-HDMI-A-1/status" for >>> > checking the status while plug/unplug the HDMI, it shows >>> > "disconnected" before plug in HDMI cable, then switch to "connected" >>> > after plugin, and still stay "connected" after unplug. This would >>> > cause the audio output path cannot correctly switch from HDMI to >>> > internal speaker after unplugging the HDMI. >>> > >>> > I then try to verify with the latest kernel 4.18.0-rc3+, the bug still >>> > present. The full "dmesg" log is here. >>> > https://gist.github.com/mschiu77/d761d7c5cf191b7868d4d7788ae087f1 >>> > >>> > The HDMI cable is plugged in at ~26th second. >>> > "[ 26.214371] [drm:drm_detect_monitor_audio [drm]] Monitor has basic >>> > audio support" >>> > then unplug the HDMI at ~73th second. >>> > "[ 73.328361] [drm:drm_detect_monitor_audio [drm]] Monitor has basic >>> > audio support" >>> > >>> > Please advise what I can do to fix this. Thanks >>> >>> Seems rather odd. Please file a bug report at [1]. Attach the dmesg on >>> the bug. Please attach 'xrandr --verbose' output before and after >>> unplugging on the bug. >> >> Note that 'xrandr --verbose' will trigger a reprobe of the devices, >> papering over any missed probe following hotplug. I would suggest >> preceding with 'xrandr --current --verbose'. >> >> If all you are doing is checking status, you need to 'echo detect > >> status' to trigger a reprobe after hotplug. It's interesting that reprobe triggered by 'xrandr --verbose' after unplug will get the status back to "disconnected". But if I just do 'xrandr --current --verbose' before and after unplugging the cable, the output shows the same status 'connected'. Here's the output of 'xrandr --verbose' before unplugging HDMI https://gist.github.com/mschiu77/ea2e843078297f344596243418dcdaf7 And the output of 'xrandr --current --verbose' after unplugging the cable https://gist.github.com/mschiu77/55756c0801046d49cd9bc3f87712b079 Then do 'xrandr --current --verbose' to trigger reprobe, the ouput https://gist.github.com/mschiu77/72e6ab5438cbe64443300fc4fd71770c It means that the HDMI unplug not detected by the driver? Chris > > I was curious about the logs seemingly indicating that we can read the > EDID even after the user says they've unplugged the cable. The updating > of sysfs status attribute is another matter. > > BR, > Jani. > > > -- > Jani Nikula, Intel Open Source Graphics Center