Sony Vaio Z21VN/X
Installation OpenSuse 11.1
Author:
Eva Brucherseifer, eva.brucherseifer at basyskom.de
Matthias Welwarsky, matze at welwarsky.de (contributed most ACPI patches)
History:
2009/02/07 initial version
2009/02/08 added more information on ACPI/DSDT
2009/02/13 uploaded new version of sony_laptop.c for using Intel card only with Linux
2009/02/15 uploaded new version of sony_laptop.c
2009/02/27 update ALSA (see section „Sound on KDE 4.2“) and BIOS (see section „ACPI“)
2009/03/07 updated sony_laptop package to properly inform kernel about updated module
during install
2009/03/21 merged sony_laptop module with Matthew Garrett and Norbert Preinings port
(thanks!) and backported to Suse kernel. Tested and released as version 0.7
2009/03/22 added results on fingerprinting. Scanning works, but login doesn't.
2009/03/29 updated sony_laptop package to version 0.8/0.9
2009/05/17 released plasmoid (KDE desktop widget) for controlling rfkill switch devices from
the desktop. Version 0.5
–.downgrade of Vista to XP and operation in Stamina mode
in order to have only the onboard Intel graphics card available boot into XP every time before booting/installing Linux
–.4G swap instead of 2G to allow full suspend to disk (laptop has 4G ram and this is being written to swap partition)
–.Base Installation
–.Camera (tested using skype)
–.Wifi
–.SD card reader
–.suspend-to-ram
–.suspend-to-disk
–.battery charging scheme: Windows setting is being used (e.g. loading up to 80%)
–.bluetooth (tested with kbluetooth4 from KDE 4.2)
–.Diplay
select 1600x900
xinerama mode for external display
–.deinstalled compiz completely (all related packages), as KDE doesn't need compiz
–.update to KDE 4.2 (factory)
–.enable KDE desktop effects: only work, if DRI works (only with Intel card fully enabled)
–.mouse accelaration 5x
–.krandr: doesn't fully work, use xrandr on command line
–.headphones, mute speakers: worked with kmix (full window), even though things are a bit awkward
There is a kernel module sony-laptop, which is being loaded automatically on OpenSUSE 11.1. The ACPI seems to be different to other models, so it's not sure it makes a difference at all.
Some things work out of the box, e.g. battery monitoring, speaker control through Fn-keys. This also works without the module being loaded.
The DSDT can be downloaded here: http://www.basyskom.org/~eva/VGN-Z21VN_X-R2140M3.dsdt.tar
DSDT after BIOS update (2009/02/27): http://www.basyskom.org/~eva/VGN-Z21VN_X-R2164M3.dsdt.tar
The DSDT also contains the SNY5001 and SNY6001 sections, but they still don't work with the sony_laptop module, even though it should support it. Maybe it is another revision or so. More information on the sony_laptop module: http://www.linux.it/~malattia/wiki/index.php/Sony-laptop and http://tjworld.net/snc/
Sony's DSDT is changed significantly different from previous models, probably to enable special hardware support e.g. for the graphics card switching, enabling/disabling the 3G module and more. Any further input here is welcome.
We have modified the sony-laptop kernel module to support some more ACPI functions.
Disclaimer: This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Latest for download:
sony-laptop-zseries-0.9.tar.bz2
Change Log:
0.1 | '2009/02/07 | Add support for switching on/off 3G module Initialize ECON variable (DSDT behaves different if !=0), maybe not necessary | |
0.2 | '2009/02/08 | Merged version from http://hanzubon.jp/tmp/VGN-Z90S/sony-laptop.c | |
0.3 | '2009/02/13 | Operating Linux in Stamina Mode ONLY WARNING! Switching to Speed Mode by booting into XP is NOT possible after having booted with this module version. | |
0.4 | '2009/02/13 | Removed patch from hanzubon (version 0.2) again, as we don't see any change and one user reported a kernel oops which probably happens because of type5 stuff in the patch | |
0.5 | '2009/02/15 | Added sysfs access to switch speed/stamina and module parameter. Also added better support for suspend. | |
0.6 | '2009/03/07 | Fixed Makefile to properly call depmod during install, so that kernel is informed about updated sony-laptop module. Otherwise it is not being loaded by modprobe at boot time. | |
0.7 | '2009/03/21 | Merged with …. - wwan/bluetooth/wifi on by default (when loading module) - wirdless switch correctly turns on/off wifi/umts/bluetooth (unloading umts takes about 1 minute) - turning off nvidia card works, but cannot turned on (unchanged) - buttons recognized (tested with acpi_listen): stamina/speed switch. All other buttons (S1/S2/eject/Fn keys) generate an acpi event, but the same for all unfortunately. | |
0.8 | '2009/03/29 | - Integrated support for kernel versions 2.6.27 to 2.6.29 - if you load the module with speed_stamina=3 the acpi graphics card settings are not being touched. This is usefull if you want to run nvidia xp settings. | |
0.9 | '2009/03/29 | - fixed acpi event for speed/stamina switch |
Installation:
–.install kernel sources and syms and make it ready for compilation, e.g.
follow the instructions in /usr/src/linux/README.SUSE
–.unpack the source archive and change to the directory
–.compile:
make
–.load the driver to test it with debug ouput and check the result with dmesg:
make test
–.install to your system:
make install
–.you can also uninstall the module from your system:
make uninstall
Description of new Features:
–.rfkill support
from version 0.7 Matthew Garrett's code adds rfkill support to the module. It adds the following function:
* switch on/off of all wireless hardware using the hardware switch in the front of the laptop: wifi/wwan/bluethooth. This is not done by the driver, but somewhere in the system
* the devices are represented in the rfkill system:
/sys/class/rfkill/
The numbering varies, so you need to check the names in the file „name“ in each directory. Names are:
sony-wifi
sony-bluetooth
sony-wwan
5100AGN – represents the hardware switch, status is 1 or 2
hso-0 – comes with sony-wwan, can be ignored
* the hardware can be turned off/off by (with hw switch turned on!!) using the following device nodes. Check the file „name“ in each directory.
just write 0 (off) or 1 (on) to the state file, e.g.:
echo 1 > /sys/class/rfkill/rfkill2/state
See also killswitch plasmoid to control rfkill devices with an UI.
–.Custom/Function Keys
use acpi_listen to see acpi events for buttons
use xev to sey key input events
–.Stamina / Speed Mode
The mode can be switched through sysfs:
echo stamina > /sys/devices/platform/sony-laptop/speed_stamina
echo speed > /sys/devices/platform/sony-laptop/speed_stamina
Make sure you have no X server running while doing this, as X will break.
The drivers starts in stamina mode as default. This can be changed by a parameter, to startup in speed mode:
insmod sony-laptop speed_stamina=1
The initialisation of the Nvidia card is complete and turning it on, doesn't work. Loading such a module at boot time might break your linux installation (or at least making it impossible to start up the X server).
Unfortunately the PCI system doesn't really recognize the change and still shows the 00:02.0 Intel graphics controller and the 01:00.0 Nvidia graphics controller, but not the 00:02.1 Intel card. So if you use scripts to switch your X.org config, this will break.
If you load the module with speed_stamina=3 the acpi graphics card settings are not being touched. This is usefull if you want to run nvidia xp settings.
Documentation of recognized values for speed_stamina:
stamina switches off nvidia card
speed switches on nvidia card, but setup is incomplete (for testing only!)
3 doesn't touch settings (usefull for using xp settings at startup)
For more implementation details see http://thinkfat.blogspot.com/
Old Stuff:
–.Switching on/off 3G module
you can now switch on and off the device:
echo 0 > /sys/devices/platform/sony-laptop/snc_wwanpower
=> turn module off
echo 1 > /sys/devices/platform/sony-laptop/snc_wwanpower
=> turn module on
The switched on device is then evailable as USB device (test with lsusb):
Bus 003 Device 009: ID 0af0:6911 Option
Currenty the 3G module is turned off by default to save battery. You can change this behaviour by uncommenting the 3G init section in sony_nc_add function.
–.Contribution from http://hanzubon.jp/tmp/VGN-Z90S/sony-laptop.c
I couldn't see any difference though. Any hint on how to test it? Removed it again.
/sys/class/backlight/sony/brightness doesn't work
Fn keys don't work
Disconnect external monitor, then:
# xrandr --newmode "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
# xrandr --addmode VGA "1024x768_60.00"
# xrandr --output VGA
# xrandr --output VGA --mode "1024x768_60.00"
tried to add this line to monitor definition in xorg.conf, but it didn't help:
ModeLine "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
If you use KDE 4.2 with workspaces and xinerama mode you can use the external LCD in a very nice manner as a seperate desktop. This hides your private desktop during presentations.
Comment: 2009/05/17 Didn't work when trying this week – maybe not all projectors work out of the box, or something has changed because of updates.
sudo setpci -s 00:02.0 F4.B=00 ----> zero bright
sudo setpci -s 00:02.0 F4.B=FF ----> max bright
–.in yast:
–.set "model" to "sony-assamd"
–.disable pulseaudio
–.update of ALSA (2009/02/21)
follow procedures as described here: http://en.opensuse.org/Alsa-update
now there is a beep device, which even works
–.in KDE:
–.open settings
–.select gstreamer as backend for phonon (xine doesn't work properly over here)
–.update amarok to version >= 2.0
Type: Option GTM 378
Issues, when trying it out of the box:
–.umts device is turned off, thus it is visible as USB device
–.once it is switched on, both hso and option drivers are being loaded
–.umtsmon doesn't support the device fully
also see: http://markmail.org/message/s7y4letfedskh6qn?q=Sony+z11&page=2
Steps to make it work with HSOconnect from http://www.pharscape.org/:
–.turn on device:
load sony-laptop.c as provided above
3G device is turned on by default. Follow instructions above to turn off/on
The switched on device is available as USB device (test with lsusb):
Bus 003 Device 009: ID 0af0:6911 Option
–.make sure you have udev installed (usually your distro already has udev)
–.blacklist option module as described in README of udev
–.hsolinkcontrol
download from http://www.pharscape.org/hsolinkcontrol.html
install rpm package
manually execute (because post install script fails):
chmod +s /usr/bin/hsolinkcontrol
–.hsoconnect
download from http://www.pharscape.org/HSOconnect.html
tested with hsoconnect-py2.5-1.1.83-2.noarch.rpm
force install of hsoconnect (because pyhton 2.6 is installed instead of 2.5)
rpm -Uvh hso.... --nodeps
manually make it work:
cp -a /usr/lib/python2.5/site-packages/hsoc /usr/lib/python2.6/site-packages
create executable file /usr/bin/hsoc with the following content:
import hsoc
ret = hsoc.HSOconnect.run()
if ret != None:
print ret
configure hsoconnect with your profile (ADN=internet.t-mobile, login: tm, password: tm)
–.now you can execute hso as user and connect to the internet :-)
Other Notes:
–.
–.umtsmon: doesn't work atm
Problem 1: version 0.9.51 doesn't find HSO devices =>
umtsmon -s /dev/ttyHS0 (or by adapting the config file of umtsmon)
Problem 2: umtsmon doesn't support the right AT commands
sources from CVS seem to have some support for option devices, but it is rather unstable (tested feb 8, 2009)
maybe test again with next released version
but: umtsmon uses ppp, which eventually slows down UMTS
tests with another 3G stick (T-Mobile IV) also reveiled issues with OpenSUSE 11.1 & umtsmon setting DNS, so there might be more issues ahead
–.usb_modeswitch: not required
–.NetworkManager (KDE3/4): didn't work for me
TouchStrip, device is there on usb bus 147e:1000
–.Step 1: make hardware work
( based on http://rvshiro.wordpress.com/2009/01/14/fingerprinting-under-ubuntu-810-on-asus-n10jc/ and http://www.n-view.net/Appliance//fingerprint/downloads.php)
–.* Install libfprint0 from distro (including opensuse yast module, etc)
* download and install libfakekey from here:
http://matchbox-project.org/sources/libfakekey/0.1/
* comment: you have to compile fingerprintgui as root. On opensuse you have to add /usr/local/lib to LD_LIBRARY_PATH in order to make this work
* comment: the upek library is contained in the fingerprint sources, so you don't have to download seperately
* created an udev rules file to get right permissions (requires reboot). Download 99-fingerprint.rules and move to /etc/udev/rules.d
* call fingerprintGUI and use the fingerprint scanner
Comments:
–.yast module doesn't recognize any fingerprint scanners
If you update OpenOffice.org for OpenSUSE, make sure you remove all rpm packages with original 3.0.0.9 revision. This is mostly the extensions you'll lose. But otherwise OpenOffice will not start because of „fatal error“.
This KDE plasmoid controls rfkill devices from the desktop. The plasmoid is generic, so it can be used on any hardware for controlling any rfkill devices.
Available for download from here:
plasmoid-applet-killswitch-0.5.1.tar.bz2
Current Features:
- show killswitch (rfkill) devices and their states, uses killswitch api through HAL
- checkbox to turn devices off/on
- checkbox disabled when hardware button has them disabled
- config dialog: selection of devices to show
- config dialog: change order of devices
Known Issues:
- layout issues (tested with KDE 4.2, Qt 4.4)
Installation from Sources
- you need to have devel packages installed for Qt and kdelibs
- call ./build.sh and ./install.sh
- call ./test.sh to test the applet
- add the widget to plasma (search for „killswitch“)
Installation as binary (tested for OpenSuse 11.1, KDE 4.2)
- call ./install.sh
–.switching of graphics cards
see ACPI section
–.properly integrate brightness and other Fn keys
–.mic: doesn't work at all
maybe try this one: http://ubuntuforums.org/showthread.php?t=1043352&highlight=vaio+z&page=2
options snd-hda-intel model=vaio-options, currently I am using model=sony-assamd
maybe also try alsamixer
could also be an ACPI function to switch on/off
–.music CDs:
there was an issue with CDs in general with plain opensuse 11.1 install. This was fixed with an update. Music CDs can now accessed by using the audiocd:/ ioslave in konqueror, but they still don't show up as new device
might be a KDE4 problem though, maybe test using KDE3
- properly integrate Fn buttons, which are supported since sony-laptop-zseries-0.8:
brightness, externalLCD, zoom, sleep, S1, S2, eject
- power button works correctly and inititates logout in KDE 4.2
–.Standard behaviour:
–.the batteries are empty rather fast (2 hours)
–.with updated acpi module (see above) there are reports with power consumption going down to 10-13W
–.fans are on most of the time
Things that break when suspend to ram on opensuse:
- touchpad scrolling doesn't work anymore
- rfkill switch off => add proper initialization to sony-laptop module
TouchStrip, device is there on usb bus 147e:1000
–.Installed libfprint0 from distro (including opensuse yast module, etc).
libfprint doesn't find the usb device, same with manually compiled source
open("/dev/bus/usb/001/003", O_RDWR) = 3
ioctl(3, USBDEVFS_IOCTL, 0xbfa2f6fc) = -1 ENOTTY (Inappropriate ioctlfor device)
Maybe TPM needs to be taken into operation on XP?
Or its because this might be an unsupported 2nd generation chip
–.todo: use fingerprint as login method
also see http://www.n-view.net/Appliance//fingerprint/Install-step-by-step.pdf
Created common-auth-fingerprint with settings given in the guide.
In /etc/pam.d/su using common-auth-fingerprint instead of common-auth.
When doing su to the user then the right module is acutally being called, but there is a display issue, so that the widget is not being shown.
Also I haven't found a way to adapt kcheckpass.
I haven't tried kdm, as I have an encrypted home dir and using fingerprints spoils that security concept.
–.DVD burning
–.memory stick
–.HDMI
–.i.Link
–.Firewire
–.Modem
lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
# this one only shows up with Nvidia card disabled and Intel graphics enabled
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 9300M GS (rev a1)
06:00.0 Network controller: Intel Corporation Wireless WiFi Link 5100
0b:04.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
0b:04.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
0b:04.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
0b:04.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
lsusb
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# Camera
Bus 004 Device 003: ID 05ca:18b0 Ricoh Co., Ltd
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# Bluetooth?
Bus 007 Device 002: ID 044e:3017 Alps Electric Co., Ltd
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
# TouchStrip device
Bus 001 Device 003: ID 147e:1000
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
# 3G modem
Bus 002 Device 006: ID 0af0:6911 Option
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
https://launchpad.net/~sony-vaio-z-series
Vaio Z Meine Erfahrungen mit dem Vaio Z21 - Seite 10 - Notebookforum
Sony Vaio Z11 - Seite 4 - Notebookjournal.de - Forum
Problems with 9300M GS on Sony Vaio Z11 - nV News Forums
Official VAIO Z Series Owners Thread - Page 521 - Notebook Forums and Laptop Discussion
Vaio Z Sony Vaio Z11 WN/B - Eindrücke - Seite 20 - Notebookforum
Sony Vaio Z11 - Seite 3 - Notebookjournal.de - Forum
Ubuntu Forums - Threads Tagged with vaio z11
Linux on Sony Vaio Laptops & Notebooks
Vaio Z Sony Vaio Z11 WN/B - Eindrücke - Seite 18 - Notebookforum
Sony Z11 › Forum › ubuntuusers.de
LINUX • openSUSE - openSUSE 11 auf Sony Vaio Z mit 2 Grafikkarten
Configuracion Sony Vaio VGN-Z11 UBUNTU-8
[ubuntu] ubuntu intrepid on sony vaio z11wn - Ubuntu Forums
[ubuntu] ubuntu intrepid on sony vaio z11wn Hardware & Laptops
[ubuntu] Problem with GeForce 9300GS - Page 3 - Ubuntu Forums
Page 3-[ubuntu] Problem with GeForce 9300GS Hardware & Laptops
NVIDIA Pioneers New Hybrid Graphics In Notebooks From Sony, Fujitsu Siemens, And Benq
LINUX • openSUSE - openSUSE 11 auf Sony Vaio Z mit 2 Grafikkarten
openSUSE - openSUSE 11 auf Sony Vaio Z mit 2 Grafikkarten
Problems with 9300M GS on Sony Vaio Z11 - Page 2 - nV News Forums
Page 2- Problems with 9300M GS on Sony Vaio Z11 NVIDIA Linux
Sony Notebook Control ACPI support
Calling all Vaio owners - Ubuntu Forums
Calling all Vaio owners Hardware & Laptops
My discoveries on Vaio Z’s Hybrid Graphics - Notebook Forums and Laptop Discussion
My discoveries on Vaio Z’s Hybrid Graphics Sony
PHARscape | 404 - Document Not Found
Fedora 10 Cambridge on a Sony Vaio VGN-Z11WN/B (VGN-Z550N/B)
Search results for HSC3 DSDT Sony - MarkMail
Re: usb device not showing up - Norbert Preining - org.kernel.vger.linux-usb - MarkMail
Bug #256296 in linux (Ubuntu): “USB id 0af0:6911 should use hso and not 'option' driver”