https://wiki.archlinux.org/api.php?action=feedcontributions&user=Rbujnowicz&feedformat=atomArchWiki - User contributions [en]2024-03-29T00:44:21ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=ASUS_Eee_PC_701&diff=34144ASUS Eee PC 7012007-12-27T09:56:48Z<p>Rbujnowicz: /* Sound */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
WARNING: THIS ARTICLE IS INCOMPLETE! Visit the Arch forum thread link below to get information on installing Arch Linux on the Asus EEE PC. <br />
<br />
Most of this information is from the [http://bbs.archlinux.org/viewtopic.php?pid=297632 Arch Forum]. You can also find a lot of helpful information from the [http://forum.eeeuser.com/ EEEUser Forum].<br />
<br />
==Before You Begin==<br />
<br />
===Avoiding Pitfalls===<br />
<br />
The install is pretty normal, except that you'll need to [http://forum.eeeuser.com/viewtopic.php?id=890 avoid the pitfalls] of our alternative Linux install:<br />
<br />
# Never choose to use a journaling file system on the SSD partitions<br />
# Never use a swap partition on the SSD<br />
# Always edit your new installation fstab to mount the SSD partitions "noatime"<br />
# Never log messages or error log to the SSD<br />
<br />
The rules ensure that we won't reach the maximum limit of writes on our SSD faster than we should.<br />
<br />
===Choosing Your Kernel===<br />
<br />
Because the hardware is not supported by the default Arch kernel, you'll need to get the hardware up and running through one of the following methods:<br />
<br />
====Arch Kernel and Ndiswrapper====<br />
<br />
Probably the easiest to implement. Install Arch as normal (with the minor kinks found in this article), then install the Windows XP wireless driver found on Asus' website and use Ndiswrapper to get wireless working:<br />
<br />
# Go to Asus' website and download the driver ([http://dlsvr03.asus.com/pub/ASUS/EeePC/EeePC4G(701)/Wireless_XP_071011.zip direct link]).<br />
# Unzip the file and save the contents of the 'ndis5x' folder for use after you install Arch Linux.<br />
<br />
====Compile the 'everything' Kernel====<br />
<br />
The 'everything' kernel has ath5k, which supports the Atheros chipset found on the EEE PC. Here are the [http://linuxwireless.org/en/users/Drivers/ath5k#Hackingath5k instructions on compiling the 'everthing' kernel] (thanks raymano!).<br />
<br />
====Using the EEE PC's Kernel====<br />
<br />
The EEE PC's kernel has all the hardware working through its modules, so why not use it? Grab a few debs from the [http://update.eeepc.asus.com/p701/pool/ EEE PC package source mirror] to your Arch install to make your life easier. They include:<br />
<br />
* The Kernel (linux-image-2.6.21.4-eeepc_3_i386.deb)<br />
* Wireless driver (atheros-swan-modules-2.6.21.4-eeepc_20070713-2_i386.deb)<br />
* LAN driver (atl2-modules-2.6.21.4-eeepc_1.0.40.4-2_i386.deb)<br />
* Webcam driver (uvcvideo-modules-2.6.21.4-eeepc_20070706-2_i386.deb)<br />
* Modem driver (hsfmodem-modules-2.6.21.4-eeepc_7.60.00.04oem-4_i386.deb)<br />
* ACPI (asus-acpi_1.38-1xandros5_i386.deb)<br />
<br />
Now just extract the deb files and save the data.tar.gz files. I also grabbed the xorg.conf, since it has all the Synaptic touchpad info in it.<br />
<br />
To get the wireless to work using the Eee Pc modules, include ath_pci in MODULES. For wired internet using the internal nic, include atl2 in the MODULES list.<br />
<br />
Insert this line in /etc/conf.d/wireless:<br />
wlanconfig ath0 create wlandev wifi0 wlanmode sta<br />
<br />
''Note[Trithemius 20071215]: In the case of Arch, this is probably not the one you want - there are dependencies in Arch that rely on newer kernels.''<br />
<br />
===Choosing Your Installation Media===<br />
<br />
The EEE PC does not have an optical drive installed on the machine. This means you will need to install Arch Linux through one of the alternative methods:<br />
<br />
# External USB CD-ROM drive<br />
# [[Install_from_USB_stick|USB pen drive]]<br />
<br />
Unfortunately, the kernel does not include drivers for a LAN or Wireless install. If anyone knows how to do this, they're more than welcome to add this information in =D<br />
<br />
===And Always Remember...===<br />
<br />
And I shouldn't have to tell you this: always back up your data ;)<br />
<br />
It's now time to install Arch Linux (hooray!).<br />
<br />
==Installing Arch Linux==<br />
<br />
Note: if you're using the USB pen drive as your media, don't forget to [[Install_from_USB_stick#After_booting_from_the_USB_stick:|follow these instructions]].<br />
<br />
===Prepare Hard Drive===<br />
<br />
The drive is split up into four partitions (here's [http://forum.eeeuser.com/viewtopic.php?id=1805 some information] about the partitioning): <br />
<br />
* I don't know how other people did it, but I ended up wiping the entire disk and using one partition for the install.<br />
* Choose "NONE" for swap (see #2 in [[Installing_Arch_Linux_on_the_Asus_EEE_PC#Avoiding_Pitfalls|Avoiding Pitfalls]]).<br />
* Select "ext2" as your filesystem (see #1 in [[Installing_Arch_Linux_on_the_Asus_EEE_PC#Avoiding_Pitfalls|Avoiding Pitfalls]]).<br />
<br />
===Select Packages===<br />
<br />
The only thing here is if you're using a USB pen drive as your media, select "SRC".<br />
<br />
===Install Packages===<br />
<br />
Nothing to see here.<br />
<br />
===Configure System===<br />
<br />
Make these edits to "/etc/fstab":<br />
<br />
* Add "noatime" to the options of your mounts (you can also add "nodirtime") (see #3 in [[Installing_Arch_Linux_on_the_Asus_EEE_PC#Avoiding_Pitfalls|Avoiding Pitfalls]])<br />
* Add a new line: "tmpfs /var/log tmpfs size=1M 0 0" (WARNING: this will delete all your logs! See #4 in [[Installing_Arch_Linux_on_the_Asus_EEE_PC#Avoiding_Pitfalls|Avoiding Pitfalls]])<br />
** To save your startup/shutdown logs, look at the pitfalls link above.<br />
<br />
===Install Bootloader===<br />
<br />
To decrease boot time, I set "timeout" to 0. It's all about boot up time ;)<br />
<br />
===Reboot===<br />
<br />
Hooray ;)<br />
<br />
==Getting Everything Working==<br />
<br />
By now, you should have Arch installed. When I get back, I'll show you how to make it usable.<br />
<br />
====Sound====<br />
Some people have reported sound working right out of the box with no troubles. However, others might need to add the following line to /etc/modprobe.conf.<br />
<br />
<pre>options snd-hda-intel model=3stack-dig</pre><br />
<br />
====Pm-utils====<br />
<br />
?<br />
<br />
====Webcam====<br />
<br />
?<br />
<br />
====Xorg====<br />
<br />
I got X running with the xorg.conf from the original Xandros install. After installing xorg, you will need two other packages (to get the touchpad and video card working:<br />
<br />
<pre>pacman -S synaptics xf86-video-intel</pre><br />
<br />
Then, just drop in the original /etc/X11/xorg.conf (I made sure to comment out the last section, because I was getting errors):<br />
<br />
<pre>Section "ServerLayout"<br />
Identifier "archeee"<br />
Screen 0 "Screen1"<br />
InputDevice "keyboard"<br />
InputDevice "mouse"<br />
InputDevice "synaptics"<br />
EndSection<br />
<br />
Section "Files"<br />
ModulePath "/usr/lib/xorg/modules"<br />
FontPath "/usr/share/fonts/X11/misc"<br />
FontPath "/usr/share/fonts/X11/Type1"<br />
FontPath "/usr/share/fonts/X11/75dpi"<br />
FontPath "/usr/X11R6/lib/X11/fonts/Type1"<br />
EndSection<br />
<br />
Section "Module"<br />
Load "glx"<br />
Load "dri"<br />
Load "extmod"<br />
Load "synaptics"<br />
EndSection<br />
<br />
Section "ServerFlags"<br />
Option "AllowMouseOpenFail"<br />
Option "BlankTime" "5"<br />
Option "DontVTSwitch" "true"<br />
Option "AIGLX" "false"<br />
EndSection<br />
<br />
Section "InputDevice"<br />
Identifier "keyboard"<br />
Driver "kbd"<br />
Option "CoreKeyboard"<br />
Option "XkbRules" "xorg"<br />
Option "XkbLayout" "us"<br />
Option "XkbVariant" ""<br />
EndSection<br />
<br />
Section "InputDevice"<br />
Identifier "mouse"<br />
Driver "mouse"<br />
Option "Device" "/dev/input/mice"<br />
Option "Protocol" "IMPS/2"<br />
Option "Emulate3Buttons" "yes"<br />
Option "ZAxisMapping" "4 5"<br />
Option "CorePointer"<br />
EndSection<br />
<br />
Section "InputDevice"<br />
Identifier "synaptics"<br />
Driver "synaptics"<br />
Option "Device" "/dev/psaux"<br />
Option "Protocol" "auto-dev"<br />
Option "LeftEdge" "1000"<br />
Option "RightEdge" "5400"<br />
Option "TopEdge" "1000"<br />
Option "BottomEdge" "4900"<br />
Option "PalmDetect" "0"<br />
Option "SHMConfig" "true"<br />
Option "SendCoreEvents" "yes"<br />
Option "HorizScrollDelta" "0"<br />
Option "RBCornerButton" "0"<br />
Option "RTCornerButtom" "0"<br />
Option "MaxSpeed" "0.1"<br />
EndSection<br />
<br />
Section "Monitor"<br />
Identifier "Monitor1"<br />
VendorName "ASUS"<br />
ModelName "eeePC P701"<br />
Modeline "800x480" 29.58 800 816 896 992 480 481 484 497<br />
-HSync +Vsync # 60 Hz<br />
EndSection<br />
<br />
Section "Device"<br />
Identifier "Device1"<br />
Driver "intel"<br />
VendorName "Intel Corporation"<br />
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"<br />
BusID "PCI:0:2:0"<br />
EndSection<br />
<br />
Section "Screen"<br />
Identifier "Screen1"<br />
Device "Device1"<br />
Monitor "Monitor1"<br />
DefaultDepth 24<br />
SubSection "Display"<br />
Depth 8<br />
Virtual 1680 1680<br />
EndSubSection<br />
SubSection "Display"<br />
Depth 15<br />
Virtual 1680 1680<br />
EndSubSection<br />
SubSection "Display"<br />
Depth 16<br />
Virtual 1680 1680<br />
EndSubSection<br />
SubSection "Display"<br />
Depth 24<br />
Virtual 1680 1680<br />
EndSubSection<br />
EndSection<br />
<br />
Section "DRI"<br />
Mode 0666<br />
EndSection<br />
<br />
#Section "Extensions"<br />
# Option "Composite" "Disable"<br />
#EndSection</pre><br />
<br />
Then just:<br />
<br />
<pre>startx</pre><br />
<br />
Please update this with any missed steps.<br />
<br />
====Arch Kernel and madwifi====<br />
Instructions from http://wiki.eeeuser.com/ubuntu#wireless_internet_using_native_madwifi_drivers to patch madwifi. This replaces the Arch madwifi packages.<br />
<br />
wget 'http://madwifi.org/attachment/ticket/1679/madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw'<br />
wget http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r2756-20071018.tar.gz<br />
tar zxvf madwifi-ng-r2756-20071018.tar.gz<br />
cd madwifi-ng-r2756-20071018<br />
patch -p0 < ../madwifi-ng-0933.ar2425.20071130.i386.patch\?format\=raw<br />
make clean<br />
make<br />
sudo make install<br />
<br />
Working against stock 2.6.23-ARCH kernel.<br />
<br />
====Arch Kernel and atl2====<br />
There are a number of patches/&c. floating about for the atl2. More recent kernel changes (2.6.22 and above) introduce things that broke the original sources. After much hunting found the posting at http://forum.eeeuser.com/viewtopic.php?pid=54057 with a link to a debian package that happily enough includes working patches for 2.6.23. Extract the sources and use the provided makefile to build atl2.ko, then flip that to /lib/modules/`uname -r`/net and run depmod -a.<br />
<br />
====Arch Kernel and Ndiswrapper====<br />
<br />
First, make sure ndiswrapper and utils are installed:<br />
<br />
<pre>pacman -S ndiswrapper ndiswrapper-utils</pre><br />
<br />
Now, blacklist the Atheros modules loaded by hal. Edit the /etc/rc.conf blacklist to look something like this:<br />
<br />
<pre>MOD_BLACKLIST=(ath_pci ath_hal)</pre><br />
<br />
You will want to make sure that those modules are not loaded in the module list as well by adding a "!" before those modules (in /etc/rc.conf):<br />
<br />
<pre>MODULES=(!ath_hal !ath_pci ...</pre><br />
<br />
Now, you will need the drivers. I got them from the DVD that came with the Eee. On the DVD, copy all of the files from:<br />
<br />
<pre>/Drivers/Wireless/ndis5x/</pre><br />
<br />
Place them in a place that your Eee can access. Now go the location of the drivers and install them in ndiswrapper:<br />
<br />
<pre>cd /driver/location/<br />
ndiswrapper -i ./net5211.inf<br />
ndiswrapper -l<br />
ndiswrapper -m<br />
depmod -a<br />
modprobe ndiswrapper<br />
iwconfig<br />
ndiswrapper -ma && ndiswrapper -mi</pre><br />
<br />
I had to add the final step above to actually create wlan0. Please edit the above if there is anything unecessary there. Those are the steps I took, though.<br />
<br />
Finally, add ndiswrapper to your modules (in /etc/rc.conf):<br />
<br />
<pre>MODULES=(!ath_hal !ath_pci ndiswrapper ...</pre><br />
<br />
That should do it.<br />
<br />
====Compile the 'everything' Kernel====<br />
<br />
<br />
<br />
====Using the EEE PC's Kernel====<br />
I have much better luck with a rebuild of the kernel sources instead of trying to overlay the provided binaries. (I am running an [[LUKS_Encrypted_Root|encrypted]] root, and 2GB of RAM.) Unpacked the 2.6.21.4-eeepc sources to a USB thumb drive, used the Asus kernel config and ran a normal kernel build. Followed that up with mkinitcpio to create the initial disk image, and the EeePC is happy.<br />
<br />
Note that the /boot/config-2.6.21.4-eeepc file is from the original Asus firmware.<br />
<br />
unrar e Linux_Kernel_071127.rar<br />
ar x linux-source-2.6.21.4-eeepc_5_all.deb data.tar.gz<br />
tar xOf data.tar.gz ./usr/src/linux-source-2.6.21.4-eeepc.tar.bz2 | tar xvjf -<br />
rm data.tar.gz<br />
cd linux-source-2.6.21.4-eeepc<br />
cp /boot/config-2.6.21.4-eeepc .config<br />
make oldconfig<br />
make bzImage modules<br />
make install <br />
make modules_install<br />
<br />
Make an initial disk image to boot from:<br />
<br />
/sbin/mkinitcpio -k 2.6.21.4-eeepc -c /etc/mkinitcpio.conf -g /boot/eeepc.img<br />
<br />
Add an appropriate entry to /boot/grub/menu.lst, such as:<br />
<br />
title eee kernel<br />
root (hd0,0)<br />
kernel /vmlinuz root=/dev/sda2 ro<br />
initrd /eeepc.img<br />
<br />
'''After running a bit, this is a bad idea. Arch has dependencies on the newer kernels (for example, rsync fails in weird ways) so this approach may work in the short term, but I'd consider ''deprecated'' in favor of a 'real' kernel tree.'''<br />
<br />
====Power down with the power button====<br />
<br />
Make sure sudo is installed:<br />
<br />
<pre>pacman -S sudo</pre><br />
<br />
As root, do the following:<br />
<br />
<pre>visudo</pre><br />
<br />
Add the following line to the file:<br />
<br />
<pre>USER HOST = NOPASSWD: /sbin/poweroff</pre><br />
<br />
Where USER = the user you want to be able to power down with and HOST = your hostname (from /etc/rc.conf).<br />
<br />
Now, create a file called /etc/acpi/events/power, containing:<br />
<br />
<pre># /etc/acpi/events/power<br />
# This is called when the user presses the power button<br />
<br />
event=button/power (PWR.||PBTN)<br />
action=sudo /sbin/poweroff</p><br />
<br />
Make sure that you execute<br />
<br />
<pre>/etc/rc.d/acpid start</pre><br />
<br />
And/or add acpid to the daemons list in /etc/rc.conf:<br />
<br />
<pre>DAEMONS=(hal, acpid ...</pre></div>Rbujnowiczhttps://wiki.archlinux.org/index.php?title=ASUS_Eee_PC_701&diff=34143ASUS Eee PC 7012007-12-27T09:56:06Z<p>Rbujnowicz: /* Sound */</p>
<hr />
<div>[[Category:Getting and installing Arch (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
WARNING: THIS ARTICLE IS INCOMPLETE! Visit the Arch forum thread link below to get information on installing Arch Linux on the Asus EEE PC. <br />
<br />
Most of this information is from the [http://bbs.archlinux.org/viewtopic.php?pid=297632 Arch Forum]. You can also find a lot of helpful information from the [http://forum.eeeuser.com/ EEEUser Forum].<br />
<br />
==Before You Begin==<br />
<br />
===Avoiding Pitfalls===<br />
<br />
The install is pretty normal, except that you'll need to [http://forum.eeeuser.com/viewtopic.php?id=890 avoid the pitfalls] of our alternative Linux install:<br />
<br />
# Never choose to use a journaling file system on the SSD partitions<br />
# Never use a swap partition on the SSD<br />
# Always edit your new installation fstab to mount the SSD partitions "noatime"<br />
# Never log messages or error log to the SSD<br />
<br />
The rules ensure that we won't reach the maximum limit of writes on our SSD faster than we should.<br />
<br />
===Choosing Your Kernel===<br />
<br />
Because the hardware is not supported by the default Arch kernel, you'll need to get the hardware up and running through one of the following methods:<br />
<br />
====Arch Kernel and Ndiswrapper====<br />
<br />
Probably the easiest to implement. Install Arch as normal (with the minor kinks found in this article), then install the Windows XP wireless driver found on Asus' website and use Ndiswrapper to get wireless working:<br />
<br />
# Go to Asus' website and download the driver ([http://dlsvr03.asus.com/pub/ASUS/EeePC/EeePC4G(701)/Wireless_XP_071011.zip direct link]).<br />
# Unzip the file and save the contents of the 'ndis5x' folder for use after you install Arch Linux.<br />
<br />
====Compile the 'everything' Kernel====<br />
<br />
The 'everything' kernel has ath5k, which supports the Atheros chipset found on the EEE PC. Here are the [http://linuxwireless.org/en/users/Drivers/ath5k#Hackingath5k instructions on compiling the 'everthing' kernel] (thanks raymano!).<br />
<br />
====Using the EEE PC's Kernel====<br />
<br />
The EEE PC's kernel has all the hardware working through its modules, so why not use it? Grab a few debs from the [http://update.eeepc.asus.com/p701/pool/ EEE PC package source mirror] to your Arch install to make your life easier. They include:<br />
<br />
* The Kernel (linux-image-2.6.21.4-eeepc_3_i386.deb)<br />
* Wireless driver (atheros-swan-modules-2.6.21.4-eeepc_20070713-2_i386.deb)<br />
* LAN driver (atl2-modules-2.6.21.4-eeepc_1.0.40.4-2_i386.deb)<br />
* Webcam driver (uvcvideo-modules-2.6.21.4-eeepc_20070706-2_i386.deb)<br />
* Modem driver (hsfmodem-modules-2.6.21.4-eeepc_7.60.00.04oem-4_i386.deb)<br />
* ACPI (asus-acpi_1.38-1xandros5_i386.deb)<br />
<br />
Now just extract the deb files and save the data.tar.gz files. I also grabbed the xorg.conf, since it has all the Synaptic touchpad info in it.<br />
<br />
To get the wireless to work using the Eee Pc modules, include ath_pci in MODULES. For wired internet using the internal nic, include atl2 in the MODULES list.<br />
<br />
Insert this line in /etc/conf.d/wireless:<br />
wlanconfig ath0 create wlandev wifi0 wlanmode sta<br />
<br />
''Note[Trithemius 20071215]: In the case of Arch, this is probably not the one you want - there are dependencies in Arch that rely on newer kernels.''<br />
<br />
===Choosing Your Installation Media===<br />
<br />
The EEE PC does not have an optical drive installed on the machine. This means you will need to install Arch Linux through one of the alternative methods:<br />
<br />
# External USB CD-ROM drive<br />
# [[Install_from_USB_stick|USB pen drive]]<br />
<br />
Unfortunately, the kernel does not include drivers for a LAN or Wireless install. If anyone knows how to do this, they're more than welcome to add this information in =D<br />
<br />
===And Always Remember...===<br />
<br />
And I shouldn't have to tell you this: always back up your data ;)<br />
<br />
It's now time to install Arch Linux (hooray!).<br />
<br />
==Installing Arch Linux==<br />
<br />
Note: if you're using the USB pen drive as your media, don't forget to [[Install_from_USB_stick#After_booting_from_the_USB_stick:|follow these instructions]].<br />
<br />
===Prepare Hard Drive===<br />
<br />
The drive is split up into four partitions (here's [http://forum.eeeuser.com/viewtopic.php?id=1805 some information] about the partitioning): <br />
<br />
* I don't know how other people did it, but I ended up wiping the entire disk and using one partition for the install.<br />
* Choose "NONE" for swap (see #2 in [[Installing_Arch_Linux_on_the_Asus_EEE_PC#Avoiding_Pitfalls|Avoiding Pitfalls]]).<br />
* Select "ext2" as your filesystem (see #1 in [[Installing_Arch_Linux_on_the_Asus_EEE_PC#Avoiding_Pitfalls|Avoiding Pitfalls]]).<br />
<br />
===Select Packages===<br />
<br />
The only thing here is if you're using a USB pen drive as your media, select "SRC".<br />
<br />
===Install Packages===<br />
<br />
Nothing to see here.<br />
<br />
===Configure System===<br />
<br />
Make these edits to "/etc/fstab":<br />
<br />
* Add "noatime" to the options of your mounts (you can also add "nodirtime") (see #3 in [[Installing_Arch_Linux_on_the_Asus_EEE_PC#Avoiding_Pitfalls|Avoiding Pitfalls]])<br />
* Add a new line: "tmpfs /var/log tmpfs size=1M 0 0" (WARNING: this will delete all your logs! See #4 in [[Installing_Arch_Linux_on_the_Asus_EEE_PC#Avoiding_Pitfalls|Avoiding Pitfalls]])<br />
** To save your startup/shutdown logs, look at the pitfalls link above.<br />
<br />
===Install Bootloader===<br />
<br />
To decrease boot time, I set "timeout" to 0. It's all about boot up time ;)<br />
<br />
===Reboot===<br />
<br />
Hooray ;)<br />
<br />
==Getting Everything Working==<br />
<br />
By now, you should have Arch installed. When I get back, I'll show you how to make it usable.<br />
<br />
====Sound====<br />
Some people have reported sound working right out of the box. However, others might need to add the following line to /etc/modprobe.conf.<br />
<br />
<pre>options snd-hda-intel model=3stack-dig</pre><br />
<br />
====Pm-utils====<br />
<br />
?<br />
<br />
====Webcam====<br />
<br />
?<br />
<br />
====Xorg====<br />
<br />
I got X running with the xorg.conf from the original Xandros install. After installing xorg, you will need two other packages (to get the touchpad and video card working:<br />
<br />
<pre>pacman -S synaptics xf86-video-intel</pre><br />
<br />
Then, just drop in the original /etc/X11/xorg.conf (I made sure to comment out the last section, because I was getting errors):<br />
<br />
<pre>Section "ServerLayout"<br />
Identifier "archeee"<br />
Screen 0 "Screen1"<br />
InputDevice "keyboard"<br />
InputDevice "mouse"<br />
InputDevice "synaptics"<br />
EndSection<br />
<br />
Section "Files"<br />
ModulePath "/usr/lib/xorg/modules"<br />
FontPath "/usr/share/fonts/X11/misc"<br />
FontPath "/usr/share/fonts/X11/Type1"<br />
FontPath "/usr/share/fonts/X11/75dpi"<br />
FontPath "/usr/X11R6/lib/X11/fonts/Type1"<br />
EndSection<br />
<br />
Section "Module"<br />
Load "glx"<br />
Load "dri"<br />
Load "extmod"<br />
Load "synaptics"<br />
EndSection<br />
<br />
Section "ServerFlags"<br />
Option "AllowMouseOpenFail"<br />
Option "BlankTime" "5"<br />
Option "DontVTSwitch" "true"<br />
Option "AIGLX" "false"<br />
EndSection<br />
<br />
Section "InputDevice"<br />
Identifier "keyboard"<br />
Driver "kbd"<br />
Option "CoreKeyboard"<br />
Option "XkbRules" "xorg"<br />
Option "XkbLayout" "us"<br />
Option "XkbVariant" ""<br />
EndSection<br />
<br />
Section "InputDevice"<br />
Identifier "mouse"<br />
Driver "mouse"<br />
Option "Device" "/dev/input/mice"<br />
Option "Protocol" "IMPS/2"<br />
Option "Emulate3Buttons" "yes"<br />
Option "ZAxisMapping" "4 5"<br />
Option "CorePointer"<br />
EndSection<br />
<br />
Section "InputDevice"<br />
Identifier "synaptics"<br />
Driver "synaptics"<br />
Option "Device" "/dev/psaux"<br />
Option "Protocol" "auto-dev"<br />
Option "LeftEdge" "1000"<br />
Option "RightEdge" "5400"<br />
Option "TopEdge" "1000"<br />
Option "BottomEdge" "4900"<br />
Option "PalmDetect" "0"<br />
Option "SHMConfig" "true"<br />
Option "SendCoreEvents" "yes"<br />
Option "HorizScrollDelta" "0"<br />
Option "RBCornerButton" "0"<br />
Option "RTCornerButtom" "0"<br />
Option "MaxSpeed" "0.1"<br />
EndSection<br />
<br />
Section "Monitor"<br />
Identifier "Monitor1"<br />
VendorName "ASUS"<br />
ModelName "eeePC P701"<br />
Modeline "800x480" 29.58 800 816 896 992 480 481 484 497<br />
-HSync +Vsync # 60 Hz<br />
EndSection<br />
<br />
Section "Device"<br />
Identifier "Device1"<br />
Driver "intel"<br />
VendorName "Intel Corporation"<br />
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"<br />
BusID "PCI:0:2:0"<br />
EndSection<br />
<br />
Section "Screen"<br />
Identifier "Screen1"<br />
Device "Device1"<br />
Monitor "Monitor1"<br />
DefaultDepth 24<br />
SubSection "Display"<br />
Depth 8<br />
Virtual 1680 1680<br />
EndSubSection<br />
SubSection "Display"<br />
Depth 15<br />
Virtual 1680 1680<br />
EndSubSection<br />
SubSection "Display"<br />
Depth 16<br />
Virtual 1680 1680<br />
EndSubSection<br />
SubSection "Display"<br />
Depth 24<br />
Virtual 1680 1680<br />
EndSubSection<br />
EndSection<br />
<br />
Section "DRI"<br />
Mode 0666<br />
EndSection<br />
<br />
#Section "Extensions"<br />
# Option "Composite" "Disable"<br />
#EndSection</pre><br />
<br />
Then just:<br />
<br />
<pre>startx</pre><br />
<br />
Please update this with any missed steps.<br />
<br />
====Arch Kernel and madwifi====<br />
Instructions from http://wiki.eeeuser.com/ubuntu#wireless_internet_using_native_madwifi_drivers to patch madwifi. This replaces the Arch madwifi packages.<br />
<br />
wget 'http://madwifi.org/attachment/ticket/1679/madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw'<br />
wget http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r2756-20071018.tar.gz<br />
tar zxvf madwifi-ng-r2756-20071018.tar.gz<br />
cd madwifi-ng-r2756-20071018<br />
patch -p0 < ../madwifi-ng-0933.ar2425.20071130.i386.patch\?format\=raw<br />
make clean<br />
make<br />
sudo make install<br />
<br />
Working against stock 2.6.23-ARCH kernel.<br />
<br />
====Arch Kernel and atl2====<br />
There are a number of patches/&c. floating about for the atl2. More recent kernel changes (2.6.22 and above) introduce things that broke the original sources. After much hunting found the posting at http://forum.eeeuser.com/viewtopic.php?pid=54057 with a link to a debian package that happily enough includes working patches for 2.6.23. Extract the sources and use the provided makefile to build atl2.ko, then flip that to /lib/modules/`uname -r`/net and run depmod -a.<br />
<br />
====Arch Kernel and Ndiswrapper====<br />
<br />
First, make sure ndiswrapper and utils are installed:<br />
<br />
<pre>pacman -S ndiswrapper ndiswrapper-utils</pre><br />
<br />
Now, blacklist the Atheros modules loaded by hal. Edit the /etc/rc.conf blacklist to look something like this:<br />
<br />
<pre>MOD_BLACKLIST=(ath_pci ath_hal)</pre><br />
<br />
You will want to make sure that those modules are not loaded in the module list as well by adding a "!" before those modules (in /etc/rc.conf):<br />
<br />
<pre>MODULES=(!ath_hal !ath_pci ...</pre><br />
<br />
Now, you will need the drivers. I got them from the DVD that came with the Eee. On the DVD, copy all of the files from:<br />
<br />
<pre>/Drivers/Wireless/ndis5x/</pre><br />
<br />
Place them in a place that your Eee can access. Now go the location of the drivers and install them in ndiswrapper:<br />
<br />
<pre>cd /driver/location/<br />
ndiswrapper -i ./net5211.inf<br />
ndiswrapper -l<br />
ndiswrapper -m<br />
depmod -a<br />
modprobe ndiswrapper<br />
iwconfig<br />
ndiswrapper -ma && ndiswrapper -mi</pre><br />
<br />
I had to add the final step above to actually create wlan0. Please edit the above if there is anything unecessary there. Those are the steps I took, though.<br />
<br />
Finally, add ndiswrapper to your modules (in /etc/rc.conf):<br />
<br />
<pre>MODULES=(!ath_hal !ath_pci ndiswrapper ...</pre><br />
<br />
That should do it.<br />
<br />
====Compile the 'everything' Kernel====<br />
<br />
<br />
<br />
====Using the EEE PC's Kernel====<br />
I have much better luck with a rebuild of the kernel sources instead of trying to overlay the provided binaries. (I am running an [[LUKS_Encrypted_Root|encrypted]] root, and 2GB of RAM.) Unpacked the 2.6.21.4-eeepc sources to a USB thumb drive, used the Asus kernel config and ran a normal kernel build. Followed that up with mkinitcpio to create the initial disk image, and the EeePC is happy.<br />
<br />
Note that the /boot/config-2.6.21.4-eeepc file is from the original Asus firmware.<br />
<br />
unrar e Linux_Kernel_071127.rar<br />
ar x linux-source-2.6.21.4-eeepc_5_all.deb data.tar.gz<br />
tar xOf data.tar.gz ./usr/src/linux-source-2.6.21.4-eeepc.tar.bz2 | tar xvjf -<br />
rm data.tar.gz<br />
cd linux-source-2.6.21.4-eeepc<br />
cp /boot/config-2.6.21.4-eeepc .config<br />
make oldconfig<br />
make bzImage modules<br />
make install <br />
make modules_install<br />
<br />
Make an initial disk image to boot from:<br />
<br />
/sbin/mkinitcpio -k 2.6.21.4-eeepc -c /etc/mkinitcpio.conf -g /boot/eeepc.img<br />
<br />
Add an appropriate entry to /boot/grub/menu.lst, such as:<br />
<br />
title eee kernel<br />
root (hd0,0)<br />
kernel /vmlinuz root=/dev/sda2 ro<br />
initrd /eeepc.img<br />
<br />
'''After running a bit, this is a bad idea. Arch has dependencies on the newer kernels (for example, rsync fails in weird ways) so this approach may work in the short term, but I'd consider ''deprecated'' in favor of a 'real' kernel tree.'''<br />
<br />
====Power down with the power button====<br />
<br />
Make sure sudo is installed:<br />
<br />
<pre>pacman -S sudo</pre><br />
<br />
As root, do the following:<br />
<br />
<pre>visudo</pre><br />
<br />
Add the following line to the file:<br />
<br />
<pre>USER HOST = NOPASSWD: /sbin/poweroff</pre><br />
<br />
Where USER = the user you want to be able to power down with and HOST = your hostname (from /etc/rc.conf).<br />
<br />
Now, create a file called /etc/acpi/events/power, containing:<br />
<br />
<pre># /etc/acpi/events/power<br />
# This is called when the user presses the power button<br />
<br />
event=button/power (PWR.||PBTN)<br />
action=sudo /sbin/poweroff</p><br />
<br />
Make sure that you execute<br />
<br />
<pre>/etc/rc.d/acpid start</pre><br />
<br />
And/or add acpid to the daemons list in /etc/rc.conf:<br />
<br />
<pre>DAEMONS=(hal, acpid ...</pre></div>Rbujnowicz