• Ike Panhc's avatar
    ideapad: add event for Novo key · f43d9ec0
    Ike Panhc authored
    Novo key is the Lenovo define key on every ideapads, which has two
    definition. Long press and short click. Driver will report
    KEY_PROG1 on short click and KEY_PROG2 when long press.
    
    On pre-install OS for ideapads there are application waiting for
    the event and there is no such application for Linux yet, so I
    think to report KEY_PROG is fine in anyway.
    
    Also change the scancode from hex to decimal because they are
    related to vpc bit in notify function which is in decimal.
    Signed-off-by: default avatarIke Panhc <ike.pan@canonical.com>
    Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
    f43d9ec0
ideapad-laptop.c 15.9 KB