Difference between revisions of "ASUS Eee PC 1201NL"

From ArchWiki
Jump to: navigation, search
m (Function keys: Corrected a broken Link)
m (remove needless attributes from wiki tables and/or use class="wikitable")
(23 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:ASUS (English)]]
+
{{Merge|Asus Eee PC 1201n}}
{| style="float:right; border: 1px solid #000;"  
+
[[Category:ASUS]]
 +
{| class="wikitable" style="float: right;"
 
| '''Device''' || '''Status''' || '''Modules'''
 
| '''Device''' || '''Status''' || '''Modules'''
 
|-  
 
|-  
Line 7: Line 8:
 
| Ethernet || style="color:green" | '''Working''' ||  atl1e
 
| Ethernet || style="color:green" | '''Working''' ||  atl1e
 
|-
 
|-
| Wireless || style="color:green" | '''Working''' || r8192se_pci or ndiswrapper
+
| Wireless || style="color:green" | '''Working''' || rtl8192se
 
|-
 
|-
 
| Audio || style="color:green" | '''Working''' || snd_hda_intel
 
| Audio || style="color:green" | '''Working''' || snd_hda_intel
Line 19: Line 20:
 
| Suspend2RAM || style="color:green" | '''Working''' || pm-utils  
 
| Suspend2RAM || style="color:green" | '''Working''' || pm-utils  
 
|-
 
|-
| Hibernate || style="color:brown" | '''Not tested''' || pm-utils?
+
| Hibernate || style="color:green" | '''Working''' || uswsusp-git
 
|-
 
|-
 
| Multi-input touchpad || style="color:red" | '''Only emulation''' ||  
 
| Multi-input touchpad || style="color:red" | '''Only emulation''' ||  
Line 27: Line 28:
  
 
Netbook works flawlessly with Arch Linux (if you encounter freezes see Troubleshooting below)
 
Netbook works flawlessly with Arch Linux (if you encounter freezes see Troubleshooting below)
 +
 +
=HDD important issue=
 +
 +
With the Western Digital hard drive (not SSD), there is an important issue: using the APM (Advanced Power Management) there are too nomerous spin-down, that can damage the hard drive. To confirm this issue you have to install smartmontools:
 +
# pacman -S smartmontools
 +
And you have to run multiple times this command (once in a minute for like 5 minutes):
 +
# smartctl -a /dev/sda|grep Load_Cycle_Count
 +
If the number under Load_Cycle_Count is increasing in a small amount of time (1 or 2 in a minute) you have this issue.
 +
The problem is easily solvable using laptop-mode-tools. In your /etc/laptop-mode/laptop-mode.conf you have to set:
 +
#
 +
# Should laptop mode tools control the hard drive power management settings?
 +
#
 +
CONTROL_HD_POWERMGMT=1
 +
 +
#
 +
# Power management for HD (hdparm -B values)
 +
#
 +
BATT_HD_POWERMGMT=255
 +
LM_AC_HD_POWERMGMT=255
 +
NOLM_AC_HD_POWERMGMT=255
 +
This disable all power management systems of the hard drive cause a light heat up (maybe). The same behaviour can be obtained running this command:
 +
# hdparm -B 255 /dev/sda
 +
the 255 number is the power-management level, in a range of 1-255 where 1 is maximum powersaving and 255 powersaving disabled. However setting the value to 253 causes a lot of spin-down. Setting the spin-down feature (it parks the heads away from disk) however can save hdd in case of fall.
  
 
=Graphics=
 
=Graphics=
Line 35: Line 59:
  
 
==Open-Source Driver==
 
==Open-Source Driver==
If you desire [[KMS|Kernel Mode Setting]] and [[xinerama|xinerama]] (better multihead support), then install [[nouveau|nouveau]] instead of the , though 3D support in nouveau is highly experimental:
+
If you desire [[KMS|Kernel Mode Setting]] and [[xinerama|xinerama]] (better multihead support), then install [[nouveau|nouveau]] instead of the closed-source driver.
 
   
 
   
 
  pacman -S xf86-video-nouveau
 
  pacman -S xf86-video-nouveau
  
And (highly experimental) 3D support:
+
And (experimental) 3D support:
  
 
  pacman -S nouveau-dri
 
  pacman -S nouveau-dri
Line 45: Line 69:
 
=Wireless=
 
=Wireless=
  
Here, you have two options: either install [http://aur.archlinux.org/packages.php?ID=34281 rtl8192 package] from AUR or use ndiswrapper with Windows 2000 driver for the card. The latter seems to be much snappier (better wifi range) but disables the use of aircrack.
+
There is native support from 3.0 kernel version with rtl8192se module.
==Native linux driver==
+
For native linux drivers you need to load r8192se_pci module:
+
modprobe r8192se_pci
+
You can add r8192se_pci to your MODULES array in /etc/rc.conf, though udev should load them automatically.
+
  
==Ndiswrapper and W2K driver==
+
=ACPI Functions=
'''Detailed ndiswrapper installation instructions coming up soon.'''
+
In order to use the function keys and extend battery life, you can set up the ACPI Driver, then install and configure the tools below.
  
=Function keys=
+
The driver for the ACPI functions of the 1201N is called eeepc_laptop.  It is part of the mainline kernel, so all that needs to be done is to load the module:
You must have [[Acipd|acpid]] installed to use the Function keys:
+
modprobe eeepc_laptop
 +
If the command fails with such error message:
 +
FATAL: Error inserting eeepc_laptop (/lib/modules/2.6.32-ARCH/kernel/drivers/platform/x86/eeepc-laptop.ko): No such device
 +
you need to add ''acpi_osi=Linux'' to kernel parameters in your bootloader configuration.
 +
==Function Keys==
 +
You must have [[Acpid|acpid]] installed to use the Function keys:
 
  pacman -S acpid  
 
  pacman -S acpid  
 
After installing acpid, you will have to add it to your DAEMONS array in rc.conf.
 
After installing acpid, you will have to add it to your DAEMONS array in rc.conf.
  
Then, you need to install [http://aur.archlinux.org/packages.php?ID=23318 acpi-eeepc-generic package] from AUR and edit file '''/etc/conf.d/acpi-eeepc-generic.conf''':
+
Then, you need to install [https://aur.archlinux.org/packages.php?ID=23318 acpi-eeepc-generic package] from AUR and edit file '''/etc/conf.d/acpi-eeepc-generic.conf''':
  
 
  EEEPC_MODEL="1201N"
 
  EEEPC_MODEL="1201N"
Line 74: Line 99:
 
  /etc/rc.d/acpid restart
 
  /etc/rc.d/acpid restart
  
=Suspend2RAM=
+
=Power Management with Laptop Mode Tools=
 +
You can use Laptop Mode to substantially increase your battery life on Linux.  To do so, Install the [Laptop Mode Tools|laptop-mode-tools] from extra repo:
 +
pacman -S laptop-mode-tools
 +
and add "laptop-mode" to your DAEMONS array in rc.conf.
 +
Many of the power managment settings in laptop-mode are disbaled by default, so it is encouraged that you explore the configuration files throroughly.  Here are some highlights of configuration options worth exploring:
 +
 
 +
==Super Hybrid Engine==
 +
 
 +
Super Hybrid Engine is a simple FSB tweaker that can radically reduce power consumption.
 +
 
 +
To enable automatic SHE manipulation just edit /etc/laptop-mode/conf.d/eee-superhe.conf:
 +
CONTROL_SUPERHE=1
 +
 
 +
If you've configured function keys using acpi-eeepc-generic, you can manually change SHE mode by using Fn+Space.
 +
 
 +
==Wifi Power Management==
 +
The linux native wifi driver supports wifi power management.  If you are using the linux-native wifi driver, you can enable basic power management by editing /etc/laptop-mode/conf.d/wireless-power.conf:
 +
CONTROL_WIRELESS_POWER_SAVING=1
 +
 
 +
==Suspend2RAM==
 
Install pm-utils:
 
Install pm-utils:
 
  pacman -S pm-utils
 
  pacman -S pm-utils
Line 83: Line 127:
 
  pm-suspend
 
  pm-suspend
  
=Power saving=
+
==Hibernate==
Install the laptop-mode-tools from extra repo:
+
pacman -S laptop-mode-tools
+
  
==Super Hybrid Engine==
+
Install [https://aur.archlinux.org/packages.php?ID=44473 uswsusp-git package] from AUR.
  
Super Hybrid Engine is a simple FSB tweaker that can radically reduce power consumption. You need to load the eeepc_laptop module to make SE work:
+
Set resume device parameter (your swap partition) in /etc/suspend.conf
modprobe eeepc_laptop
+
resume device = /dev/sda3
If the command fails with such error message:
+
FATAL: Error inserting eeepc_laptop (/lib/modules/2.6.32-ARCH/kernel/drivers/platform/x86/eeepc-laptop.ko): No such device
+
you need to add ''acpi_osi=Linux'' to kernel parameters in grub configuration.
+
  
To enable automatic SHE manipulation just edit /etc/laptop-mode/conf.d/eeepc-superhe.conf:
+
Add possibility to suspend2disk with closing laptop if you installed acpi-eeepc-generic.
  CONTROL_SUPERHE=1
+
 
 +
Modify /etc/conf.d/acpi-eeepc-generic.conf  
 +
 
 +
Add next lines
 +
  COMMANDS_HIBERNATE=("/etc/acpi/eeepc/acpi-eeepc-generic-suspend2disk.sh")
 +
SUSPEND2DISK_COMMANDS=("s2disk")
 +
 
 +
Edit variable COMMANDS_LID_CLOSE_ON_BATTERY value like this
 +
COMMANDS_LID_CLOSE_ON_BATTERY=("${COMMANDS_HIBERNATE[@]}")
 +
 
 +
Now copy /etc/acpi/eeepc/acpi-eeepc-generic-suspend2ram.sh to /etc/acpi/eeepc/acpi-eeepc-generic-suspend2disk.sh and edit command to run
 +
execute_commands "${SUSPEND2DISK_COMMANDS[@]}"
  
If you've configured function keys properly you can manually change SHE mode by using Fn+Space.
+
Now restart acpid
 +
#/etc/rc.d/acpid restart
  
 
==LCD brightness==
 
==LCD brightness==
Line 109: Line 160:
  
 
=Troubleshooting=
 
=Troubleshooting=
 
==Touchpad/keyboard freezes==
 
 
Most likely you are using kernel 2.6.32 or newer. The only solution for now is to downgrade to 2.6.31.
 
  
 
==Machine does not resume after suspend2ram==
 
==Machine does not resume after suspend2ram==
Line 121: Line 168:
  
 
You have to unload usb module(s) before suspending. See Suspend2RAM section of this article for details.
 
You have to unload usb module(s) before suspending. See Suspend2RAM section of this article for details.
 +
 +
=Tips=
 +
 +
==1366x768 in console with NVIDIA proprietary driver==
 +
 +
Load kernel with parameter acpi_osi=Linux
 +
 +
Reboot
 +
 +
Load kernel with parameters acpi_osi=Linux vga=0x034d

Revision as of 08:17, 16 March 2014

Merge-arrows-2.pngThis article or section is a candidate for merging with Asus Eee PC 1201n.Merge-arrows-2.png

Notes: please use the second argument of the template to provide more detailed indications. (Discuss in Talk:ASUS Eee PC 1201NL#)
Device Status Modules
Nvidia GeForce 9400M Working nvidia
Ethernet Working atl1e
Wireless Working rtl8192se
Audio Working snd_hda_intel
Camera Working
Card Reader Working
Function Keys Working acpi-eeepc-generic
Suspend2RAM Working pm-utils
Hibernate Working uswsusp-git
Multi-input touchpad Only emulation

This is just a draft - more detailed instructions coming up soon + more detailed tests

Netbook works flawlessly with Arch Linux (if you encounter freezes see Troubleshooting below)

HDD important issue

With the Western Digital hard drive (not SSD), there is an important issue: using the APM (Advanced Power Management) there are too nomerous spin-down, that can damage the hard drive. To confirm this issue you have to install smartmontools:

# pacman -S smartmontools

And you have to run multiple times this command (once in a minute for like 5 minutes):

# smartctl -a /dev/sda|grep Load_Cycle_Count

If the number under Load_Cycle_Count is increasing in a small amount of time (1 or 2 in a minute) you have this issue. The problem is easily solvable using laptop-mode-tools. In your /etc/laptop-mode/laptop-mode.conf you have to set:

#
# Should laptop mode tools control the hard drive power management settings?
#
CONTROL_HD_POWERMGMT=1

#
# Power management for HD (hdparm -B values)
#
BATT_HD_POWERMGMT=255
LM_AC_HD_POWERMGMT=255
NOLM_AC_HD_POWERMGMT=255

This disable all power management systems of the hard drive cause a light heat up (maybe). The same behaviour can be obtained running this command:

# hdparm -B 255 /dev/sda

the 255 number is the power-management level, in a range of 1-255 where 1 is maximum powersaving and 255 powersaving disabled. However setting the value to 253 causes a lot of spin-down. Setting the spin-down feature (it parks the heads away from disk) however can save hdd in case of fall.

Graphics

Nvidia's Closed-Source Driver

Just install the official closed source drivers from arch extra repo:

pacman -S nvidia

Open-Source Driver

If you desire Kernel Mode Setting and xinerama (better multihead support), then install nouveau instead of the closed-source driver.

pacman -S xf86-video-nouveau

And (experimental) 3D support:

pacman -S nouveau-dri

Wireless

There is native support from 3.0 kernel version with rtl8192se module.

ACPI Functions

In order to use the function keys and extend battery life, you can set up the ACPI Driver, then install and configure the tools below.

The driver for the ACPI functions of the 1201N is called eeepc_laptop. It is part of the mainline kernel, so all that needs to be done is to load the module:

modprobe eeepc_laptop

If the command fails with such error message:

FATAL: Error inserting eeepc_laptop (/lib/modules/2.6.32-ARCH/kernel/drivers/platform/x86/eeepc-laptop.ko): No such device

you need to add acpi_osi=Linux to kernel parameters in your bootloader configuration.

Function Keys

You must have acpid installed to use the Function keys:

pacman -S acpid 

After installing acpid, you will have to add it to your DAEMONS array in rc.conf.

Then, you need to install acpi-eeepc-generic package from AUR and edit file /etc/conf.d/acpi-eeepc-generic.conf:

EEEPC_MODEL="1201N"

Comment out EEEPC_CONF_DONE option:

#EEEPC_CONF_DONE="no"

If you are using linux drivers for wifi you should also edit the WIFI_DRIVERS array:

WIFI_DRIVERS=("r8192se_pci")

Otherwise the wifi toggle button won't work.

Afterward, you must restart acipd:

/etc/rc.d/acpid restart

Power Management with Laptop Mode Tools

You can use Laptop Mode to substantially increase your battery life on Linux. To do so, Install the [Laptop Mode Tools|laptop-mode-tools] from extra repo:

pacman -S laptop-mode-tools

and add "laptop-mode" to your DAEMONS array in rc.conf. Many of the power managment settings in laptop-mode are disbaled by default, so it is encouraged that you explore the configuration files throroughly. Here are some highlights of configuration options worth exploring:

Super Hybrid Engine

Super Hybrid Engine is a simple FSB tweaker that can radically reduce power consumption.

To enable automatic SHE manipulation just edit /etc/laptop-mode/conf.d/eee-superhe.conf:

CONTROL_SUPERHE=1

If you've configured function keys using acpi-eeepc-generic, you can manually change SHE mode by using Fn+Space.

Wifi Power Management

The linux native wifi driver supports wifi power management. If you are using the linux-native wifi driver, you can enable basic power management by editing /etc/laptop-mode/conf.d/wireless-power.conf:

CONTROL_WIRELESS_POWER_SAVING=1

Suspend2RAM

Install pm-utils:

pacman -S pm-utils

If you are using linux wifi driver you need to unload it before suspending otherwise the machine won't resume. To do this automatically uncomment and edit appropriate line in /etc/pm/config.d/config file:

SUSPEND_MODULES="ehci_hcd r8192se_pci"

The ehci_hcd module is responsible for usb hub. Removing it solves the immediate resume issue (see Troubleshooting) You can try out the suspend2ram either by using function key Fn+F1 (if you've configured them to use pm-utils in /etc/conf.d/acpi-eeepc-generic.conf) or by running:

pm-suspend

Hibernate

Install uswsusp-git package from AUR.

Set resume device parameter (your swap partition) in /etc/suspend.conf

resume device = /dev/sda3

Add possibility to suspend2disk with closing laptop if you installed acpi-eeepc-generic.

Modify /etc/conf.d/acpi-eeepc-generic.conf

Add next lines

COMMANDS_HIBERNATE=("/etc/acpi/eeepc/acpi-eeepc-generic-suspend2disk.sh")
SUSPEND2DISK_COMMANDS=("s2disk")

Edit variable COMMANDS_LID_CLOSE_ON_BATTERY value like this

COMMANDS_LID_CLOSE_ON_BATTERY=("${COMMANDS_HIBERNATE[@]}")

Now copy /etc/acpi/eeepc/acpi-eeepc-generic-suspend2ram.sh to /etc/acpi/eeepc/acpi-eeepc-generic-suspend2disk.sh and edit command to run

execute_commands "${SUSPEND2DISK_COMMANDS[@]}"

Now restart acpid

#/etc/rc.d/acpid restart

LCD brightness

To enable LCD brightness automatic manipulation you need to edit /etc/laptop-mode/conf.d/lcd-brightness.conf and set proper BRIGHTNESS_OUTPUT path:

BATT_BRIGHTNESS_COMMAND="echo 8"
LM_AC_BRIGHTNESS_COMMAND="echo 15"
NOLM_AC_BRIGHTNESS_COMMAND="echo 15"
BRIGHTNESS_OUTPUT="/proc/acpi/video/IGPU/LCDD/brightness"

Troubleshooting

Machine does not resume after suspend2ram

You have to unload r8192se_pci module right before suspending. See Suspend2RAM section of this article for details.

After suspending the machine immediately resumes

You have to unload usb module(s) before suspending. See Suspend2RAM section of this article for details.

Tips

1366x768 in console with NVIDIA proprietary driver

Load kernel with parameter acpi_osi=Linux

Reboot

Load kernel with parameters acpi_osi=Linux vga=0x034d