Re: [RFC PATCH] report acpi video hot key event through input device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2007-07-30 at 01:50 +0100, Matthew Garrett wrote:
> On Sun, Jul 29, 2007 at 12:40:16PM -0400, Luming Yu wrote:
> >  	switch (event) {
> >  	case ACPI_VIDEO_NOTIFY_SWITCH:	/* User requested a switch,
> >  					 * most likely via hotkey. */
> >  		acpi_bus_generate_event(device, event, 0);
> > +		keycode = KEY_UNKNOWN;
> 
> KEY_SWITCHVIDEOMODE ?
> 
> > 
> >  	case ACPI_VIDEO_NOTIFY_PROBE:	/* User plugged in or removed a video
> > @@ -1734,21 +1741,37 @@ static void acpi_video_bus_notify(acpi_h
> >  		acpi_video_device_rebind(video);
> >  		acpi_video_switch_output(video, event);
> >  		acpi_bus_generate_event(device, event, 0);
> > +		keycode = KEY_UNKNOWN;
> >  		break;
> 
> Here too.
> 
> >  	case ACPI_VIDEO_NOTIFY_SWITCH:	/* change in status (cycle output device) */
> >  	case ACPI_VIDEO_NOTIFY_PROBE:	/* change in status (output device status) */
> >  		acpi_bus_generate_event(device, event, 0);
> > +		keycode = KEY_UNKNOWN;
> >  		break;
> 
> And these? I'm not sure in this case, though.
> 
ACPI_VIDEO_NOTIFY_SWITCH and ACPI_VIDEO_NOTIFY_PROBE
are only valid for Display devices.
Should output devices handle this kind of events?

Thanks,
Rui
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux