Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing on Vaio VPCZ1 - Share your experience
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Thu Apr 07, 2011 4:50 pm    Post subject: Installing on Vaio VPCZ1 - Share your experience Reply with quote

I'm trying to make fully functional laptop system using Gentoo and command line tools (I'm not crazy with CLI - just using WMII as window manager).

Hardware
Product name: VPCZ133GX
Model: PCG-31112L
2 x 64GB SSD (RAID removed)

lspci: http://pastebin.mozilla.org/1220889
Current lspci -k: http://pastebin.mozilla.org/1220890
Kernel 2.6.38-gentoo-r4 is build with genkernel
Current config: http://piotr.zalewa.info/downloads/kernel-config [updated 23/5/2011]

I use 32bit Gentoo

Still to do:

  • Sound recording (microphone muted)
  • Working Motion Eye camera
  • HDMI video output
  • USB Dongle with 3G
  • SD Card reader

Working

  • Sound out (ALSA)
  • CPU frequency scaling (cpufreqd)
  • Native resolution with Intel
  • Battery status is fully read (acpitool)
  • Fans are changing speed automatically, I haven't tried to use any tool to change them
  • WiFi (iwlagn)
  • Changing backlight using xbacklight
  • LAN (from day one)
  • Suspend to RAM (using pm-suspend from sys-power/pm-utils or acpitool -s - sys-power/acpitool)
  • VGA output (mirror only - not dual screen due to maximum joined resolution > 2048)
  • Battery life currently reports 14W which equals to about 4h discharge time

Not really trying to configure

  • Hibernation (suspend to disk) - no swap partition
  • Sony Magic Gate
  • NVIDIA - I use it for programming - no need for 3D acceleration


Last edited by zalun on Mon May 23, 2011 4:39 pm; edited 19 times in total
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1060
Location: Berlin, Germany

PostPosted: Thu Apr 07, 2011 7:24 pm    Post subject: Reply with quote

If the laptop uses Optimus and has no BIOS switch between discrete and integrated graphics, then you probably cannot use the Nvidia chipset anyway. It will only consume power.

The rest should mostly work. Custom fan speed control may require some tinkering with /sys/class/thermal .
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Thu Apr 07, 2011 7:48 pm    Post subject: Reply with quote

Isn't saving power a reaon behind that hybrid setup?

chithanh wrote:
If the laptop uses Optimus and has no BIOS switch between discrete and integrated graphics, then you probably cannot use the Nvidia chipset anyway. It will only consume power.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1060
Location: Berlin, Germany

PostPosted: Thu Apr 07, 2011 7:58 pm    Post subject: Reply with quote

Yes, but Nvidia only supports Optimus on Windows.
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Fri Apr 08, 2011 12:18 am    Post subject: Reply with quote

I've just run the live DVD

Everything worked smoothly (I couldn't login to office's WiFi network though - it uses PEAP security, it found all WiFi networks so I assume it's working, just me couldn't configure it properly).

I will need to reinstall Windows as it's RAID0 and gparted can't work with it (I assume so).
I've read the best would be to remove RAID0 which will split the disks and "recover Windows" (I need Win7 for IE9 testing).
Because of that I will probably not be able to start until May as I will need the development environment.
Arghh I will use Windows for 3 more weeks... Interesting experience...
If you happen to have a solution for that - please share.

lspci did show NVidia card, so I think it might actually work

System didn't reacted for switching the video card - I assume it's a software switch so it may not work.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1060
Location: Berlin, Germany

PostPosted: Fri Apr 08, 2011 11:13 pm    Post subject: Reply with quote

If you use BIOS-based fakeraid, then you need to pass the "dodmraid" parameter to the LiveDVD initramfs during boot.

But fakeraid is better avoided if you can.
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Sat Apr 09, 2011 1:40 am    Post subject: Reply with quote

chithanh wrote:
But fakeraid is better avoided if you can.


So you think I should do what I wrote above...
Disable fakeraid, restore Windows (I need that system for testing), work on 2 disks
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Wed May 04, 2011 12:58 pm    Post subject: Reply with quote

Live DVD uses Intel card (1600x900).
I installed minimal Gentoo with LAN and now trying to force X to work.
No luck on both - Nvidia and Intel

[Edit]
I managed to run X using Vesa card (1024x768)
How to reproduce Live DVD functionality?

[Edit2]
For intel to work - follow closely gentoo X howto http://www.gentoo.org/doc/en/xorg-config.xml especially the framebuffer configs.
I also disabled Nvidia in kernel.
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Thu May 05, 2011 12:06 am    Post subject: Reply with quote

For WiFi (iwl6000) I followed the wiki http://en.gentoo-wiki.com/wiki/Iwlwifi
Works well with WEP, I hope it will work fine with wpa_supplicant as well
Back to top
View user's profile Send private message
balkira
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2004
Posts: 99
Location: /local/pub

PostPosted: Fri May 06, 2011 12:36 pm    Post subject: Reply with quote

