From owner-freebsd-questions@freebsd.org Wed Apr 6 20:08:41 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58B0CB0655B for ; Wed, 6 Apr 2016 20:08:41 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: from mail-ig0-f170.google.com (mail-ig0-f170.google.com [209.85.213.170]) (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 260831A71 for ; Wed, 6 Apr 2016 20:08:40 +0000 (UTC) (envelope-from brandon.wandersee@gmail.com) Received: by mail-ig0-f170.google.com with SMTP id gy3so94486958igb.1 for ; Wed, 06 Apr 2016 13:08:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=tuqD5T0HEtFZpaNaA/OQiqhr9jcREnGO2t66HeEvWZA=; b=H/kmqDg6c2KycZ5I7HB/PemT+v2rJIOz0ASDFAtUiud2WRyVFiAvu31QCDlTNFA945 PvhTxx5zEnzcGv/flDKdrs/0Ik0dW6mdcjOQh3ckSaVOzkWG0KyBgYmhnVJY+2267/RG nvybv7FZpGVABtfyhm3oRKmYS2qGgY7LBSg51+NnkrTL0EZ9h3St+weurmbvS3t1BSQF 1rBd+cwTqUhUpI5SbOue3LTPT/sTiWRCoA4aoONuul75IDIMvaw3iZZgE9OeOwlYV2AO HvftFZixOfpcNY3gZxJozEaeUM6BiekNrzur9D+IYIauSSxzkttYmm5h1aG5WhxY2ERb nJTA== X-Gm-Message-State: AD7BkJKmCvCP6n+BnMiODCrnW6EfzwABIaqUFn+t+tZwyqvkD6RLumr4o0lt0hjka7T4PQ== X-Received: by 10.50.111.163 with SMTP id ij3mr23659651igb.76.1459973314172; Wed, 06 Apr 2016 13:08:34 -0700 (PDT) Received: from WorkBox.Home.gmail.com (63-231-151-176.mpls.qwest.net. [63.231.151.176]) by smtp.gmail.com with ESMTPSA id t5sm10085770igk.8.2016.04.06.13.08.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Apr 2016 13:08:33 -0700 (PDT) User-agent: mu4e 0.9.16; emacs 24.5.1 From: Brandon J. Wandersee To: freebsd-questions@freebsd.org Subject: Simple devd.conf rule has no effect Date: Wed, 06 Apr 2016 15:08:36 -0500 Message-ID: <86fuuywldn.fsf@WorkBox.Home> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2016 20:08:41 -0000 Hi, folks. I'm trying to get my laptop screen to lock when the lid closes, using x11/slock. I've created the file /etc/devd/lidlock.conf with the following rule: | notify 0 { | match "system" "ACPI"; | match "subsystem" "Lid"; | match "notify" "0x00"; | action "/usr/local/bin/slock"; | }; This is really just a slight variation on the example from the devd.conf(5) man page. Now when I close the lid, the screen fails to lock, yet /var/log/messages displays the message "devd: Executing 'slock'". Any advice on what to look into to figure out why the program is not actually executed? Thanks in advace. -- :: Brandon J. Wandersee :: brandon.wandersee@gmail.com :: -------------------------------------------------- :: 'The best design is as little design as possible.' :: --- Dieter Rams ----------------------------------