Re: [PATCH] Eject button handling in quickstart driver

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

 



On Wed, Mar 07, 2012 at 03:02:47PM +0100, Rainer Koenig wrote:
> +                if (strncasecmp(quickstart->btn->name, "ODDE", 4) == 0) {
> +                  /* ODDE is Optical Disc Drive Eject */
> +                  quickstart_data.pressed = quickstart->btn;
> +                }

This is wrong. Since the GHID method returns an arbitrary 
vendor-specific value, you should just make sure that there's 
appropriate keymap remapping support and then provide a udev fragment 
that does the appropriate GHID->keycode assignment. Also, you really do 
need to report this as KEY_CDEJECT - it's not acceptable to require an 
acpid script.

-- 
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
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