Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1064252ybn; Wed, 2 Oct 2019 10:17:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPXbeV6e7ZY7rwiPMdG8ZdRgX/sLl7O6MluQKBYCwa+ooO6pdGF63ueHFe5pBXrgW9y+GF X-Received: by 2002:a17:906:1357:: with SMTP id x23mr4061234ejb.66.1570036630793; Wed, 02 Oct 2019 10:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570036630; cv=none; d=google.com; s=arc-20160816; b=DeG/7DyBXBIi9cjdqLudSWHHPM355po9vVqpiPUwbmKpgu7LER6Z8u/XVPEFG3X2Cz lDiQBfBIVnXLNxUUmSbH8nCbauAPmE7+B5PJdEjfdDtpc3OjfQfHFCbDtj51yBWBkrW3 fXsVYK+A1b5/PimjjQq0CvNOIhqwxMHfmEpkOdmZlH1L2eQagH7fzut1rslfOxoPWGJS 9jGDO87hE7lTb02nvUP+el8x+dQDVQZkUFvWCfgl/2h2jSL6t4Lup6oGYvSDhBxta84i zn85S3nIZIvGb3sJvSwGGNp96fuyUzgElXHYu3ygJilbTI3Ta10gp/tUjgCArmRtWQWF TTYg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=isvX3eXp9HYRHix3Qz7Avg+A0LJMKh77nH1Ku9/2tnA=; b=oSTqLCUdDbCdBHaxjGo4bEnkxljE1gb1uJNOfa+H3n2F4LiX6d50GmmhBCjsv5rZsE IL6o2eZPoYcwd+Q8//FGycTaNrcCuqYHMzt8+w6+6pM/vUDudHmmCw7tj4WvKa0g/S5t jCbrKv16FUk6h4mI2wRlg4H9pO7p8zrUtgw/tGQ61Nb+EpkRVEnHgsXoeoQ5XSVwO1Nb GiMel4TkTF2YSQoi6Xui/iLGGt+5uS0d1HDZc+vyJYwsomIrIRdt5IgSHC/4lYz81qQ8 caD5NblZrKzQp00pekbGcHdOwloXRAgQ2Bi6WrtZhL0PySEc+upnFnTVZTGkPydyEuUk UHsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=nocZanzK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x45si11529493edd.388.2019.10.02.10.16.46; Wed, 02 Oct 2019 10:17:10 -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=@google.com header.s=20161025 header.b=nocZanzK; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728375AbfJBROE (ORCPT + 99 others); Wed, 2 Oct 2019 13:14:04 -0400 Received: from mail-yw1-f65.google.com ([209.85.161.65]:41149 "EHLO mail-yw1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727854AbfJBROE (ORCPT ); Wed, 2 Oct 2019 13:14:04 -0400 Received: by mail-yw1-f65.google.com with SMTP id 129so6337039ywb.8 for ; Wed, 02 Oct 2019 10:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=isvX3eXp9HYRHix3Qz7Avg+A0LJMKh77nH1Ku9/2tnA=; b=nocZanzKO5o+dhkUoB6MTA2+n2fKLdMHfFVzPeWoIIKMGdREKyjK8IWCDz/yYtPhjC NecwBJh5HsUunx7YNllUqzzgo8xgPBrkvcgUvg/8GsiFIjvZXaQB1p364Wkoa7MNS1Qm /529VxKidohbxfGeDAmnNYmLT5YNEbI7Hw57IxUhjVCjJtqPYZAWV25QPfMTNnsfljUw f3JB0QT6zwJGo3v2Ng5RyoRi7dBHiLqMhArPjg5ovB/hD+WQgSjR1LBr6SsdCXCYc3/S f7CKQzNWu2E3bA/EHhukbSE528gZHXWZpV/wsmV8aqbvnB/WvMW9nnZzPWQZlIZZizfr BqHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=isvX3eXp9HYRHix3Qz7Avg+A0LJMKh77nH1Ku9/2tnA=; b=eJL6n8di7pIE1UEdzGLmgqeqieZM4vZQbrPn6svdMIsBnZjUVTA84rvd/jd+JyGsSt 4ImvLaWX7ypcrBBhNdcepDi7N/fXxuI3KorBHP3QddL+Y34SK0FD8NSsWXWOjCrBgX+G P9l2dSbYLO5I6zPnETb6dIS1pmDQxfzH7zI80dhGmVJ0h0QhMKg9qvpSE6auLF8Kt5Ki GDxUxtsYxmiCQJBw18bV2BoKzDMUHcI2K066IVjVs5u6/fve8BXgNIxMjwb9bAajcawU iBZT1KGDSstigLjT9aKBhTehoHPrJz+bdc9lmadN//Bkd+4KK9+zSshV72/WLBI+OQGI VsAg== X-Gm-Message-State: APjAAAW6uvsew9lIjonnzJYNpInm5ahLiba/gNV5iHnnCD9N/VSmIEzL wEzKG1uPPMjFlIifzNtpG9NVutkwMLj/w8EB8QyrWQ== X-Received: by 2002:a0d:d1c5:: with SMTP id t188mr3498817ywd.265.1570036442799; Wed, 02 Oct 2019 10:14:02 -0700 (PDT) MIME-Version: 1.0 References: <20191002094650.3fc06a85@lwn.net> In-Reply-To: <20191002094650.3fc06a85@lwn.net> From: Mat King Date: Wed, 2 Oct 2019 11:13:50 -0600 Message-ID: Subject: Re: New sysfs interface for privacy screens To: Jonathan Corbet Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Greg KH , rafael@kernel.org, Ross Zwisler , Rajat Jain , Lee Jones , Daniel Thompson , Jingoo Han , Alexander Schremmer 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 Wed, Oct 2, 2019 at 9:46 AM Jonathan Corbet wrote: > > On Tue, 1 Oct 2019 10:09:46 -0600 > Mat King wrote: > > > I have been looking into adding Linux support for electronic privacy > > screens which is a feature on some new laptops which is built into the > > display and allows users to turn it on instead of needing to use a > > physical privacy filter. In discussions with my colleagues the idea of > > using either /sys/class/backlight or /sys/class/leds but this new > > feature does not seem to quite fit into either of those classes. > > FWIW, it seems that you're not alone in this; 5.4 got some support for > such screens if I understand things correctly: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=110ea1d833ad > > jon Thanks Jon, I had seen that as well and I should have mentioned it in my original post. That patch exposes the privacy screen using /proc/acpi which does not seem ideal when adding more privacy screen support into the kernel.