tag:blogger.com,1999:blog-49785740803753497922024-03-14T04:37:40.312+01:00Linux on the EeePC 1001pTurning ASUS EeePC 1001p or 1005p netbooks into a linux device. Using ubuntu 10.04 lucid lynx.Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-4978574080375349792.post-51558621294293279232010-06-21T09:55:00.001+02:002010-06-21T09:57:00.628+02:00Fixing Wireless UpdatedReader llenchikk <a href="http://linuxon1001p.blogspot.com/2010/05/kernel-update.html">left a comment</a> stating that installing linux-backports-modules-wireless-lucid-generic would fix the wireless problem but for me it didn't. First I uninstalled the self compiled modules via 'make uninstall' and then I installed the backports package and rebooted but the wireless behaved as after the clean install. Even scanning is not possible.<br />
<br />
Thanks to reader bash0 the current compat-wireless does compile again. He/She figured out a bug in one of the scripts and provided a fix in the comments of article <a href="http://linuxon1001p.blogspot.com/2010/03/fixing-wireless.html">Fixing wireless</a>:<br />
<br />
To solve that, you'll have to change one line in scripts/gen-compat-autoconf.sh. It is written:<br />
if [ $SUBLEVEL -lt 32 ]; then<br />
<br />
I changed it to <br />
if [ $SUBLEVEL -le 32 ]; then<br />
<br />
It works for me and now I enjoy the latest bleeding edge driver. Thank you bash0.Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com5tag:blogger.com,1999:blog-4978574080375349792.post-18173534312903902522010-05-06T12:59:00.006+02:002010-05-18T14:49:03.887+02:00Internal microphone workaroundI found a workaround for the internal microphone. The problem is that the current driver sees the microphone as a stereo device, so you have to make it mono. After the workaround it's usable but it has a lot of background noise.<br />
<br />
1. Install pulseaudio volume control<br />
<blockquote><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">sudo apt-get install pavucontrol</span></blockquote>2. Open it<br />
<blockquote>Applications -> Sound & Video -> PulseAudio volume control </blockquote>3. Goto tab 'Input Devices' and select 'Hardware Input Devices' from the Show control at the bottom.<br />
<br />
4. Unlock the stereo channels by clicking on on lock icon<br />
<br />
5. Adjust one channel to zero and the other to 90% to 100%<br />
<br />
<br />
<b>Skype</b><br />
<b><br />
</b><br />
1. <a href="http://linuxon1001p.blogspot.com/2010/03/installing-skype.html">Install Skype</a><br />
<br />
2. Go to Skype's Options -> Sound Devices and uncheck 'Allow Skype to automatically adjust mixer levels'<br />
<br />
3. Hit apply and make a test call<br />
<br />
<script type="text/javascript">
var flattr_url = 'http://linuxon1001p.blogspot.com/2010/05/internal-microphone-workaround.html';
</script><br />
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script>Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com9tag:blogger.com,1999:blog-4978574080375349792.post-10898788740200629292010-05-06T11:55:00.001+02:002010-05-06T11:55:55.328+02:00Kernel update 2.6.32-22Today I've checked the ubuntu updates again and... voila there was a new kernel. So I downloaded the current compat-wireless to prepare for my wireless fix and I updated.<br />
<br />
Wireless was still not working , so I compiled compat-wireless bleeding edge: compat-wireless-2010-05-05. Works. Interesting is that two finger scrolling works now on the mousepad. But honestly I fiddled so much around to have this working that I don't know now if it's because of my workarounds or the new kernel.<br />
<br />
Is this working for you guys now? Please tell me.Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com7tag:blogger.com,1999:blog-4978574080375349792.post-31402623964074623822010-05-06T11:49:00.000+02:002010-05-06T11:49:53.469+02:00Chromium doesn't drain batteryWell, as I said I filed a bug but soon I learned that I didn't think of the possibility that one of my extensions could be the reason. And so it was. My beloved google mail checker 'Google Mail Checker Plus" was the trouble. Since I uninstalled it chrome is running fine. I posted a report at the developer's forum.Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com0tag:blogger.com,1999:blog-4978574080375349792.post-44294536467654954522010-04-26T12:08:00.002+02:002010-05-06T11:47:49.802+02:00Chromium drains batteryI love google's chrome browser and since I found a corresponding extension to all my firefox addons I really switched to chrome. So I'm using it on my netbook, too. But recently I found out that chrome causes way too much CPU wake ups. I used powertop for the analysis rather than the battery applet's Processor information.<br />
<br />
Idling, with chromium running, one page open (my blog):<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTeBzsGudfIvU_j7-xt23W2KHWICzusaqAjIHnd2NMX7QM3sMqJtcRVDbpsfXMoeoKnPZkmwJeAUp2bCkGLOIX_o8UhRON-3LyBgiYQw-mN2RwFp4b1aCxql_Pod0FLPekGMncVyfqujeg/s1600/powertop-chromium.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="265" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTeBzsGudfIvU_j7-xt23W2KHWICzusaqAjIHnd2NMX7QM3sMqJtcRVDbpsfXMoeoKnPZkmwJeAUp2bCkGLOIX_o8UhRON-3LyBgiYQw-mN2RwFp4b1aCxql_Pod0FLPekGMncVyfqujeg/s400/powertop-chromium.png" width="400" /></a></div><br />
And now compare with firefox. Also idling with only my blog opened:<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR0BzwOA9cxl_R8D8fzl6xo9VVVUPbHKybFY2TRscZoBeLf-k85McOuANeboYrKKD-x9qHGBXHjzvjXKFPrdFdX10bhEM069oSiS69iHVN1GIIJeBeSz9Z59yK74egOc9Wz6SD4nLhvQL_/s1600/powertop-firefox.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="266" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR0BzwOA9cxl_R8D8fzl6xo9VVVUPbHKybFY2TRscZoBeLf-k85McOuANeboYrKKD-x9qHGBXHjzvjXKFPrdFdX10bhEM069oSiS69iHVN1GIIJeBeSz9Z59yK74egOc9Wz6SD4nLhvQL_/s400/powertop-firefox.png" width="400" /></a></div><br />
As you can see firefox doesn't even appear in the list of processes waking up the CPU when idling. The CPU stays in the C4 state for 97.2% of the time, which is quite decent. But chromium wakes up the CPU 217 times per second and makes more CPU load balancing necessary, too. All in all it makes the CPU staying in C4 state 77.3 % of the time, only, which is very bad.<br />
<br />
Well, that means that I'll be using firefox again. I guess I'll file a bug about that.<br />
<br />
<b>Update</b><br />
Well, as I said I filed a bug but soon I learned that I didn't think of the possibility that one of my extensions could be the reason. And so it was. My beloved google mail checker 'Google Mail Checker Plus" was the trouble. Since I uninstalled it chrome is running fine.Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com0tag:blogger.com,1999:blog-4978574080375349792.post-28446256205679514532010-04-26T10:31:00.001+02:002010-05-06T13:00:42.157+02:00Latest compat-wireless works againAs reader Cliff Wells mentioned in his comment to the article <a href="http://linuxon1001p.blogspot.com/2010/03/fixing-wireless.html">Fixing wireless</a> my solution works again with the current compat-wireless bleeding edge sources compat-wireless-2010-04-12 and the lucid kernel 2.6.32-21.Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com2tag:blogger.com,1999:blog-4978574080375349792.post-90446999668278013062010-04-02T14:59:00.005+02:002010-04-02T15:26:47.620+02:00Panning screen at 1024x768Sometimes I encountered the problem that I had a dialog on the screen which was too large for the display's native 1024x600 resolution. In windows the EeePC tools offer a panning mode that switches to a virtual 1024x768 resolution where the visible section of the screen follows the mouse pointer. So I thought it must be possible to do the same with xrandr. Some playing around with xrandr was a success. Searching for solutions of others led me to a <a href="http://ubuntuforums.org/showpost.php?p=8620557&postcount=5">convenience script</a>:<br />
<br />
<pre>#!/bin/bash
function pan-mode {
echo `xrandr --prop | grep "current"`
}
function pan-enable {
echo Enabling VGA output
xrandr --output LVDS1 --panning 1024x768
}
function pan-disable {
echo Disabling VGA output
xrandr --output LVDS1 --panning 1024x600
}
### MAIN ###
case $1 in
on) pan-enable ;;
off) pan-disable ;;
status) pan-mode ;;
*) echo "*usage: $0 on|off|status" ;;
esac
</pre>Create an <a href="http://linuxon1001p.blogspot.com/2010/04/basic-ubuntu-improvements.html">executable shell script in the bin dir</a>:<br />
<ol><li>gedit ~/bin/panning (then paste the script into the file and save)</li>
<li>chmod a+x ~/bin/panning</li>
</ol><div>Now you can switch with <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">panning on</span> or <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">panning off in the console.</span><br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: inherit;">If you want to make the panning default create or edit the file ~/.xprofile and add the following line to it:</span><br />
<blockquote><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">xrandr --output LVDS1 --panning 1024x768</span></blockquote><span class="Apple-style-span" style="font-family: inherit;">Next time you reboot or restart X the screen will be in panning mode.</span></div>Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com5tag:blogger.com,1999:blog-4978574080375349792.post-56239260794334745722010-04-02T11:39:00.003+02:002010-04-02T15:34:09.262+02:00Window Buttons to the right sideAfter install of lucid I thought c'mon give it a try with the left hand window buttons but now I have enough. I just can't get used to it. Some search led me to <a href="http://mugginix.com/articles/2010/Mar/08/Lucid_Alpha_Window_Button_Position/">a nice page with screenshots of all needed steps</a>. But it's so easy that for somebody who hasn't just started with ubuntu doesn't need such instructions. It boils down to some metacity settings:<br />
<br />
<ol><li>Fire up gconf-editor via ALT-F2</li>
<li>Navigate to apps->metacity->general</li>
<li>Change the value of button_layout to <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">:maximize,minimize,close</span></li>
</ol><br />
In other words: just move the colon from the right side of the button names to left side.Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com0tag:blogger.com,1999:blog-4978574080375349792.post-50137334395828305772010-04-01T15:23:00.003+02:002010-04-02T15:25:48.698+02:00Basic ubuntu improvementsIn all my linux installations I usually do some 'hacks'<br />
<br />
<b>Standard dir for user scripts</b><br />
<br />
Usually I create a bin directory in my home dir and I add this dir to the PATH.<br />
<br />
<ol><li>create the bin dir:<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">mkdir ~/bin</span></li>
<li>Edit the environment:<br />
<span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">sudo gedit /etc/environment </span></li>
<li>find the line export PATH... and add ':$HOME/bin' to the end of that line</li>
<li>reboot</li>
</ol><div>Now the shell will look for executable in the user's bin dir. So that is the place where you can move executable scripts and the like.</div><div><br />
</div>Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com1tag:blogger.com,1999:blog-4978574080375349792.post-24484255166237977932010-03-30T23:29:00.001+02:002010-03-30T23:30:30.430+02:00Wireless speed testsIn the comments to my <a href="http://linuxon1001p.blogspot.com/2010/03/fixing-brightness-controls.html">post</a> sruchris said:<br />
<blockquote>Using the wifi on my 1001p, I'm only getting 1Mb/s download. When I use the wired connection, I get 5Mb/s.</blockquote>So I tried a little speed testing by myself. As I have no server machine, NAS or the like in my home network I used a test FTP server of my ISP. I used a 72 Mb file. The 1001p downloaded at <span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: inherit;">2.0 Mb/s. My Thinkpad T61 notebook using b/g wireless had about same. When using ethernet the 1001p does 3.8 Mb/s and the notebook 4.2 Mb/s.</span></span><br />
<br />
<span class="Apple-style-span" style="line-height: 15px;"><span class="Apple-style-span" style="font-family: inherit;">I think that's not so bad. My wireless router is a <a href="http://de.wikipedia.org/wiki/Linksys_WRT54G">Linksys WRT54G</a> and due to my old cables I still have 100 Mbit ethernet.</span></span>Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com3tag:blogger.com,1999:blog-4978574080375349792.post-40410313594528968912010-03-28T23:17:00.000+02:002010-03-28T23:17:54.690+02:00Installing skypeWas super easy. I just downloaded it from skype:<br />
<a href="http://www.skype.com/go/getskype-linux-beta-ubuntu-32">http://www.skype.com/go/getskype-linux-beta-ubuntu-32</a><br />
<br />
Install by double clicking it in nautilus. Cam and audio worked out of the box. If there wouldn't be the internal microphone issue it would be 100% perfect.Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com0tag:blogger.com,1999:blog-4978574080375349792.post-48525387165872595142010-03-28T19:29:00.008+02:002010-05-18T14:43:07.807+02:00Fixing wirelessNext big obstacle to overcome is the wireless driver. After some research I learned about three paths to follow:<br />
<ol><li>Waiting for lucid final </li>
<li>Using the windows driver via ndiswrapper</li>
<li>Compiling a ath9k driver from compat-wireless</li>
</ol>Option one is not really an option as I want to have wireles now. The ndiswrapper solution might work well but I guess not as efficient as a native driver. The missing native driver support was already mentioned in a <a href="https://bugs.launchpad.net/ubuntu/lucid/+source/linux-backports-modules-2.6.32/+bug/521967">launchpad bug entry</a>. So my first shot is compiling the driver by myself. Hey, it's linux and the source is with you. Actually it was quite easy. I got all information from <a href="http://wireless.kernel.org/en/users/Download">http://wireless.kernel.org/en/users/Download</a><br />
<br />
Get the current source tarball:<br />
<span style="font-family: 'Courier New', Courier, monospace;">wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2</span><br />
<br />
Unpack it somewhere in your home dir:<br />
<div style="font-family: "Courier New",Courier,monospace;">tar xvfj compat-wireless-2.6.tar.bz2</div><br />
Change into the source dir, for example:<br />
<span style="font-family: 'Courier New', Courier, monospace;">cd compat-wireless-*</span><br />
<br />
Select the ath9k driver and compile it:<br />
<div style="font-family: "Courier New",Courier,monospace;">./scripts/driver-select ath9k</div><span style="font-family: 'Courier New', Courier, monospace;">make</span><br />
<br />
Install the driver:<br />
<span style="font-family: 'Courier New', Courier, monospace;">sudo make install</span><br />
<br />
<div style="font-family: inherit;">Unload the old drivers and load the new one:</div><div style="font-family: "Courier New",Courier,monospace;">sudo make unload</div><div style="font-family: "Courier New",Courier,monospace;">sudo make wlunload</div><div style="font-family: "Courier New",Courier,monospace;">sudo make btunload</div><div style="font-family: "Courier New",Courier,monospace;">sudo modprobe ath9k</div><br />
That's it. The only drawback is that you always have to do that again after installing a new kernel image.<br />
<br />
<b>Note</b>: kernel 2.6.32-22 and compat-wireless-2010-05-05 works.<br />
<br />
<script type="text/javascript">
var flattr_url = 'http://linuxon1001p.blogspot.com/2010/03/fixing-wireless.html';
</script><br />
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script>Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com45tag:blogger.com,1999:blog-4978574080375349792.post-89733194238678399962010-03-28T11:38:00.034+02:002010-05-18T14:40:45.511+02:00Fixing brightness controlsThe brightness controls via Fn+F5 and Fn+F6 doesn't work properly. It's more like unpredictably cycling through various levels instead of going from brighter to darker or vice versa. The issue has already been reported:<br />
<br />
<a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/512567">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/512567</a><br />
<br />
I added "acpi_osi=Linux" to the kernel options and it worked for me. Although dimming when idle doesn't work and the on screen notification doesn't work either. <br />
<br />
So I added the also "acpi_backlight<wbr></wbr>=vendor" to the kernel options and now everything works. Auto dimming and notification, too.<br />
<ol><li style="font-family: inherit;"><span style="font-family: 'Courier New', Courier, monospace;">sudo gedit /etc/default/grub</span></li>
<li>find the line starting with GRUB_CMDLINE_LINUX_DEFAULT</li>
<li>add "acpi_osi=Linux acpi_backlight=vendor" to the options</li>
<li><span style="font-family: 'Courier New', Courier, monospace;">sudo update-grub2</span></li>
<li>reboot</li>
</ol><script type="text/javascript">
var flattr_url = 'http://linuxon1001p.blogspot.com/2010/03/fixing-brightness-controls.html';
</script><br />
<script src="http://api.flattr.com/button/load.js" type="text/javascript"></script>Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com28tag:blogger.com,1999:blog-4978574080375349792.post-47702235446186598102010-03-27T18:00:00.030+01:002010-05-06T13:03:50.461+02:00Installing lucidLucid looks so nice that I cannot resist and just decided to install it although it obviously won't work out of the box. The installation itself went very smooth. ASUS thankfully partitioned the disk in two visible partitions and one invisible which probably contains the recovery system. Then I shrunk the empty visible partition by 4 GB and created a swap partition in that space. I still think about installing 2 GB RAM, so I thought 4 GB swap might be good. So my partition table looks like this:<br />
<blockquote style="font-family: "Courier New",Courier,monospace;">Number Start End Size Type File system Flags<br />
1 32.3kB 85.9GB 85.9GB primary ntfs boot<br />
2 85.9GB 149GB 62.7GB primary ext4<br />
4 149GB 153GB 3999MB primary linux-swap(v1)<br />
3 153GB 160GB 7345MB primary fat32 hidden, lba</blockquote>Installing from the USB pen drive was quite fast. After reboot it came everything was the same as in the live system. So still no wireless and unpredictable brightness controls. But beautiful.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicIiUAtcBFc-7YkkyrBx-wevMBJJ5TAQFx_31FNCgvKyC6Yd40xghnd_N9x4cvNJYbk_2Ocl6StVhfDI3VvMiOla8u2SNJzkw2Tykt9_SRSF8MxZDR8csYmjTKVI-qv5UWX8HNIqOuMxuC/s1600/P1040136.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="266" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicIiUAtcBFc-7YkkyrBx-wevMBJJ5TAQFx_31FNCgvKyC6Yd40xghnd_N9x4cvNJYbk_2Ocl6StVhfDI3VvMiOla8u2SNJzkw2Tykt9_SRSF8MxZDR8csYmjTKVI-qv5UWX8HNIqOuMxuC/s400/P1040136.JPG" width="400" /></a></div>Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com9tag:blogger.com,1999:blog-4978574080375349792.post-67749901160164450792010-03-26T11:00:00.001+01:002010-03-28T23:48:48.941+02:00Booting lucid beta1I prepared one of my 4 GB USB pen drives with the lucid-beta1 image. For that I downloaded the latest beta1 image:<br />
<br />
<a href="http://www.ubuntu.com/testing/lucid/beta1">http://www.ubuntu.com/testing/lucid/beta1</a><br />
<br />
To make a bootable USB pen drive I used the free windows software <a href="http://www.linuxliveusb.com/">Linux Live USB Creator</a>. It has quite a colorful UI but it is easy to use.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://www.linuxliveusb.com/images/stories/lili/screenshot-lowres.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://www.linuxliveusb.com/images/stories/lili/screenshot-lowres.png" width="192" /></a></div><br />
<ol><li>Insert your FAT foirmatted USB drive and choose it. ATTENTION! it will be deleted.</li>
<li>Click ISO and choose your downloaded lucid image. It will later prompt you that it is an unsupported image but it will work anyway.</li>
<li>I didn't use any persistent storage.</li>
<li>I checked format the stick and unchecked the windows direct launch option as I don't need that.</li>
<li>Hit the flash and it starts working</li>
</ol><div>Now reboot with the stick inserted into USB and go into the bios by hitting F2 when the machine starts up again. Goto the boot options and disable these options:<span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px;"> </span><span class="Apple-style-span" style="font-family: inherit;">boot->boot_booster and boot->boot_settings->quiet_boot. In the boot drive options make the USB drive the first device. F10 to save and exit. Now the ubuntu boot manger should come up.</span></div><div><span class="Apple-style-span" style="font-family: inherit;"><br />
</span></div><div><span class="Apple-style-span" style="font-family: inherit;">Very helpful was this thread on the ubuntu forums:</span></div><div>http://ubuntuforums.org/showthread.php?t=1396074&page=4</div>Olafhttp://www.blogger.com/profile/17510866894585707569noreply@blogger.com0