From owner-freebsd-acpi@FreeBSD.ORG  Tue May  6 23:12:30 2014
Return-Path: <owner-freebsd-acpi@FreeBSD.ORG>
Delivered-To: freebsd-acpi@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 095349EC
 for <freebsd-acpi@freebsd.org>; Tue,  6 May 2014 23:12:30 +0000 (UTC)
Received: from mail-qa0-x236.google.com (mail-qa0-x236.google.com
 [IPv6:2607:f8b0:400d:c00::236])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id BF2DAFE9
 for <freebsd-acpi@freebsd.org>; Tue,  6 May 2014 23:12:29 +0000 (UTC)
Received: by mail-qa0-f54.google.com with SMTP id j15so190879qaq.41
 for <freebsd-acpi@freebsd.org>; Tue, 06 May 2014 16:12:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:sender:in-reply-to:references:date:message-id:subject
 :from:to:cc:content-type:content-transfer-encoding;
 bh=sAWWZ3/J7fjrH0im09o6C5bTQQ7Vx3kc4H4emr3Hxcw=;
 b=AUvGl7EFQOvxu657LYGJMpkxK2PfIySbHfrFxBobV8Hoe9n/827nttVzf6YZpaVhOH
 u8CR9SRsSaXlGJxyqqP/DZWaKu0qjjsVyoaHeyBTT8vFCK666xEflCV3rdfvoAk+JRui
 amjyoOl2dSDYL1bY4eT4Mr4MVycmK9tir5q6vTPrx6JSKoAt4i7Y0yhiUhJ3XZoMf9X+
 jnpu+RpC+a1xWiULjuyx0evRdXbx44g19y9Uo+o93BxqwWOWj1q+GetDyg5psovOujT/
 NR4xLIsWvn4DbHc1ojfBiRUJBNdvt1CCs0sxl0XFsdtuBrecvM5Lf1k5zpGeYra/Iu/c
 3m3g==
MIME-Version: 1.0
X-Received: by 10.229.17.69 with SMTP id r5mr58396233qca.7.1399417948937; Tue,
 06 May 2014 16:12:28 -0700 (PDT)
Sender: adrian.chadd@gmail.com
Received: by 10.224.191.201 with HTTP; Tue, 6 May 2014 16:12:28 -0700 (PDT)
In-Reply-To: <20140501205706.GA6007@coyotlan.Tlalpan>
References: <20140501205706.GA6007@coyotlan.Tlalpan>
Date: Tue, 6 May 2014 16:12:28 -0700
X-Google-Sender-Auth: pGmO6MRGSwsd7XAKIPBBv-1f3gA
Message-ID: <CAJ-VmomkgZ39-unFA-rcCtY8YgJpTXpuGtVn+bwv4CQW4xx=Kw@mail.gmail.com>
Subject: Re: Emitting keyboard events
From: Adrian Chadd <adrian@freebsd.org>
To: =?UTF-8?B?WMSrY8Oy?= <xico@atelo.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: "freebsd-acpi@freebsd.org" <freebsd-acpi@freebsd.org>
X-BeenThere: freebsd-acpi@freebsd.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: ACPI and power management development <freebsd-acpi.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-acpi>,
 <mailto:freebsd-acpi-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-acpi/>
List-Post: <mailto:freebsd-acpi@freebsd.org>
List-Help: <mailto:freebsd-acpi-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-acpi>,
 <mailto:freebsd-acpi-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 06 May 2014 23:12:30 -0000

Just to follow up - I'd love to know how the hell to do this too.
acpi_ibm needs some updating. :(


-a


On 1 May 2014 13:57, X=C4=ABc=C3=B2 <xico@atelo.org> wrote:
> 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=C4=ABc=C3=B2
> _______________________________________________
> freebsd-acpi@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-acpi
> To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org"