Re: Emitting keyboard events
On Wed, May 07, 2014 at 03:51:17PM +0200, Lars Engels wrote: IIRC Rui (CC'ed) did some work on implementing new ACPI key events in acpi_asus for the first EeePC. Looking around the acpi drivers, some hard-encode actions associated to the events (like brightness control), some emit messages for devd (like sound control for the asus), and most mix the two options. Emitting devd events is both easy and highly user configurable. But it still does not solve the problem of reinjecting the special keys as generic keyboard events, for instance to let the user configure them through xorg. Writing a virtual keyboard in each acpi driver seems a lot of duplication, and maybe too heavy. IMHO acpi drivers should just emit information to be caught by devd. Maybe with a single format, so that a shared other component can listen to them and reinject them as generic keyboard events. ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org
Re: Emitting keyboard events
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īcò x...@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īcò ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org
Emitting keyboard events
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ò ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org
Re: Emitting keyboard events
On 05/01/2014 16:57, Xīcò 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. No idea how hard this would be, or if it's the right way to go, but I'm picturing an ACPI keyboard driver that consumes keyboard events from ACPI and can attach to the keyboard multiplexer device kbdmux(4).Your ACPI mods for your machine would inject events into it (if it's loaded). That'd be modular and pretty self-contained and could be extended to support other machines. -- Anthony Jenkins Thank you for your help! Best, -- Xīcò ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org ___ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to freebsd-acpi-unsubscr...@freebsd.org