<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nepherte (dot) be &#187; Sony</title>
	<atom:link href="http://www.nepherte.be/tag/sony/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nepherte.be</link>
	<description>About Nepherte, Mosiah and the person behind</description>
	<lastBuildDate>Mon, 30 Aug 2010 18:45:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Tested Skype on my laptop</title>
		<link>http://www.nepherte.be/skype-on-my-laptop/</link>
		<comments>http://www.nepherte.be/skype-on-my-laptop/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 19:26:37 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[PulseAudio]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[SZ]]></category>
		<category><![CDATA[Vaio]]></category>
		<category><![CDATA[Webcam]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=962</guid>
		<description><![CDATA[After various requests and personal interest in the matter, I finally tryed to get skype working on my Sony Vaio SZ6 with Arch Linux 64bit and pulseaudio installed. Skype and linux never mingled all that well. Supporting linux was never high on their todo list and they surely acted upon it. Skype has never gotten [...]]]></description>
			<content:encoded><![CDATA[<p>After various requests and personal interest in the matter, I finally tryed to get skype working on my Sony Vaio SZ6 with Arch Linux 64bit and pulseaudio installed. Skype and linux never mingled all that well. Supporting linux was never high on their todo list and they surely acted upon it. Skype has never gotten past the beta stage and they released a new version only once in a while. To give you an idea, Skype is at version 2.1.0.47 for linux while it is already at 4.1 for windows. There were many things that held me back in the past to try out Skype but this latest release did put some thing in motion though.</p>
<p>Skype is strictly 32bit and my Arch Linux installation is 64bit. While this should only be a matter of installing the necessary 32bit libraries, I&#8217;m not very keen on doing so because I just don&#8217;t like mixing 32bit and 64bit on a single installation. Why would I otherwise want 64bit, right? This once, for testing purposes, I figured I could put my personal considerations aside.</p>
<p>Another conflict is pulseaudio, which, until this latest release, was not supported by Skype. I&#8217;m glad they did as pulseaudio will be used a lot more now that gnome uses it by default. Oddly enough, they dropped oss support. This doesn&#8217;t affect me but certainly a lot of other people.</p>
<p>Video (webcam) support is also a usual area of conflict. Handling webcams is not done in a unified way on linux and hence causes a lot of conflicts. Luckily for me, I didn&#8217;t have to do a thing other than installing the driver for my webcam.</p>
<p>So after installing the necessary 32bit libraries (including pulseaudio) and installing the driver for my webcam, Skype worked without any problem for the first time. Now it is simply a matter of crowding my skype contact list.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/skype-on-my-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Power Management on Sony Vaio SZ 61</title>
		<link>http://www.nepherte.be/power-management-on-sony-vaio-sz-61/</link>
		<comments>http://www.nepherte.be/power-management-on-sony-vaio-sz-61/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 18:06:43 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[2.26]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[Vaio]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=871</guid>
		<description><![CDATA[After upgrading to the recently released gnome power manager 2.6.26.4, suspending and hibernating my Sony Vaio SZ 61 after a period of inactivity finally works. Note that suspension and hibernation already worked as is. Linux has always lacked decent power management in comparison with Windows, but now this option finally works, it can save a [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading to the recently released gnome power manager 2.6.26.4, suspending and hibernating my Sony Vaio SZ 61 after a period of inactivity finally works. Note that suspension and hibernation already worked as is. Linux has always lacked decent power management in comparison with Windows, but now this option finally works, it can save a lot of battery time while working on battery. The update also fixed the broken turning off the screen display.</p>
<p>I can easily squeeze a respectable 3 hours out of my battery with 100% brightness. This can be increased to at least 4 hours when working on a lower, but still workable brightness. I hope developers will continue to work on power management so that I can get to work 5 hours without plugging in the cord as in Windows. I believe work points are automation of powering down/off usb devices, hard disks, sound card and wireless network card, things that can be done manually in the console if you have the expertise.</p>
<p>Looking forward to the next stable gnome release 2.28 with hopefully some new power management features.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/power-management-on-sony-vaio-sz-61/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arch Linux on a Sony Vaio SZ 6</title>
		<link>http://www.nepherte.be/arch-linux-on-a-sony-vaio-sz-6/</link>
		<comments>http://www.nepherte.be/arch-linux-on-a-sony-vaio-sz-6/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 15:22:52 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[SZ]]></category>
		<category><![CDATA[Vaio]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=363</guid>
		<description><![CDATA[If you somewhat follow this blog, you probably know that I&#8217;m running Arch Linux as my primary operating system. I&#8217;m using this on my Sony Vaio SZ 6 for +/- 5 months now. I&#8217;m very pleased with both Arch Linux and the laptop and they happily work together. This article is about how I set [...]]]></description>
			<content:encoded><![CDATA[<p>If you somewhat follow this blog, you probably know that I&#8217;m running <a href="http://www.archlinux.org">Arch Linux</a> as my primary operating system. I&#8217;m using this on my Sony Vaio SZ 6 for +/- 5 months now. I&#8217;m very pleased with both Arch Linux and the laptop and they happily work together. This article is about how I set up Arch on this Sony Vaio. There were made several models in the SZ series and the instructions should more or less apply to most of them. If you are an owner of this laptop and you tryed out these instructions, I&#8217;d be happy to get your feedback on it.</p>
<h5>Change Log</h5>
<p>21-02-2010:</p>
<ul>
<li>Added nouveau driver as alternative to official nvidia driver</li>
<li>Mention the use of KMS</li>
</ul>
<p>27-06-2009:</p>
<ul>
<li>Added ftp install disk to installation notes</li>
<li>Mention the use of module auto-detection</li>
<li>Arch now uses /etc/modprobe.d/modprobe.conf</li>
<li>Had a change to test the mic, it works</li>
<li>No need to add dbus if hal is specified</li>
<li>Brightness works as is now</li>
<li>Added FN-keys section</li>
</ul>
<p></p>
<h5>Table of Content:</h5>
<p><a href="#hardware">1. Hardware Specifications</a><a href="http://www.nepherte.be/wp-content/uploads/2009/03/sony-vaio-sz6.jpg"><img class="alignright size-medium wp-image-424" title="Sony Vaio SZ6" src="http://www.nepherte.be/wp-content/uploads/2009/03/sony-vaio-sz6-300x224.jpg" alt="Sony Vaio SZ6" width="300" height="224" /></a><br />
<a href="#installation">2. Installation</a><br />
<a href="#arch">3. Arch Linux</a><br />
<a href="#processor">4. Processor</a><br />
<a href="#wired">5. Wired Network</a><br />
<a href="#wireless">6. Wireless Network</a><br />
<a href="#sound">7. Sound Card</a><br />
<a href="#graphics">8. Graphic Cards</a><br />
<a href="#keyboard">9. Keyboard</a><br />
<a href="#touchpad">10. Touchpad</a><br />
<a href="#bluetooth">11. Bluetooth</a><br />
<a href="#webcam">12. Webcam</a><br />
<a href="#brightness">13. Brightness</a><br />
<a href="#modem">14. Modem</a><br />
<a href="#cardreader">15. Card Reader</a><br />
<a href="#suspend">16. Suspend &amp; Hibernate</a><br />
<a href="#fnkeys">17. FN Keys</a></p>
<h5>Appendix:</h5>
<p><a href="#cpuinfo">A. CPU Info</a><br />
<a href="#intel">B. Intel X Configuration File</a><br />
<a href="#nvidia">C. Nvidia X Configuration File</a><br />
<a href="#evdev">D. Keyboard Configuration File</a><br />
<a href="#synaptics">E. Touchpad Configuration File</a><br />
<a href="#lspci">F. Lspci Output</a><br />
<a href="#lsusb">G. Lsusb Output</a></p>
<h5><a name="hardware">Hardware Specifications</a></h5>
<p>Here are the relevant hardware specifications for the Sony Vaio SZ61 XN/C:</p>
<ul>
<li>Processor:	            Intel Core 2 Duo T7500 @ 2.2GHz</li>
<li>Memory:		    2048MB @ 533Mhz DDR2</li>
<li>Hard Disk:	            160GB 5400rpm</li>
<li>Graphics:	            nVidia GeForce 8400M GS + Intel GM965 Integrated Graphics</li>
<li>Sound Card:            Sigmatel CXD9872 Intel High Definition Audio Codec</li>
<li>Wireless Network:    Intel PRO/Wireless 3945ABG</li>
<li>Wired Network:        Marvel 88E8055 PCI-E Gigabit Ethernet</li>
<li>Bluetooth:	            Cambridge Silicon Radio</li>
<li>Webcam:                 Ricoh r5u870 (05ca:183a)</li>
<li>Touchpad:               AlpsPS/2 ALPS Touchpad</li>
</ul>
<p></p>
<h5><a name="installation">Installation</a></h5>
<p>The installation is pretty straight forward following the <a href="http://wiki.archlinux.org/index.php/Beginners_Guide">Arch Linux Beginner&#8217;s Guide</a>. You shouldn&#8217;t encounter any problems if you read the guide&#8217;s instructions carefully. I recommend using the Intel GM965 graphic card during the installation and a wired network if it&#8217;s at your disposal. You can then configure the other graphic card and the wireless network afterwards. Nevertheless, the installation should work with whatever you chose to use but it might require some extra steps. From now on I will be assuming you followed my recommendation. For the record, I&#8217;ve used  both the 2008.06 x86_64 core and ftp install disk with success. In the end they aren&#8217;t any different from eachother. When using the ftp install disk, you&#8217;ll end up with the most recent packages available in the repositories at once. When using the core cd, you need to issue a system wide update to acquire the same result.</p>
<h5><a name="arch">Arch Linux</a></h5>
<p>This tutorial is written while using a snapshot of Arch Linux, dated on 28 february 2009. This snapshot includes the following versions of important packages:</p>
<ul>
<li>Arch Linux 64 bit fully updated</li>
<li>Kernel 2.6.28.7 SMP PREEMPT</li>
<li>X.org 7.4 (xorg-server 1.5.3-4)</li>
<li>Alsa 1.0.19</li>
<li>Nvidia driver 180.22</li>
<li>XF86-video-intel 2.4.3-1</li>
</ul>
<p>As you may have noticed, I&#8217;m using a 64 bit operating system. Some people are afraid of it, thinking it is somehow more difficult or that it is missing some important software packages. Others are just opposed to 64 bit. I can tell you there is no reason not to use 64 bit. There is no important software missing (there is a native 64 bit version for both java, its browser plugin and flash) and in few specific scenarios you&#8217;ll get a significant performance increase.</p>
<h5><a name="processor">Processor</a></h5>
<p>The dual core processor is, obviously, recognized out of the box. By installing cpufrequtils, you can enable cpu frequency scaling:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> cpufrequtils</pre></div></div>

<p>To start the cpu frequency scaling daemon on startup, add cpufreq to the DAEMON array in /etc/rc.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">DAEMONS</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>syslog-ng <span style="color: #000000; font-weight: bold;">@</span>cpufreq ... <span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>The available scaling governor is cpufreq_ondemand. You will have to load this module together with acpi-cpufreq on startup by adding it to the MODULES array in /etc/rc.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">MODULES</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>acpi-cpufreq cpufreq_ondemand ... <span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>You can set the desired governer (ondemand) in /etc/conf.d/cpufreq along with the minimum and maximum cpu frequency:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">governor</span>=<span style="color: #ff0000;">&quot;ondemand&quot;</span>
<span style="color: #007800;">min_freq</span>=<span style="color: #ff0000;">&quot;0.8GHz&quot;</span>
<span style="color: #007800;">max_freq</span>=<span style="color: #ff0000;">&quot;2.2GHz&quot;</span></pre></div></div>

<p>The full output of /proc/cpuinfo can be found in <a href="#cpuinfo">Appendix A</a>. More information about cpu frequency scaling can be found on the Arch Linux <a href="http://wiki.archlinux.org/index.php/CPU_Frequency_Scaling">CPU Frequency Scaling</a> and <a href="http://wiki.archlinux.org/index.php/Cpufrequtils">Cpufrequtils</a> page.</p>
<h5><a name="wired">Wired Network</a></h5>
<p>The Marvel 88E8055 PCI-E Gigabit Ethernet network card should have been detected during the installation, together with the appropriate module. It uses the sky2 module. Add it to the MODULES array:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">MODULES</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>sky2<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p><em>For a while now, Arch Linux is able to auto-detect the required modules by setting</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">MOD_AUTOLOAD</span>=<span style="color: #ff0000;">&quot;yes&quot;</span></pre></div></div>

<p>in /etc/rc.conf. There is no need to specify all the modules in the MODULES array anymore. Only to explicity prohibit something from loading, the MODULES array is useful. In a limited number of cases, it doesn&#8217;t detect the modules like the ones from cpu scaling. I simply list the modules for reference.</em></p>
<h5><a name="wireless">Wireless Network</a></h5>
<p>First, you will need the wireless_tools package. If you have a wired network connection available, it&#8217;s as easy as:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> wireless_tools</pre></div></div>

<p>The package is also included in the Arch Linux install disc. If you want to use the wireless network during the setup, don&#8217;t forget to install it.</p>
<p>Apart from wireless_tools, you will also need the firmware for the wireless network card, in our case the Intel 3945/ABG. Install iwlwifi-3945-ucode:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> iwlwifi-<span style="color: #000000;">3945</span>-ucode</pre></div></div>

<p>Now add the iwl3945 module to the modules array. I also recommend blacklisting the older propriatary module ipw3945 to avoid any conflicts:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">MODULES</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span>ipw3945 iwl3945 ... <span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>For more information on setting up a wireless network card, especially during the installation, see the <a href="http://wiki.archlinux.org/index.php/Wireless">Arch Linux Wireless</a> page.</p>
<h5><a name="sound">Sound Card</a></h5>
<p>The sound card should be detected during the installation, together with the necessary modules. In case something goes wrong, here are the modules you have to load:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">MODULES</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">!</span>snd_pcsp snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore ..<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>I also disabled the pc speaker (!snd_pcsp and !pcspkr) because it really irritates me and probably you as well. The headphone jack doesn&#8217;t work without an extra line in /etc/modprobe.d/modprobe.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">options snd-hda-intel <span style="color: #007800;">model</span>=vaio</pre></div></div>

<p>Recording sound using the microphone input works out of the box.</p>
<h5><a name="graphics">Graphic Cards</a></h5>
<p>As mentioned before, this laptop comes with 2 graphic cards: one on board Intel card and one dedicated Nvidia card. You can get each single one to work without ever using the other. You can also set up Arch Linux to use both, but only one will be active at the time of course. You should already have one card working with the Arch Linux installation. I&#8217;ll explain how to get both working. Apart from installing xorg and mesa, you need a libgl implementation. Open source drivers use the libgl package from the repositories, propriatary drivers come with their own libgl implemenation. Now here&#8217;s the bad news: when installing both drivers from the repositories, these two libgl implementations will conflict and pacman will refuse to install both. We&#8217;ll install the Intel driver first if you haven&#8217;t already done that during the installation:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> xorg mesa libgl xf86-video-intel</pre></div></div>

<p>That shouldn&#8217;t give you any problems since the Nvidia driver is not installed yet. My xorg.conf file for the Intel card can be found in <a href="#intel">Appendix B</a>. </p>
<p>The Intel card and its driver fully support kernel mode setting (KMS) and with a more recent kernel and Intel driver, KMS is required. The most noteworthy features of KMS are full resolution virtual terminals and fast switching between virtual terminals. For more information about KMS, see the <a href="http://wiki.archlinux.org/index.php/KMS">Arch Linux KMS page</a>.</p>
<p>Now we move on to the Nvidia card. Reboot your laptop and use the speed mode switch on the laptop. The X server will refuse to start. No problem, login using the console after you cancelled the X server messages. Instead of installing the Nvidia drivers with pacman, we&#8217;re going to install it manually to avoid pacman conflicts. It won&#8217;t harm the system. Open up a terminal, make sure you&#8217;re in the home directory and get the driver from the Nvidia website:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>us.download.nvidia.com<span style="color: #000000; font-weight: bold;">/</span>XFree86<span style="color: #000000; font-weight: bold;">/</span>Linux-x86_64<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">180.22</span><span style="color: #000000; font-weight: bold;">/</span>NVIDIA-Linux-x86_64-<span style="color: #000000;">180.22</span>-pkg2.run</pre></div></div>

<p>You can always change the version number if you want an older or more recent driver.</p>
<p>Switch to run level 3 to make sure X isn&#8217;t running:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> telinit <span style="color: #000000;">3</span></pre></div></div>

<p>Go back to where we downloaded the driver (home directory) and launch the installer:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">sh</span> NVIDIA-Linux-x86_64-<span style="color: #000000;">180.22</span>-pkg2.run</pre></div></div>

<p>From now on, simply follow the installer&#8217;s instructions. Afterwards you&#8217;ll have the Nvidia driver installed. You can find my /etc/X11/xorg.conf file for the Nvidia card in <a href="#nvidia">Appendix C</a>. You can already start X to see if it&#8217;s also working with your Nvidia card:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">startx</pre></div></div>

<p>Now it&#8217;s simply a matter of using the right xorg.conf configuration file for each graphic card. To automatically use the correct one on boot, you can use this script:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;">VIDEO</span>=<span style="color: #000000; font-weight: bold;">`/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">lspci</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-c</span> nVidia<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$VIDEO</span>&quot;</span> = <span style="color: #000000;">1</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf.nvidia <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Nvidia Card Detected&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf.intel <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Intel Card Detected&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>Make sure you have /etc/X11/xorg.conf.nvidia and /etc/X11/xorg.conf.intel or change the paths in the script to the correct ones. Save the script somewhere and make it executable. Now add the path of the script to /etc/rc.local:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>path<span style="color: #000000; font-weight: bold;">/</span>to<span style="color: #000000; font-weight: bold;">/</span>xorg<span style="color: #000000; font-weight: bold;">/</span>switch<span style="color: #000000; font-weight: bold;">/</span>script</pre></div></div>

<p>One downside of this method is that you can only use the 3D mode with one graphic card, in this case the nvidia card. I figured you&#8217;d want the better card of the two to be able to use the 3D mode. Another downside is that you won&#8217;t be able to change the brightness of your screen (maybe you can but I didn&#8217;t look into it). Changing the brightness does work when you only use the Intel card. You&#8217;ll have to decide for yourself if the advantages outweigh the disadvantages.</p>
<p>An interesting alternative to the official binary NVIDIA driver is the open-source nouveau driver. It has excellent 2D support and supports KMS. If you don&#8217;t need 3D support (which is still in development), I even recommend nouveau over the official driver. To install the nouveau driver:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> xf86-video-nouveau nouveau-firmware</pre></div></div>

<p></p>
<h5><a name="keyboard">Keyboard</a></h5>
<p>Since X.org 7.4, hal takes care of your keyboard/mouse/touchpad, also known as hot-plugging. Therefore you don&#8217;t have to put a keyboard input device section in your xorg.conf file as you can see in the one I provided (see <a href="#intel">Appendix B</a> or <a href="#nvidia">Appendix C</a>). Make sure you have the xf86-input-evdev package installed and that you have the hal service running. Then you can use my file found in <a href="#evdev">Appendix D</a>. Save it to /etc/hal/fdi/policy/10-keymap.fdi and restart the hal service.</p>
<p>More information on hot-pluggable input devices can be found on the <a href="http://wiki.archlinux.org/index.php/Xorg_input_hotplugging">Arch Linux Xorg Input Hotplugging</a> page.</p>
<h5><a name="touchpad">Touchpad</a></h5>
<p>The touchpad is similar to the keyboard: you will need a fdi file to get it to work. Tapping, right mouse click in the corner, horizontal and vertical scrolling, &#8230; it all works. My fdi file can be found in <a href="#synaptics">Appendix E</a>. Save it to /etc/hal/fdi/policy/11&#8211;x11-synaptic.fdi and restart the hal service.</p>
<h5><a name="bluetooth">Bluetooth</a></h5>
<p>You need the linux bluetooth protocol stack. To install, run</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> bluez</pre></div></div>

<p>You need to start dbus and bluetooth in that order. You could add it to the DAEMONS array:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">DAEMONS</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span>dbus bluetooth ... <span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>but I only start the bluetooth service when needed. That way I save some battery time. Note that hal already starts the dbus daemon by itself so if you have hal listed in the DAEMONS array, you don&#8217;t need to add dbus anymore. Gnome also has a nice applet you can load for bluetooth. I also strongly recommend blueman, a GTK+ bluetooth management utility. For more information, again see the <a href="http://wiki.archlinux.org/index.php/Bluetooth">Arch Linux Bluetooth</a> page.</p>
<h5><a name="webcam">Webcam</a></h5>
<p>Some time ago, the developper of the drivers for this webcam switched to a userspace tool instead of using kernel modules. This is how you get webcam working:</p>
<p>Get mercurial:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> pacman <span style="color: #660033;">-S</span> mercurial</pre></div></div>

<p>Set up a directory where we will build the driver:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> ~<span style="color: #000000; font-weight: bold;">/</span>r5u870</pre></div></div>

<p>Get the source:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>r5u870
hg clone http:<span style="color: #000000; font-weight: bold;">//</span>bitbucket.org<span style="color: #000000; font-weight: bold;">/</span>ahixon<span style="color: #000000; font-weight: bold;">/</span>r5u87x<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<p>Build the driver:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> r5u87x
<span style="color: #c20cb9; font-weight: bold;">make</span></pre></div></div>

<p>Load the driver with the correct firmware:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ucode<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> ..<span style="color: #000000; font-weight: bold;">/</span>loader <span style="color: #660033;">-f</span> r5u87x-05ca-183a.fw</pre></div></div>

<p>You will probably have to reload the uvcvideo module to get your webcam working in the current session:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> rmmod uvcvideo <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe uvcvideo</pre></div></div>

<p>Every time you want to use the webcam, you have to use loader. A more convenient way is to create an alias for this rather long command. To do so, add the following to your .bashrc file (located in your home directory):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> <span style="color: #007800;">webcam</span>=<span style="color: #ff0000;">'sudo /home/user/r5u870/r5u87x/loader --reload -f /home/user/r5u870/r5u87x/ucode/r5u87x-05ca-183a.fw'</span></pre></div></div>

<p>Don&#8217;t forget to replace user with your user name. There are sevaral programs you can use for your webcam. The most popular ones are cheese (gnome), xawtv and skype.</p>
<h5><a name="brightness">Brightness</a></h5>
<p>For a while now, brightness works without any hacks for the intel card. I&#8217;ll leave the hack here to get it to work in older arch linux installations: It relies on xbacklight and acpid to change the brightness of the screen. xbacklight is included in the xorg-server-util package. The latter one is probably already installed, but xbacklight might not. Be sure to add acpid to the DAEMONS array:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">DAEMONS</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">@</span>acpid ... <span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Now create a brightness script named sonybright.sh in /etc/acpi/actions containing:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;x$1&quot;</span> = <span style="color: #ff0000;">&quot;xdown&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
xbacklight <span style="color: #660033;">-time</span> <span style="color: #000000;">100</span> <span style="color: #660033;">-steps</span> <span style="color: #000000;">10</span> <span style="color: #660033;">-dec</span> <span style="color: #000000;">10</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>sonybright.log
<span style="color: #000000; font-weight: bold;">elif</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;x$1&quot;</span> = <span style="color: #ff0000;">&quot;xup&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
xbacklight <span style="color: #660033;">-time</span> <span style="color: #000000;">100</span> <span style="color: #660033;">-steps</span> <span style="color: #000000;">10</span> <span style="color: #660033;">-inc</span> <span style="color: #000000;">10</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>sonybright.log
<span style="color: #000000; font-weight: bold;">else</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000;">2</span> Unknown argument $<span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>This script is supposed to be executed whenever you press the brightness up and down key. To do so, you will need to create two more files in /etc/acpi/events: sonybright-up and sonybright-down</p>
<p>sonybright-up:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/acpi/events/sony-brightness-up</span>
<span style="color: #007800;">event</span>=sony<span style="color: #000000; font-weight: bold;">/</span>hotkey SPIC 00000001 00000011
<span style="color: #007800;">action</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>acpi<span style="color: #000000; font-weight: bold;">/</span>actions<span style="color: #000000; font-weight: bold;">/</span>sonybright.sh up</pre></div></div>

<p>sonybright-down:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/acpi/events/sony-brightness-down</span>
<span style="color: #007800;">event</span>=sony<span style="color: #000000; font-weight: bold;">/</span>hotkey SPIC 00000001 00000010
<span style="color: #007800;">action</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>acpi<span style="color: #000000; font-weight: bold;">/</span>actions<span style="color: #000000; font-weight: bold;">/</span>sonybright.sh down</pre></div></div>

<p>the event SPIC key should be the same, however it is best to verify this with the acpi_listen command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">acpi_listen</pre></div></div>

<h5><a name="modem">Modem</a></h5>
<p>Not tested.</p>
<h5><a name="cardreader">Card Reader</a></h5>
<p>Works out of the box. Nothing extra is required.</p>
<h5><a name="suspend">Suspend &amp; Hibernate</a></h5>
<p>Suspending and hibernating the laptop works hassle free. It only works with the Intel card out of the box though. I take you could also make it work for the Nvidia card by editing some files, but then I assume it wouldn&#8217;t work for the Intel card. Since you probably want to use suspension and hibernation for saving power, you&#8217;d want to Intel card as it consumes less power to start with.</p>
<h5><a name="fnkeys">FN Keys</a></h5>
<p>The most important fn keys are working: volume up/down, mute, brightness up/down, switch monitor. The fn-keys rely on acpi. Make sure acpi and acpid are installed and add acpid to the DAEMONS array:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">DAEMONS</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000; font-weight: bold;">@</span>acpid ... <span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>You should be able to get other fn keys to work in a way similar to the old brightness hack as listed in the <a href="#brightness">Brightness</a> section.</p>
<h5><a name="cpuinfo">A. CPU Info</a></h5>
<p><a href="http://www.nepherte.be/files/cpuinfo">Here</a>&#8216;s the full output of /proc/cpuinfo. You can also verify that cpu frequency scaling is enabled and working (cpu MHz	 800.000).</p>
<h5><a name="intel">B. Intel X Configuration File</a></h5>
<p><a href="http://www.nepherte.be/files/xorg.conf.intel">Here</a>&#8216;s my Intel X Configuration File.</p>
<h5><a name="nvidia">C. Nvidia X Configuration File</a></h5>
<p><a href="http://www.nepherte.be/files/xorg.conf.nvidia">Here</a>&#8216;s my Nvidia X Configuration File.</p>
<h5><a name="evdev">D. Keyboard Configuration File</a></h5>
<p><a href="http://www.nepherte.be/files/10-keymap.fdi">Here</a>&#8216;s my Keyboard Configuration File. Don&#8217;t forget the change the keyboard layout to correspond with your language.</p>
<h5><a name="synaptics">E. Touchpad Configuration File</a></h5>
<p><a href="http://www.nepherte.be/files/11-x11-synaptics.fdi">Here</a>&#8216;s my Touchpad Configuration File.</p>
<h5><a name="lspci">F. Lspci Output</a></h5>
<p><a href="http://www.nepherte.be/files/lspci">Here</a>&#8216;s the output for lspci. The nvidia card isn&#8217;t listed because I&#8217;m using the Intel card right now.</p>
<h5><a name="lsusb">G. Lsusb Output</a></h5>
<p><a href="http://www.nepherte.be/files/lsusb">Here</a>&#8216;s the output for lsusb.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/arch-linux-on-a-sony-vaio-sz-6/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Caught off guard by screen brightness</title>
		<link>http://www.nepherte.be/caught-off-guard-by-screen-brightness/</link>
		<comments>http://www.nepherte.be/caught-off-guard-by-screen-brightness/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 19:01:17 +0000</pubDate>
		<dc:creator>Nepherte</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[screen brightness]]></category>
		<category><![CDATA[Sony]]></category>
		<category><![CDATA[Vaio]]></category>

		<guid isPermaLink="false">http://www.nepherte.be/?p=274</guid>
		<description><![CDATA[Today I was surprised in a very pleasant way. I performed my daily routine of updating my Sony Vaio SZ6, powered by Arch Linux. When I rebooted my laptop a few hours later, I was welcomed by a dimmed screen. That never happened to me before. Don&#8217;t get me wrong, I can change my screen [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was surprised in a very pleasant way. I performed my daily routine of updating my Sony Vaio SZ6, powered by Arch Linux. When I rebooted my laptop a few hours later, I was welcomed by a dimmed screen. That never happened to me before. Don&#8217;t get me wrong, I can change my screen brightness but I always had to circumvent a certain <a title="bug #176888" href="https://bugs.launchpad.net/ubuntu/+source/xbacklight/+bug/176888">bug</a> in xbacklight or the kernel. Not anymore. I suspect the new kernel 2.6.28.2 for fixing the issue. I&#8217;m not 100% sure though since there were a lot of updates. Another thumbs up for (Arch) Linux.</p>
<p>This brings me one step closer to a perfect compatible linux setup. Last obstacle is the fingerprint reader I never use. The device itself is supported by libfprint, the library responsible for fingerprint authentication, but Sony modified the firmware to prevent any non-sony software to communicate with it. So far, they succeeded. Let&#8217;s hope not for long.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nepherte.be/caught-off-guard-by-screen-brightness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