The nvidia card DOES work if you patch the bios.

I got a z13 for a year now and it's working like a charm.

Refer to the https://launchpad.net/~sony-vaio-z-series mailing list for Howtos etc..
_________________
no way to happiness, happiness is the way
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Fri May 06, 2011 5:11 pm    Post subject: Reply with quote

Brilliant - joined the launchpad group.
I'm fine with using Intel - I use the computer for coding while not at home. The main graphic feature for me is the resolution and 2D acceleration.
I will however need to work towards power management - it holds 2h on batteries, while it was 3h30m under Windows.
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Fri May 06, 2011 5:25 pm    Post subject: Reply with quote

I can put the vaio to sleep:
I installed
Code:
sys-power/acpitool

Command:
Code:
acpitool -s

There are issues with waking up wireless (iwlan). I need to manually restart the service and remove the pid file.[/code]
Back to top
View user's profile Send private message
balkira
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2004
Posts: 99
Location: /local/pub

PostPosted: Fri May 06, 2011 5:28 pm    Post subject: Reply with quote

If you plan on only using the intel card then I guess you don't need bios patching because if I recall the intel is by default enabled.
That was the problem for me because I wanted to game with the device.

The optimus switch just doesn't work by default hence the bios patch. Last year there was a trick to boot on an older kernel to bios-enable the nvidia card, but since 2.6.37 kernels I noticed I didn't need to switch kernels anymore. A reboot with a recent kernel (2.6.38 ) is required though which is totally fine for me.

Nowadays there is the switcheroo trick that should let you just restart X between the 2 cards but I've never felt the need to use it.
_________________
no way to happiness, happiness is the way
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Fri May 06, 2011 5:32 pm    Post subject: Reply with quote

I will need to make it work with external monitors (VGA and HDMI) so there will be some work needed.
Someone suggested that NVidia is consuming power, maybe I'll need to put some work into switching it entirely off (wish there would be such a BIOS setting...)
Back to top
View user's profile Send private message
balkira
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2004
Posts: 99
Location: /local/pub

PostPosted: Fri May 06, 2011 6:43 pm    Post subject: Reply with quote

zalun wrote:
I will need to make it work with external monitors (VGA and HDMI) so there will be some work needed.
Someone suggested that NVidia is consuming power, maybe I'll need to put some work into switching it entirely off (wish there would be such a BIOS setting...)


Nvidia indeed uses a lot of power but I have no knowledge as to how to optimize as I use the z13 as a workstation with the nvidia card only. I think I've managed to use the HDMI interface with my TV in the past, I would guess it's feasible with the intel card but cannot assert.

Remember to use at least a 2.6.38 kernel things should be much less painful.

You can skip the http://global-social.net/tiki-view_blog.php?blogId=3 tricks from the mailing list as it's quite old now but it's always good to read to get some knowledge.
It's even likely that 2.6.38 doesn't need you to patch the kernel to make the proper acpi calls and get the proper card activated upon next reboot.

As a last advise use a recent livecd to boot and install like https://sourceforge.net/projects/systemrescuecd/files/sysresccd-x86/2.1.0/systemrescuecd-x86-2.1.0.iso/download
If I recall use the nox boot option to prevent black screen or weird fb.

enjoy the geeking ;)
_________________
no way to happiness, happiness is the way
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Sat May 07, 2011 3:59 pm    Post subject: Reply with quote

