Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp342518imm; Thu, 5 Jul 2018 00:59:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd5E79xbrxMqzenMbBJh0VWjxj/ZeP0l7XjpWV5HIQoqWuzKWPmaz8mkKWjB3DHbHmo+0dT X-Received: by 2002:a17:902:bf01:: with SMTP id bi1-v6mr5072664plb.43.1530777587523; Thu, 05 Jul 2018 00:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530777587; cv=none; d=google.com; s=arc-20160816; b=uOkoli+Mp1BxITF1QMqWo1MYHO+s0A/ByB+RL3CmAlt9mJYARdZEKWtn//u5xzPukb bo+wlGhHwd0yyjewxPgnGlBb9Nd0utefrQX56ZtEJmv7a1B5msZLtFQPRijIVi2+DXOd tiNwE/CAcHIUeE5tFNk40cilEi4Rveq/CdP10zXEuQTDSjEm33bSkoS3N9X/lQ85DKpT 30kISlq5pQRrBI7MKJyqHbkyQJe8t7OM+Vj5U+uEFfogiBMoiywxYo6SuMHNvwiW7ITx MCuQsBOwF4M7YBwQMWfnW8XQpTUYUXil6+ytdn3t+07tk4byDdOmh6via5umcHivR/TL 34rw== 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 :mime-version:dkim-signature:arc-authentication-results; bh=9XreV3dc2nhJB6iEAJDwsirriJr7cXXAaG1F7/nERAI=; b=r7Xrcl/FdkdlE0RinSJnruZ9V5Aw+TUq9TYDcPcbEAt5YMNnHF+oVr0FYE1Vxylszw AeF3040GEhAMXGUi5DEOIuUTJxnW5HnpDr8Lj7DO+Ed06lfY+dH1lmeEuHbvxevo3sUn yNjiYYDhTF8i4Cm7nVZe/ezpREOOM5m/Bc0PM8FaB+2NaTMrCpZg1Cerv/ZCGeA9Erq5 I3jLviYpYw9NIXHQnjW9a8ROwu9FLe0uIq6BDiIFTbzAVUyNmy8ZikN/dp2oJs71Catw Rj5kR9UDJ2ixJ8YReeQK7gG3ibcTexK7rc0b6fBP1tzE+ZaNEHHhvb+SMDObsqwSV1q/ Ihyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=rWRnk5MC; 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 61-v6si5437849plz.290.2018.07.05.00.59.33; Thu, 05 Jul 2018 00:59:47 -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=rWRnk5MC; 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 S1753383AbeGEH6j (ORCPT + 99 others); Thu, 5 Jul 2018 03:58:39 -0400 Received: from mail-ed1-f49.google.com ([209.85.208.49]:35443 "EHLO mail-ed1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753041AbeGEH6i (ORCPT ); Thu, 5 Jul 2018 03:58:38 -0400 Received: by mail-ed1-f49.google.com with SMTP id b10-v6so5665116edi.2 for ; Thu, 05 Jul 2018 00:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=9XreV3dc2nhJB6iEAJDwsirriJr7cXXAaG1F7/nERAI=; b=rWRnk5MCNLv9QU6aNjIosThArsnGO6TtRbHRqFsUN2LCWo3HOVyKp9WUlCahk2nnLX n4I3/lpSMMpWUv6bi58k1mQ7jTHdink7dLhZHWDOjQWYhi3fvD6VvDmWVWneH8k45nyZ OVBOQ+q1GlXLA0JdlG9iUvNJunrcm1JWqSw5ElglHe54Zab6WmN7ooxB2aBf+6SVLBvZ N6O3VhNtb99NJ7XwTzNmmITYrYiFmT9ZlygKfCGUzHKkF1F1576/4bl4AQtdM5cJwGM9 OoXHO/6q4gBsbpOt1QIRKHeuwOzda3Yy8tYIjZq6uPN2X1qLocSTxrbIQwUskzgsme0q Bq/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=9XreV3dc2nhJB6iEAJDwsirriJr7cXXAaG1F7/nERAI=; b=rKqOIpwhhaZr+yQBpcUjSEqqZDHt8e2SyItTZPaxy0aX6HgwFeosJckKIhXzgMKXrH KBuyUXgl3HGj0UE7xQOfnBbJpSK8nXL4TkxRAcK18V7NBuJTx/EnGl8cR3iP6uQSqTtO M7uCK78duRUKzTls0Q+3je4e0mI65mEpjpxtUIVomwQNDjrTOZCDGWKqfodBmcE2iL4t 9dsRcqXKCrMJSVYDGYm44AjlHlhSlsWJ9i9fjRB6A9AizN2nbYAiPQbk2SRkQXaS6FnK /oOgB66hFJFRlZxLDXBKSUvImdK37Q3sOGUVuKaHmSLpfmzrXnNIgwd6mtqfFsOOjZbZ XQiw== X-Gm-Message-State: APt69E2fnbTAhNARfxoixJdM3Zzn94mkluUaE54d7aGVRWJEV9ei6Dm9 32oEPGN9wTgHEz2aA4bqb0PZO+meyiwcp6hxAtUWHQ== X-Received: by 2002:a50:a0c5:: with SMTP id 63-v6mr5585151edo.47.1530777516880; Thu, 05 Jul 2018 00:58:36 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:90f9:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 00:58:36 -0700 (PDT) From: Chris Chiu Date: Thu, 5 Jul 2018 15:58:36 +0800 Message-ID: Subject: [BUG] i915 HDMI connector status is connected after disconnection To: Jani Nikula , joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, David Airlie Cc: intel-gfx@lists.freedesktop.org, dri-devel , Linux Kernel , Linux Upstreaming Team 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 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 Chris