tag:blogger.com,1999:blog-7265256799293902362024-03-12T20:11:17.791-03:00Acer to LinuxConverting your Acer laptop
to the dark side: GNU/LinuxUnknownnoreply@blogger.comBlogger6125tag:blogger.com,1999:blog-726525679929390236.post-15002808691887627612008-03-14T19:51:00.002-03:002008-03-14T19:54:58.660-03:00powertop & disable cdrom pollingI installed a nice tools called powertop to have a clue<br />what was consuming the most battery waking up the cpu in sleep times as i am not really doing heavy work on it.<br /><br />powertop gives hints:<br /><br />Suggestion: Enable the CONFIG_NO_HZ kernel configuration option.<br />This option is required to get any kind of longer sleep times in the CPU.<br /><br />Suggestion: Disable 'hal' from polling your cdrom with:<br />hal-disable-polling --device /dev/cdrom 'hal' is the component that auto-opens a<br />window if you plug in a CD but disables SATA power saving from kicking in.<br /><br />so I disabled polling the dvd rom doing the following:<br /><br />root@debian:~/apps# hal-get-property --udi /org/freedesktop/Hal/devices/storage_model_PIONEER_DVD_RW_DVR_K17RS --key storage.automount_enabled_hint<br />true<br /> <br />root@debian:~/apps# hal-set-property --udi /org/freedesktop/Hal/devices/storage_model_PIONEER_DVD_RW_DVR_K17RS --key storage.automount_enabled_hint --bool false<br /><br />I have yet to see if it gets any better, or maybe the differences a not big so that I would even notice it...<br /><br />then i restarted dbusUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-726525679929390236.post-12215985146063245332008-03-10T22:06:00.002-03:002008-03-10T22:09:16.235-03:00Orbicam down !Finally I could make the orbicam work. Guess what?<br />it flips the image as you turn the camera around !!! :D<br /><br /><br />root@debian:~# lsusb<br />Bus 003 Device 002: ID 5986:0100<br />This is a usb 2.0 orbicam. <br /><br />I tried the gspca driver but couldnt get it to work. <br />So I read about uvc video and everything works out of debian testing repositories. <br /><br />Install the kernel module<br />root@debian:~# m-a a-i linux-uvc<br /><br />and then<br />root@debian:~# modprobe uvcvideo<br /> <br />then check dmesg to see if everything went ok.<br />You should an output like this if it is:<br /><br />uvcvideo: Found UVC 1.00 device USB2.0 Camera (5986:0100)<br />usbcore: registered new interface driver uvcvideo<br />USB Video Class driver (v0.1.0)<br /><br />then start luvcvideo and have fun ;-)<br /><br />The bad thing about uvc video is that it uses a very low resolution thus not using the whole potential of the cam. The GUI to the cam isnt that good either.<br /><br />Current amsn version works allright with the cam, although it is still quite buggy.Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-726525679929390236.post-20017692937938012652008-02-18T21:04:00.005-02:002008-03-14T19:55:44.634-03:00AMD Frequency Scaling<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikmPcRa7Bid1n-c8IB3vXIql1mLhDxHf7ieQOgkoqyaIxHu0OSi14vAS_hBcGnoMn_GKfbTxfBaYF08p86agygObQ3lWUlSXoSHT31EBxvN_hdwuYoNSfYTInEAkrhZqMdevN8J4twohAB/s1600-h/amd_powerMonitor.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikmPcRa7Bid1n-c8IB3vXIql1mLhDxHf7ieQOgkoqyaIxHu0OSi14vAS_hBcGnoMn_GKfbTxfBaYF08p86agygObQ3lWUlSXoSHT31EBxvN_hdwuYoNSfYTInEAkrhZqMdevN8J4twohAB/s320/amd_powerMonitor.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5168464292215199490" /></a><br />The Amd Turion 64 X2 can run at various speeds and it can scale up or down dinamically. <br />This primarly a power saving and power consumption optimization.<br />This charts shows the available frequencies this processor can run with. <br /><br />analyzing CPU 0:<br /> driver: powernow-k8<br /> CPUs which need to switch frequency at the same time: 0 1<br /> hardware limits: 800 MHz - 1.80 GHz<br /> available frequency steps: 1.80 GHz, 1.60 GHz, 800 MHz<br /> available cpufreq governors: conservative, ondemand, userspace, powersave, performance<br /> current policy: frequency should be within 800 MHz and 1.80 GHz.<br /> The governor "ondemand" may decide which speed to use<br /> within this range.<br /> current CPU frequency is 800 MHz.<br /><br />New Linux Kernels should have this kernel module install by default, but old ones like mine was had to be recompiled to include the module. <br />Amd also provides a Power Monitor and some cpu frequency governors by default. <br />http://www.amd.com/la-es/Processors/TechnicalResources/0,,30_182_871_14098,00.html<br /><br /><br />I mostly use ondemand, that is it scales up or down according to the needs for processing the system has. For instance it is running at 800 Mhz as i write this but it quickly steps up to 1.8 when i put some source to compile. <br /><br />Powersave uses the lowest power consuming option and performance the highest.<br /><br />You can use the cpufreq-utils in the debian repos to find out more about your own processor. <br /><br />It considerably reduces battery life when you have this daemon running so if you use an old kernel (< 2.6.16), you might have to update or recompile.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-726525679929390236.post-32263582170560752882008-02-15T00:14:00.004-02:002008-02-18T21:36:00.390-02:00Setting up WifiWell first of all I wanted to get the wifi working... so I could go around the house working on the rest of the hardware...so here is the guide<br /><br />Installing the Wifi driver<br />using Ndiswrapper and the Windows firmware<br /><br />The card:<br />marcel@debian:~$ lspci<br />04:00.0 Network controller: Broadcom Corporation Dell Wireless 1390 WLAN Mini-PCI Card (rev 01)<br /><br />I used the ndiswrapper solution with the Windows firmware cause there isnt any drivers for linux at least at this time.Basically ndiswrapper wraps around the firmware to make it work on linux...<br />I got ndiswrapper from the debian repos. <br /><br />root@debian:~$ aptitude install ndiswrapper<br /><br />install the kernel modules using the module asistant<br />marcel@debian:~$ m-a -i ndiswrapper<br />then download the Windows driver and load it<br /><br />marcel@debian:~$ ndiswrapper -a devid driver<br />use your devid number as it is shown on "lspci -n"<br /><br />marcel@debian:~$ ndiswrapper -i bcmXXXX.inf<br /><br />it should look like this if everything went ok<br />root@debian:~# ndiswrapper -l<br />installed drivers:<br />bcmwl5 driver installed, hardware (14E4:4328) present<br /><br />Then load the module:<br /><br />root@debian:~$ modprobe ndiswrapper<br /><br />check dmesg to see if everything went ok<br /><br />You should now have interface wlan0 on the output of ifconfig<br /><br />This are the versions of ndiswrapper i Used and got working<br /><br />ii ndiswrapper-source 1.49-1 Source for the ndiswrapper Linux kernel modu<br />ii ndiswrapper-utils 1.1-5 Userspace utilities for ndiswrapper<br />ii ndiswrapper-utils-1.1 1.1-5 Userspace utilities for ndiswrapper<br />ii ndiswrapper-utils-1.9 1.28-1 Userspace utilities for the ndiswrapper linu<br /><br />I will now go for the ATI drivers cause i want Direct Rendering = Yes !!!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-726525679929390236.post-39526385639922258022008-02-15T00:06:00.002-02:002008-02-15T00:10:13.674-02:00This is the hardwareStep 2<br />This is the output of lspci, a good start to know what your hardware is before goinng looking for drivers. Now thats what i am gonna do...<br /><br />marcel@debian:~$ lspci<br />00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 10)<br />00:02.0 PCI bridge: ATI Technologies Inc RS480 PCI-X Root Port<br />00:04.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge<br />00:05.0 PCI bridge: ATI Technologies Inc Unknown device 5a37<br />00:12.0 IDE interface: ATI Technologies Inc ATI 4379 Serial ATA Controller (rev 80)<br />00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)<br />00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)<br />00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller (rev 80)<br />00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 83)<br />00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI IDE Controller ATI (rev 80)<br />00:14.2 Audio device: ATI Technologies Inc SB450 HDA Audio (rev 01)<br />00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge (rev 80)<br />00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge (rev 80)<br />00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration<br />00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map<br />00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller<br />00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control<br />01:00.0 VGA compatible controller: ATI Technologies Inc M52 [ATI Mobility Radeon X1300]<br />04:00.0 Network controller: Broadcom Corporation Dell Wireless 1390 WLAN Mini-PCI Card (rev 01)<br />06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)<br />06:04.0 CardBus bridge: ENE Technology Inc CB-712/4 Cardbus Controller (rev 10)<br />06:04.1 FLASH memory: ENE Technology Inc ENE PCI Memory Stick Card Reader Controller (rev 01)<br />06:04.2 Generic system peripheral [0805]: ENE Technology Inc ENE PCI Secure Digital Card Reader Controller (rev 01)<br />06:04.3 FLASH memory: ENE Technology Inc FLASH memory: ENE Technology Inc: (rev 01)<br />06:04.4 FLASH memory: ENE Technology Inc Unknown device 0551 (rev 01)Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-726525679929390236.post-19668512050098800422008-02-12T23:17:00.000-02:002008-02-12T23:21:55.364-02:00Here is the laptop<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzVdsu6C7ooyXJQV9Z9RXzylYREOa3kfF7XYnJwOJOEeC3IMI5EEeHxl3jNp1Lmnpw1adppZx7DEuVLAzESxKK9T0sFQVQfhYYKpsF7k-Y4KlDfCWJ99lwtH383MlA2_It7Ruxo9_vUm8n/s1600-h/laptop.png"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzVdsu6C7ooyXJQV9Z9RXzylYREOa3kfF7XYnJwOJOEeC3IMI5EEeHxl3jNp1Lmnpw1adppZx7DEuVLAzESxKK9T0sFQVQfhYYKpsF7k-Y4KlDfCWJ99lwtH383MlA2_It7Ruxo9_vUm8n/s320/laptop.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5166268597559301842" /></a><br />Well some time ago I got my first laptop. It is an Acer Travelmate 5510 (5514WLMI)<br /><br /><br />Here are the specs:<br />AMD Turion 64 X2 TL-56<br />ATI Mobility Radeon X1300<br />1 GB RAM DDR2<br />160 GB hard-drive<br />DVD Multi Dual Layer Writer<br />wifi 802.11 b/g<br />15.4 LCD screen<br /><br />First thing I did when I got this new laptop was make a nice cup of coffee and put a Debian 4.0 dvd on the dvd-drive. After the life cd booted I formated the hard-drive to get rid of Windows Vista. I barely booted Vista a couple of times, mostly to make sure the hardware worked properly<br />I will be writing about the process of converting this Acer Travalmate laptop to GNU/Linux in the following posts.Unknownnoreply@blogger.com2