Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp393144imm; Thu, 5 Jul 2018 02:05:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcEbuJNiu/YTl9CrlfwoxgL++Yvnup61PY8Y+ALWK39H+plcodHwUuC1jzp7/PwrNqOVf0D X-Received: by 2002:a62:1489:: with SMTP id 131-v6mr5569565pfu.159.1530781547241; Thu, 05 Jul 2018 02:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530781547; cv=none; d=google.com; s=arc-20160816; b=fdVyOhpgZUCltYCOj08wRbIAQFpUErzKhb2W/OYT9WyJAu4IBrO4yl2FwzBa2YSgg8 adX7WVoy8ofCf9pquirbbUZ7GRoyfzV/JBVcpW9T3octs0kptNtqAUtnmtDRQZ8bgI9+ AXgx7I2GeffCsdPPeJBtWJxBuvbJqlqfOf/vW7SupCXJb4R6iTk10GSU/IB9T4B+3xD+ CqfltGsO524VhipKww17boAEhPXWtNe2ru+eVOgKffVqYPkvi1CXPa6vycJBuomVuqmo oJAHjXdmQzM6FlCHgCLrm+5JMH3h0IuX2G01VYXyCjp42CJeQH+d5leFzjG716ds2Bby FuKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:arc-authentication-results; bh=7spIDnpRuJyXGxolhmfDclSWAbpCxZDrb0HHyA+mPKI=; b=NZuTibuQtiB9+GXBf+Lm/A7ymjcl6XkRoptACWLhP+7oHUue+XhBMvxPby+wKTjggu 2bn0p94CVSb/NRqZf9I57PVK4tsQx6+Pj73lw1YprEpWk1+TTW75bNefuZxvW+2plUKm Q2RzXwFyxA8XBHYaZ1diwYo2ra2NcmxsvxSxRwmbfGlfLISKMRTlL1hbkmARYYt/yjrk PrJyFbaqubuRTCs+6EedJ45QjEnPqg5Ndu7zF/vLsp/h+9CMZP1piQ4xUcpTn52UB+S4 WCi6cg0HLvm/s02CMtZPH3HRq3bFk+WcAkog5w0ZqlIRW9FxZtdiMXhoOj9kS2RoVfIW Y5QA== ARC-Authentication-Results: i=1; mx.google.com; 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 j8-v6si5387311plt.307.2018.07.05.02.05.32; Thu, 05 Jul 2018 02:05: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; 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 S1753171AbeGEJEk convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Jul 2018 05:04:40 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:61133 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752440AbeGEJEj (ORCPT ); Thu, 5 Jul 2018 05:04:39 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 12258083-1500050 for multiple; Thu, 05 Jul 2018 10:04:28 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Chris Chiu , David Airlie , Jani Nikula , joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com From: Chris Wilson In-Reply-To: <87efgioy7i.fsf@intel.com> Cc: intel-gfx@lists.freedesktop.org, Linux Upstreaming Team , Linux Kernel , dri-devel References: <87efgioy7i.fsf@intel.com> Message-ID: <153078146934.15734.3696654838092752426@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [BUG] i915 HDMI connector status is connected after disconnection Date: Thu, 05 Jul 2018 10:04:29 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Chris