User Tools

Site Tools


vaio-p11z

FIXME: style, old copy from google cache

Distribution

  • ubuntu 10.04.1 (lucid)

Live CD splashfs problem

The Live CD will not work correctly due to splashfs block read errors. Using the following addition command line (kernel) options (editable using ctrl+e in boot menu) solve the problem:

  • all_generic_ide pci=nommconf ide=nodma acpi=off

InstantON Sony OS

Before installation of Linux your should do a copy of some windows stuff.

  • C:\InstantON
  • C:\kernel.pam and C:\initrd.pam
  • C:\Users\Public

I create a ntfs primary partition 2. After copy of the saved files my CROSS-BAR OS works as expected. Primary partition 1 was the original Sony recovery. This partition number is now used for my linux swap. Picture of c:\Users\Public are needed because the CROSS-BAR icons are saved there. Works if ntfs is first partition also, think the bios is looking for specific content on found ntfs partition.

http://www.hermit.org/Linux/SonyTXNInstant.html

The ntfs partition can be read/written by linux and so I have a sharing point for music and video's.

Video Intel GMA 500

Check this ubuntu wiki entry https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/ it works out of the box. But note:

  • needs the current kernel header and build essential installed
  • needs package python-software-properties else add-apt-repository command is not available
  • should be done before basic X installation
  • XV is broken, so by default cheese, skype webcam and also mplayer (if using XV video output) gets black image/picture
  • grub command line GRUB_CMDLINE_LINUX=“mem=1920mb acpi_osi=Linux acpi_backlight=vendor”“ is needed
  • suspend won't work until using the workaround Suspend by moving 99video

It is possible to load psb (modprobe) driver at console to have high resolution or add this permanent into /etc/modules.

Suspend

Suspend by moving 99video, https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsPoulsbo/#Suspend%20by%20moving%2099video is needed after each update

sudo mv /usr/lib/pm-utils/sleep.d/99video /usr/lib/pm-utils/99video

Internal UMTS modem

NOTE: works only with ACCU (battery) connected, else lsusb displays nothing checked wih:

Grub2 config

The grub console is text mode and not graphical because I won't load graphic devices on boot. Reason: can't login if the graphic driver is missing or broken. I use the default grub settings, remove quite and spalsh, don't use gdm.

Intel hda sound

Used driver:

  • snd-hda-intel

change the default options to

  • options snd-hda-intel model=toshiba-s06 by adding a file like /etc/modprobe.d/my.conf

Alsamixer shows one Mic and pulseaudio also uses the correct settings.

Quality of the micro input is really bad compared with windows and other notebook micro's.

Non graphical user login

  • apt-get remove gdm: remove the gnome login manager
  • /etc/init/gdm.conf: rename the file to *.disabled else you always got graphic error messages from up-start. Looks like a dependency bug because gdm was removed.
  • don't try to change run level or rc-config because the ubuntu release has a really bad mix of init-V and up-start.
  • don't use “splash” kernel option within grub configuration

At the end I use the alternative CD and install a pure minimal console system. All other X stuff and tools are installed using apt ;)

CPU frequency stepping

Use powernowd instead of cpufreqd. Add cpu frequency scaling monitor to the gnome panel and check that it works as expected. Explicit stepping 800Mhz, 1.07Ghz and 1.33GHz works out of the box.

Sleep on Lid close

Within X it can be configured using power-manager. Console support using native ACPI but the original scripts /etc/acpi/lid.sh and /etc/acpi/sleep.sh have bugs within getXUsers functions and won't work. My /etc/acpi/lid.sh

#!/bin/bash
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
  if [ x"$XAUTHORITY" = x"" ]; then
    pm-suspend
  fi
fi

ACPI

Lid close works out of the box after apci-support package installation. Enable DOUBLE_CONSOLE_SWITCH=true and MODULES=“snd-hda-intel” within /etc/default/acpi-support. ACPI daemon must be re-started using up-start command

restart acpid

kernel module sony-laptop

Kernel module sony-laptop is needed for

  • catching Fn+F5, Fn+F6 brightness down/up. Looks like the module transforms it into ACPI event too
  • wireless switch on/off. auto mount and network scan of wlan0 device handled

