Thursday, June 5, 2008

Ubuntu Hardy Heron on a Sony Vaio VGN-FZ31E

REACT! 
This aricle probably also applies to:
  • VGN-FZ38M



Yeap I bought it. I though that since it had an NVidia card and it was Centrino based etc it wouldn't have any incompatibilities with Linux. (aaaargh if I only knew...) Anyway.

The laptop came with Vista. I was going to keep them for a week or so just to make sure I don't miss any of the Sony specific programs that was preinstalled. Well I couldn't bare them for more than 24 hours. I made some factory restore CDs and repartitioned the whole drive which now only has Ubuntu installed in it.

What worked out of the box:

The SD/MS reader (104c:803b). It works out of the box with SD cards but the MS PRO slot doesn't work for me and I have found no way to make it work.

Graphics Card (10de:0426): The NVidia GeForce 8400 GT worked perfectly with the closed source drivers that Ubuntu installed. The temperature sensor works OK too.
Nevertheless I recreated the xorg.conf (for no specific reason). Here is the new one.

DVD-Drive (PIONEER DVD-RW DVRKD08): It works OK. I recorded a data DVD with Brasero (for some reason it couldn't verify the burned disk afterwards but it worked perfectly). I also installed Diablo 2 through Wine. The CD protection of Diablo 2 works OK and recognizes the original CD.

CPU (Intel(R) Core(TM)2 Duo CPU T5450 @ 1.66GHz): Both cores are recognized and the temperature sensors work OK. The same goes for frequency scaling.

Wireless and LAN (8086:4229 and 11ab:4351): They both work perfectly right out of the box.

What didn't work out of the box but works with some tricks. Before trying the tricks enable the extra repositories (universe, multiverse etc) from System->Administration->Software sources).

Camera (05ca:183b): HAL loads a wrong module for the camera that in addition to not working, makes the laptop crash when you try to suspend it. So you must remove the misbehaving module from the kernel and prohibit reloading it.

  1. Type the following in a console (you can find the console in Applications->Accessories->Terminal):

    sudo gedit /etc/pm/config.d/unload_modules

    Give your password and then copy and paste the following line at the end of the file:

    SUSPEND_MODULES=uvcvideo


    Save the file and close the text editor.

  2. To download the r5u870 drive you will need svn, so in a console type:

    sudo apt-get install subversion

    (answer yes to any questions you may encounter)

  3. To download the source of the driver, type in the console:

    svn co http://svn.mediati.org/svn/r5u870/trunk r5u870

  4. Now that all files are downloaded go into their directory by typing:

    cd r5u870

  5. Install the build-essential package before trying to compile the drivers by typing:

    sudo apt-get install build-essential

  6. Compile the driver by typing:

    make

  7. and then install the driver by typing:

    sudo make install

  8. Now instead of restarting you may just load the module into the kernel by typing:

    sudo modprobe r5u870

    When you reach this point the camera will only work with some applications like Skype.


    If you open Cheese (a very nice application for capturing video and still pictures from your camera, install it by typing sudo apt-get install cheese) you will notice that it doesn't recognize your camera. That's because the system doesn't recognize it as a Video4Linux camera.

  9. To fix this you will have to download this file and copy it to /usr/share/hal/fdi/information/20thirdparty . If you don't know how to do this just type the following two lines in the console:

    cd /usr/share/hal/fdi/information/20thirdparty
    sudo wget http://students.ceid.upatras.gr/~asimakis/10-r5u870-webcam.fdi

  10. Now either restart you computer or execute this in the console:
    sudo /etc/init.d/hal restart

    Now you should have a perfectly working camera! Oh, you may now delete the sources by typing:

    sudo rm -r ~/r5u870


Sleep and Hibernate
: They don't work initially. The computers go to sleep but when awaken it stays in a black screen. Fixing the camera will fix this problem too. :-)

Sound Card (8086:284b)
: Well, playback worked out of the box but when opening the sound options there were no recording controls and the sound was coming out only through the builtin speakers, plugging in headphones changed nothing. To fix all these problems follow these simple steps:

  1. Optional step. I suggest that you don't use Pulseaudio because I found it a bit buggy. To switch back to ALSA go to System->Preferences->Sound and change everything to ALSA.

  2. Type the following in a console:

    echo "options snd-hda-intel model=vaio" sudo tee -a /etc/modprobe.d/snd-hda-intel

  3. Restart you computer.

  4. Open the sound controls by clicking the sound icon next to the clock.

  5. Select File->Change Device->HDA Intel (Alsa mixer)

  6. Then goto Edit->Preferences and select everything.


  7. Play around with the controls. Don't forget to look at all three tabs (in the third tab you will find the record selection switches: Internal Mic, PCM, Mic Jack)

Bluetooth (044e:3010): It is properly recognized by the system but it will not work. Here is a way to fix it:

  1. In a console type:

    sudo gedit /etc/rc.local

  2. Now append the following line before the exit command (if there is one) near the end of the file:

    hciconfig hci0 reset

  3. Now save the file and close gedit.

This way the bluetooth will work correctly but if you switch it off and again on (using the hardware switch in the front side of the laptop) it will stop working so you also have to do the following:


  1. Right click on an empty space on your panel and select "Add to panel..."

  2. Then create a new custom launcher and in the command textfield copy and paste this:

    gksudo hciconfig hci0 reset
This way when your bluetooth stops working, just click on the new launcher that you made and it will ask for your password and then reset the bluetooth device so that it will start working again


VGA-out:

Open a console and type:

cp /etc/X11/xorg.conf ~/xorg.conf.back

This will back up your xorg.conf file just in case you mess it up.
Now you will have to install the NVIDIA settings manager. To do this just type:

sudo apt-get install nvidia-settings

And then run it by typing:

sudo nvidia-settings

The NVIDIA settings manager will open. (you might need to resize this window because for some strange reason it initializes too small)


Now select X Server Display Configuration and then click on Detect Displays to detect the connected display. Now you will be able to configure the two screens using the options in the Display and the X Screen tabs.

From ere you may also set the resolution to for your laptop's monitor to the correct one (1280x800). If you select a resolution from the Resolution drop-down-list (it's visible in the above picture) the drop-down-list on its right will be enabled and you can then select the desired refresh rate.

Afterwords don't forget to click on Save to X Configuration File.

If you mess up then type this in a console to restore your backup:

sudo cp ~/xorg.conf.back /etc/X11/xorg.conf

To delete your backup type:

rm ~/xorg.conf.back

Tip: To get rid of the annoying NVIDIA splash screen type this a a terminal:

sudo gedit /etc/X11/xorg.conf

