<?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>Likegyldig.net &#187; acpi4asus</title>
	<atom:link href="http://likegyldig.net/blog/tag/acpi4asus/feed/" rel="self" type="application/rss+xml" />
	<link>http://likegyldig.net/blog</link>
	<description>Hardware, software and general ramblings of a listless student</description>
	<lastBuildDate>Fri, 18 Jun 2010 14:40:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Running Mandriva Linux 2008.1 on Asus M50Sa notebook</title>
		<link>http://likegyldig.net/blog/2008/07/08/running-mandriva-linux-20081-on-asus-m50sa-notebook/</link>
		<comments>http://likegyldig.net/blog/2008/07/08/running-mandriva-linux-20081-on-asus-m50sa-notebook/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 14:04:47 +0000</pubDate>
		<dc:creator>Lars Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[acpi4asus]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[m50sa]]></category>
		<category><![CDATA[m50sv]]></category>
		<category><![CDATA[mandriva]]></category>

		<guid isPermaLink="false">http://likegyldig.net/blog/?p=4</guid>
		<description><![CDATA[I recently replaced my old Asus M6V notebook with one of Asus&#8217; latest 15,4”  widescreen  configurations, the M50Sa. My model has the Intel Core 2 Duo T9300 CPU, 3 GB of memory,  320 GB hard drive and the AMD/ATI Radeon 3650 graphics adapter (among other nifty  features). Around the time the switch was made, I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="float: left;" src="http://wiki.mandriva.com/en/uploads/4/4e/2008springfree.png" alt="Mandriva Linux 2008 Spring (courtesy of the Mandriva Wiki)" width="200" height="140" /> I recently replaced my old <a title="M6V" href="http://www.asus.com/products.aspx?l1=5&amp;l2=24&amp;l3=128&amp;l4=0&amp;model=479&amp;modelmenu=1">Asus M6V</a> notebook with one of Asus&#8217; latest 15,4”  widescreen  configurations, the <a title="M50Sa" href="http://www.asus.com/products.aspx?l1=5&amp;l2=74&amp;l3=616&amp;l4=0&amp;model=2107&amp;modelmenu=1">M50Sa</a>. My model has the <a title="Intel® Core™2 Duo Mobile Processor T9300" href="http://processorfinder.intel.com/details.aspx?sSpec=SLAQG">Intel Core 2 Duo T9300 CPU</a>, 3 GB of memory,  320 GB hard drive and the <a title="ATI Radeon™ HD 3600 Series" href="http://ati.amd.com/products/radeonhd3600/partner_products.html">AMD/ATI Radeon 3650 graphics adapter</a> (among other nifty  features).</p>
<p>Around the time the switch was made, I was a fairly eager gamer and also wanted something that could tackle Funcom&#8217;s latest project; <a title="Age of Conan - Hyborian Adventures" href="http://www.ageofconan.com">Age of Conan</a>. Of  course I didn&#8217;t expect my purchase to run the game at the highest possible settings, but I was confident it would deliver the performance I sought. And it does. I do not regret my choice one second, however, I&#8217;ve grown tired of gaming and that basically means the M50Sa sports a fairly higher specification than I currently need. My lack of interest in games also meant this was a good time to toss out the bundled <a title="Windows Vista" href="http://www.microsoft.com/windows/products/windowsvista/">Windows Vista</a> and replace it with a good Linux distribution. Now, I don&#8217;t consider myself a Linux savvy person. Although I&#8217;ve made the switch from Windows several times and feel confident in my knowledge of the basics, I still wanted an easy to use distribution with as little need for extra configuration as possible. A couple of days before I decided to give Linux another shot, an article at the Norwegian technology site <a title="Hardware.no" href="http://www.hardware.no">Hardware.no</a> saw the light of day. It praised <a title="Mandriva" href="http://www.mandriva.com">Mandriva</a> for its ease of use, claiming it surpassed even <a title="Ubuntu Home Page" href="http://www.ubuntu.com">Ubuntu</a> in that particular area. With this at the back of my head, the choice was made. Besides, I&#8217;ve always been a sucker for <a title="K Desktop Enviroment" href="http://www.kde.org">KDE</a> (and their fourth major release looked too slick to ignore with the new <a title="Plasma (KDE)" href="http://en.wikipedia.org/wiki/Plasma_(KDE)">Plasma interface</a>).<span id="more-4"></span></p>
<p>I&#8217;m not going to dig deep into the basic installation procedure of Mandriva since it&#8217;s pretty self-explanatory and straight-forward, but there&#8217;s a couple of things I had to prepare and decide before making the step onto the Linux platform I&#8217;d like to mention. Earlier in the article I might have seemed pretty determined to get rid of Windows all together, but I wasn&#8217;t. Even though my lust for games had been dampened, the possibility of it returning was always there. I&#8217;m completely aware that Linux has matured a lot as a platform for games and often Windows based games can be played through different solutions like <a title="Wine HQ" href="http://www.winehq.org">Wine</a> or <a title="Cedega.com - Home of TransGaming's Cedega" href="http://www.cedega.com/start/">Cedega</a>, however, I couldn&#8217;t rid the idea that such games ultimately performs better on their native operating system. A <a title="Multi boot" href="http://en.wikipedia.org/wiki/Dual_boot">dual boot</a> system became the solution.</p>
<h4>Partitioning</h4>
<p>Depending on how you&#8217;ve already partitioned your hard drive, just use the values that fit your system and needs, the best. From before I had something not too far from this:</p>
<ul>
<li> 7 GB for partition for Asus rescue</li>
<li>80 GB for Windows Vista (I know it&#8217;s huge. When I got the notebook it was twice the size and Windows&#8217; built-in solution wouldn&#8217;t allow me to make it any smaller)</li>
<li>233 GB for junk</li>
</ul>
<p>Using <a title="Paragon Partition Manager - hard disk partitioning software" href="http://www.partition-manager.com">Paragon Partition Manager</a> I resized the largest partition to allow 35 GB for Mandriva, making the unpartitioned space available right after the Windows partition to get Linux as early in the partition table as possible. That basically left me with:</p>
<ul>
<li>7 GB for Asus rescue</li>
<li>80 GB for Windows Vista</li>
<li>7 GB mounted for /</li>
<li>4,5 GB swap</li>
<li>23,5 mounted for /home</li>
<li>Remaining space for junk</li>
</ul>
<p>I allowed myself to be pretty generous since there&#8217;s 320 GB available to divide. On a side note, the quite greedy Windows Vista has taken hold of 45 GB of the 80 I left for it. The reason I used software from Paragon was that all my partitions were NTFS and I&#8217;ve had good results with resizing such partitions earlier with said program. The mounting and dividing of unpartitioned space was done early during the Mandriva installation. When partitioning, take a note of which device is the one holding your Windows installation (if you&#8217;re planning on running a dual boot system). Later when setting up <a title="GNU GRUB" href="http://www.gnu.org/software/grub/">GRUB</a> (the <a title="Booting" href="http://en.wikipedia.org/wiki/Boot_loader">boot loader</a>), you&#8217;ll need to know this or else you&#8217;ll risk telling GRUB to boot the wrong partition.</p>
<h4>Selecting installation medium</h4>
<p><img class="alignright" style="float: right;" src="http://www.mandriva.com/files/imagecache/200x240/files/product/mandriva-one-en.png" alt="Mandriva Linux One" width="191" height="288" />I wound up with installing from the <a title="Mandriva Linux One" href="http://www.mandriva.com/en/product/mandriva-linux-one">Mandriva i586</a> <a title="Live CD" href="http://en.wikipedia.org/wiki/Live_cd">Live CD</a> for various reasons. One of the decisive factors was the ability seeing it running properly on my computer before even having it installed. Being a Live CD means it will boot the operating system from the CD and have it up and running without ever touching your hard drive. In addition, the CD is three to four times as small as the other options (not counting the mini-discs) and it contained proprietary drivers for the graphics adapter. Although the open-source drivers are great, the closed nature of the proprietary ones, allow them to squeeze just a little bit more performance out of the card.</p>
<p>Note that by using the Live CD, you will lose 64 bit support.</p>
<h4>Post-installation</h4>
<p>As mentioned earlier, I won&#8217;t be doing the core installation step-by-step, or the basic post-installation options. Set up your system the way you like it, though make sure you set a <a title="Password strength" href="http://en.wikipedia.org/wiki/Password_strength">strong password</a> for the root account.</p>
<p>There are, however, a couple of things not as easy to figure out. One of the first things I noticed was the two thirds of my memory not being there. Apparently, <a title="Releases/Mandriva/2008.0/Errata" href="http://wiki.mandriva.com/en/Releases/Mandriva/2008.0/Errata#2008_One_detects_only_up_to_880MB_of_RAM">Mandriva Linux doesn&#8217;t ship with a kernel that supports amounts over 1 GB</a>. The less easy way to fix this is to download the kernel headers of the one you&#8217;re running, fix what&#8217;s necessary, compile it and make the rest of the changes so your system boots the newly compiled one. This also allows you to disable support for hardware you don&#8217;t have, making your system use less memory. The second option, and what I did, is to use <a title="Docs/Basic tasks/Installing and removing software" href="http://wiki.mandriva.com/en/Docs/Basic_tasks/Installing_and_removing_software">Rpmdrake</a> and download and install a precompiled kernel. Either use the Rpmdrake GUI or go by the terminal:</p>
<blockquote>
<pre>urpmi kernel-laptop-latest</pre>
</blockquote>
<p>This package also includes <a title="ACPI4Asus" href="http://acpi4asus.sf.net">asus-laptop</a> needed for ACPI events and different shortcut keys on the M50Sa, and the installation edits all necessary files.</p>
<p>What I also discovered after installing, and perhaps when I ran the Live CD to test also, was how dark my screen seemed. This is because of the light sensor. It&#8217; physically situated to the left of the hard drive LED, and if you cover it, you should notice the LCD panel getting slightly darker. You fix this by turning it off as root:</p>
<blockquote>
<pre>echo 0 &gt; /sys/devices/platform/asus-laptop/ls_switch</pre>
</blockquote>
<p>You can also have it enabled and adjust the light sensor level like this:</p>
<blockquote>
<pre>echo INT &gt; /sys/devices/platform/asus-laptop/ls_level</pre>
</blockquote>
<p>Replace INT with a value between 0 and 10. Any higher than 10 and you&#8217;ll get an uncomfortably bright screen. If you can&#8217;t find the paths mentioned above, make sure <em>Asus Laptop Extras</em> are enabled in the kernel and running properly. Run:</p>
<blockquote>
<pre> modinfo asus-laptop</pre>
</blockquote>
<p>as root. You should get an output similar to:</p>
<blockquote>
<pre>[root@localhost ~]# modinfo asus-laptop</pre>
<pre>filename:       /lib/modules/2.6.24.5-laptop-2mnb/kernel/drivers/misc/asus-laptop.ko.gz</pre>
<pre>license:        GPL</pre>
<pre>description:    Asus Laptop Support</pre>
<pre>author:         Julien Lerouge, Karol Kozimor, Corentin Chary</pre>
<pre>alias:          acpi*:ATK0100:*</pre>
<pre>depends:        led-class</pre>
<pre>vermagic:       2.6.24.5-laptop-2mnb SMP mod_unload 686</pre>
<pre>parm:           wapf:WAPF value (uint)</pre>
</blockquote>
<p>If not, double check it by browsing to the directory holding your kernel source (usually <em>/usr/src/linux-*</em>) and type</p>
<blockquote>
<pre>make menuconfig</pre>
</blockquote>
<p>Browse to <em>Device drivers/Misc devices</em> and enable <em>Asus Laptop Extras</em>, either as a module (<em>M</em>) or compiled into the kernel (<em>*</em>).</p>
<p>The problem when setting values for <em>ls_switch</em> and <em>ls_level</em> is that they are only saved for the current session, meaning each time you reboot, you&#8217;ll have to set your desired values again. Either create a small script that runs everytime you start, or use an already created piece of software to do this. The script doesn&#8217;t have to be more than:</p>
<blockquote>
<pre>#!/bin/sh</pre>
<pre> echo 0 &gt; /sys/devices/platform/asus-laptop/ls_switch</pre>
</blockquote>
<p>Remember to make it executable:</p>
<blockquote>
<pre>chmod +x filename</pre>
</blockquote>
<p>Personally, I wound up with <a title="Lapsus" href="http://lapsus.berlios.de">Lapsus</a>. This nifty little kicker applet is able to save your settings, as well as it contains a number of other features pretty handy with Asus models. Note that currently it doesn&#8217;t run well, if at all, with KDE 4. I was able to compile it under KDE 4, but since it&#8217;s made for a 3-series kicker, its uses are limited.</p>
<h4>Closing comments</h4>
<p>What surprised me when installing Mandriva was how good the hardware was functioning straight after installing. Although I haven&#8217;t got all features up and running as of now, I&#8217;m very pleased with what I&#8217;ve got. Earlier in this post I mentioned I was drooling for KDE 4, however, I wound up with KDE 3.5.9. I think KDE&#8217;s latest major needs to mature a bit before really replacing earlier versions.</p>
<p>I would also recommend reading <a title="How To Install Ubuntu 8.04 Hardy Heron On The Asus M50Sv-A1" href="http://seethisnowreadthis.com/2008/05/19/how-to-install-ubuntu-804-hardy-heron-on-the-asus-m50sv-a1/">Paul Weiss&#8217; blogpost</a> concerning <a title="M50Sv" href="http://asus.com/products.aspx?l1=5&amp;l2=74&amp;l3=616&amp;l4=0&amp;model=2024&amp;modelmenu=1">Asus M50Sv</a> on Ubuntu 8.04 Hardy. It&#8217;s basically the same laptop, though with a graphics adapter from Nvidia, and most of what he writes applies to Mandriva as well.</p>
<p>Enjoy your new Linux system, and don&#8217;t be afraid to ask questions regarding the installation itself or the notebook.</p>
]]></content:encoded>
			<wfw:commentRss>http://likegyldig.net/blog/2008/07/08/running-mandriva-linux-20081-on-asus-m50sa-notebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
