Sony Vaio VPCEB39FJ

Hardware configuration

 * Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz
 * 4GB（2GB×2）RAM
 * 120GB SSD SATA (changed from HDD 500GB 5400rpm)
 * Intel HD Graphics
 * 15.5" display with 1366×768 resolution
 * LAN 10/100/1000BASE-T
 * Atheros Wireless Network Adapter IEEE802.11b/g/n
 * Bluetooth
 * USB2.0×3,eSATA/USB×1,eSATA×1,D-sub15pin,HDMI×1,mini-jack×1
 * Express Card slot x 1
 * SD card slotx1,Sony card slotx1
 * Size（W×D×H）329×228.5×27.6～31.5mm
 * Weight 2.7kg

Printout of lspci -nn:

Printout of lspci -kk:

Printout of lsusb (no external devices connected):

Printout of lsmod (builtin devices, no external devices connected):

Problem with 100% brightness after reboot
Laptop does not remember brightness, after rebooting it sets brightness to 100%

Workaround

 * Install acpid and xbacklight


 * Create and copy scripts which save and restore actual brigthness

/etc/acpi/actions/backlight.sh                                                                                                             brightness=`cat /sys/class/backlight/acpi_video0/actual_brightness` brightness_max=`cat /sys/class/backlight/acpi_video0/max_brightness` brightness_out=$(((100000/brightness_max*brightness+500)/1000)) echo $brightness_out > /etc/backlight
 * 1) !/bin/sh
 * 2) It saves actual backlight percentage to /etc/backlight

/etc/acpi/events/backlight event=video/brightness* action=/etc/acpi/actions/backlight.sh %e After backlight.sh and backlight created it needs to apply it with

This script need to be added to startup, for example /bin/sh /home/user/Scripts/brightness.sh, run it as user brightness=`cat /etc/backlight` xbacklight -set $brightness
 * 1) !/bin/sh

VAIO key (Vendor key)
It needs to remap VAIO key to make it works with XFCE (probably Gnome, KDE) to bind it in order to start script or application with VAIO key. VAIO key has keycode 360. X does not support keycodes are greater than 255.

Create /etc/udev/hwdb.d/61-keyboard-local.hwdb

keyboard:name:Sony Vaio Keys:dmi:bvn*:bvr*:bd*:svnSony*:pn* KEYBOARD_KEY_3b=prog4                                 # VAIO
 * 1) sony-laptop driver

Apply it with

and rebooting PC. This method described in

Bluetooth
How to configure bluetooth described in

SD-Card
It found that sometimes sd-card with non locked switch recognized as read-only after it inserted.

Workaround

 * Install hdparm. Use console commands to remove read-only attribute before mounting sd-card partition


 * Example, this script remounts sd-card as read-write. You need to correct mount_options and xuser (user name) to adapt the script for your needs. It needs to run script after sd-card mounted. [udisks-glue:https://wiki.gentoo.org/wiki/Udisks#Additional_software] can be used to start this script automatically.
 * 1) !/bin/sh

export PATH=/bin:/sbin:/usr/bin:/usr/sbin

sdcard=`mount | grep mmcblk0p1`

if ! grep -q mmcblk0p1 <<< "$sdcard" ;then exit 0 fi

if grep -q rw <<< "$sdcard" ;then exit 0 fi

logger -i "$sdcard" logger -i "Fixing that sdcard mounted as read-only" cd /dev/disk/by-uuid/ for entry in * do linktext=`readlink $entry` if /bin/grep -q mmcblk0p1 <<< "$linktext" ;then hdparm -r 0 /dev/mmcblk0 2&>1 >/dev/null hdparm -r 0 /dev/mmcblk0p1 2&>1 >/dev/null xuser="tester" mount_options="nodev,nosuid,uid=1000,gid=100,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2" mount -o remount,rw,$mount_options /dev/mmcblk0p1 /run/media/$xuser/$entry mountresult=`mount | grep mmcblk0p1` logger -i "sdcard mounted as $mountresult" fi done

Kernel configuration
Example of kernel configuration: