Difference between revisions of "ASUS U31SD"

From ArchWiki
Jump to: navigation, search
(Two Pkg not found in OR/AUR removed. Style fixes)
(34 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
+
[[Category:ASUS]]
[[Category: Asus (English)]]
+
== System specification ==
 
+
=System Specification=
+
  
 
*CPU: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz (Sandy Bridge)
 
*CPU: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz (Sandy Bridge)
Line 18: Line 16:
 
*Webcam: V4L compatible
 
*Webcam: V4L compatible
  
{{Note|This page was written for the i3 model but I'm sure the i5 model not be much different}}
+
{{Note|This page was written for the i3 model but I'm sure the i5 model will not be much different}}
 +
 
 +
== What does '''not''' work out of the box ==
  
=What DOESN'T work out of the box=
 
 
*Sleep/Hibernate (see below)
 
*Sleep/Hibernate (see below)
 
*Nvidia GPU (Switchable GPU, see below)
 
*Nvidia GPU (Switchable GPU, see below)
*Disk optimization (!!!!, See install guide below)
+
*Fn Volume Keys (see below)
 +
 
 +
== What works out of the box / with default configuration ==
  
=What Works out of the Box / With default configuration=
 
 
*CPU (all cores detected)
 
*CPU (all cores detected)
 
*Wireless
 
*Wireless
Line 32: Line 32:
 
*Intel GPU
 
*Intel GPU
 
*Touchpad
 
*Touchpad
 +
*Bluetooth
 
*Hotkeys (Brightness / Monitor on-off / wifi / sleep)
 
*Hotkeys (Brightness / Monitor on-off / wifi / sleep)
 
*USB
 
*USB
  
=Installation=
+
== Not tested ==
Before running the Arch installer, you MUST install and configure a GPT partition scheme. If you do not, you will get '''terrible''' performance when writing small files (which should effect most users).
+
 
+
==Configuring GPT (Erasing the whole disk)==
+
You must install some tools that are not included in the installer (you do not have to update pacman):
+
<pre>$ dhcpcd eth0</pre>
+
Update `pacman` and install `gdisk`
+
<pre>$ pacman -Syy </pre>
+
<pre>$ pacman -S gdisk</pre>
+
Launch `gdisk`
+
<pre>$ gdisk /dev/sda</pre>
+
 
+
Since you want to start a new GPT table, choose the option to create a new GPT table.
+
The partitioning scheme here is important(!). Since you have to use GRUB2 to boot from a GPT disk, you MUST create a 200MB blank partition that you will never touch again(!). This small partition will hold GRUB2's core.img used for booting.
+
 
+
 
+
Using `gdisk`, press `n` to create a new partition, keeping an eye that the start sector should be '''2048''' and for end sector, enter `+200M`. Do not change the partition type; it should default to 8300. '''Remember to not format this in the installer'''.
+
 
+
 
+
From here, you can create the rest of your partitions. We will use `parted` to make your drive bootable later. Don't forget to write the changes to disk using the `w` command in `gdisk`.
+
 
+
 
+
Here you should '''reboot'''. After you boot back into the installer ISO, reinstall `gdisk`.
+
 
+
 
+
Now we need to create an MBR for the GPT disk . This allows GRUB2 to be installed to disk.
+
 
+
 
+
Open `gdisk` and press `r`, then press `h`... A common looking process is below:
+
 
+
 
+
{{Note|Pay close attention the answers to the prompt. Partition 2 in this case is the partition that contains /boot.}}
+
{{Note|I gathered this output after the installation, some things might be different for you at this stage}}
+
 
+
 
+
<pre>
+
 
+
Command (? for help): r
+
Recovery/transformation command (? for help): h
+
  
WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
+
*HDMI
just hit the Enter key at the below prompt and your MBR partition table will
+
be untouched.
+
  
Type from one to three GPT partition numbers, separated by spaces, to be
+
== Input/touchpad ==
added to the hybrid MBR, in sequence: 2
+
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): N
+
  
 +
The keyboard and touchpad work more or less without problems using the {{Pkg|xf86-input-keyboard}} and {{Pkg|xf86-input-synaptics}} modules, respectively. Right- and left-clicking works, as well as Two-Finger scroll. Tapping is enabled out of the box and can be disabled in {{bc| /etc/X/xorg.conf.d/10-synaptics.}}
  
Creating entry for GPT partition #2 (MBR partition #1)
+
== Bluetooth ==
Enter an MBR hex code (default 83):
+
Set the bootable flag? (Y/N): Y
+
  
Creating entry for GPT partition #1 (MBR partition #2)
+
Installing a tool like "blueman" from the AUR and starting the bluetooth DAEMON allowed communication to bluetooth keyboards and mice.
Enter an MBR hex code (default 83):
+
Bluetooth speakers not tested. (*users feel free to add to this)
...
+
Unused partition space(s) found. Use one to protect more partitions? (Y/N): N
+
  
Recovery/transformation command (? for help): o
+
== Nvidia GPU (Optimus) ==
  
Disk size is 1250263728 sectors (596.2 GiB)
+
{{Tip|Your best bet for this part is to install {{AUR|yaourt}} from the AUR to ease in installing the following packages}}
MBR disk identifier: 0x00000000
+
MBR partitions:
+
  
Number  Boot  Start Sector  End Sector  Status      Code
+
You need to install the packages {{Pkg|bumblebee}} and {{Pkg|bbswitch}}.
  1      *              1  1250263727  primary    0xEF
+
  
 +
In short, Bumblebee allows you to use the switchable GPU and use it only when you want to via the 'optirun' application.
  
Recovery/transformation command (? for help): p
+
Be sure enable '''bumblebeed''' [[Systemd]] service to start Bumblebee at boot.
  
Disk /dev/sda: 1250263728 sectors, 596.2 GiB
+
Once you reboot, you should start seeing huge power saving.
Logical sector size: 512 bytes
+
Disk identifier (GUID): 1E222B9C-CF97-474C-AE7A-DB4B71AB163B
+
Partition table holds up to 128 entries
+
First usable sector is 34, last usable sector is 1250263694
+
Partitions will be aligned on 2048-sector boundaries
+
Total free space is 201421421 sectors (96.0 GiB)
+
  
Number  Start (sector)    End (sector)  Size      Code  Name
+
To check and make sure that you aren't using your GPU all the time:
  1            2048            6143  2.0 MiB    8300 GRUB2
+
  $ lsmod | grep nv
  2            6144          268287  128.0 MiB  8300  BOOT
+
Should return nothing, this means your GPU is off.
  3          268288      1048844287  500.0 GiB  8300  ROOT
+
  
 +
You can check your GPU by running '''glxgears''' with and without the 'optirun' prefix and comparing the Frames Per Second.
  
Recovery/transformation command (? for help): w
+
Read the [[Bumblebee]] page for further informations.
  
</pre>
+
== Suspend/hibernate ==
  
What you just did, was create a Hybrid MBR. You should read more about this if you want to understand it.
+
The USB unbind hook is no longer necessary as of [http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=dbf0e4c7257f8d684ec1a3c919853464293de66e Linux 3.5].
  
 +
{{Note|ACPI by default doesn't call pm-suspend, if we want to customize the sleep process, we need pm-suspend }}
  
At this point, you should '''reboot''' again so the kernel is aware of the disk changes.  
+
If you want sleep your machine when you '''close your lid''', you need to edit ACPI handler script {{ic|/etc/acpi/handler.sh}}
  
 +
Change line 20, to this:
 +
SLPB|SBTN)    pm-suspend ;;
  
You do not need to reinstall `gdisk` at this point.
+
And Towards the bottom, make lines 58 and 59 look line like this:
 +
{{bc|close)
 +
        pm-suspend
 +
}}
  
 +
So now you can use the hotkey ({{Keypress|F1}}) or close your lid and your laptop will sleep.
  
''' At this point, you should install archlinux with the installer. '''
+
== Fn multimedia keys ==
  
 +
As with most Asus laptops/netbooks, this laptop sends its Multimedia events via ACPI. Using '''acpi_listen''', I was able to discover the button commands the buttons sent to acpi. Add the following to your {{ic|/etc/acpi/handler.sh}} file (make sure you add this after the ;; in the button/lid section):
 +
{{bc|
 +
    button/volumeup)
 +
      amixer set Master 5+
 +
      ;;
 +
    button/volumedown)
 +
      amixer set Master 5-
 +
      ;;
 +
    button/mute)
 +
      amixer set Master toggle
 +
      ;;
 +
}}
  
==Installing==
+
You can mess with these values to move your volume at different intervals, 5 seemed to work well for me.
*Assure that you do not install/configure anything on the first 200MB partition that you created. You should start modifying and configuring partitions starting after that partition; usually /dev/sda2
+
  
 +
== Optimize power consumption ==
  
=Input / Touchpad=
+
Add this to the kernel line of your bootloader[http://www.linlap.com/asus_u31sd]:
The keyboard and touchpad work more or less without problems using the {{Pkg|xf86-input-keyboard}} and {{Pkg|xf86-input-synaptics}} modules, respectively. Right- and left-clicking works, as well as Two-Finger scroll. Tapping is enabled out of the box and can be disabled in /etc/X/xorg.conf.d/10-synaptics.
+
pcie_aspm=force i915.i915_enable_rc6=1

Revision as of 21:26, 29 May 2013

System specification

  • CPU: Intel(R) Core(TM) i3-2330M CPU @ 2.20GHz (Sandy Bridge)
  • Memory: 4 GB DDR3 PC1333 - can be expanded to a maximum of 8GB (two DIMM slots)
  • WiFi: Atheros Communications Inc. AR9285
  • Ethernet: Atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet
  • Bluetooth: Atheros Communications, Inc. AR3011 Bluetooth
  • Hard-Drive: 640GB Hitachi HTS547564A9E384
  • Optical Drive: None
  • Integrated Graphics: Intel 2nd Generation
  • Discrete Graphics: Nvidia GT520M (GF119)
  • Sound: Intel Corporation 6 Series/C200
  • Screen: 13.3" LCD 1366x768)
  • SD Card Reader
  • Webcam: V4L compatible
Note: This page was written for the i3 model but I'm sure the i5 model will not be much different

What does not work out of the box

  • Sleep/Hibernate (see below)
  • Nvidia GPU (Switchable GPU, see below)
  • Fn Volume Keys (see below)

What works out of the box / with default configuration

  • CPU (all cores detected)
  • Wireless
  • Ethernet
  • Framebuffer resolution (nouveau and intel xorg drivers provide this)
  • Intel GPU
  • Touchpad
  • Bluetooth
  • Hotkeys (Brightness / Monitor on-off / wifi / sleep)
  • USB

Not tested

  • HDMI

Input/touchpad

The keyboard and touchpad work more or less without problems using the xf86-input-keyboard and xf86-input-synaptics modules, respectively. Right- and left-clicking works, as well as Two-Finger scroll. Tapping is enabled out of the box and can be disabled in
 /etc/X/xorg.conf.d/10-synaptics.

Bluetooth

Installing a tool like "blueman" from the AUR and starting the bluetooth DAEMON allowed communication to bluetooth keyboards and mice. Bluetooth speakers not tested. (*users feel free to add to this)

Nvidia GPU (Optimus)

Tip: Your best bet for this part is to install yaourtAUR from the AUR to ease in installing the following packages

You need to install the packages bumblebee and bbswitch.

In short, Bumblebee allows you to use the switchable GPU and use it only when you want to via the 'optirun' application.

Be sure enable bumblebeed Systemd service to start Bumblebee at boot.

Once you reboot, you should start seeing huge power saving.

To check and make sure that you aren't using your GPU all the time:

$ lsmod | grep nv

Should return nothing, this means your GPU is off.

You can check your GPU by running glxgears with and without the 'optirun' prefix and comparing the Frames Per Second.

Read the Bumblebee page for further informations.

Suspend/hibernate

The USB unbind hook is no longer necessary as of Linux 3.5.

Note: ACPI by default doesn't call pm-suspend, if we want to customize the sleep process, we need pm-suspend

If you want sleep your machine when you close your lid, you need to edit ACPI handler script /etc/acpi/handler.sh

Change line 20, to this:

SLPB|SBTN)    pm-suspend ;;

And Towards the bottom, make lines 58 and 59 look line like this:

close)
        pm-suspend

So now you can use the hotkey (Template:Keypress) or close your lid and your laptop will sleep.

Fn multimedia keys

As with most Asus laptops/netbooks, this laptop sends its Multimedia events via ACPI. Using acpi_listen, I was able to discover the button commands the buttons sent to acpi. Add the following to your /etc/acpi/handler.sh file (make sure you add this after the ;; in the button/lid section):

    button/volumeup)
      amixer set Master 5+
      ;;
    button/volumedown)
      amixer set Master 5-
      ;;
    button/mute)
      amixer set Master toggle
      ;;

You can mess with these values to move your volume at different intervals, 5 seemed to work well for me.

Optimize power consumption

Add this to the kernel line of your bootloader[1]:

pcie_aspm=force i915.i915_enable_rc6=1