From owner-freebsd-acpi@FreeBSD.ORG Thu May 1 21:03:51 2014 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1A0F36FA for ; Thu, 1 May 2014 21:03:51 +0000 (UTC) Received: from mail.atelo.org (atelo.org [192.95.27.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B38001C19 for ; Thu, 1 May 2014 21:03:50 +0000 (UTC) Received: from localhost (ovo.atelo.org [192.168.1.7]); by mail.atelo.org (OpenSMTPD) with ESMTP id 24fb32ff; for ; Thu, 1 May 2014 20:57:00 +0000 (UTC) Date: Thu, 1 May 2014 13:57:06 -0700 From: =?utf-8?B?WMSrY8Oy?= To: freebsd-acpi@freebsd.org Subject: Emitting keyboard events Message-ID: <20140501205706.GA6007@coyotlan.Tlalpan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2014 21:03:51 -0000 Dear freebsd-acpi, Being a systemd refugee, I am trying to setup FreeBSD on several machines here. As a first question, I cannot find any driver to handle the hotkeys on a 2011 Sony VPCZ2. sys/dev/acpi_support/acpi_sony.c only contains backlight support for old laptops. Is anyone aware of such a driver? In any case, I started playing a bit with ACPI in a module, and have been able to register a handler for the hotkeys, and decode the associated events. Unfortunately, I have no idead of what I could do with them. At some point, I would like Xorg to receive keyboard events, such as XF86MonBrightnessUp, but I lack the knowledge on how to emit that from kernel space. Thank you for your help! Best, -- Xīcò