Sony Vaio VPC-F11M1E

From ArchWiki
Revision as of 16:24, 2 July 2011 by Gadget3000 (Talk | contribs) (Special Keys)

Jump to: navigation, search

Introduction

This is a mini guide to configure a Sony Vaio VPC-F11M1E on Arch Linux.

Processor - Intel Core i5-520M

Memory - 4 GB RAM DDR3

Graphics chipset - nVidia GeForce GT 330M


$ lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 02)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 05)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 05)
00:1c.2 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 (rev 05)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 05)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 05)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 05)
01:00.0 VGA compatible controller: nVidia Corporation GT216 [GeForce GT 330M] (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
02:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35)
03:00.0 SD Host controller: Ricoh Co Ltd MMC/SD Host Controller
03:00.1 System peripheral: Ricoh Co Ltd Memory Stick Host Controller
03:00.3 FireWire (IEEE 1394): Ricoh Co Ltd FireWire Host Controller
03:00.4 SD Host controller: Ricoh Co Ltd MMC/SD Host Controller
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8057 PCI-E Gigabit Ethernet Controller (rev 10)
3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)

Xorg

X server works with the standard Template:Package Official package but shows a blank screen when exiting the X server or just switching terminals using Ctrl+Alt+Fx.

To resolve the blank screen issue you need to use vesafb.

Install Template:Package Official and remove any vga=<foo> kernel boot parameters.

Next ensure that Template:Filename contains:

options uvesafb mode_option=1280x800-32 scroll=ywrap

This isn't the largest resolution available (1280x1024-32 is) but it best fits the aspect ratio of the screen.

Finally add the v86d hook to HOOKS in mkinitcpio.conf:

HOOKS="base udev v86d ..."

and regenerate your initramfs with mkinitcpio (adjust the following command to your setup):

mkinitcpio -p kernel26

Automatic Backlight Regulation

This requires the kernel26-sony and sony-acpid-git packages.

Once those two packages are installed, add sony-acpid to the DAEMONS array in rc.conf:

DAEMONS=(hwclock syslog-ng !network !netfs crond @net-profiles alsa sony-acpid)

Special Keys

The 'Display Off' and media keys work out of the box.

The 'ASSIST', 'S1' and 'VAIO' keys require configuring the appropriate keymap.

Using udev

Firstly run:

$ /lib/udev/findkeyboards

Then do:

# /lib/udev/keymap -i input/eventX

BUT switch input/eventX for the keyboard outputted in the first command. I got 'AT keyboard' and 'module' from the first command. 'AT keyboard' is the normal keyboard for mapping 'Fn+X' and 'module' is the hotkey keyboard.

After doing the second command you need to press the buttons that you want to map, then Control-C to exit keymap.

Then edit /lib/udev/keymaps/module-sony, adding the relevant scan code from the second command and then the event you want. All valid events are listed in http://hal.freedesktop.org/quirk/quirk-keymap-list.txt

Here is an example module-sony keymap file for the VPC-F11M1E:

0xA0 mute # Fn+F2
0xAE volumedown # Fn+F3
0xB0 volumeup # Fn+F4
0x10 brightnessdown # Fn+F5
0x11 brightnessup # Fn+F6
0x12 switchvideomode # Fn+F7
0x14 zoomout # Fn+F9
0x15 zoomin # Fn+F10
0x17 suspend # Fn+F12
0x28 help #Assist
0x20 prog1 #S1
0x49 vendor #VAIO Hotkey

Using HAL

See HAL Keymap Quirks.

Using the kernel tool setkeycodes

See the detailed article: setkeycodes.

Hardware Controls

Many VAIO specific hardware controls can be adjusted using the VAIO control centre, which is in the vaio-control-center-git package.

Sources

http://code.google.com/p/vaio-f11-linux/w/list?q=label:State-Solution

https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes