Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp625009imm; Thu, 5 Jul 2018 06:19:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf5RkTH6pcXd1YZbCdnPadDR6eRukyNwo0h2afLvcnXwikUukWMvtUKa0PH17751ao7J7ho X-Received: by 2002:a63:5463:: with SMTP id e35-v6mr5696486pgm.115.1530796798690; Thu, 05 Jul 2018 06:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530796798; cv=none; d=google.com; s=arc-20160816; b=f8QYuEsd9CwYBMUNX6IN+sxYoJ4INxOhklnSUMbGKW/KI/l6Y9bQD7q7cyDZNIG9wV 7MBzBJ28NDqteFQWmxKfFh5OpiIRG3jlZnMSNmIbNpLU+tgUZ4wYRAuE1cxFQzmCNNKm 1HIY205xK/PPCDFHDv1GdogJOm91Vfl8CCQ7bybL6MVf+zyQfi5uzMnRKdOUHXnhAwcy AbhERE22uzktNpy/tzvSTeFivBrakN+7z8iZziq4GGZWxLbPPcwwa0QxqTnAdibzDUDV 4USlJVh9I1+CfD5wcjon4HhFOL9wV50z0tR1PCyD+cIyO+mX5V7ZD958NJrvsx6ViqLb ePYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=6psbhlK494XFzALCjhyHYIeK/61KqN72eKFCfglf1S4=; b=HDikrvlPhodcV+W3W9BsJ4skVmslGyifwRfeiqvqjPB3bLBhOGt77Ue1ffrrXx9Shp 5xaUVi715t45p51oTsn2ClYHolNL/h3I75A/Sfd1GFJzsMsCMTQoa+k8PiT65An7yIun SqeoAHnUgrbzF5dMtjmElKhq0B84KL4nvsh3vvELUlICjG5pEi7tv005tjU16kzi9mX4 yRja8kvYJceFJKxjK2MoyaTNTJEVwlnF7hfB7qVq/KbyGp0b3nVydEBD6TBHom7y6iI0 3wwtA2a3vBJHi5EyJMuQIZA0aJzc7lgBA43j9JeWNeLBhOea8HfA7h4MQlpXTGRz/A7c nmWA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6-v6si2649655pla.398.2018.07.05.06.19.31; Thu, 05 Jul 2018 06:19:58 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754319AbeGENSX (ORCPT + 99 others); Thu, 5 Jul 2018 09:18:23 -0400 Received: from mga14.intel.com ([192.55.52.115]:6623 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753868AbeGENSW (ORCPT ); Thu, 5 Jul 2018 09:18:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Jul 2018 06:18:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,312,1526367600"; d="scan'208";a="69859223" Received: from jnikula-mobl2.fi.intel.com (HELO localhost) ([10.237.72.62]) by fmsmga001.fm.intel.com with ESMTP; 05 Jul 2018 06:18:19 -0700 From: Jani Nikula To: Chris Chiu 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 Subject: Re: [BUG] i915 HDMI connector status is connected after disconnection In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <87efgioy7i.fsf@intel.com> <153078146934.15734.3696654838092752426@skylake-alporthouse-com> <87bmbmowek.fsf@intel.com> Date: Thu, 05 Jul 2018 16:18:03 +0300 Message-ID: <87wou9om7o.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 05 Jul 2018, Chris Chiu wrote: > 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? Please do file the bug, and attach the information there. People go on vacations, the pastebins will go away, and the memory of all of this will fade. BR, Jani. > > 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 -- Jani Nikula, Intel Open Source Graphics Center