Comment 6 for bug 939868

Revision history for this message
John Perry (jjperry) wrote : Re: [Bug 939868] Re: Sony VPCEL2S1E, some hotkeys not working

On Thu, Mar 29, 2012 at 9:47 AM, Martin Pitt <email address hidden> wrote:
> Hello John,
>
> John Perry [2012-03-28 23:10 -0000]:
>> The AT keyboard controls these hotkeys that has NO effect
>>
>> scan code: 0x46   key code: scrolllock
>
> Did you actually press the Scroll Lock key here? I. e. is the "key
> code" what keymap -i printed (the current code), or what the key code
> should be?
>

I pressed the combination of keys that would produce ScrollLock.
ScrLk is shown in blue on the NumLk physical key, therefore to get
ScrLk I physically pressed Fn+NumLk in order to get the ScrLk key.
When I pressed Fn+NumLk, I got the following output from "keymap -i"

scan code: 0x46 key code: scrolllock

Although the keyboard emits 'scrolllock', the rest of the software
does not interpret it as such, and the Scroll Lock LED is not lit up
(and it's not working).

>> The module (sony_laptop) controls these hotkeys that have NO effect
>>
>> scan code: 0x0C   key code: fn_f1     # Should be 'touchpadtoggle'
>> scan code: 0x10   key code: brightnessdown
>> scan code: 0x11   key code: brightnessup
>> scan code: 0x12   key code: switchvideomode
>
> Again, are these key codes what keymap -i prints, or what the keys
> should be?

These are what I get when I press the keys. I did not adjust the
output or try to tinker in /lib/udev/keymaps

> Based on the first one, I suppose the only one that needs
> fixing is the first one (touch pad toggle). The others look like the
> keymap is correct, but the graphics driver doesn't actually know how
> to change brightness; there's another bug report open for that, I'll
> search for it when you confirm.
>

Thanks. I can test the fix for the touchpad toggle.

ADDITIONS:
1. I just tested Fn+F7 (that produces "switchvideomode") with HDMI
output and it works fine.
2. I also checked again Fn+F5/Fn+F6 (decrease/increase brightness) and
I verified that they perform a "switchvideomode".
That is, currently, on a dual-head setup, both Fn+F5/Fn+F6 work
exactly like Fn+F7 (switchvideomode), instead of affecting the
brightness.