Newer kernel gave me the better synaptics support (double finger scroll ftw
cpufreqd is automatically setting processors speed, which is great.
I'm now looking into a way to dim the screen backlight...
Back to top
View user's profile Send private message
balkira
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2004
Posts: 99
Location: /local/pub

PostPosted: Sat May 07, 2011 6:28 pm    Post subject: Reply with quote

zalun wrote:
I'm now looking into a way to dim the screen backlight...


To my knowledge this is not possible yet. But my info dates from few months ago.

If you have any tips I'd be glad to know too :)
_________________
no way to happiness, happiness is the way
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Sat May 07, 2011 11:23 pm    Post subject: Reply with quote

Backlight lightness setting is working. I simply installed
Code:
x11-apps/xbacklight
Back to top
View user's profile Send private message
balkira
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2004
Posts: 99
Location: /local/pub

PostPosted: Sun May 08, 2011 10:14 am    Post subject: Reply with quote

zalun wrote:
Backlight lightness setting is working. I simply installed
Code:
x11-apps/xbacklight


That is when you use intel right? because with the nvidia card it doesn't seem to work :(
_________________
no way to happiness, happiness is the way
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Sat May 21, 2011 1:13 am    Post subject: Reply with quote

I'm trying to get the HDMI output.

I've got a big screen (1920x1200). It is properly recognized, and VGA output is working in native resolution

This switches off the screen and displays properly on the VGA output:
Code:
xrandr --output eDP1 --off --output VGA1 --auto


I tried many options, in example, after above:
Code:
xrandr --output HDMI1 --auto --same-as VGA1


However HDMI1 gives no signal (on both - monitor and projector).
Although I could work with VGA, the signal is quite bad (I blame the resolution).

xrandr output after above commands:

Code:
zalun@arrakis ~ $ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 8192 x 8192
eDP1 connected (normal left inverted right x axis y axis)
   1600x900       59.9 +
   1024x768       60.0 
   800x600        60.3     56.2 
   640x480        59.9 
VGA1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 550mm x 340mm
   1920x1200      60.0*+
   1920x1080      60.0 
   1680x1050      60.0 
   1280x1024      75.0     60.0 
   1440x900       59.9 
   1280x960       60.0 
   1152x864       75.0 
   1024x768       75.1     70.1     60.0 
   832x624        74.6 
   800x600        72.2     75.0     60.3     56.2 
   640x480        72.8     75.0     66.7     60.0 
   720x400        70.1 
HDMI1 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 550mm x 340mm
   1920x1200      60.0*+
   1680x1050      60.0 
   1280x1024      75.0     60.0 
   1440x900       59.9 
   1280x960       60.0 
   1152x864       75.0 
   1024x768       75.1     70.1     60.0 
   832x624        74.6 
   800x600        72.2     75.0     60.3     56.2 
   720x480        59.9 
   640x480        72.8     75.0     66.7     60.0 
   720x400        70.1 
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Mon May 23, 2011 11:10 am    Post subject: Reply with quote

Improving battery usage. I managed to get it to report 2h45 discharge time.

I do use the laptop-mode and tuned the kernel as adviced by powertop: http://sprunge.us/NGFY

Here is the screenshot from powertop device stats: http://dpaste.com/hold/545545/
Full Tunables report while on battery: http://dpaste.com/hold/545546/

What is strange is the NVidia HDA Audio device. Reports 100% usage.
Code:
100.0%        PCI Device: nVidia Corporation High Definition Audio Controller

There is no sound coming out. Tunables (powertop) report:
Code:
Good          Enable Audio codec power management
Good          Runtime PM for PCI Device nVidia Corporation High Definition Audio Controller
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Mon May 23, 2011 2:53 pm    Post subject: Reply with quote

I'm pretty happy with the battery discharge time.
After switching off the Nvidia card it is now reporting 14W power usage which translates to 4h20 (running firefox, chatzilla, pidgin and thunderbird)
It is more than Windows was reporting! double winning!
I followed the http://linux-on-sony-vaio-z.wikispaces.com/VPCZ1390x which showed me the https://github.com/mkottman/acpi_call

I will create a init.d script and post it later on

I think the system still deserves some tweaking as powertop reports
Code:
Summary: 433.9 wakeups/second


[EDIT]
I've got advice from sony-vaio-z-series@lists.launchpad.net to use sony-laptop-zseries module from http://gitorious.org/sony-laptop-zseries/sony-laptop-zseries This should provide better kernel support (automatic load of the module and some more improvements). I will check it as soon I'll find the time.


Last edited by zalun on Fri May 27, 2011 9:26 am; edited 1 time in total
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Mon May 23, 2011 4:10 pm    Post subject: Reply with quote

WiFi is working "fine" after wake up from suspend if system is put to sleep using
Code:
pm-suspend
from sys-power/pm-utils package or
Code:
acpitool -s
.

I need to restart wlan0 manually with a little hack, procedure is as follows:
Code:
sudo /etc/init.d/net.wlan0 zap
sudo /etc/init.d/net.wlan0 start
sudo rm /var/run/dhcpcd-wlan0.pid
sudo /etc/init.d/net.wlan0 stop
sudo /etc/init.d/net.wlan0 start

If I'd simply call sudo /etc/init.d/net.wlan0 restart following error will be displayed and wlan0 would not start
Code:
cat: /sys/class/net/wlan0/carrier: Invalid argument
Back to top
View user's profile Send private message
Laetos
n00b
n00b


Joined: 18 Jan 2003
Posts: 25
Location: Globetrotter

PostPosted: Sat Aug 27, 2011 5:12 pm    Post subject: Reply with quote

hey how far are you with your vaio nowadays? What doesn't work?
Back to top
View user's profile Send private message
zalun
Tux's lil' helper
Tux's lil' helper


Joined: 02 Feb 2004
Posts: 89

PostPosted: Mon Aug 29, 2011 8:26 am    Post subject: How far ... Reply with quote

I gave myself some break for the Summer.
So I still don't have internal microphone and camera.
I don't use the NVidia, so it doesn't work as well.
I only heard from the sony-vaio-z-series list @ launchpad.net about patches for the 3.0 kernel. It does look tasty. My svreen got broken, I can use 4/5 of the width (I can't ship it for repair just now), so I'm not really putting any heart to the improvements.

Ah - there is one improvement - if WiFi is configured using wpa_supplicant wake up from suspend work as it should work
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum