Received: by 2002:a17:90a:37e8:0:0:0:0 with SMTP id v95csp8823180pjb; Tue, 1 Oct 2019 04:47:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1Sh5ovQv8ccn5jvgPEfXgP8OLWeFy9QyxBr2Nabf2icEHi7kk0OIfxo8nd0xQlQB+4OLt X-Received: by 2002:a50:a532:: with SMTP id y47mr24751569edb.273.1569930439890; Tue, 01 Oct 2019 04:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569930439; cv=none; d=google.com; s=arc-20160816; b=Epe5oKtd8vJzdI7VURfUenmeE+W3z6o9Jk7mOd87mKdNbwONQwX9bXt0as4vxpEEYh j/NkB0nUp55eqrsl98TMhRqXJqhTeKegxAx3Z8YajYdhyuemg/gPjxPo2V6gYycBPt4y qBdovZBBNzSjAnYFggbM8rbawYGH9pwXlSlmChSbvwxhzLe+CHpUWoYuliZGEMi4bwxr Tb/HgG3DdT6yGXHqjrgfdauG+uf2XkerGGnv+DaA5s3sVZx4A8LPOMdEaLEGLuxiObSo i7YULTfrSz24R1dunFb4aREv8rXD0jtI9xipP28IGzsJWUVdWCYaq8TbnynNlGYmpU1o DE9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=9oab5u7eR/X3BWJ6L7EycCkECpUhR9gnwPRCkVrJvPc=; b=YmuzPKpH97aJqevDAH3JbMxoHdr9epzfe9pYpfYnZzb/JwE8GY6ApZN48yY4QtIcWa cC3f/fhgQuhq/AtvN0M5RUZD0vYCkO6qQCpnMqwLK9+CfFC7fYORPYGJAkaYQV5FL4z0 vU/gYwMBgGevXUVKx4yYucbdtK9SrUK9homuX0A3Tawkbrj89sH/S2tcsJmahWpCZIVj 1Fdl/kX6eYAqeTefqfQeL5CpP4roHt3fBH/23koG8GOB1+xd80IGQirM53Pi6RTvzB24 NK0LVUVN+ehh+ii3EFETch/ZftD/tyhxutaTbUjeZOIih6rLGbnvdLIllIwkaTAXyI+W 6rpQ== 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 k5si8639181ejp.157.2019.10.01.04.46.55; Tue, 01 Oct 2019 04:47:19 -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 S1732559AbfJALnd (ORCPT + 99 others); Tue, 1 Oct 2019 07:43:33 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53402 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731469AbfJALnc (ORCPT ); Tue, 1 Oct 2019 07:43:32 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id DD30F804C4; Tue, 1 Oct 2019 13:43:15 +0200 (CEST) Date: Tue, 1 Oct 2019 13:43:30 +0200 From: Pavel Machek To: Jani Nikula Cc: kernel list , intel-gfx@lists.freedesktop.org, rodrigo.vivi@intel.com, joonas.lahtinen@linux.intel.com Subject: Re: DDC on Thinkpad x220 Message-ID: <20191001114329.GA4381@amd> References: <20190930184707.GA5703@amd> <87eezwdctl.fsf@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: <87eezwdctl.fsf@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2019-10-01 12:39:34, Jani Nikula wrote: > On Mon, 30 Sep 2019, Pavel Machek wrote: > > Hi! > > > > Thinkpad X220 should be new enough machine to talk DDC to the > > monitors, right? And my monitor has DDC enable/disable in the menu, so > > it should support it, too... > > > > But I don't have /dev/i2c* and did not figure out how to talk to the > > monitor. Is the support there in the kernel? What do I need to enable > > it? >=20 > # modprobe i2c-dev Thanks! I enabled I2C_CHARDEV, and installed ddccontrol: c ddccontrol - program to control monitor I can read parameters of Dell monitor on VGA: sudo ddccontrol dev:/dev/i2c-1 -c -d /usr/share/ddccontrol-db/monitor/DELA013.xml Control 0x10: +/79/100 [???] -- brightness Control 0x12: +/63/100 [???] -- contrast Unfortunately the Fujitsu monitor does not seem to communicate. Fujitsu is my main monitor :-(. pavel@duo:~$ sudo ddccontrol dev:/dev/i2c-4 -c -d ddccontrol version 0.4.2 Copyright 2004-2005 Oleg I. Vdovikin (oleg@cs.msu.su) Copyright 2004-2006 Nicolas Boichat (nicolas@boichat.ch) This program comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of this program under the terms of the GNU General Public License. Reading EDID and initializing DDC/CI at bus dev:/dev/i2c-4... ioctl(): No such device or address ioctl returned -1 ioctl(): No such device or address ioctl returned -1 ioctl(): No such device or address ioctl returned -1 I/O warning : failed to load external entity "/usr/share/ddccontrol-db/monitor/FUS080A.xml" Document not parsed successfully. ioctl(): No such device or address ioctl returned -1 DDC/CI at dev:/dev/i2c-4 is unusable (-1). If your graphics card need it, please check all the required kernel modules are loaded (i2c-dev, and your framebuffer driver). Any further hints? Thanks and best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl2TO+EACgkQMOfwapXb+vIh4QCdFDvDzV3QA1YJOk5R9U6nxemF HEsAnjEXcNYjfaMOB2RxofefvCvrZxEe =yDeJ -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--