Running Ubuntu on the Chromebook Pixel 2 LS (Samus) natively.
git clone https://chromium.googlesource.com/chromiumos/platform/ec
cd ec
sed -i 's/\(COMMON_WARN =\)/\1 -Wno-error=maybe-uninitialized/' Makefile.toolchain
make BOARD=samus build/samus/util/ectool
-
Check current kernel
$ uname -a Linux neutrino 4.8.0-22-generic #24-Ubuntu SMP Sat Oct 8 09:15:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux -
Install linux-samus kernel
git clone --depth=1 https://github.com/raphael/linux-samus cd linux-samus/build/debian sudo dpkg -i *.deb sudo update-grub sudo shutdown -r now -
Verify new kernel
$ uname -a Linux neutrino 4.9.6-ph+ #17 SMP Fri Jan 27 11:38:18 PST 2017 x86_64 x86_64 x86_64 GNU/Linux
Dependencies:
- "Install ectool" section
Steps:
- Turn off all fans
sudo ~/env/ec/build/samus/util/ectool --interface=lpc fanduty 0
-
The cable
-
Plugging in the cable
- It's directional, lol: raphael/linux-samus#162 (comment)
-
Configuring xrandr modes
-
Laptop Monitor On, External Monitor On
xrandr --output "eDP-1" --primary --auto --output "DP-1" --right-of "eDP-1" --auto -
Laptop Monitor Off, External Monitor On
xrandr --output "eDP-1" --off --output "DP-1" --primary --auto -
Laptop Monitor On, External Monitor Off
xrandr --output "DP-1" --off --output "eDP-1" --primary --auto -
References
-
-
Configuring different DPIs
Dependencies:
Steps:
-
Install dependencies
$ sudo apt-get install xserver-xorg-video-intel -
Run the setup script
$ cd ~/env/linux-samus/scripts/setup/xorg $ ./xaccel.sh
Dependencies:
-
'Trackpad' section of "crouton unity i3wm" gist
Steps:
-
RUn the
enable-atmel.shscriptcd ~/env/linux-samus/scripts/setup/touchpad/ ./enable-atmel.sh -
Install and configure
touchpad-cmt-samussudo add-apt-repository --remove ppa:longsleep/pixel-extras sudo apt-get update sudo apt-get install libevdevc libgestures xf86-input-cmt sudo mv /usr/share/X11/xorg.conf.d/50-synaptics.conf /usr/share/X11/xorg.conf.d/50-synaptics.conf.old sudo cp /usr/share/xf86-input-cmt/50-touchpad-cmt-samus.conf /usr/share/X11/xorg.conf.d/ -
Verify configuration
cat /usr/share/X11/xorg.conf.d/50-touchpad-cmt-samus.conf cat /usr/share/X11/xorg.conf.d/40-touchpad-cmt.conf xinput list-props 'Atmel maXTouch Touchpad'
ll X/pixel_native/keyboardscat ~/.xsessionrc
xkbcomp ${HOME}/env/keyboard/server-0.xkb.pixel_ubuntu_samuskernel_mod ${DISPLAY} References
Dependencies:
Steps:
-
Use
linux-samuscd ~/env/linux-samus/scripts/setup/brightness/ -
Run the setup script
./setup.systemd.sh -
Enable the service
systemctl enable enable-brightness.service -
Configure keyboard keys via i3. Add to
~/.config/i3/config:bindsym XF86MonBrightnessUp exec brightness --increase bindsym XF86MonBrightnessDown exec brightness --decrease
Dependencies:
- All steps in "Display brightness controls"
Scripts:
- Turn off keyboard LED
echo 0 > "/sys/class/leds/chromeos::kbd_backlight/brightness"
Same as 16.04
Same as 16.04.
Same as 16.04.
The default libinput trackpad driver seems to work well.
Get info:
-
xinput -
xinput list-props 'Atmel maXTouch Touchpad'
Test configuration parameters live:
-
xinput set-prop 'Atmel maXTouch Touchpad' 'libinput Accel Speed' 0.8
Configuration:
-
The default config already exists:
cat /usr/share/X11/xorg.conf.d/40-libinput.conf -
An override file exists with custom configs:
cat X/pixel_native/50-touchpad-libinput-martin.conf -
Install the override config via:
sudo cp X/pixel_native/50-touchpad-libinput-martin.conf /usr/share/X11/xorg.conf.d/
-
Enable the audio
./home/martin/env/linux-samus/scripts/setup/audio/enable-audio.sh ./home/martin/env/linux-samus/scripts/setup/audio/enable-speakers.sh -
Create symlinks
sudo ln -s ~/env/linux-samus/scripts/setup/audio/volume-up.sh /usr/local/bin/volume-up sudo ln -s ~/env/linux-samus/scripts/setup/audio/volume-down.sh /usr/local/bin/volume-down sudo ln -s ~/env/linux-samus/scripts/setup/audio/mute-toggle.sh /usr/local/bin/volume-mute-toggle