- When everything started for me -- Linux and I -- Useful scripts -- Computer bugs -- Links -

- Introduction -- Tips and tricks -- Scripts -- Linux on a Sony Vaio PCG-SR11K laptop -

Sony Vaio PCG-SR11K laptop and Linux

Manufacturer specifications

Processor Mobile Intel Pentium III (Coppermine) processor featuring Intel SpeedStep technology 600 Mhz, L2 cache memory 256 KB (on die)

Motherboard Chipset Intel 440ZX

Memory 64 MB (upgradeable to 256 MB)

Hard disk drive 10 GB

Video Chipset S3 Savage IX, Video Memory 8 MB SGRAM, Display 10.4" TFT XGA 1024x768

Sound Yamaha YMF754B-R, 16-bit CD-quality stereo sound

Ports on unit: 1 PC Card Slot(s) PCMCIA type I or II (Cardbus support), 4 pins i.Link port (Firewire IEEE1394), MemoryStick slot, 1 USB 1.0 port, Headphones out, Microphone in, Line in, Display Adapter PCGA-DA1S

Modem: built-in modem V.90/K56Flex (56kbps) data/fax modem

Keyboard 87 keys Hotkeys

Special buttons JogDial

Mouse: Alps GlidePoint

AC Adapter PCGA-AC16V, Battery PCGA-BP2S Dimensions (W x H x D) 259mm x 32.1mm x 209 mm

Weight 1360 g

Supplied accessories AC Adapter (PCGA-AC16V), Battery (PCGA-BP2S), Display Adapter (PCGA-DA1S), CD drive (PCGA-CD51A), Phone cable, Phone plug, Power cable, Documentation,

Initially featured operating system: Windows 2000 Professionnal with bundled software (restore CD), most of which is from Sony: audio, video and laptop management (BIOS settings, battery, speedstep, screen brightness, jogdial)

Technical specifications (lspci -tv)

-+-[02]---00.0 Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ \-[00]-+-00.0 Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge +-01.0-[01]----00.0 S3 Inc. 86C270-294 Savage/IX-MV +-07.0 Intel Corp. 82371AB/EB/MB PIIX4 ISA +-07.1 Intel Corp. 82371AB/EB/MB PIIX4 IDE +-07.2 Intel Corp. 82371AB/EB/MB PIIX4 USB +-07.3 Intel Corp. 82371AB/EB/MB PIIX4 ACPI +-08.0 Sony Corporation CXD3222 i.LINK Controller +-09.0 Yamaha Corporation YMF-754 [DS-1E Audio Controller] +-0a.0 Conexant HSF 56k Data/Fax Modem (Mob WorldW SmartDAA) \-0c.0 Ricoh Co Ltd RL5c475

et en version détaillée (lspci -v) :