Not observed yet

PM-utils

The standby button within Xubuntu menu is not working due to graphic artifacts after resume. A manual double console switch is a workaround. /etc/default/acpi-support configuration is not considered by bullshit pm-uitls. Direct call of /etc/acpi/sleep.sh is not working due to missing permissions.

Solution: Use pm-utils hook. File /etc/pm/sleep.d/11_my_post added that does the double console switch on resume.

#!/bin/bash
[ -f /etc/default/acpi-support ] || exit 0
. /etc/default/acpi-support
if [ x$DOUBLE_CONSOLE_SWITCH == x"true" ]
then
   case "$1" in
      resume)
         chvt 1
         chvt 7
      ;;
      *)
      ;;
   esac
fi
exit $?

Boot time

The boot time can be decreased. I don't use boot splash because it was removed from my grub config. But after “apt-get remove usplash” my boot time was reduced by 20 seconds. Don't ask me why.

http://tuxtraining.com/2008/09/28/how-to-make-ubuntu-extremely-fast/

Console Automoun

t

Install ivman and pmount. Will auto create /media/sdxx. Use pumount sdxx. When starting ivman as non-root ~/.ivman configuration files will be used (created automatically). Check ~/.ivman/IvmConfigBase.xml that the value for Option name=“fork” is value=“true”.

Problems

  • by default ivman daemon runs with user ivman: pumount is not possible by normal user update.rc -f remove ivman # disable boot time ivman start
  • start by user login: use /etc/profile or ~/.profile to start ivman. This ensure ivman daemon started with user access rights /etc/init.d/ivman start
  • disadvantage: daemon is still running after logout
  • patch /etc/init.d/ivman because $PIDFILE is not available if running as user
#before case starts
PIDDIRECTORY=`dirname $PIDFILE`
if [ ! -w $PIDDIRECTORY ]
then
PIDFILE="$HOME/.ivman/.lock" # use daemon created user lock file
fi
  • Xorg: locks like GUI umount conflicts with ivman because the /media/xxx directory can not be removed correctly

For this solution I don't know it is really needed to add the user into plugdev using “addgroup user plugdev”

Mouse double click

Change mouse behavior. There is slider for configuration of double click pixel distance. Use 10 instead of the default 5 is a good idea with vaio 1600×768 screen resolution.

WebCam

ToDo. It works after certain time but I don't know what I have done. I have played a little but but now “uvcvideo” works as expected using “cheese” for example. But I know that /dev/video0 was not available at first time of evaluation.

adduser “USER” video

Add current user into group=video. Reboot and check if /dev/video0 exists.

Fn hotkeys

ToDo Not working without running X. ACPI is depricated but no one knows howto configure hal/dbus. For me it looks like a big Xorg dependency.

BRIGHTNESS

psb video driver: /sys/class/backlight/psblvds/brightness

other: sudo find /sys /proc -name *brightness*

Display powersave

Console

save battery power in case of not using X. Place code into /etc/rc.local

for index in $(seq 1 8)
do

    setterm -blank 1 -powerdown 1 -powersave on > /dev/tty${index}
    # change console beep frequency and lengt
    # for example on Thinkpad I can not change the beep volume
    # independent of master sound out
    setterm -blength 25 -bfreq 500 > /dev/tty${index}

done

1 minute until display goes blank. 1 additional minute until it goes off. Don't try ”-powersave powerdown” it does not work because resume fails. Extend the settings to tty7 and 8 too because this prevents going off when using mplayer.

X

/etx/X11/xorg.conf Section “Monitor”

        Option          "DPMS"

Section “ServerLayout”: (times are in minutes)

        Option          "BlankTime"     "4"
        Option          "StandbyTime"   "0"
        Option          "SuspendTime"   "0"
        Option          "OffTime"       "5"

Wireless stuff

Install ifplugd, guessnet and wpa supplicant. The following settings avoids dhcp timeout of not connected cable for eth0 too. This is the reason why I have done it. If cable is connected it is used first.

/etc/default/ifplugd enable eth0 and wlan0 for INTERFACES and HOTPLUG_INTERFACES