Then find all the Device sections and add this line inside them:

Option "NoLogo" "True"


Then save and exit.


What doesn't work and still I have found no solution:

The Fn buttons don't work. In fact the sound controls work, the next track, previous track, play, stop buttons work too. The S1 (customizable button), the AV MODE and the brightness control buttons doesn't work. I am still looking for a solution. The MS PRO slot doesn't work and I still haven't found any solution.

What I haven't fully tried yet:

S-Video out, HDMI output. I'll try them some time... (Shawe in the comments says that HDMI works OK but without any sound.)


References:
http://ubuntuforums.org/showthread.php?t=706530
https://bugs.launchpad.net/ubuntu/+bug/147757
http://wiki.mediati.org/Installation
https://launchpad.net/ubuntu/+source/alsa-driver/+bug/33719

PS: If I fix more problems I will update this post so you might want to check back later. If you find any problems or omissions please leave a comment.

PS2: It seems like someone did a partial translation of this article into Catalan. Here is a link to it. :-)

PS3: Thank you for your comments and the info you provided!

Linux On Laptops

78 comments:

  1. May you please show me what modules are loaded? I cannot make my bluetooth work... Maybe paste here an lsmod, if you may! ;)

    ReplyDelete
  2. Here's my lsmod. If you have exactly the same laptop and you believe that I've forgotten to mention part of the solution, please do post the extra steps needed here so that I will add them to my post. :-)

    Module Size Used by
    af_packet 23812 4
    nls_iso8859_1 4992 0
    nls_cp437 6656 0
    vfat 14464 0
    fat 54556 1 vfat
    isofs 36388 1
    udf 88612 0
    binfmt_misc 12808 1
    rfcomm 41744 6
    l2cap 25728 13 rfcomm
    ipv6 267780 20
    sonypi 23192 0
    ppdev 10372 0
    acpi_cpufreq 10796 2
    cpufreq_stats 7104 0
    cpufreq_ondemand 9740 1
    freq_table 5536 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
    cpufreq_conservative 8712 0
    cpufreq_userspace 5284 0
    cpufreq_powersave 2688 0
    dock 11280 0
    container 5632 0
    sbs 15112 0
    sbshc 7680 1 sbs
    iptable_filter 3840 0
    ip_tables 14820 1 iptable_filter
    x_tables 16132 1 ip_tables
    sbp2 24072 0
    parport_pc 36260 0
    lp 12324 0
    parport 37832 3 ppdev,parport_pc,lp
    pcmcia 40876 0
    joydev 13120 0
    arc4 2944 2
    ecb 4480 2
    blkcipher 8324 1 ecb
    sr_mod 17956 1
    cdrom 37408 1 sr_mod
    pata_acpi 8320 0
    usb_storage 73664 0
    libusual 19108 1 usb_storage
    pcspkr 4224 0
    evdev 13056 11
    hci_usb 16540 2
    psmouse 40336 0
    bluetooth 61156 7 rfcomm,l2cap,hci_usb
    serio_raw 7940 0
    tifm_7xx1 8576 0
    yenta_socket 27276 1
    rsrc_nonstatic 13696 1 yenta_socket
    pcmcia_core 40596 3 pcmcia,yenta_socket,rsrc_nonstatic
    tifm_core 11012 1 tifm_7xx1
    usbhid 31872 0
    iTCO_wdt 13092 0
    iTCO_vendor_support 4868 1 iTCO_wdt
    snd_hda_intel 344728 6
    hid 38784 1 usbhid
    ata_generic 8324 0
    snd_pcm_oss 42144 0
    snd_mixer_oss 17920 1 snd_pcm_oss
    uvcvideo 58116 0
    compat_ioctl32 2304 1 uvcvideo
    lmpcm_usb 7168 0
    r5u870 27716 0
    usbcam 48640 1 r5u870
    videodev 29440 2 uvcvideo,usbcam
    v4l2_common 18304 2 uvcvideo,videodev
    v4l1_compat 15492 2 uvcvideo,videodev
    videobuf_dma_sg 14980 1 usbcam
    videobuf_core 18820 2 usbcam,videobuf_dma_sg
    snd_pcm 78596 3 snd_hda_intel,snd_pcm_oss
    snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
    snd_hwdep 10500 1 snd_hda_intel
    sky2 47492 0
    snd_seq_dummy 4868 0
    sony_laptop 35292 0
    snd_seq_oss 35584 0
    snd_seq_midi 9376 0
    iwl4965 105844 0
    snd_rawmidi 25760 1 snd_seq_midi
    iwlwifi_mac80211 219108 1 iwl4965
    snd_seq_midi_event 8320 2 snd_seq_oss,snd_seq_midi
    video 19856 0
    snd_seq 54224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
    output 4736 1 video
    cfg80211 15112 1 iwlwifi_mac80211
    snd_timer 24836 3 snd_pcm,snd_seq
    battery 14212 0
    button 9232 0
    ac 6916 0
    nvidia 7825536 36
    snd_seq_device 9612 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
    snd 56996 21 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    i2c_core 24832 1 nvidia
    intel_agp 25492 0
    soundcore 8800 1 snd
    agpgart 34760 2 nvidia,intel_agp
    shpchp 34452 0
    pci_hotplug 30880 1 shpchp
    ext3 136712 1
    jbd 48404 1 ext3
    mbcache 9600 1 ext3
    sg 36880 0
    sd_mod 30720 3
    ahci 28420 2
    ata_piix 19588 1
    ohci1394 33584 0
    ieee1394 93752 2 sbp2,ohci1394
    libata 159344 4 pata_acpi,ata_generic,ahci,ata_piix
    scsi_mod 151436 6 sbp2,sr_mod,usb_storage,sg,sd_mod,libata
    ehci_hcd 37900 0
    uhci_hcd 27024 0
    usbcore 146028 11 usb_storage,libusual,hci_usb,usbhid,uvcvideo,lmpcm_usb,r5u870,usbcam,ehci_hcd,uhci_hcd
    thermal 16796 0
    processor 36872 4 acpi_cpufreq,thermal
    fan 5636 0
    fbcon 42912 0
    tileblit 3456 1 fbcon
    font 9472 1 fbcon
    bitblit 6784 1 fbcon
    softcursor 3072 1 bitblit
    fuse 50580 3

    ReplyDelete
  3. I tried to modprobe all the modules you have but still I can't make my bluetooth detected. My model is a Sony VGN FZ31M so I don't know if our hardware is the exactly the same... Either way, I leave here my lspci and lsusb.

    Another thing is when I modprobe the module sonypi, I get the following error in the logs:

    sonypi command failed at drivers/char/sonypi.c : sonypi_set (line 705)
    sonypi command failed at drivers/char/sonypi.c : sonypi_call1 (line 652)
    sonypi command failed at drivers/char/sonypi.c : sonypi_call2 (line 663)
    sonypi command failed at drivers/char/sonypi.c : sonypi_call2 (line 665)
    sonypi command failed at drivers/char/sonypi.c : sonypi_call1 (line 652)

    Do you have any special options for this module or the sony_laptop module?

    Kind regards and thanks for your help.

    [root@apolo ~]# lspci
    00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
    00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
    00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
    00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
    00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
    00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
    00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
    00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
    00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
    00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
    00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
    00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
    00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
    00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
    00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
    00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
    00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
    00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
    01:00.0 VGA compatible controller: nVidia Corporation G86M [GeForce 8400M GT] (rev a1)
    06:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
    08:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 PCI-E Fast Ethernet Controller (rev 16)
    09:03.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
    09:03.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
    09:03.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
    [root@apolo ~]# lsusb
    Bus 002 Device 001: ID 0000:0000
    Bus 006 Device 001: ID 0000:0000
    Bus 003 Device 001: ID 0000:0000
    Bus 007 Device 007: ID 044e:3012 Alps Electric Co., Ltd
    Bus 007 Device 006: ID 044e:3013 Alps Electric Co., Ltd
    Bus 007 Device 005: ID 044e:3011 Alps Electric Co., Ltd
    Bus 007 Device 001: ID 0000:0000
    Bus 004 Device 001: ID 0000:0000
    Bus 001 Device 003: ID 05ca:183b Ricoh Co., Ltd
    Bus 001 Device 001: ID 0000:0000
    Bus 005 Device 001: ID 0000:0000

    ReplyDelete
  4. Here is my lspci:

    00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
    00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
    00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
    00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
    00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
    00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
    00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
    00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
    00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
    00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
    00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
    00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
    00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
    00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
    00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
    00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
    00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
    00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
    01:00.0 VGA compatible controller: nVidia Corporation G86M [GeForce 8400M GT] (rev a1)
    06:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
    08:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 PCI-E Fast Ethernet Controller (rev 16)
    09:03.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
    09:03.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
    09:03.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)


    And here is the lsusb: (there is a mouse and a usb stick connected)

    Bus 007 Device 005: ID 044e:3012 Alps Electric Co., Ltd
    Bus 007 Device 004: ID 044e:3013 Alps Electric Co., Ltd
    Bus 007 Device 003: ID 044e:3010 Alps Electric Co., Ltd
    Bus 007 Device 002: ID 044e:3011 Alps Electric Co., Ltd
    Bus 007 Device 001: ID 0000:0000
    Bus 006 Device 003: ID 1110:9041 Analog Devices Canada, Ltd (Allied Telesyn)
    Bus 006 Device 001: ID 0000:0000
    Bus 005 Device 004: ID 0461:4d23 Primax Electronics, Ltd
    Bus 005 Device 001: ID 0000:0000
    Bus 004 Device 002: ID 1005:b113 Apacer Technology, Inc. Handy Steno 2.0 (256MB)
    Bus 004 Device 001: ID 0000:0000
    Bus 003 Device 002: ID 05ca:183b Ricoh Co., Ltd
    Bus 003 Device 001: ID 0000:0000
    Bus 002 Device 001: ID 0000:0000
    Bus 001 Device 001: ID 0000:0000

    The Alps Electric device is my bluetooth.

    If only someone could confirm that the solution for the bluetooth works on the specific model. (or perhaps I could try it on a Live CD tomorrow) I don't believe that different final letter in the laptop 's model could render the solution ineffective.

    PS: I also noticed some other minor compatibility options which I will soon add to the post.

    ReplyDelete
  5. Thank you for all your quick replies. I checked my hardware and it looks almost the same as yours... Either way, I think the problem is related with the sonypi module, as when I modprobe it the dmesg log shows

    sonypi command failed at drivers/char/sonypi.c : sonypi_call1 (line 652)
    sonypi command failed at drivers/char/sonypi.c : sonypi_call2 (line 663)
    sonypi command failed at drivers/char/sonypi.c : sonypi_call2 (line 665)
    sonypi command failed at drivers/char/sonypi.c : sonypi_call1 (line 652)


    and when I try to use the command

    $>spicctrl -l 1

    it says

    sonypi command failed at drivers/char/sonypi.c : sonypi_call2 (line 663)
    sonypi command failed at drivers/char/sonypi.c : sonypi_call2 (line 665)
    sonypi command failed at drivers/char/sonypi.c : sonypi_call1 (line 652)

    on the dmesg log...

    So maybe the problem relates to the SPIC control code...

    ReplyDelete
  6. Strange.

    When I "modprobe sonypi" I get these messages in my syslog:

    Jun 16 02:00:55 Sonia kernel: [15751.875035] sonypi: Sony Programmable I/O Controller Driver v1.26.
    Jun 16 02:00:55 Sonia kernel: [15751.875381] sonypi: please try the sony-laptop module instead and report failures, see also http://www.linux.it/~malattia/wiki/index.php/Sony_drivers
    Jun 16 02:00:55 Sonia kernel: [15751.879351] sonypi: detected type2 model, verbose = 0, fnkeyinit = off, camera = off, compat = off, mask = 0xffffffff, useinput = on, acpi = on
    Jun 16 02:00:55 Sonia kernel: [15751.879361] sonypi: enabled at irq=11, port1=0x1080, port2=0x1084
    Jun 16 02:00:55 Sonia kernel: [15751.879365] sonypi: device allocated minor is 62
    Jun 16 02:00:55 Sonia kernel: [15751.879460] input: Sony Vaio Jogdial as /devices/platform/sonypi/input/input17
    Jun 16 02:00:55 Sonia kernel: [15751.913965] input: Sony Vaio Keys as /devices/platform/sonypi/input/input18
    Jun 16 02:00:55 Sonia NetworkManager: <debug> [1213570855.908686] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/platform_sonypi').
    Jun 16 02:00:56 Sonia kernel: [15751.990268] sonypi command failed at /build/buildd/linux-2.6.24/drivers/char/sonypi.c : sonypi_call1 (line 652)
    Jun 16 02:00:56 Sonia kernel: [15752.032163] sonypi command failed at /build/buildd/linux-2.6.24/drivers/char/sonypi.c : sonypi_call2 (line 663)
    Jun 16 02:00:56 Sonia kernel: [15752.074252] sonypi command failed at /build/buildd/linux-2.6.24/drivers/char/sonypi.c : sonypi_call2 (line 665)
    Jun 16 02:00:56 Sonia kernel: [15752.116637] sonypi command failed at /build/buildd/linux-2.6.24/drivers/char/sonypi.c : sonypi_call1 (line 652)
    Jun 16 02:00:56 Sonia NetworkManager: <debug> [1213570856.102497] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/platform_sonypi_logicaldev_input').
    Jun 16 02:00:56 Sonia NetworkManager: <debug> [1213570856.118166] nm_hal_device_added(): New device added (hal udi is '/org/freedesktop/Hal/devices/platform_sonypi_logicaldev_input_0').

    Now when I execute "spicctrl -l 1" I get these messages in the syslog:

    Jun 16 02:01:40 Sonia kernel: [15795.057486] sonypi command failed at /build/buildd/linux-2.6.24/drivers/char/sonypi.c : sonypi_call2 (line 663)
    Jun 16 02:01:40 Sonia kernel: [15795.101499] sonypi command failed at /build/buildd/linux-2.6.24/drivers/char/sonypi.c : sonypi_call2 (line 665)
    Jun 16 02:01:40 Sonia kernel: [15795.145494] sonypi command failed at /build/buildd/linux-2.6.24/drivers/char/sonypi.c : sonypi_call1 (line 652)

    For your information, I have removed the sonypi from the boot process. To do this you can't just use the modprobe.d blacklists. The sonypi module is loaded by a script (/etc/init.d/hotkey-setup is a script responsible for recognizing the Sony buttons if am not mistaken). So I commented out the line that loaded it. Using just sony-laptop (which is the successor of sonypi) works for me.

    But when I did write the guide I still did have sonypi and sony-laptop loaded As I wrote, Ubuntu did recognize the bluetooth, it just didn't work until running "gksudo hciconfig hci0 reset".

    On more thing in case you wan't to compare it with yours. Loading sonypi and running "spicctrl -L" gives me 255!!! After setting the bluetooth power to 1 with "spicctrl -l 1", running again "spicctrl -L" gives me 1 despite the errors in the syslog.

    What can I say. I don't remember taking any other steps to fix my bluetooth other than the one that I posted. The bluetooth was the first thing I managed to fix, I hope that I didn't forget any other step in the meantime before writing my guide... (I had no chance to test the bluetooth fix on a Live CD, yet)

    By the way, Jose, did the other fixes work for you?

    ReplyDelete
  7. Really I can't make it work... something very wrong is going on here... Either way, for the rest of the fixes, I managed to make them all work, as you did, even though there are slightest changes because I'm working on Mandriva 2008.1.
    Thank you very much for your replies... Hope I'll find the answer, and if I do, I'll post it here with your allowance...

    ReplyDelete
  8. OK. Good luck then. I will wait for your post! :-)

    ReplyDelete
  9. Hi, thanx a lot for this Howto. I was searching for it since a friend of mine wants me to install ubuntu on his Vaio. I will try it on the weekend and come back to you if anything went wrong.

    BTW: Where did you get this nice theme from?

    Greetz

    AonetakeP

    ReplyDelete
  10. Hello Alexander. The theme I use is Ubuntu Satanic Edition. You can search my blog for it as I've written about it one or two times. But I've changed it since and now I use a heavily modified Murine Dark Neon theme (even darker with purple selections etc.). Probably, when I post again, I will include some screenshots of the new theme too.

    Good luck.

    ReplyDelete
  11. Hi again, tritonio! So I come back as promised to relate on my progress...
    The steps:
    Reverted back to Vista (don't worry, only temporary, and toooooo long for me allready). I used the SonyVaio Wireless Control Utility to reenable bluetooth. Then, I reinstalled Linux and bluetooth was allready detect (of course, now, I can't switch it off, but, better allways on than never on). After being detected and before I could use it I had to do a hciconfig hci0 reset... And that was it... I'm now happilly transfering my kids photos into my laptop while writing this post... Thank you so much for all the help.

    ReplyDelete
  12. I am glad to hear that you fixed it Jose. So it seems that VGN FZ31M hasn't got a hardware switch like my VGN-FZ31E has.

    Thank you for commenting back. :-)

    ReplyDelete
  13. Hi tritonio, really nice howto, I have a VGN-FZ250AE (think it's the Brazilian version of your laptop) and all the tips you gave worked for me. I was thinking if you tryed your VGA out, mine is not working. Unfortunately i couldn't test mine hdmi and s-video yet.

    ReplyDelete
  14. Hello Ari.

    Yes I managed to make the VGA-out work in many ways. You can just clone the output or use it as a second desktop etc... But the VGA-out will not work automatically, you will have to run sudo nvidia-settings then X Server Display Configuration then click Detect Displays to detect the display. Now you will be able to configure using the options in these two tabs. Afterwords don't forget to click on Save to X Configuration File. I will also add these instructions in the how-to.

    I haven't tried the HDMI and the S-Video outputs. But I believe they will work in the same way the VGA-out works.

    PS: I messed my xorg.conf a bit so making a backup would be a good idea. In fact one of the annoying things is that using nvidia-settings to overwrite my xorg.conf made the NVidia splash screen appear! Also if you remove the external screen you might need to reconfigure the screens in nvidia-settings

    ReplyDelete
  15. I didn' t have the nvidia-settings installed. It works fine, but when I saved my xorg.conf and restarted my X stopped working. But at least I can use the clone function now.
    I don't know if you have the same problem, but my monitor isn't recognized and because of that I can use only 50hz in the monitor. nvidia-settings can configure the monitor to 60hz in the running session. I tried to use the xorg.conf bellow but when i restart it continues as 50hz.

    Section "InputDevice"
    Identifier "Generic Keyboard"
    Driver "kbd"
    Option "XkbRules" "xorg"
    Option "XkbModel" "abnt2"
    Option "XkbLayout" "br"
    EndSection

    Section "InputDevice"
    Identifier "Configured Mouse"
    Driver "mouse"
    Option "CorePointer"
    EndSection

    Section "InputDevice"
    Identifier "Synaptics Touchpad"
    Driver "synaptics"
    Option "SendCoreEvents" "true"
    Option "Device" "/dev/psaux"
    Option "Protocol" "auto-dev"
    Option "HorizEdgeScroll" "0"
    EndSection

    Section "Device"
    Identifier "Configured Video Device"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8400M GT"
    Option "NoLogo" "True"
    EndSection

    Section "Monitor"
    Identifier "Configured Monitor"
    VendorName "Unknown"
    ModelName "Nvidia Default Flat Panel"
    HorizSync 29.0 - 49.0
    VertRefresh 0.0 - 61.0
    EndSection

    Section "Screen"
    Identifier "Default Screen"
    Monitor "Configured Monitor"
    Device "Configured Video Device"
    Defaultdepth 24
    EndSection

    Section "ServerLayout"
    Identifier "Default Layout"
    screen "Default Screen"
    Inputdevice "Synaptics Touchpad"
    EndSection
    Section "Module"
    Load "glx"
    EndSection

    ReplyDelete
  16. If your X stopped working then how can you use the clone function? If I go to the resolution setting my only option is 50Hz. I don't remember if this was 60Hz ever. After all I don't even believe that you can change the refresh rate on a TFT monitor. I think it is fixed tbut even if it is not fixed, refresh rates don't matter on TFT screens as much as they do on CRTs (TFTs don't flicker). 60Hz are too low for a CRT and I certainly recognize them when I sit in front of a public computer. But I noticed no change in my monitor.

    I will post in a few minutes a solution (if the one I am trying works).

    ReplyDelete
  17. OK i fixed it. Open nvidia-settings and go to X Server Display Configuration. Then open the resolution DropDownList and select the correct one for your monitor. Probably 1280x800. Then the DropDownList next to it will be enabled and from there you will be able to select 60Hz. "Apply" and then "Save to X Configuration File". Now you will be able to choose between 50 and 62 (huh???) Hz from Ubuntu's resolution configuration.

    While trying this I completely deleted my xorg.conf (just to see what would happen :-)) and I had to remake it by running:

    sudo dpkg-reconfigure -phigh xserver-xorg
    sudo nvidia-xconfig

    (and of course restart)

    ReplyDelete
  18. nice, I could use the clone function using nvidia-settings, you don't need to save to xorg to use it. In my case when I installed ubuntu, the nvidia-settings did't come preinstalled, so if someone miss it too, look in synaptic. It would be nice if you share your xorg.conf. I could copy your video settings and discard mouse and keyboard. :D

    ReplyDelete
  19. OK I uploaded it to: http://students.ceid.upatras.gr/~asimakis/xorg.conf

    I also updated the post.

    ReplyDelete
  20. I just want to say I love you!!! After to many hours searching and trying without any succes.... This helped me with my webcamera in just a few minutes! Wow! Thank you!/ Marianne with a Sony Vaio

    ReplyDelete
  21. Thank you Marianne, I'm glad it helped you. :-)

    BTW: posting from a coin-"powered"-PC at a camping near Barcellona!

    ReplyDelete
  22. man 1000 thanks this is very helpful, but any update on the sd card ? cuz mine has got it working just not with duo cards. just standard SD

    ReplyDelete
  23. btw the webcam doesn't get fixed ths way. actualy this only works if done after a vista reboot. It works after a vista reboot on a fresh install. The problem with the webcam is that it need vista to somehow enable it on boot

    ReplyDelete
  24. About the Memory Stick:
    I tried the SD before a month or so and it worked. I don't have a Memory Stick though so I can't check it... :-( (I have a mini MS but I don't remember where my adapter is...)

    About the Camera:
    I don't understand you completely. You say that you have to use the camera once in Vista and then reboot in Linux and follow my instructions? After that everything works fine? That's all? Or should something specific be done in order to turn it on? I don't even have Vista installed anymore but the camera works... Are you sure you have EXACTLY the same model? VGN-FZ31E

    ReplyDelete
  25. no my model is FZ35G but the models are like exactly the same. About the camera,i don't even need to use it in vista, i just need to boot vista and then i can reboot and it works flawlessly with the default driver without any configuration. My SD card works but not the PRO slot. Suspend/hibernate doesn't work, it did sometimes, most of the time it just stays up - just a black screen with a "-" and no errors whatsoever, and stays like that

    ReplyDelete
  26. Well, obviously, they are different enough for the camera not to work. I am almost sure that my solution works (not only for me but for other users too, based on the comments). I don't know what else to suppose.

    My hibernation didn't work either but it was because of the uvcvideo which didn't unload before hibernation or suspension. But just the first step of the solution for the camera will probably fix hibernation problems too.

    ReplyDelete
  27. hey can you check what BIOS you have ? i seem to have a Phoenix trustedcore BIOS. I think it's the source of all my problems, because it only works fully with the vista OS. I think it inhibits use of some devices for OSes other than vista. I think this is the case because if i go into vista, reboot, and pick and boot ubuntu in GRUB everything works PERFECTLY, even suspend/hiberntae. If you have any information on fixing issues with this particular bios in Linux please tell me.

    ReplyDelete
  28. My BIOS is Phoenix Trustedcore version R2110J7 (well I have some doubts about J7, it could be J5, my memory sucks). So yes, if you have a different version and you believe that you have the same hardware then you can blame Sony for making laptops specifically made not to work with Linux... ;-) What's your version?

    ReplyDelete
  29. man ! i have BAD luck u know ! do you believe thati have the same BIOS as you ? I don't understand, how come my laptop only offers these features after a vista reboot ! Maybe it's ubuntu just not configuring them the right way ... although i use 8.04 just like u

    ReplyDelete
  30. Then you must have a different camera. I will update the how-to including as much vedor_id:product_id as I can. You can then check if you have the same camera or not. I bet not. Well you are really unlucky. Did at least other parts of the how-to help you?

    ReplyDelete
  31. yes of course the bluetooth part and the nvidia part

    here's me bios info given by "sudo dmidecode bios-version"

    Vendor: Phoenix Technologies LTD
    Version: R2110J7
    Release Date: 12/21/2007
    Address: 0xE6CD0
    Runtime Size: 103216 bytes
    ROM Size: 1024 kB
    Characteristics:
    PCI is supported
    PNP is supported
    BIOS is upgradeable
    BIOS shadowing is allowed
    ESCD support is available
    Boot from CD is supported
    Selectable boot is supported
    EDD is supported
    8042 keyboard services are supported (int 9h)
    CGA/mono video services are supported (int 10h)
    ACPI is supported
    USB legacy is supported
    AGP is supported
    Smart battery is supported
    BIOS boot specification is supported
    Function key-initiated network boot is supported
    Targeted content distribution is supported
    BIOS Revision: 11.0
    Firmware Revision: 11.0

    here's me camera name in "lsusb"

    Bus 006 Device 002: ID 05ca:183b Ricoh Co., Ltd

    ReplyDelete
  32. It's seems that you have the same camera. Aaaaah this is crazy. How is this possible? It's definitely a model specific problem so I can't really help you, especially now that I don't see any difference between our laptops! :-( Good luck anyway...

    ReplyDelete
  33. That's funny, for some reason my cam is not working anymore. Maybe some kernel update, dont really know. I don't use the cam very much, so I saw it working and never tryed it again. I just found this:
    http://ubuntuforums.org/showthread.php?t=289836&page=12

    I downloaded the driver on the page but i didn't try it yet. Maybe tonight.

    ReplyDelete
  34. Ari I believe that I had to reapply some of the fixes after kernel updated, I don't remember if the camera fix is one of those.

    About the link you posted:
    The poster says he has a:
    Bus 005 Device 003: ID 05ca:1835 Ricoh Co., Ltd
    while my camera is:
    Bus 006 Device 002: ID 05ca:183b Ricoh Co., Ltd
    Please, do an lsusb to see which one you have (the 1835 model or the 183b like me)

    As I said after many kernel updates my camera still works... :-|

    ReplyDelete
  35. No, there's only one guy with the 1835 cam. Look what bigude posted: "My lsusb throws Bus 006 Device 002: ID 05ca:183b Ricoh Co., Ltd". He has the same cam. I think we can use it. Althought My lsusb is: "Bus 003 Device 002: ID 05ca:183b Ricoh Co., Ltd", dont know if that difference is a problem. I will test this tonight.

    ReplyDelete
  36. my camera is indeed 05ca:183b like i said before.

    Maybe it's the way i installed ubuntu that's wrong. How did you install it ? i installed it ironically after a vista reboot (playing with partitions) , maybe it should have fresh booted ubuntu ONLY and instaled normally.

    ReplyDelete
  37. I think that it was a fresh boot but I am not sure and neither do I believe that it is important but you should try it nevertheless.

    ReplyDelete
  38. i have used the vista partitioner to shrink the vista volume, maybe i should've used Gparted ( i didn't because vista somehow got screwed with it once ). I'll do it on fresh boot.

    ReplyDelete
  39. hi, if you are still looking for a better way to reset the bluetooth device, add the reset command in

    /etc/rc.local

    It will be run at the end of the boot process. it works for me!

    ReplyDelete
  40. Thank you anonymous! I updated the how-to. I was looking for a script like this. Thank you.

    ReplyDelete
  41. hey i got it working ! the camera! i was installing r5u870 with a .deb file but when i compile from source it DOES work ! And now suspend/hibernate work too (some bla bla mumbo jumbo on hibernate but on wake up everything works fine. man i need to say this to you. THANKS. NOW i can REAAAALLY start to do some interesting stuff.

    ReplyDelete
  42. Then the How-To is correct. Glad you fixed it! :-)

    ReplyDelete
  43. btw one last thing, if you boot off the battery, does your screensaver work ? Mine doesn't

    ReplyDelete
  44. Well I've noticed some problems with the battery like this. I've never noticed that the screensaver doesn't run though but you are probably right. Sometimes the laptop doesn't realize that it runs on battery power. it's strange.

    ReplyDelete
  45. but anyway it's working great thanks a bunch, and keep updating that guide if u hear about any new stuff

    ReplyDelete
  46. HDMI works well with image, sound don't work :D

    ReplyDelete
  47. Hello Shawe! Thanx for the info. I thought that HDMI was a video only signal but after paying a visit to wikipedia I see that it carries audio too. Do you know if sound works in Windows?

    I will update the how-to now. Thank you. :-)

    ReplyDelete
  48. hey Tritonio

    thanks a lot for the how-to, you did it spectacular, I just have a question about the Bluetooth,
    when I edit the:
    sudo gedit /etc/rc.local
    I let it like this

    ---------------------------------------
    PARAM=255
    HD=/dev/sda

    echo "#!/bin/sh" > 99-hdd-spin-fix.sh
    echo "hdparm -B $PARAM $HD" >> 99-hdd-spin-fix.sh

    chmod +x 99-hdd-spin-fix.sh

    cp 99-hdd-spin-fix.sh /etc/acpi/suspend.d/
    cp 99-hdd-spin-fix.sh /etc/acpi/resume.d/
    mv 99-hdd-spin-fix.sh /etc/acpi/start.d/
    hciconfig hci0 reset

    exit 0
    ------------------------------
    Is that all right?

    ReplyDelete
  49. Hi Leopoldo. Sure, it looks ok although I don't know what the other lines are. :-)

    BTW: It's less than 24 hours for the release of Intrepid so perhaps I will rewrite the whole how-to for Intrepid. I hope it won't be that long this time... ;-)

    ReplyDelete
  50. Brightness regulation problem RESOLVED !!!!!!!!!!!
    The man who did that is a god, my eyes and my battery are now safe !!

    Solution :
    https://bugs.launchpad.net/ubuntu/+source/hotkey-setup/+bug/95444

    But the sound from jack doesn't work, event when your tweak is runned .... with intrepid 8.10

    ReplyDelete
  51. I get an Configure error if I use that launchpad thing my error is

    checking for gtk+-2.0 >= 2.4.0... checking for x11... configure: error: "X11 required for nvcontrol support"

    maybe somebody can help me

    ReplyDelete
  52. I have a Sony Vaio FZ31Z.

    I add "hciconfig hci0 reset" into the file /etc/rc.local, but my BT doesn't work.
    Into the log file the BT is initialized on hci_usb.

    hcitool dev is empy
    Can you help me!!!

    Linux Ubuntu 8.04

    ReplyDelete
  53. Tritonio, in Windows works, but only with Vista, not with XP. I read that nvidia make the chipset, but Sony use it how it want, and oficial nvidia driver can't solve this feature (for Windows, nvidia say that you must to go to Sony-Vaio site for this driver). Only Sony Nvidia driver can solve it, but Sony only make this driver for Vista. You can see it in Nvidia webpage.

    ReplyDelete
  54. People, for solve the brightness problem try this:

    https://bugs.launchpad.net/ubuntu/+source/hotkey-setup/+bug/95444

    So far mikes' registers have been found to work on:
    8400M GT on VGN FZ38M, FZ11Z, NR31, AR41E, FZ11S, FZ290, FZ250AE, FZ21E, FZ21M, FZ470E

    I'm trying to install in this moment.

    ReplyDelete
  55. http://launchpadlibrarian.net/19240869/nvclock_0.80b3-1_amd64.deb

    Here the .deb file, test with this:

    sudo nvclock -S +10
    sudo nvclock -S -10

    For my works in FZ38M perfectly

    ReplyDelete
  56. @Anonymous:
    When you append the command at the end of the file, make sure it is before any "exit" command. It's my mistake that I used "at the end of the file". I will update the how-to now.

    Post back if you still have problems.

    ReplyDelete
  57. Hi Shawe.

    I managed to control the brightness even on XP by using some tweaked NVIDIA drivers (I don't remember which exactly). I never tried to make the function keys work and the brightness control though NVIDIA settings was really buggy, sometimes causing the backlight to turn of untill a power off.

    I cannot test the deb file you used because I am on 32bit Ubuntu Intrepid. I will try to compile it on my own again; last time I had problems doing it.

    Finally with Intrepid there are sound problem which I still haven't found a way to resolve. (no recording)

    ReplyDelete
  58. To control the brightness on XP you need the Xtreme-G drivers.

    http://www.tweakforce.com/modules.php?name=Downloads&d_op=viewdownload&cid=15

    You need to register on the forum to download them.

    ReplyDelete
  59. Tritonio sorry, but with this laptop, is better to you use amd64 version, is more optimized for new generation of CPU, intel C2d and AMD, have "64bits" (not really for me) but laptop work a little better.

    ReplyDelete
  60. Here is my new version of your tutorial:

    http://www.islatux.es/ubuntu-intrepid-ibex-en-un-sony-vaio-fz38m/

    If you want, you can copy for add in your blog and quickly have your guide.

    ReplyDelete
  61. Thank you Shawe for your article. I will read it soon and probably make a translation or something of it. :-)

    I tried 64bit which was somewhat faster but the whole X got locked quite often, I think because of the flash plugin + compiz. The mouse cursor still moved, music continued playing, Pidgin logged incoming messages but keyboard stopped working plus every other graphic on the screen froze (eg: CPU monitor on my panel).

    Don't you have any problems? 32bit is much more stable but I still got a random crash of X (even though I wasn't using flash at that time).

    Once more thank you for the guide. You saved me and others a lot of time.

    ReplyDelete
  62. Tritonio, I don't have this problem, I can use Flash+Compiz (always have Compiz activated, flash fails anytime, restart firefox, and works again)
    Music works well, I only have any problem with wifi, but it is caused for the new module for this wifi, in progress for solve it.

    This problems yes exists in Hardy Heron, but not for me in Intrepid Ibex. Intrepid correct a lot of problems from Hardy, but also add new problems xDD

    I only have the same's problems that have the 32bits versions :P. Maybe can be that any program is not available for 64bits versions.

    ReplyDelete
  63. With comments:

    https://bugs.launchpad.net/ubuntu/+source/hotkey-setup/+bug/95444/comments/106

    and

    https://bugs.launchpad.net/ubuntu/+source/hotkey-setup/+bug/95444/comments/107

    I explain how to solve better the brightness problem, not perfectly solved, but it works. :D

    ReplyDelete
  64. Please try this:

    wget http://shawe.ewahs.googlepages.com/install-FnKeys-sony-nvidia.sh
    sudo sh install-FnKeys-sony-nvidia.sh

    ReplyDelete
  65. hello i'm a very hard problem with my sony vaio fz31s. y brightness is impossible to regulate. Why can i do? Hoping for a answer. Tnk a lot to everybody. Bye

    ReplyDelete
  66. Anonymous said...

    hello i'm a very hard problem with my sony vaio fz31s. y brightness is impossible to regulate. Why can i do? Hoping for a answer. Tnk a lot to everybody. Bye

    read my comment:

    Shawe said...

    Please try this:

    wget http://shawe.ewahs.googlepages.com/install-FnKeys-sony-nvidia.sh
    sudo sh install-FnKeys-sony-nvidia.sh

    If I can read you, you can readme.

    ReplyDelete
  67. Hello,

    i have the fz21e and i followed the instruction in this blog to put my webcam working.
    It works fine on skype. In cheese it can take pictures but when i try to record something i got my webcam light blinking a lot and images are showing and disappering.
    Video image is blinking..and at the end nothing is recorded or just some frame.
    Do someone knows how to fix this?

    Portnoy

    ReplyDelete
  68. Teorically this must do work HDMI input/output on Intrepid:

    sudo aptitude install nvidia-180-modaliases nvidia-180-kernel-source nvidia-glx-180
    wget http://shawe.ewahs.googlepages.com/AlsaUpgrade-1.0.19.sh
    sudo sh AlsaUpgrade-1.0.19.sh -di

    Readed on: http://xbmc.org/forum/showthread.php?t=42183 and http://ubuntuforums.org/showthread.php?t=962695&page=16
    Can any one with TV with HDMI try it?

    ReplyDelete
  69. Hi,
    Now that Jaunty as landed, I would like to know if the issues with the MS Pro Slot and the fn button are solved. Did it change anything?

    I am hesitating to buy this model on ebay, your advice will be a great help ;-)

    Regards,
    Vincent

    ReplyDelete
  70. el cameleon:

    MS Pro Slot on any laptop that have it don't work on Linux. Sony don't want give drivers for Linux users.

    ReplyDelete
  71. Hi!

    I own a VGN-FZ31Z Vaio with Vista/Gentoo dual boot.

    Even on Vista, there is no sound transmitted via HDMI port, I have to plug my speakers to the computer.

    Looks like Sony makes crap too often with their hardware (virtualization CPU API disabled, no sound via HDMI, etc)

    ReplyDelete
  72. here you can find driver for your webcam. i have the same laptop like you instead i installed ubuntu 9.04 updated to 9.10

    http://bitbucket.org/ahixon/r5u87x/src

    ReplyDelete
  73. Hello
    I have a very similar computer a sony Vaio VGN FZ35G and just install ubuntu 10.04 the web cam still doesn't work even after all the information you posted. it gives me some error messages that i do not understand.
    could you please look at it and see if what am I doing wrong, thanks

    ReplyDelete
  74. nuno@Naires:~$ sudo gedit /etc/pm/config.d/unload_modules
    [sudo] password for nuno:
    nuno@Naires:~$ sudo apt-get install subversion
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    subversion is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    nuno@Naires:~$ svn co http://svn.mediati.org/svn/r5u870/trunk r5u870
    A r5u870/r5u870_183a.fw
    A r5u870/r5u870_183b.fw
    A r5u870/r5u870_1870_1.fw
    A r5u870/r5u870_183e.fw
    A r5u870/AUTHORS
    A r5u870/ChangeLog
    A r5u870/r5u870.c
    A r5u870/recode-fw.scm
    A r5u870/debug.mk
    A r5u870/README
    A r5u870/r5u870_1810.fw
    A r5u870/r5u870_1812.fw
    A r5u870/r5u870_1830.fw
    A r5u870/r5u870_1841.fw
    A r5u870/r5u870_1832.fw
    A r5u870/r5u870_1833.fw
    A r5u870/r5u870_1834.fw
    A r5u870/r5u870_1870.fw
    A r5u870/r5u870_1835.fw
    A r5u870/r5u870_1836.fw
    A r5u870/COPYING
    A r5u870/r5u870_1839.fw
    A r5u870/MAINTAINERS
    A r5u870/Kbuild
    A r5u870/usbcam
    A r5u870/usbcam/usbcam.h
    A r5u870/usbcam/usbcam_priv.h
    A r5u870/usbcam/usbcam_fops.c
    A r5u870/usbcam/usbcam_buf.c
    A r5u870/usbcam/usbcam_util.c
    A r5u870/usbcam/usbcam_dev.c
    A r5u870/usbcam/usbcam_skel.c
    A r5u870/usbcam/Makefile
    A r5u870/NEWS
    A r5u870/Makefile
    Checked out revision 109.
    nuno@Naires:~$ cd r5u870
    nuno@Naires:~/r5u870$ sudo apt-get install build-essential
    Reading package lists... Done

    ReplyDelete
  75. CC [M] /home/nuno/r5u870/usbcam/usbcam_fops.o
    /home/nuno/r5u870/usbcam/usbcam_fops.c: In function ‘usbcam_v4l_vidioc_querycap’:
    /home/nuno/r5u870/usbcam/usbcam_fops.c:522: error: ‘struct device’ has no member named ‘bus_id’
    /home/nuno/r5u870/usbcam/usbcam_fops.c: In function ‘usbcam_v4l_ioctl’:
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1170: warning: passing argument 1 of ‘video_usercopy’ from incompatible pointer type
    include/media/v4l2-ioctl.h:298: note: expected ‘struct file *’ but argument is of type ‘struct inode *’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1170: warning: passing argument 2 of ‘video_usercopy’ makes integer from pointer without a cast
    include/media/v4l2-ioctl.h:298: note: expected ‘unsigned int’ but argument is of type ‘struct file *’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1170: warning: passing argument 4 of ‘video_usercopy’ makes pointer from integer without a cast
    include/media/v4l2-ioctl.h:298: note: expected ‘v4l2_kioctl’ but argument is of type ‘long unsigned int’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1170: error: too many arguments to function ‘video_usercopy’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1174: warning: passing argument 1 of ‘video_ioctl2’ from incompatible pointer type
    include/media/v4l2-ioctl.h:302: note: expected ‘struct file *’ but argument is of type ‘struct inode *’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1174: warning: passing argument 2 of ‘video_ioctl2’ makes integer from pointer without a cast
    include/media/v4l2-ioctl.h:302: note: expected ‘unsigned int’ but argument is of type ‘struct file *’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1174: error: too many arguments to function ‘video_ioctl2’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1162: warning: unused variable ‘udp’
    make[3]: *** [/home/nuno/r5u870/usbcam/usbcam_fops.o] Error 1
    make[2]: *** [/home/nuno/r5u870/usbcam] Error 2
    make[1]: *** [_module_/home/nuno/r5u870] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-23-generic'
    make: *** [all] Error 2
    nuno@Naires:~/r5u870$ sudo modprobe r5u870
    FATAL: Module r5u870 not found.
    nuno@Naires:~/r5u870$

    ReplyDelete
  76. Building dependency tree
    Reading state information... Done
    build-essential is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    nuno@Naires:~/r5u870$ make
    make -C /lib/modules/2.6.32-23-generic/build M=/home/nuno/r5u870 V=0 modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-23-generic'
    CC [M] /home/nuno/r5u870/r5u870.o
    /home/nuno/r5u870/r5u870.c:872:1: warning: "V4L2_CID_PRIVACY" redefined
    In file included from include/linux/videodev.h:17,
    from /home/nuno/r5u870/usbcam/usbcam.h:38,
    from /home/nuno/r5u870/r5u870.c:59:
    include/linux/videodev2.h:1160:1: warning: this is the location of the previous definition
    CC [M] /home/nuno/r5u870/usbcam/usbcam_dev.o
    /home/nuno/r5u870/usbcam/usbcam_dev.c: In function ‘usbcam_register_mod’:
    /home/nuno/r5u870/usbcam/usbcam_dev.c:535: warning: assignment from incompatible pointer type
    CC [M] /home/nuno/r5u870/usbcam/usbcam_fops.o
    /home/nuno/r5u870/usbcam/usbcam_fops.c: In function ‘usbcam_v4l_vidioc_querycap’:
    /home/nuno/r5u870/usbcam/usbcam_fops.c:522: error: ‘struct device’ has no member named ‘bus_id’
    /home/nuno/r5u870/usbcam/usbcam_fops.c: In function ‘usbcam_v4l_ioctl’:
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1170: warning: passing argument 1 of ‘video_usercopy’ from incompatible pointer type
    include/media/v4l2-ioctl.h:298: note: expected ‘struct file *’ but argument is of type ‘struct inode *’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1170: warning: passing argument 2 of ‘video_usercopy’ makes integer from pointer without a cast
    include/media/v4l2-ioctl.h:298: note: expected ‘unsigned int’ but argument is of type ‘struct file *’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1170: warning: passing argument 4 of ‘video_usercopy’ makes pointer from integer without a cast
    include/media/v4l2-ioctl.h:298: note: expected ‘v4l2_kioctl’ but argument is of type ‘long unsigned int’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1170: error: too many arguments to function ‘video_usercopy’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1174: warning: passing argument 1 of ‘video_ioctl2’ from incompatible pointer type
    include/media/v4l2-ioctl.h:302: note: expected ‘struct file *’ but argument is of type ‘struct inode *’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1174: warning: passing argument 2 of ‘video_ioctl2’ makes integer from pointer without a cast
    include/media/v4l2-ioctl.h:302: note: expected ‘unsigned int’ but argument is of type ‘struct file *’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1174: error: too many arguments to function ‘video_ioctl2’
    /home/nuno/r5u870/usbcam/usbcam_fops.c:1162: warning: unused variable ‘udp’
    make[3]: *** [/home/nuno/r5u870/usbcam/usbcam_fops.o] Error 1
    make[2]: *** [/home/nuno/r5u870/usbcam] Error 2
    make[1]: *** [_module_/home/nuno/r5u870] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-23-generic'
    make: *** [all] Error 2
    nuno@Naires:~/r5u870$ sudo make install
    make -C /lib/modules/2.6.32-23-generic/build M=/home/nuno/r5u870 V=0 modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-23-generic'

    ReplyDelete

Popular Posts