00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03) Subsystem: Sony Corporation: Unknown device 8092 Flags: bus master, medium devsel, latency 64 Memory at 40000000 (32-bit, prefetchable) [size=16M] Capabilities: [a0] AGP version 1.0 00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode]) Flags: bus master, 66Mhz, medium devsel, latency 128 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64 Memory behind bridge: f0000000-f7ffffff 00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02) Flags: bus master, medium devsel, latency 0 00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master]) Flags: bus master, medium devsel, latency 64 I/O ports at fcf0 [size=16] 00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI]) Flags: bus master, medium devsel, latency 64, IRQ 9 I/O ports at fcc0 [size=32] 00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 03) Flags: medium devsel, IRQ 9 00:08.0 FireWire (IEEE 1394): Sony Corporation CXD3222 i.LINK Controller (rev 02) (prog-if 10 [OHCI]) Subsystem: Sony Corporation: Unknown device 8095 Flags: bus master, medium devsel, latency 64, IRQ 9 Memory at fedff000 (32-bit, non-prefetchable) [size=2K] Memory at fedffc00 (32-bit, non-prefetchable) [size=512] Expansion ROM at <unassigned> [disabled] [size=64K] Capabilities: [dc] Power Management version 1 00:09.0 Multimedia audio controller: Yamaha Corporation YMF-754 [DS-1E Audio Controller] Subsystem: Sony Corporation: Unknown device 8096 Flags: bus master, medium devsel, latency 64, IRQ 9 Memory at fedf0000 (32-bit, non-prefetchable) [size=32K] I/O ports at fc40 [size=64] I/O ports at fcec [size=4] Capabilities: [50] Power Management version 1 00:0a.0 Communication controller: Conexant HSF 56k Data/Fax Modem (Mob WorldW SmartDAA) (rev 01) Subsystem: Sony Corporation Modem Flags: medium devsel, IRQ 9 Memory at fede0000 (32-bit, non-prefetchable) [disabled] [size=64K] I/O ports at fce0 [disabled] [size=8] Capabilities: [40] Power Management version 2 00:0c.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80) Subsystem: Sony Corporation: Unknown device 8094 Flags: bus master, medium devsel, latency 168, IRQ 9 Memory at 10000000 (32-bit, non-prefetchable) [size=4K] Bus: primary=00, secondary=02, subordinate=05, sec-latency=176 Memory window 0: 10400000-107ff000 (prefetchable) Memory window 1: 10800000-10bff000 I/O window 0: 00004000-000040ff I/O window 1: 00004400-000044ff 16-bit legacy interface ports at 0001 01:00.0 VGA compatible controller: S3 Inc. 86C270-294 Savage/IX-MV (rev 11) (prog-if 00 [VGA]) Subsystem: Sony Corporation: Unknown device 80c9 Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 9 Memory at f0000000 (32-bit, non-prefetchable) [size=128M] Expansion ROM at <unassigned> [disabled] [size=64K] Capabilities: [dc] Power Management version 1 Capabilities: [80] AGP version 1.0 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) Subsystem: CNet Technology Inc: Unknown device 5041 Flags: bus master, medium devsel, latency 64, IRQ 9 I/O ports at 4000 [size=256] Memory at 10800000 (32-bit, non-prefetchable) [size=512] Capabilities: [50] Power Management version 2


What works

What should work

What doesn't work


Base install using PCGA-CD51A CD drive

This slim notebook came with Windows 2000 preinstalled, and a system restore CD. Since I own it since November 2000 I wanted to see how much linux-compatible it was. Anyway, linux works better than Windows with 128 MB of RAM (I added 64 MB when I bought it).

I decided to install Debian, since it's a distro I am familiar with, and really like. I first tried to boot Knoppix 3.2 with the PCMCIA CD drive, adding ide2=0x180 boot parameter. It didn't work. OK, let's go directly to Debian install with Woody CD1... It installed fine with boot: linux bf24 ide2=0x180 boot parameter.

As soon as base system was installed, I upgraded it to testing. 256 MB of swap are sufficient.

I regularly updated kernel version, I will then indicate which version applies. Installation started with a 2.6.4 kernel.

It's a bit sad to say, althought this laptop works under linux, too many functions are unavailable for now, thus dropping my satisfaction note to 6/10. This is Sony and Intel's fault, because they don't release specs for open source developers to work. Thus I really miss :

One looses a lot of connectivity. Let's see the details of my tests.

Use of USB floppy drive

Kernel must have support of USB, USB mass storage, SCSI, SCSI emulation, SCSI disk and CD-ROM.

CONFIG_SCSI=y CONFIG_SCSI_PROC_FS=y CONFIG_BLK_DEV_SD=m CONFIG_BLK_DEV_SR=m CONFIG_CHR_DEV_SG=m

This way, most of SCSI emulated USB devices will work. USB driver is of type UHCI (USB 1.0).

Floppy drive is detected as sdb :

