Skip to content

Commit 0dd50b3

Browse files
jwrdegoedeij-intel
authored andcommitted
platform/x86: toshiba_acpi: Silence logging for some events
Stop logging unknown event / unknown keycode messages on suspend / resume on a Toshiba Portege Z830: 1. The Toshiba Portege Z830 sends a 0x8e event when the power button is pressed, ignore this. 2. The Toshiba Portege Z830 sends a 0xe00 hotkey event on resume from suspend, ignore this. Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
1 parent 79ce880 commit 0dd50b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/platform/x86/toshiba_acpi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ static const struct key_entry toshiba_acpi_keymap[] = {
264264
{ KE_KEY, 0xb32, { KEY_NEXTSONG } },
265265
{ KE_KEY, 0xb33, { KEY_PLAYPAUSE } },
266266
{ KE_KEY, 0xb5a, { KEY_MEDIA } },
267+
{ KE_IGNORE, 0x0e00, { KEY_RESERVED } }, /* Wake from sleep */
267268
{ KE_IGNORE, 0x1430, { KEY_RESERVED } }, /* Wake from sleep */
268269
{ KE_IGNORE, 0x1501, { KEY_RESERVED } }, /* Output changed */
269270
{ KE_IGNORE, 0x1502, { KEY_RESERVED } }, /* HDMI plugged/unplugged */
@@ -3523,9 +3524,10 @@ static void toshiba_acpi_notify(struct acpi_device *acpi_dev, u32 event)
35233524
(dev->kbd_mode == SCI_KBD_MODE_ON) ?
35243525
LED_FULL : LED_OFF);
35253526
break;
3527+
case 0x8e: /* Power button pressed */
3528+
break;
35263529
case 0x85: /* Unknown */
35273530
case 0x8d: /* Unknown */
3528-
case 0x8e: /* Unknown */
35293531
case 0x94: /* Unknown */
35303532
case 0x95: /* Unknown */
35313533
default:

0 commit comments

Comments
 (0)