You are not logged in.

#1 2010-01-09 20:17:20

bmentink
Member
From: New Zealand
Registered: 2009-08-23
Posts: 442

Sony VGN-FW53GF Laptop media keys

Hi All,

I am trying to get the media keys (Play/Stop/Fwd/Rev) going on my Sony.

I found that there is a "sony-laptop" module available to trap ACPI events.

I did a "modprobe sony-laptop debug=1" with the following results shown by dmesg:


sony-laptop: Sony Notebook Control Driver v0.6.                                 
sony-laptop: method: name: _INI, args 0                                         
sony-laptop: method: name: PWAK, args 0                                         
sony-laptop: method: name: GWDP, args 0                                         
sony-laptop: method: name: GSNE, args 1                                         
sony-laptop: method: name: SSNE, args 1                                         
sony-laptop: method: name: CSXB, args 1                                         
sony-laptop: method: name: SODV, args 1                                         
sony-laptop: method: name: GDDI, args 0                                         
sony-laptop: method: name: STCS, args 1                                         
sony-laptop: method: name: RBMF, args 1                                         
sony-laptop: method: name: RSBI, args 1                                         
sony-laptop: method: name: CBMF, args 1                                         
sony-laptop: method: name: EAWK, args 1
sony-laptop: method: name: SN00, args 1
sony-laptop: method: name: SN01, args 0
sony-laptop: method: name: SN02, args 1
sony-laptop: method: name: SN03, args 1
sony-laptop: method: name: SN04, args 0
sony-laptop: method: name: SN05, args 1
sony-laptop: method: name: SN06, args 1
sony-laptop: method: name: SNCM, args 0
sony-laptop: method: name: SN07, args 1
sony-laptop: method: name: SNF0, args 1
sony-laptop: method: name: SNF1, args 1
sony-laptop: method: name: SNF2, args 1
sony-laptop: method: name: SNF3, args 1
sony-laptop: method: name: SNF4, args 1
sony-laptop: method: name: SNF5, args 1
sony-laptop: method: name: SNF6, args 1
sony-laptop: method: name: SNF7, args 1
sony-laptop: method: name: SNF8, args 1
sony-laptop: method: name: SNF9, args 1
sony-laptop: method: name: SNFA, args 1
sony-laptop: method: name: SNFB, args 1
sony-laptop: method: name: SNFC, args 1
sony-laptop: method: name: SNFD, args 1
sony-laptop: method: name: SNFE, args 1
sony-laptop: method: name: SNFF, args 1
sony-laptop: method: name: SNAV, args 0
sony-laptop: method: name: SNGN, args 1
sony-laptop: Doing SNC setup
input: Sony Vaio Keys as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/SNY5001:00/input/input13
input: Sony Vaio Jogdial as /devices/virtual/input/input14
sony-laptop: brightness ignored, must be controlled by ACPI video driver

What I don't understand is how to use this information. The /devices.... do not exist.
On this laptop I also have an S1 and AV MODE key and volume keys.
The volume keys work out of the box. The S1 key prints out:

sony-laptop: sony_nc_notify, event: 0x20
sony-laptop: sony_nc_notify, event: 0x38

and the AV MODE key prints:

sony-laptop: Unknown event: 0x100 0xa1
sony-laptop: sony_nc_notify, event: 0xa1
sony-laptop: Unknown event: 0x100 0x21
sony-laptop: sony_nc_notify, event:

0x21

The media keys print nothing ....

Any ideas?

Offline

#2 2010-01-10 15:24:40

Coacher
Guest

Re: Sony VGN-FW53GF Laptop media keys

1. Run 'acpi_listen'.
2. Press multimedia buttons and write down necessary acpi events.
3. Install acpid.
4. Edit /etc/acpi.d/handler.sh
???
PROFIT
Also check this WIKI pages:
http://wiki.archlinux.org/index.php/Acpid
http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys
http://wiki.archlinux.org/index.php/ACPI_hotkeys

#3 2010-01-11 04:04:30

bmentink
Member
From: New Zealand
Registered: 2009-08-23
Posts: 442

Re: Sony VGN-FW53GF Laptop media keys

Thanks,

My problem is though, I don't know what to map the keys too ..

E.g for VLC different keys will work and for Juk or xmms  something else  etc..

I also found for Juk that I could map the media keys using KDE preferences  ... which is fine for that app, but it would be nice to have media keys that would work in all
media apps the same way ..

Offline

#4 2010-01-21 21:19:14

Coacher
Guest

Re: Sony VGN-FW53GF Laptop media keys

Hm. I don't know the general way to do this, and not sure it exists.
For universal audio controlling Pulseaudio will propably do the trick.
But the problem is video output...

#5 2010-01-21 21:44:30

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: Sony VGN-FW53GF Laptop media keys

You can try the sony-laptop module written for the Z-series of laptops, which is required there in order to get the keys to generate events:

git clone git://gitorious.org/sony-laptop-zseries/sony-laptop-zseries.git

Then just compile and reload the module. It's probably worth a try.


Cthulhu For President!

Offline

#6 2010-01-21 22:07:43

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Sony VGN-FW53GF Laptop media keys

The media keys don't have acpi events, they are regular xf86-media keys that you can assign normally like on any multimedia keyboard. You only need the standard sony-laptop module enabled (which you already have), the Z-version won't help as it only contains extra information for z-specific hardware like dual-graphics and hsdpa module etc.

wiki entries:

http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys
http://wiki.archlinux.org/index.php/Ext … ys_in_Xorg

gentoo wiki:

http://en.gentoo-wiki.com/wiki/Multimedia_Keys

Last edited by litemotiv (2010-01-21 22:10:56)


ᶘ ᵒᴥᵒᶅ

Offline

#7 2010-01-25 00:16:53

bmentink
Member
From: New Zealand
Registered: 2009-08-23
Posts: 442

Re: Sony VGN-FW53GF Laptop media keys

@litemotiv: Thanks for the links, that really helped.:D

Offline

Board footer

Powered by FluxBB