From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BE8AC10F14 for ; Thu, 3 Oct 2019 08:19:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 46F6520815 for ; Thu, 3 Oct 2019 08:19:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727831AbfJCITY (ORCPT ); Thu, 3 Oct 2019 04:19:24 -0400 Received: from mga05.intel.com ([192.55.52.43]:63621 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725497AbfJCITX (ORCPT ); Thu, 3 Oct 2019 04:19:23 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Oct 2019 01:19:23 -0700 X-IronPort-AV: E=Sophos;i="5.67,251,1566889200"; d="scan'208";a="182316984" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.161]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Oct 2019 01:19:16 -0700 From: Jani Nikula To: Jonathan Corbet , Mat King Cc: Daniel Thompson , rafael@kernel.org, gregkh@linuxfoundation.org, Ross Zwisler , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jingoo Han , Rajat Jain , Lee Jones , Alexander Schremmer , Andy Shevchenko Subject: Re: New sysfs interface for privacy screens In-Reply-To: <20191002094650.3fc06a85@lwn.net> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20191002094650.3fc06a85@lwn.net> Date: Thu, 03 Oct 2019 11:19:13 +0300 Message-ID: <87muei9r7i.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 Wed, 02 Oct 2019, 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 Oh, I didn't realize it got merged already, I thought this was related... So we've already replicated the backlight sysfs interface problem for privacy screens. :( BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center