From nobody Wed Oct 2 22:09:30 2024 X-Original-To: freebsd-drivers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XJprF66yKz5Y8vZ for ; Wed, 02 Oct 2024 22:09:33 +0000 (UTC) (envelope-from AlexandrovAA@outlook.com) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2105.outbound.protection.outlook.com [40.92.90.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJprD6f8wz4r85 for ; Wed, 2 Oct 2024 22:09:32 +0000 (UTC) (envelope-from AlexandrovAA@outlook.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outlook.com header.s=selector1 header.b=ZvSNsCfc; spf=pass (mx1.freebsd.org: domain of AlexandrovAA@outlook.com designates 40.92.90.105 as permitted sender) smtp.mailfrom=AlexandrovAA@outlook.com; dmarc=pass (policy=none) header.from=outlook.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IgliXt/mdvH37MFZAxb6MgK2fSqGROc6GT8gpK7NwKnye1p4xDF3QINx5fhVemqF5jhXnBlAm2ZK6DgxPa1gPKG2Oa3VPWZ87pDvgt4NtN8+VA6xRb1p/L//Y+hHsDpxFnnHkIthj2li+myaOkEY/ZX44LZ/m3RjnoDhi5SON05mRVnM/3RMJ53tHJ0rr/5dgLpTgtJuINiYu/pHxweprRYo7WQle8pgtqn5wU7nLpcUqvmgFQxENQTqs1rOicQXLe2JlNFPZkIaMo2j8LMDSTd6yyKJc7hq61rAcD+bI5lAOCIxGyEuncYzgCP29EQdf2GfNbEaQk7gukic8rMUDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vpoC1ILe+kOVP2aYhDoyJn52HZBYV7w8E8qg0y2+APc=; b=j2CqC3GSX62j6UvFwgImDNebwQBnu2A42ELFeFpwms3+frLd47SsX3dgXPxN9yw8+rNFOauWmcQNbKqX9GhgNXZmPSY6L4KdZxQj8Jmj7TLWPKL5RkNh1D8+iFBA15CoEuX3a5LW3gp/G+U/kKJ4/KUVcgFlKOpb6fz9Oo9+FjzcjpKiih55ceV/t/4m2vBXEOnXpOzKCJkwwgS5bNBuHAKRxazWeph5G5LEEx/ZZX9poMvaBYR5P9oEkpjCaGkURIYgS9p9c09/LDS9QwRwMODBdf0FZ0yasKMZJVQ2wx4uML71sIQ4lB72oWkKLAJdOJWKptKR1KrVOqbMuOOSvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vpoC1ILe+kOVP2aYhDoyJn52HZBYV7w8E8qg0y2+APc=; b=ZvSNsCfcHVcNbVg48+C7YX0F8c9GVlgSPDGDSXHWjMGD5vPJ21HkZnBhFBxx5c97MlEKAq1QYqmLYO20Mq66b21IFLck4KRgGUufZtIO3hv0B9/9W5q3h7ig0Y8N6IAMSxvDCQThaCjWZSlD8/R3uyZeaGXd9TrYyVwD/mtAQyT/Hy7XS4MF8oP42jOu9ml29djv03Y08UlVg4eVyIBjyA0Zsz++lKMN8LGGdUEMXXaWeBEQMlqlvR7lUZMYoOPJ+pGFJUaqdEpLxNfIEN+TJH1UycjP0cetUvBPvn1gXM2oGvXOi4BOc3f3BKgU3flFG0bGdtki5PomjB/8g/PuDw== Received: from AM9P195MB1332.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:38a::23) by AS4P195MB1648.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:510::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.15; Wed, 2 Oct 2024 22:09:30 +0000 Received: from AM9P195MB1332.EURP195.PROD.OUTLOOK.COM ([fe80::785c:6ba6:3134:8c1b]) by AM9P195MB1332.EURP195.PROD.OUTLOOK.COM ([fe80::785c:6ba6:3134:8c1b%7]) with mapi id 15.20.8026.016; Wed, 2 Oct 2024 22:09:30 +0000 From: Alexandrov Anatoly To: "freebsd-drivers@freebsd.org" Subject: Use the accelerometer to rotate the screen in tablet mode Thread-Topic: Use the accelerometer to rotate the screen in tablet mode Thread-Index: AQHbFRe7IrkB8HiyUUKmPNSr86zF+A== Date: Wed, 2 Oct 2024 22:09:30 +0000 Message-ID: Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-reactions: allow x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM9P195MB1332:EE_|AS4P195MB1648:EE_ x-ms-office365-filtering-correlation-id: b0f186da-2ff4-42b3-6361-08dce32ee368 x-microsoft-antispam: BCL:0;ARA:14566002|461199028|8060799006|14030799003|7092599003|19110799003|8062599003|15080799006|102099032|3412199025|440099028; x-microsoft-antispam-message-info: l9G2Lv4aChQfXtNj2Rl3j7VyLatKpIdyIS8JbGy4GdpCpAI4gL/yY/YWIOoTaihF0/xX0/r4J5PwVumR1U3K6wO8hr9BGKNodtI2g7CY9cimyNXksEPRy+wjgZbvGUFhORCDgV8J/ybaDwUMOjSmV3AwR6oB3Zn296Wrmc89Gbke3Wy8wi18fGsQUhfE6ctYOhCsvO+ppodlZICGMnGBiXvTYZyKDwue17BSSCBu7B1qLAL3TaEAGJ87oBI59rvCATJr+WZQPlhxZ8rwXOTFdLDLtm9GKGlgHGmpVMgxjUBT4sx1cLkybQrapS3P2ER0NIC6wCFcnGs8oxr5nIut/itM7elOaH8fJKNNnnYvNs+AwlpZOPcImrD15aHwCpNAiACRq+3rRgOODsjK4YvnnBIXXIbmZov8qBzqaT18lKAEAujsUVsQf1/78MIZrd8niKcgF+RuoHWVY34eVcXHzNRNSKb9bM35TnEbpG13Dzv1ychMJr5/Fnu+x6FiYyKv5rl48SWKDlfuh+dvI4wTBNdHn4ooTVEzfHL1cYenktYrvBnEeuA4A72ThnKQJQLIF26bvRqE3xQxkzBzCm6EWhgqkDHsY9dBmv9De8OC6m053k5JIVUtX6uwBCo9f81Oy8nLHpAONzti1jAQ52Kr8PQ26mDjPgEY6yaVrcTERrwuLPDTbjqa1cRDzsE1NTubNTSp8UTeBKyJWuTTjO9YVDLVhZitektbmFS0pLk/tSXwpMy4cqV22FgJdtoXY4/nNNdJ7y9uppp2ajPCY8Md2w== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2Vj60XOO09RwcRBqyonCz9aOa/hco72EKswMZtWAAOwRpnfN/fChEW+GcKx1?= =?us-ascii?Q?V8z7iJbFr+2ilipYRRMYE7n4lOABY3NdYtL5wS0Z85yoWLTUEvqyuyWHFbMU?= =?us-ascii?Q?kuzGsldkUQk8j9CwUZte2KRLOufzJseRWe5YMLbGqn4pipizikLjueR1Oz5v?= =?us-ascii?Q?J6miuqTTvalYZBCK8SiqSBbTr24j4sKzsNCfLynfhkdZ/3rl1QCjAAADSzjP?= =?us-ascii?Q?fNuGzsqtBe55QcQ6hfPlwN2dB4ucfSoa2HDX1818q4nlKdACXsyiT7YsAsNx?= =?us-ascii?Q?S1/2++icZ3NvPwwJG4Q9Tm/l/hfPYNoS/UM5IFUM2e43I4BV4yhMQxGxCmxe?= =?us-ascii?Q?3SKcdvpqu2fSykJRv9pBOZD7p3ILiWxS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ascii?Q?RY0D0Gozo1YV5GmYfAPY?= Content-Type: multipart/alternative; boundary="_000_AM9P195MB1332AF5DFF64C8CA637A5C9ACC702AM9P195MB1332EURP_" List-Id: Writing device drivers for FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-drivers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-drivers@FreeBSD.org MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM9P195MB1332.EURP195.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: b0f186da-2ff4-42b3-6361-08dce32ee368 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Oct 2024 22:09:30.2997 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4P195MB1648 X-Spamd-Result: default: False [-5.00 / 15.00]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector10001:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[outlook.com,none]; R_DKIM_ALLOW(-0.20)[outlook.com:s=selector1]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DWL_DNSWL_NONE(0.00)[outlook.com:dkim]; MISSING_XM_UA(0.00)[]; FREEMAIL_ENVFROM(0.00)[outlook.com]; FREEMAIL_FROM(0.00)[outlook.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.90.105:from]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-drivers@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[outlook.com:+] X-Rspamd-Queue-Id: 4XJprD6f8wz4r85 X-Spamd-Bar: ---- --_000_AM9P195MB1332AF5DFF64C8CA637A5C9ACC702AM9P195MB1332EURP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I use thinkpad x1 yoga gen 5 which has accelerometer, i want to rotate scre= en on accelerometer event via devd but i cant find this sensor in sysctl or= in acpi_ibm, hw etc. Are sensors supported or do i need to patch kernel? T= hanks --_000_AM9P195MB1332AF5DFF64C8CA637A5C9ACC702AM9P195MB1332EURP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
I use thinkpad x1 yoga gen 5 which has accelerometer, i w= ant to rotate screen on accelerometer event via devd but i cant find this s= ensor in sysctl or in acpi_ibm, hw etc. Are sensors supported or do i need = to patch kernel? Thanks
--_000_AM9P195MB1332AF5DFF64C8CA637A5C9ACC702AM9P195MB1332EURP_--