From nobody Sat Nov 25 22:57:30 2023 X-Original-To: questions@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 4Sd6gv70ggz52RJQ for ; Sat, 25 Nov 2023 22:57:47 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sd6gv24d9z4NtF for ; Sat, 25 Nov 2023 22:57:47 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Z86oy8Yp; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::1130 as permitted sender) smtp.mailfrom=kob6558@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5cd2f1a198cso27327297b3.0 for ; Sat, 25 Nov 2023 14:57:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700953066; x=1701557866; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=OzkgiaTd3yVI9d2lDW78EW0o8d3GMYVGnZoeibEFzH4=; b=Z86oy8Ypy6w9XztBgv5frp075XhiGgDAZnvMBQWrr/P25ztns1K921Z/qB/vfuWgDF n6n0su1+4ux+xV3/pllTaB9He3lm1VI/oe0qeiq3D6L8///cpkyYEVyK3dXcPcTrxYgX X0lRR1Y5/NMtPEPingEIMJBR/L05g9AnjFVNa6qbbpplXRLxhcXVSkUX8SjqmCEmC0yT 8bJKIacxWpipIsIOjUSSlOdVGAcsi3mObVcrkGpCvANjUug7kzBy5G6PMZE2qXKXv46C X6BHVW7QzvF/oQJdI0mQd3PYtQEvKCb0O+vMk7wsl6snb0mlEeiznThrQMesJBeMG0ol XJpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700953066; x=1701557866; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=OzkgiaTd3yVI9d2lDW78EW0o8d3GMYVGnZoeibEFzH4=; b=GK9aZZ4ADCvstf6H3GLcnc+SEF7QB1F272+b5nhVB/qu9M4vrDM7455XX2XxNdHmqh mHGO8XDww+oHj+RMylthRNHTrIkGk1/n4To8Psu2NZUwoYPDUee94Hsndf04JZiQPDMK Rr9/jm6NimU599tyQHBSNfX2QP8fW2v+BdLNaDcHS58REIXmhGWxrvtRsuA4zaPeWbx6 7pSGJFdDVejiLedkbwQQ1zE2TAFl3+3wYWIr6sWG6eSJ8G4xxy3VimxXE9a6ILwXZR3G yuKvkU6E41MUqk2FZRLAVXoZHQzzKyQ2q6r6hIg3+pNaaqrSrjZ8aEhhiqodH3m0z3wd Uq0g== X-Gm-Message-State: AOJu0YyGnVab100GPxoqSRh/DVNAu8ai3z2Jw8ZPhZyjb/e/TXM5/nzu aq2gesNnNWkpf1IlgBqPQ9SUr7TPpMVgaGxW09vFphkt X-Google-Smtp-Source: AGHT+IHOJfWyuVm/DJBCHKGJK8TyvXYlz5Qnv6p+lA2hR2/R7HO+qCSdsNMEsYsJYL14ckdDbAHsPd1tLvR9mcQVfb0= X-Received: by 2002:a81:9290:0:b0:5a7:bc0e:193e with SMTP id j138-20020a819290000000b005a7bc0e193emr7722353ywg.18.1700953066239; Sat, 25 Nov 2023 14:57:46 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 From: Kevin Oberman Date: Sat, 25 Nov 2023 14:57:30 -0800 Message-ID: Subject: Finding devd notification values To: "freebsd-questions@freebsd.org" Content-Type: multipart/alternative; boundary="0000000000004afa13060b01ff66" X-Spamd-Result: default: False [-2.90 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.71)[-0.714]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_LONG(-0.49)[-0.489]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1130:from]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4Sd6gv24d9z4NtF X-Spamd-Bar: -- --0000000000004afa13060b01ff66 Content-Type: text/plain; charset="UTF-8" I am attempting to get the "mute" key on my Thinkpad T16 to work. I already use devd for brightness, but I have not guessed what notification value I need to specify in the 'match "notify"' statement. I could just keep trying different values, I guess, but I hope that there is a way to get the event (ala xev(1)). I am hoping I can craft a devd statement that will return all notifications from match "system" "ACPI"; match "subsystem" "IBM"; match "notify" *; or something similar. Does devd support anything like this? If so, I should be able to pipe that to see the value. Thanks for any clues. I think I once knew how to do this, but my memory has lost it in hte past couple of decades. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --0000000000004afa13060b01ff66 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am attempting to get the "mute" key = on my Thinkpad T16 to work. I already use devd for brightness, but I have n= ot guessed what notification value I need to specify in the 'match &quo= t;notify"' statement. I could just keep trying different=C2=A0 val= ues, I guess, but I hope that there is a way to get the event (ala xev(1)).=

I am hoping I can craft a devd statemen= t that will return all notifications from=C2=A0
match "= system" "ACPI"; match "subsystem" "IBM";= match "notify" *;
or something similar. Does devd= support anything like this? If so, I should be able to pipe that to see th= e value.

Thanks for any clues. I think I= once knew how to do this, but my memory has lost it in hte past couple of = decades.
--
Kevin Oberman, Part time kid= herder and retired Network Engineer
E-mail: rkoberman@gmail.com
PGP Fin= gerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683
<= /div>
--0000000000004afa13060b01ff66--