Difference between revisions of "ASUS Eee PC 1005P"

From ArchWiki
Jump to: navigation, search
(Device Autodetection: history not needed)
(21 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Category:ASUS (English)]]
+
[[Category:ASUS]]
 
{| style="float:right; border: 1px solid #000;"  
 
{| style="float:right; border: 1px solid #000;"  
 
| '''Device''' || '''Status''' || '''Modules'''
 
| '''Device''' || '''Status''' || '''Modules'''
Line 13: Line 13:
 
| Camera || style="color:green" | '''Working''' || uvcvideo  
 
| Camera || style="color:green" | '''Working''' || uvcvideo  
 
|-
 
|-
| Card Reader || style="color:yellow" | '''???''' ||  
+
| Card Reader || style="color:green" | '''Working''' ||  
 
|-
 
|-
 
| Function Keys || style="color:yellow" | '''Some working''' ||  
 
| Function Keys || style="color:yellow" | '''Some working''' ||  
 
|}
 
|}
  
Adapted from [[Asus_Eee_PC_1005HA|1005HA]], please do edit as needed!
+
This article describes both the 1005P and the 1005PE, since the only difference of the 1005PE is wlan n and a bigger harddrive.
  
The stock kernel (as of writing, 2.6.33) seems to support all the hardware in the 1005P, although not without [[#Issues|problems]].
+
==Installation==
 
+
#[[Install_from_USB_stick|Installing from USB]]: according to the article on [[Putting_installation_media_on_a_USB_key|installing from USB]], the standard ISO images can be used for this (beginning with release 2010.05).
=Installation=
+
 
#[[Install_Arch_from_network_(via_PXE)|Installing via PXE]] works well. It requires another computer to use as PXE host, and some configuration.
 
#[[Install_Arch_from_network_(via_PXE)|Installing via PXE]] works well. It requires another computer to use as PXE host, and some configuration.
#[[Install_from_USB_stick|Installing from USB]]: ethernet does not work with the 2009.08 img files (the latest as of writing this), so the driver has to be fetched separately if needed ([http://partner.atheros.com/Download.aspx?id=125]).
 
  
=Xorg=
+
==Kernel==
==Driver==
+
Append {{Ic|<nowiki>acpi_osi=Linux</nowiki>}} to your {{ic|/boot/grub/menu.lst}} to set the EeePC ACPI Interfaces to "Linux-Mode". Then the current kernel (as of writing 2.6.34) will autoload the eeepc_laptop module and everything works perfectly.
Video driver: '''xf86-video-intel'''
+
Eg.
 +
kernel /boot/vmlinuz26 root=/dev/sda2 ro acpi_osi=Linux
  
==HAL==
+
==Xorg==
As of this writing, [[HAL]] needs to be installed and running in order for the input devices to be autodetected.
+
===Video Driver===
 +
Install {{Pkg|xf86-video-intel}}.
  
==DPI setting==
+
===Device Autodetection===
A good comfortable setting would be 96dpi or 75dpi if you like your fonts really small. An easy way to set your DPI would be to add this to the end of your xserverrc (located in /etc/X11/xinit/).
+
Everything works out of the box.
  
  exec /usr/bin/X -nolisten tcp -dpi 96
+
===Graphic Performance===
 +
The default graphic performance is the best you can currently get. It is not needed to add "optimizations" like "AccelMethod" "exa" to your {{ic|xorg.conf}}, because these will get ignored by the current version of the Intel drivers anyway.  The only thing you can add is XvMC Hardware decoding support, which allows your Intel graphics adapter to decode MPEG2 video material. To do this and set XvMC, here is a minimal {{ic|xorg.conf}}:
  
==Graphic Performance==
+
  Section "Device"
See [[http://wiki.archlinux.org/index.php/Asus_Eee_PC_1005HA#Graphic Performance]] and [[http://wiki.archlinux.org/index.php/Asus_Eee_PC_1005HA#Display setting]].
+
      Identifier "Card0"
The short story is that it might be useful to add the following to the '''Device''' section of /etc/X11/xorg.conf:
+
      Driver "intel"
 +
      Option "XvMC" "on"
 +
  EndSection
  
  Driver "intel"
+
More is not needed in your {{ic|xorg.conf}}, since Xorg uses input hotplugging.
  Option "AccelMethod" "exa"
+
  Option "MigrationHeuristic" "greedy"
+
  Option "FramebufferCompression" "on"
+
  Option "Tiling" "on"
+
  Option "XvMC" "on"
+
  
 
To let X know where the XvMC library is, run:
 
To let X know where the XvMC library is, run:
Line 53: Line 51:
 
   # echo /usr/lib/libIntelXvMC.so > /etc/X11/XvMCConfig
 
   # echo /usr/lib/libIntelXvMC.so > /etc/X11/XvMCConfig
  
==Touchpad==
+
===Touchpad===
  
It works (driver: '''xf86-input-synaptics'''). For additional stuff, see [[http://wiki.archlinux.org/index.php/Asus_Eee_PC_1005HA#Touchpad]].
+
Install {{Pkg|xf86-input-synaptics}} (see [[Touchpad Synaptics]]). To enable Two Finger Scrolling and to disable Edge Scrolling, add this to your {{ic|/etc/X11/xorg.conf.d/10-synaptics.conf}} inside the InputClass Section:
  
==xrandr==
+
  Option "VertTwoFingerScroll" "true"
For a nice GUI tool, you can try '''lxrandr'''.
+
  Option "HorizTwoFingerScroll" "true"
 +
  Option "EmulateTwoFingerMinZ" "10"
 +
  Option "EmulateTwoFingerMinW" "7"
 +
  Option "VertEdgeScroll" "false"
 +
  Option "HorizEdgeScroll" "false"
 +
 
 +
===xrandr===
 +
For a nice GUI tool, you can try {{Pkg|lxrandr}}.
  
 
Switch to external monitor (VGA port):
 
Switch to external monitor (VGA port):
Line 66: Line 71:
 
  xrandr --output LVDS1 --auto --output VGA1 --off
 
  xrandr --output LVDS1 --auto --output VGA1 --off
  
=Powersaving and ACPI=
+
==Powersaving and ACPI==
Your best bet is to disable all hardware you don't intend to use (to access the BIOS settings, press F2 after rebooting).
+
Your best bet is to disable all hardware you do not intend to use (to access the BIOS settings, press F2 after rebooting).
  
==laptop-mode-tools==
+
See [[power saving]] for details.
Laptop mode is an easy way to setup most of the availiable power saving options, which include spinning down the hard drive and adjusting the power saving modes of the harddrive and CPU, as well as autosuspending the USB-ports, setting screen brightness, configuring the eee's own 'Super Hybrid Engine', etc.
+
  
===Setup===
+
===laptop-mode-tools===
 +
Laptop-mode-tools provides an easy way to setup most of the available power saving options, which include spinning down the hard drive and adjusting the power saving modes of the harddrive and CPU, as well as autosuspending the USB-ports, setting screen brightness, configuring the eee's own 'Super Hybrid Engine', etc.
 +
 
 +
====Setup====
 
  # pacman -S laptop-mode-tools
 
  # pacman -S laptop-mode-tools
  
The main configuration file is '''/etc/laptop-mode/laptop-mode.conf''', plus there are several separate configuration files in '''/etc/laptop-mode/conf.d/''' for the various power saving modules managed by laptop-mode-tools. The files are well commented, so it should be easy to set everything up as needed. (For more information, see [[Laptop Mode Tools]])
+
The main configuration file is {{ic|/etc/laptop-mode/laptop-mode.conf}}, plus there are several separate configuration files in {{ic|/etc/laptop-mode/conf.d/}} for the various power saving modules managed by laptop-mode-tools. The files are well commented, so it should be easy to set everything up as needed. (For more information, see [[Laptop Mode Tools]])
  
To make the daemon start at boot, add '''laptop-mode''' to the '''DAEMONS''' array in '''/etc/rc.conf'''.
+
To make the daemon start at boot, add {{Ic|laptop-mode}} to the {{Ic|DAEMONS}} array in {{ic|/etc/rc.conf}}.
  
===LCD brightness===
+
====LCD brightness====
The relevant config file is '''/etc/laptop-mode/conf.d/lcd-brightness.conf'''. Brightness values are between 0 (darkest) and 15 (brightest). An example of usable settings:
+
The relevant configuration file is {{ic|/etc/laptop-mode/conf.d/lcd-brightness.conf}}. Brightness values are between 0 (darkest) and 15 (brightest). An example of usable settings:
  
 
  BATT_BRIGHTNESS_COMMAND="echo 1"
 
  BATT_BRIGHTNESS_COMMAND="echo 1"
Line 87: Line 94:
 
  BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"
 
  BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"
  
===CPU frequency===
+
====SHE====
The CPU frequency is controlled through the file '''/etc/laptop-mode/conf.d/cpufreq.conf'''. The available frequency options can be found out by running:
+
The eeepc's 'Super Hybrid Engine' has a significant effect on powersaving. This underclocks the FSB for powersave/overclocks for performance and can be controlled via the file {{ic|/sys/devices/platform/eeepc/cpufv}} which is provided by the module '''eeepc_laptop'''.
 +
You can manage this with laptop-mode-tools. The relevant config file is {{ic|/etc/laptop-mode/conf.d/eee-superhe.conf}}.
  
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies
+
===Hotkeys===
 +
Some work out of the box (see [[Asus Eee PC 1005HA#Hotkeys]] for more).
  
This functionality requires the package '''cpufrequtils'''. The package also provides a daemon which can be used on its own, in which case '''/etc/conf.d/cpufreq''' should be edited to contain the desired options, and added to '''DAEMONS''' in '''/etc/rc.conf'''. If handling frequency scaling through '''laptop-mode-tools''', the cpufreq daemon should not be loaded, and its config file options can remain commented out, since the settings will come from '''/etc/laptop-mode/conf.d/cpufreq.conf'''.
+
==Hardware Info==
 
+
Either way, cpufreq requires the kernel module '''acpi-cpufreq''' and some 'governors' ('''cpufreq_ondemand''' seems to be loaded by default, but there is also '''cpufreq_powersave'''). To load them at startup, add these modules to the '''MODULES''' array in '''/etc/rc.conf'''.
+
 
+
===SHE===
+
The eeepc's 'Super Hybrid Engine' has a significant effect on powersaving. This underclocks the FSB for powersave/overclocks for performance and can be controlled via the file '''/sys/devices/platform/eeepc/cpufv''' which is provided by the module '''eeepc_laptop'''.
+
The relevant config file is '''/etc/laptop-mode/conf.d/eee-superhe.conf'''.
+
 
+
As of writing this (kernel 2.6.33), the module eeepc_laptop doesn't work as expected, see [[#Issues]].
+
 
+
===USB suspend===
+
Config file: '''/etc/laptop-mode/conf.d/usb-autosuspend.conf'''
+
Tip: make use of the option to disable the suspending of some USB hardware (eg. 3g modems) by using lsusb to get the ID and then insert it in the configuration file.
+
 
+
==Hotkeys==
+
Some work out of the box (see [[http://wiki.archlinux.org/index.php/Asus_Eee_PC_1005HA#Hotkeys]] for more).
+
 
+
=Hardware Info=
+
 
'''lspci''' says:
 
'''lspci''' says:
 
   
 
   
00:00.0 Host bridge: Intel Corporation Pineview DMI Bridge
+
00:00.0 Host bridge: Intel Corporation Pineview DMI Bridge
00:02.0 VGA compatible controller: Intel Corporation Pineview Integrated Graphics Controller
+
00:02.0 VGA compatible controller: Intel Corporation Pineview Integrated Graphics Controller
00:02.1 Display controller: Intel Corporation Pineview Integrated Graphics Controller
+
00:02.1 Display controller: Intel Corporation Pineview Integrated Graphics Controller
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
+
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
+
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
+
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
+
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
+
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
+
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
+
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
+
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
+
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
+
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation Tigerpoint LPC Controller (rev 02)
+
00:1f.0 ISA bridge: Intel Corporation Tigerpoint LPC Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GR/GH (ICH7 Family) SATA AHCI Controller (rev 02)
+
00:1f.2 SATA controller: Intel Corporation 82801GR/GH (ICH7 Family) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
+
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 Ethernet controller: Atheros Communications Atheros AR8132 / L1c Gigabit Ethernet Adapter (rev c0)
+
01:00.0 Ethernet controller: Atheros Communications Atheros AR8132 / L1c Gigabit Ethernet Adapter (rev c0)
02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
+
02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
 
+
=Issues=
+
The eeepc_laptop module can only be loaded after appending 'acpi_osi=Linux' to the kernel line in /boot/grub/menu.lst. This is needed in order for the 'Super Hybrid Engine' (eee-she|eee-superhe) to work, and it also fixes the screen brightness levels, however it disables ethernet.
+

Revision as of 17:27, 7 November 2012

Device Status Modules
Video Working i915
Ethernet Working atl1c
Wireless Working ath9k
Audio Working snd_hda_intel
Camera Working uvcvideo
Card Reader Working
Function Keys Some working

This article describes both the 1005P and the 1005PE, since the only difference of the 1005PE is wlan n and a bigger harddrive.

Installation

  1. Installing from USB: according to the article on installing from USB, the standard ISO images can be used for this (beginning with release 2010.05).
  2. Installing via PXE works well. It requires another computer to use as PXE host, and some configuration.

Kernel

Append acpi_osi=Linux to your /boot/grub/menu.lst to set the EeePC ACPI Interfaces to "Linux-Mode". Then the current kernel (as of writing 2.6.34) will autoload the eeepc_laptop module and everything works perfectly. Eg.

kernel /boot/vmlinuz26 root=/dev/sda2 ro acpi_osi=Linux

Xorg

Video Driver

Install xf86-video-intel.

Device Autodetection

Everything works out of the box.

Graphic Performance

The default graphic performance is the best you can currently get. It is not needed to add "optimizations" like "AccelMethod" "exa" to your xorg.conf, because these will get ignored by the current version of the Intel drivers anyway. The only thing you can add is XvMC Hardware decoding support, which allows your Intel graphics adapter to decode MPEG2 video material. To do this and set XvMC, here is a minimal xorg.conf:

 Section "Device"
     Identifier "Card0"
     Driver "intel"
     Option "XvMC" "on"
 EndSection

More is not needed in your xorg.conf, since Xorg uses input hotplugging.

To let X know where the XvMC library is, run:

 # echo /usr/lib/libIntelXvMC.so > /etc/X11/XvMCConfig

Touchpad

Install xf86-input-synaptics (see Touchpad Synaptics). To enable Two Finger Scrolling and to disable Edge Scrolling, add this to your /etc/X11/xorg.conf.d/10-synaptics.conf inside the InputClass Section:

 Option "VertTwoFingerScroll" "true"
 Option "HorizTwoFingerScroll" "true"
 Option "EmulateTwoFingerMinZ" "10"
 Option "EmulateTwoFingerMinW" "7"
 Option "VertEdgeScroll" "false"
 Option "HorizEdgeScroll" "false"

xrandr

For a nice GUI tool, you can try lxrandr.

Switch to external monitor (VGA port):

xrandr --output LVDS1 --off --output VGA1 --auto

Switch back to eeepc's LCD:

xrandr --output LVDS1 --auto --output VGA1 --off

Powersaving and ACPI

Your best bet is to disable all hardware you do not intend to use (to access the BIOS settings, press F2 after rebooting).

See power saving for details.

laptop-mode-tools

Laptop-mode-tools provides an easy way to setup most of the available power saving options, which include spinning down the hard drive and adjusting the power saving modes of the harddrive and CPU, as well as autosuspending the USB-ports, setting screen brightness, configuring the eee's own 'Super Hybrid Engine', etc.

Setup

# pacman -S laptop-mode-tools

The main configuration file is /etc/laptop-mode/laptop-mode.conf, plus there are several separate configuration files in /etc/laptop-mode/conf.d/ for the various power saving modules managed by laptop-mode-tools. The files are well commented, so it should be easy to set everything up as needed. (For more information, see Laptop Mode Tools)

To make the daemon start at boot, add laptop-mode to the DAEMONS array in /etc/rc.conf.

LCD brightness

The relevant configuration file is /etc/laptop-mode/conf.d/lcd-brightness.conf. Brightness values are between 0 (darkest) and 15 (brightest). An example of usable settings:

BATT_BRIGHTNESS_COMMAND="echo 1"
LM_AC_BRIGHTNESS_COMMAND="echo 15"
NOLM_AC_BRIGHTNESS_COMMAND="echo 15"
BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"

SHE

The eeepc's 'Super Hybrid Engine' has a significant effect on powersaving. This underclocks the FSB for powersave/overclocks for performance and can be controlled via the file /sys/devices/platform/eeepc/cpufv which is provided by the module eeepc_laptop. You can manage this with laptop-mode-tools. The relevant config file is /etc/laptop-mode/conf.d/eee-superhe.conf.

Hotkeys

Some work out of the box (see Asus Eee PC 1005HA#Hotkeys for more).

Hardware Info

lspci says:

00:00.0 Host bridge: Intel Corporation Pineview DMI Bridge
00:02.0 VGA compatible controller: Intel Corporation Pineview Integrated Graphics Controller
00:02.1 Display controller: Intel Corporation Pineview Integrated Graphics Controller
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation Tigerpoint LPC Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GR/GH (ICH7 Family) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
01:00.0 Ethernet controller: Atheros Communications Atheros AR8132 / L1c Gigabit Ethernet Adapter (rev c0)
02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)