Difference between revisions of "Acer C720 Chromebook"

From ArchWiki
Jump to: navigation, search
m
(update 64-bit instructions)
Line 13: Line 13:
 
* Now, press {{ic|Ctrl+D}} (no prompt). It will ask you to confirm, then the system will revert its state and enable developer mode.
 
* Now, press {{ic|Ctrl+D}} (no prompt). It will ask you to confirm, then the system will revert its state and enable developer mode.
 
* Press {{ic|Ctrl+D}} (or wait 30 seconds for the beep and boot) at the white boot splash screen to enter Chrome OS.
 
* Press {{ic|Ctrl+D}} (or wait 30 seconds for the beep and boot) at the white boot splash screen to enter Chrome OS.
 
{{Note|To hard reset, press {{ic|Esc+F3 (Refresh)}}. This acts like a reset button on a desktop PC.
 
The same warnings apply -- the OS cannot save itself from this, and data loss is possible.}}
 
  
 
=== Enabling SeaBIOS ===
 
=== Enabling SeaBIOS ===
Line 36: Line 33:
  
 
A few installation notes:
 
A few installation notes:
* Choose the 32-bit {{ic|Boot Arch Linux (i686)}}, not {{ic|Boot Arch Linux (x86_64)}}. The 64-bit installer causes an immediate system reset on the C720.
+
* For a 64-bit installation, use the 2013.10.01 ISO, and boot into the x86_64 installer with the {{ic|1=mem=1024m}} kernel option.
* A fresh DOS partition table on the SSD, with one bootable 16GB root partition works. Note that this will wipe Chrome OS. Other partitioning schemes (GPT, etc.) may also work, but haven't been explored here yet.
+
* A fresh DOS partition table on the SSD with one bootable 16GB root partition works. Note that this will wipe Chrome OS.
* Choose [https://wiki.archlinux.org/index.php/Beginners%27_Guide#GRUB GRUB] as your bootloader, for now.
+
* Choose [https://wiki.archlinux.org/index.php/Beginners%27_Guide#GRUB GRUB] as your bootloader, for now, instead of Syslinux.
  
 
=== Xorg Video Driver ===
 
=== Xorg Video Driver ===
Line 48: Line 45:
 
=== Touchpad Kernel Modules ===
 
=== Touchpad Kernel Modules ===
  
Enabling the touchpad currently requires building a set of patched Haswell Chromebook kernel modules. Fortunately, ChrUbuntu provides a script for automatically building and installing these modules: [http://goo.gl/kz917j cros-haswell-modules.sh]. A modified version for Arch Linux is available here [http://pastebin.com/GxjspVLn cros-haswell-modules-arch.sh].
+
Enabling the touchpad currently requires building a set of patched Haswell Chromebook kernel modules. Fortunately, ChrUbuntu provides a script for automatically building and installing these modules: [http://goo.gl/kz917j cros-haswell-modules.sh].
 +
 
 +
A modified version for Arch Linux is available here [http://pastebin.com/GxjspVLn cros-haswell-modules-arch.sh].
  
 
  $ wget http://pastebin.com/raw.php?i=GxjspVLn -O cros-haswell-modules-archlinux.sh
 
  $ wget http://pastebin.com/raw.php?i=GxjspVLn -O cros-haswell-modules-archlinux.sh
Line 86: Line 85:
 
== Unresolved Issues ==
 
== Unresolved Issues ==
  
* 64-bit installer ({{ic|Boot Arch Linux (x86_64)}}) causes an immediate system reset
+
* The 64-bit installer in Arch Linux installation ISOs newer than 2013.10.01 causes an immediate system reset
 
* Recovering from a systemd suspend
 
* Recovering from a systemd suspend
 
* Syslinux fails to set the bootable flag with {{ic|syslinux-install_update -i -a -m}}. After setting the bootable flag manually in {{ic|fdisk}} and installing Syslinux to the MBR with {{ic|syslinux-install_update -i -m}}, SeaBIOS boots syslinux, but syslinux then complains about a missing OS. Use GRUB for now.
 
* Syslinux fails to set the bootable flag with {{ic|syslinux-install_update -i -a -m}}. After setting the bootable flag manually in {{ic|fdisk}} and installing Syslinux to the MBR with {{ic|syslinux-install_update -i -m}}, SeaBIOS boots syslinux, but syslinux then complains about a missing OS. Use GRUB for now.

Revision as of 09:20, 9 December 2013

The Acer C720 Chromebook (and newer chromebooks in general) features a "legacy boot" mode that makes it easy to boot Linux and other operating systems. The legacy boot mode is provided by the SeaBIOS payload of coreboot. SeaBIOS behaves like a traditional BIOS that boots into the MBR of a disk, and from there into your standard bootloaders like Syslinux and GRUB.

Installation

First enable legacy boot / SeaBIOS from the developer mode of Chrome OS. Then install and boot Linux as you would on a traditional x86 BIOS system.

Enabling Developer Mode

Warning: This will wipe all of your data!

To enter developer mode:

  • Press and hold the Esc+F3 (Refresh) keys, then press the Power button. This enters recovery mode.
  • Now, press Ctrl+D (no prompt). It will ask you to confirm, then the system will revert its state and enable developer mode.
  • Press Ctrl+D (or wait 30 seconds for the beep and boot) at the white boot splash screen to enter Chrome OS.

Enabling SeaBIOS

After changing to developer mode, configure Chrome OS so that you can log in.

To enable the legacy bios:

  • Open a crosh window with Ctrl+Alt+T.
  • Open a bash shell with the shell command.
  • Become superuser with sudo bash
  • Enable legacy boot with:
# crossystem dev_boot_usb=1 dev_boot_legacy=1
  • Reboot the machine

You can now start SeaBIOS by pressing Ctrl-L at the white boot splash screen.

Installing Arch Linux

Create a USB drive with the Arch Linux installer. Plug the USB drive into the Chromebook, and start SeaBIOS with Ctrl-L at the white boot splash screen. Press Esc to get a boot menu and select the number corresponding to your USB drive. The Arch Linux installer boot menu should appear. Follow your favorite installation guide.

A few installation notes:

  • For a 64-bit installation, use the 2013.10.01 ISO, and boot into the x86_64 installer with the mem=1024m kernel option.
  • A fresh DOS partition table on the SSD with one bootable 16GB root partition works. Note that this will wipe Chrome OS.
  • Choose GRUB as your bootloader, for now, instead of Syslinux.

Xorg Video Driver

Use the xf86-video-intel driver.

$ sudo pacman -S xf86-video-intel

Touchpad Kernel Modules

Enabling the touchpad currently requires building a set of patched Haswell Chromebook kernel modules. Fortunately, ChrUbuntu provides a script for automatically building and installing these modules: cros-haswell-modules.sh.

A modified version for Arch Linux is available here cros-haswell-modules-arch.sh.

$ wget http://pastebin.com/raw.php?i=GxjspVLn -O cros-haswell-modules-archlinux.sh
$ chmod +x cros-haswell-modules-archlinux.sh
$ ./cros-haswell-modules-archlinux.sh

Add the Xorg touchpad configuration below for better usability.

/etc/X11/xorg.conf.d/50-cros-touchpad.conf
Section "InputClass" 
    Identifier      "touchpad peppy cyapa" 
    MatchIsTouchpad "on" 
    MatchDevicePath "/dev/input/event*" 
    MatchProduct    "cyapa" 
    Option          "FingerLow" "10" 
    Option          "FingerHigh" "10" 
EndSection

Reboot for the touchpad to become operational.

Power Key and Lid Switch Handling

Out of the box, systemd-logind will catch power key and lid switch events and handle them: it will do a poweroff on a power key press, and a suspend on a lid close. However, this policy might be a bit harsh given that the power key is an ordinary key at the top right of the keyboard that might be pressed accidentally. Also, recovering from a suspend also does not seem to be fully working at the moment.

To configure logind to ignore power key presses and lid switches, add the lines to logind.conf below.

/etc/systemd/logind.conf
HandlePowerKey=ignore
HandleLidSwitch=ignore

Then restart logind for the changes to take effect.

$ sudo systemctl restart systemd-logind

logind will still log the power key and lid switch events to journald. See http://www.freedesktop.org/software/systemd/man/logind.conf.html for additional handling options.

Unresolved Issues

  • The 64-bit installer in Arch Linux installation ISOs newer than 2013.10.01 causes an immediate system reset
  • Recovering from a systemd suspend
  • Syslinux fails to set the bootable flag with syslinux-install_update -i -a -m. After setting the bootable flag manually in fdisk and installing Syslinux to the MBR with syslinux-install_update -i -m, SeaBIOS boots syslinux, but syslinux then complains about a missing OS. Use GRUB for now.