barbara@viz:/$cat /var/log/messages Mar 15 15:55:11 viz kernel: usb 1-1: new full speed USB device using address 3 Mar 15 15:55:11 viz kernel: scsi1 : SCSI emulation for USB Mass Storage devices Mar 15 15:55:11 viz kernel: Vendor: TEAC Model: FD-05PUB Rev: 1026 Mar 15 15:55:11 viz kernel: Type: Direct-Access ANSI SCSI revision: 02 Mar 15 15:55:11 viz kernel: Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0

Video : S3 Savage IX

2.4.18-bf24 kernel worked fine and I could have a framebuffer. With 2.6 kernel I could not get framebuffer back, but anyway always work in graphical mode, with a light desktop manager such as XFCE4.

CONFIG_FB=y CONFIG_FB_VGA16=m CONFIG_FB_VESA=y CONFIG_VIDEO_SELECT=y CONFIG_VGA_CONSOLE=y CONFIG_FRAMEBUFFER_CONSOLE=m CONFIG_FONT_8x8=y CONFIG_FONT_8x16=y CONFIG_LOGO=y CONFIG_LOGO_LINUX_MONO=y CONFIG_LOGO_LINUX_VGA16=y CONFIG_LOGO_LINUX_CLUT224=y

I use XFree 4.3. xdpyinfo | grep DRI outputs nothing. Indeed there is no DRI module for this card in kernel...

glxgears gives a not so high but sufficient rate for video playback :

barbara@viz:~$ glxgears 481 frames in 6.0 seconds = 80.167 FPS 420 frames in 5.0 seconds = 84.000 FPS 420 frames in 6.0 seconds = 70.000 FPS 420 frames in 5.0 seconds = 84.000 FPS 420 frames in 6.0 seconds = 70.000 FPS 420 frames in 6.0 seconds = 70.000 FPS 420 frames in 6.0 seconds = 70.000 FPS

To adjust screen brightness I installed the spicctrl package. Please look at "keyboard, hotkeys, jodial" for details of configuration. Unfortunately results are buggy : brightness switches from 255 to 0 and nothing else. It gets back to 255 when rebooting. I didn't try with a more recent than 2.6.4 kernel..

External screen connected to display adapter didn't work at first (2.6.4 kernel) when I played with spicctrl: a signal was sent to the screen to power it on but it wasn't a picture. When I tried to plug in at boot the adapter using 2.6.12 and above kernel, I successfully could get a clone image. I didn't play again with spicctrl since 2.6.4 kernel though.

I use 1024*768 with 24-bit color native resolution. However vesa driver is preferable since picture fills the whole screen, contrary to what shows up when using savage driver.

Section "Device" Identifier "Generic Video Card" Driver "vesa" EndSection Section "Monitor" Identifier "Generic Monitor" HorizSync 28-49 VertRefresh 43-72 Option "DPMS" EndSection Section "Screen" Identifier "Default Screen" Device "Generic Video Card" Monitor "Generic Monitor" DefaultDepth 24 SubSection "Display" Depth 1 Modes "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 4 Modes "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 8 Modes "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 15 Modes "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 16 Modes "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection EndSection

Sound : Yamaha YMF754B-R

Sound works perfectly with ALSA (apt-get install alsa-base alsa-utils) and ymfpci driver (PCI: Yamaha YMF724/740/744/754 when launching dpkg-reconfigure alsa-base).

However, one should rather mute the laptop's microphone or would get a buzzy larsen effect. This didn't happen with Windows. Volume should not be pushed to the max or sound would get distorted (as with Windows).

Touchpad Alps GlidePoint

It uses a PS/2 interface. Excerpt from /etc/X11/XF86Config-4 :

Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/psaux" Option "Protocol" "PS/2" Option "Emulate3Buttons" "true" Option "ZAxisMapping" "4 5" EndSection

However, my setup for a Alps Glidepoint touchpad isn't optimal : I don't have "side scrollbar". In fact, the configuration must be adapted from the default Synaptics provided section.

Keyboard, hotkeys, jogdial