/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicante
eapol_version=1
# 0: Der Treiber des Interfaces kümmert sich um das Scannen von Netzen und die AP-Auswahl.
# Dieser Modus sollte benutzt werden, wenn man eine Verschlüsselung auf ein Kabelnetzwerk legt.
# 1: wpa_supplicant kümmert sich um das Scannen von Netzen und die AP-Auswahl.
# 2: Fast wie 0, es wird aber mit Hilfe von Sicherheitsrichtlinien und der SSID zu APs verbunden (BSSID wird nicht unterstützt)
# Normalerweise funktioniert entweder Modus 1 oder Modus 2.
ap_scan=1

network={ # WPA2
    ssid="mySSID"
    id_str="wpa_home" 
    scan_ssid=1 			# essid not published by AP
    proto=RSN 
    key_mgmt=WPA-PSK 
    pairwise=TKIP
    group=TKIP 
    psk="myPassPhrase"
}

# unknwon wlan
network={
    ssid=""
    id_str="wpa_open"
    scan_ssid=1
    key_mgmt=NONE
}

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

auto lo wlan0
allow-hotplug eth0 wlan0
#####################################################
### Definition des Loopback-Interfaces ##############

iface lo inet loopback

#####################################################
### Definition der bekannten eth0-Umgebungen ########

mapping eth0
    script /usr/sbin/guessnet-ifupdown
    map cable_connect
    map default: cable_none
    map timeout: 3
    map verbose: true
    
iface cable_connect inet dhcp
iface cable_none inet dhcp
#####################################################
### Definition der bekannten wlan0-Umgebungen #######

iface wlan0 inet manual
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
    wpa-roam-default-iface wparoam_unknown
    wpa-mapping-script guessnet-ifupdown
    wpa-map default: wpa_open
    wpa-map0 wpa_home

iface wpa_home inet dhcp
  test1 wireless peer adress 192.168.1.1 mac MY_WIRELESS_MAC_ADR

iface wpa_open inet dhcp

iface eth0 inet dhcp

laptop-mode

ToDo The accu power looks a little bit low. Could be that the default configuration of laptop-mode is not well enough. Lets have a look to the EEE-PC config.

# battery life
# /etc/sysfs.conf
 devices/platform/*/BAT0/start_charge_thresh = 50
 devices/platform/*/BAT0/stop_charge_thresh = 90
#check /sys/devices/platform/*/BAT0

# disable wake on lan
ethtool -s eth0 wol d

# set 50% default brightness

http://www.thinkwiki.org/wiki/How_to_reduce_power_consumption

Slow hard disk

ToDo

hdparm -i /dev/sda

says udma2 only. It looks like a 33 cable P-ATA interface. I checked “idebus=66 ide0=ata66” kernel option without success.

hdparm -tT /dev/sda

says 400MB/sec cached reads and 23MB/sec buffered disk reads.

Check this to replace this slow 1,8” PATA hard disk. http://blog.trimper.net/

Xubuntu 10.04 LTS

Config Item Description xorg video driver load apt-get remove plymouth; avoid boot vga16fb load and conflict with xorg video driver; blacklist vga16fb in /etc/modprobe.d/blacklist.conf

resume from standby (i915) mv /usr/lib/pm-utils/defaults /etc/pm/config.d/; ADD_PARAMETERS=”–quirk-vbe-post”; DROP_PARAMETERS=”–quirk-s3–bios”

psb video driver backport/downgrade not possible. Why: fixed compile errors within psb-kernel-source and manual module build/install okay. Manual copy (open *.deb package and copy files to destination directories) of xserver-xorg-video-psb solves X load problem. But at the end xorg feature resVgaShared is used but not longer supported in 10.04 xserver. I have than tried to downgrade to 9.10 xserver but this will not work because all X11 inputs are handled via HAL and this is not available in 10.04. What a HELL.

I found an forum entry that psb will not supported within higher ubuntu versions. So I want to install 9.10 because the very slow graphic is a no go for this new ubuntu version.

vaio-p11z.txt · Last modified: 2015/05/17 17:44 (external edit)