Bug 107481

Summary: ideapad_laptop: Unknown event: 1
Product: Drivers Reporter: Ansa89 (ansalonistefano)
Component: Platform_x86Assignee: drivers_platform_x86 (drivers_platform_x86)
Status: NEW ---    
Severity: normal CC: aaron.lu, khughes, public, safknw, zach
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.3.3 Subsystem:
Regression: No Bisected commit-id:

Description Ansa89 2015-11-08 10:36:10 UTC
System info:
- Lenovo Ideapad U330 touch
- Slackware 14.1 64 bit
- vanilla linux kernel 4.3.0 from kernel.org

Problem:
When on battery it spams "ideapad_laptop: Unknown event: 1" every 15-20 seconds on syslog.


If you need any other info, just ask.
Comment 1 Aaron Lu 2015-11-09 03:21:13 UTC
ideapad_laptop is a platform driver, I'll move the bug there.
Comment 2 Ansa89 2015-11-09 08:16:28 UTC
Oh ok, sorry for the mistake.

Tahnks.
Comment 3 Ansa89 2015-12-27 14:02:20 UTC
The problem persists also with kernel 4.3.3.
Comment 4 Ken Hughes 2016-03-18 23:02:48 UTC
System info:
- Lenovo Yoga 900
- Ubuntu 15.10 64 bit
- vanilla 4.5.0 kernel from kernel.org

I get the same message; however, it only happen when changing between laptop and tablet modes.  In addition, the scancode for the Touchpad toggle button is not recognized:

atkbd serio0: Unknown key pressed (translated set 2, code 0xbf on isa0060/serio0).
atkbd serio0: Use 'setkeycodes e03f <keycode>' to make it known.

When I do set the keycode, however, the generated keycode is off by eight.  For example, if I use "setkeycodes e03f 40", xev shows keycode 48 when the key is pressed/released.
Comment 5 Sharique A. Farooqui 2016-06-11 18:15:40 UTC
System info :
- Ideapad 500 ACZ
- Ubuntu 16.04 64 but
- Kernel - 4.4 (Ubuntu stock) and vanilla 4.6

I get this message during shutdown and also when I press power key.

Also shutdown and reboot not able able to perform physical/hardware shutown or reboot the laptop although log says shutdown complete or rebooting respectively .
Comment 6 Anne van Rossum 2016-12-28 19:17:09 UTC
Confirmation.

- Lenovo Yoga 900-13ISK
- Kernel 4.8.1

It is consistently the case when swivel the Yoga into tablet mode and getting out of tablet mode.

Suggestion:

- Adjust function ideapad_acpi_notify(acpi_handle handle, u32 event, void *data)
- Add case 1: with call to ideapad_input_report(priv, vpc_bit);

It will call sparse_keymap_report_event() and should end up in user-space.
Comment 7 Zach Ploskey 2017-01-20 19:45:21 UTC
On my Lenovo Ideapad Z580 this is written to the log every 21-23 seconds while on battery power.

Kernel version: 4.8.13
Comment 8 Zach Ploskey 2017-01-22 09:59:17 UTC
(In reply to Anne van Rossum from comment #6)
> Suggestion:
> 
> - Adjust function ideapad_acpi_notify(acpi_handle handle, u32 event, void
> *data)
> - Add case 1: with call to ideapad_input_report(priv, vpc_bit);
> 
> It will call sparse_keymap_report_event() and should end up in user-space.

I submitted a patch to make this change here:

https://patchwork.kernel.org/patch/9530859/

Tested on my Ideapad Z580. It works fine and squelches the log messages.
Comment 9 Anne van Rossum 2017-01-22 10:37:18 UTC
(In reply to Zach Ploskey from comment #8)
> I submitted a patch to make this change here:
> 
> https://patchwork.kernel.org/patch/9530859/
> 
> Tested on my Ideapad Z580. It works fine and squelches the log messages.

Thanks! I patched my own system exactly like this as well, but didn't find time to submit it.
Comment 10 Zach Ploskey 2017-01-29 21:41:17 UTC
The patch was merged and should be in kernel 4.10.