Basic configuration is "pc104" with "fr" layout.

To be able to use Fn key and jogdial, the kernel should have : CONFIG_SONYPI=m.

When installing spicctrl package there is log to determine which device will be used: /dev/sonypi à créer :

viz:/home/barbara$ cat /var/log/messages Mar 15 21:09:07 viz kernel: sonypi: Sony Programmable I/O Controller Driver v1.21. Mar 15 21:09:07 viz kernel: sonypi: detected type1 model, verbose = 0, fnkeyinit = off, camera = off, compat = off, mask = 0xffffffff, useinput = on Mar 15 21:09:07 viz kernel: sonypi: enabled at irq=11, port1=0x10c0, port2=0x10c4 Mar 15 21:09:07 viz kernel: sonypi: device allocated minor is 63 Mar 15 21:09:07 viz kernel: Sony VAIO Jog Dial installed.

This device has to be created. For me it has minor 63:

mknod /dev/sonypi c 10 63

Let's also add the aliases:

alias char-major-10-63 sonypi options sonypi minor=63

If you have a 2.4 kernel, the file to edit is /etc/modutils/aliases, and for a 2.6 kernel it is /etc/modprobe.d/aliases. Then you have to launch update-modules. This updates /etc/modules.conf (2.4 kernel) or /lib/modules/modprobe.conf (2.6 kernel) which is used as an include by /etc/modprobe.conf. Modules management packages are respectively modutils and module-init-tools.

Fn key doesn't seem to work.

To use jogdial I installed rsjog package, which is written in ruby language, but when I launch it nothing happens and moving or pressing the jogdial is uneffective. Indeed I have to install "jogdiald" (link at bottom of this page) but unfortunately it won't compile with a 2.6.4 kernel and XFree 4.3 (error when compiling joggui.o)... I didn't try later.

PCMCIA (network) cards

It works flawlessly, as long as you have pcmcia-cs package and right module for the card installed. However I was surprised that woody installer asked me whether I wanted to remove this package, because it thought it wasn't in use.

Memorystick reader

As the floppy drive tested above, this USB device is accessed through SCSI commands. Thus you must have USB mass storage, SCSI support, SCSI emulation, SCSI disk compiled in your kernel. Device node is /dev/sda1.

Firewire

I couldn't test it because I don't have any firewire device to connect to, but it is very likely to work, especially with a 2.6 kernel. It's detected as secondary network interface.

56k modem (conexant)

I tested last free driver for this kind of modem, but modem wasn't detected when playing with pppconf. I didn't test commercial driver from linuxant.com. Haven\t tried again since 2004 since I have a working winmodem on another machine.

ACPI, battery

My battery is almost dead (it can stay on battery for 15 minutes with an idle CPU), so I couldn't test ACPI, but verified that spicctrl correctly detects whether AC adapter is plugged in or not.

Speedstep

cpuid shows :

Vendor ID: "GenuineIntel"; CPUID level 2 Intel-specific functions: Version 00000683: Type 0 - Original OEM Family 6 - Pentium Pro Model 8 - Pentium III/Pentium III Xeon - internal L2 cache Stepping 3 Reserved 0 Brand index: 2 [Pentium III processor]

Unfortunately, for many years ( http://www.ussg.iu.edu/hypermail/linux/kernel/0304.0/0222.html) there is still no support of cpufreq for Coppermine Pentium III-M on Intel 440BX/ZX/DX chipset. Another sad news !

As a consequence, there is no /sys/devices/system/cpu/cpu0/cpufreq directory.


Useful links

Sony Programmable I/O Control device driver

Vaio tools : jogdiald

cpudyn FAQ

Linux Compatible

TuxMobil - Linux on Laptops, PDAs and mobile Phones

Linux On Laptops


By Barbara Post, with help from Nicolas Lassalle (first installation and proof-reading). Last update February 2006. Text under GPL version 2 and later licence.