2015-12-15 19:27:45

by Nish Aravamudan

[permalink] [raw]
Subject: "special" key when Lenovo Yoga 900 in tablet mode

So the Lenovo Yoga 900 has 4 "modes" (laptop, tent, stand and tablet).
In tablet mode, it appears that the following is printed roughly every
second:

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

What I would like to do is rotate the screen when I see the unknown
key (a la https://gist.github.com/emiller/6488449), although that's not
super-efficient, but is fine. But I'm wondering if the ideapad event
should actually be properly handled and how that would be done? I
guess it could also just emit a key like the other ideapad values?

Thanks,
Nish


2015-12-20 15:15:40

by Andy Shevchenko

[permalink] [raw]
Subject: Re: "special" key when Lenovo Yoga 900 in tablet mode

On Tue, Dec 15, 2015 at 9:27 PM, Nish Aravamudan
<[email protected]> wrote:
> So the Lenovo Yoga 900 has 4 "modes" (laptop, tent, stand and tablet).
> In tablet mode, it appears that the following is printed roughly every
> second:
>
> atkbd serio0: Unknown key pressed (translated set 2, code 0xbf on
> isa0060/serio0).
> atkbd serio0: Use 'setkeycodes e03f <keycode>' to make it known.
> ideapad_laptop: Unknown event: 1
> atkbd serio0: Unknown key released (translated set 2, code 0xbf on
> isa0060/serio0).
> atkbd serio0: Use 'setkeycodes e03f <keycode>' to make it known.
> ideapad_laptop: Unknown event: 1
>
> What I would like to do is rotate the screen when I see the unknown
> key (a la https://gist.github.com/emiller/6488449), although that's not
> super-efficient, but is fine. But I'm wondering if the ideapad event
> should actually be properly handled and how that would be done? I
> guess it could also just emit a key like the other ideapad values?

I might be able to reproduce this next week. Maybe we will come up
with the solution.

--
With Best Regards,
Andy Shevchenko