From owner-freebsd-current@freebsd.org Wed Aug 1 20:22:03 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ECFD51068355 for ; Wed, 1 Aug 2018 20:22:02 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D192860B6 for ; Wed, 1 Aug 2018 20:22:02 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io0-f171.google.com with SMTP id w11-v6so17218256iob.2 for ; Wed, 01 Aug 2018 13:22:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=JLILBMA4SeTZiB4S/A1DARbftE0SdOcFSyajl1mVzDM=; b=LFsWgzsfKsy7lLFoMCLVR8COzdryJezdFtvP82imTKlVJqZHDvd3XDCZgbBxVyFur8 BZvgBhkfCZD4CkchGoO2tdaoe9x6hQ/vD5zOqtoqNBqex1e+iPf62ndv78Qi7faMwquW wDotDf/GYSMcQmfqdO9esevA3gNTX/FiB/CsqXgBilRY9y4RxDMlby50wDkpdsKDwqYU 2CclXD8Kw3gLmMddZ5ice55ztT+PGVVDP6/yW7rQkVBXQXZ2Vavk/MsetWLAy47nE4+O EC0mm9ueuD9cWNhSl45yzdhQmHUuSUKvTLxCkF6pHHW9XhNmbkRMsoE+jDWqo0LFCglk feDA== X-Gm-Message-State: AOUpUlGA+fhPgXDhCJFXNUVrYH0zHWoti5M++r/Amkvdc34bD6sM7Jz4 VV9KBkz1zBRn6cwIp8ZW0VtQ9/cj X-Google-Smtp-Source: AAOMgpdIc9MfRnuqqDxx716d1okHSNB2vrQRynBWNyS/Odrv8uB4qdi1RiHyRagiqO/L8xJcnPzreg== X-Received: by 2002:a5e:dc49:: with SMTP id s9-v6mr4590616iop.237.1533154505345; Wed, 01 Aug 2018 13:15:05 -0700 (PDT) Received: from mail-io0-f179.google.com (mail-io0-f179.google.com. [209.85.223.179]) by smtp.gmail.com with ESMTPSA id b15-v6sm128283itb.25.2018.08.01.13.15.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 13:15:05 -0700 (PDT) Received: by mail-io0-f179.google.com with SMTP id v26-v6so17196451iog.5 for ; Wed, 01 Aug 2018 13:15:05 -0700 (PDT) X-Received: by 2002:a6b:be46:: with SMTP id o67-v6mr4585215iof.143.1533154505019; Wed, 01 Aug 2018 13:15:05 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 2002:a02:7e0a:0:0:0:0:0 with HTTP; Wed, 1 Aug 2018 13:15:04 -0700 (PDT) In-Reply-To: References: From: Conrad Meyer Date: Wed, 1 Aug 2018 13:15:04 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: acpiconf -s 3 does not call acpi sleep event handlers To: Johannes Lundberg Cc: freebsd-current Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2018 20:22:03 -0000 It seems deliberate, although the commit message does not call it out and the event is perhaps poorly named. The event currently indicates that the lid was closed. And the final registered eventhandler for the event calls ReqSleepState. The ReqSleepState routine, as well as the userspace ioctl that 'acpiconf -s' uses (which just invokes ReqSleepState directly, rather than invoking the acpi sleep event), were introduced together in r170976. Best, Conrad On Wed, Aug 1, 2018 at 8:05 AM, Johannes Lundberg wrote: > Hi > > As the title says, callbacks registered with > EVENTHANDLER_REGISTER(acpi_sleep_event, .... > does not get called when calling acpiconf -s 3. > They do however, when suspending with lid or sleep button. > > Is this deliberate or an oversight? > > Cheers > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"