plugin: manual
name: keys/brightness
requires: dmi.product in ['Notebook','Laptop','Portable']
description:
 PURPOSE:
     This test will test the brightness key
 STEPS:
     1. Press the brightness buttons on the keyboard
 VERIFICATION:
     Did the brightness change following to your key presses?

plugin: manual
name: keys/volume
requires:
 device.category == 'KEYBOARD'
user: root
command: key_test -s '0xe02e,0xe0ae:Volume Down' '0xe030,0xe0b0:Volume Up'
description:
 PURPOSE:
     This test will test the volume keys of your keyboard
 STEPS:
     1. Click test to open a window on which to test the volume keys.
     2. If all the keys work, the test will be marked as passed.
     3. If your computer has no volume keys, Skip this test.
 VERIFICATION:
     Do the keys work as expected?

plugin: manual
name: keys/mute
requires:
 device.category == 'KEYBOARD'
user: root
command: key_test -s '0xe020,0xe0a0:Mute'
description:
 PURPOSE:
     This test will test the mute key of your keyboard
 STEPS:
     1. Click test to open a window on which to test the mute key.
     2. If the key works, the test will pass and the window will close.
 VERIFICATION:
     Does the mute key work as expected?

plugin: manual
name: keys/sleep
requires:
 device.category == 'KEYBOARD'
depends: suspend/suspend_advanced
description:
 PURPOSE:
     This test will test the sleep key
 STEPS:
     1. Press the sleep key on the keyboard
     2. Wake your system up by pressing the power button
 VERIFICATION:
     Did the system go to sleep after pressing the sleep key?

plugin: manual
name: keys/battery-info
requires: dmi.product in ['Notebook','Laptop','Portable']
user: root
command: key_test -s '0xe071,0xef1:Battery Info'
description:
 PURPOSE:
     This test will test the battery information key
 STEPS:
     If you do not have a Battery Button, skip this test
     1. Click Test to begin
     2. Press the Battery Info button (or combo like Fn+F3)
     3: Close the Power Statistics tool if it opens
 VERIFICATION:
     Did the Battery Info key work as expected?

plugin: manual
name: keys/wireless
requires: dmi.product in ['Notebook','Laptop','Portable']
description:
 PURPOSE:
     This test will test the wireless key
 STEPS:
     1. Press the wireless key on the keyboard
     2. Press the same key again
 VERIFICATION:
     Did the wireless go off on the first press and on again on the second?

plugin: user-interact
name: keys/media-control
requires:
 device.category == 'KEYBOARD'
user: root
command: key_test -s 0xe010,0xe090:Previous 0xe024,0xe0a4:Stop 0xe019,0xe099:Next 0xe022,0xe0a2:Play
description:
 PURPOSE:
     This test will test the media keys of your keyboard
 STEPS:
     1. Click test to open a window on which to test the media keys.
     2. If all the keys work, the test will be marked as passed.
     3. If your computer has no media keys, Skip this test.
 VERIFICATION:
     Do the keys work as expected?

plugin: user-interact
name: keys/super
requires:
 device.category == 'KEYBOARD'
user: root
command: key_test -s '0xe05b,0xe0db:Left Super Key'
description:
 PURPOSE:
     This test will test the super key of your keyboard
 STEPS:
     1. Click test to open a window on which to test the super key.
     2. If the key works, the test will pass and the window will close.
 VERIFICATION:
     Does the super key work as expected?

plugin: manual
name: keys/video-out
requires: dmi.product in ['Notebook','Laptop','Portable']
description:
 PURPOSE:
     Validate that the External Video hot key is working as expected
 STEPS:
     1. Plug in an external monitor
     2. Press the display hot key to change the monitors configuration
 VERIFICATION:
     Check that the video signal can be mirrored, extended, displayed on external or onboard only.

plugin: manual
name: keys/touchpad
requires: dmi.product in ['Notebook','Laptop','Portable']
description:
 PURPOSE:
     Verify touchpad hotkey toggles touchpad functionality on and off
 STEPS:
     1. Verify the touchpad is functional
     2. Tap the touchpad toggle hotkey
     3. Tap the touchpad toggle hotkey again
 VERIFICATION:
     Verify the touchpad has been disabled and re-enabled.
