Ubuntu 16.04 on C740


This is VERY incomplete. A lot may change. I don't know if these are the best ways to fix many of the issues I've had, but I do know that they work for me.

After installing Ubuntu 16.04 on my Acer C740 (a Chromebook), I couldn't find any recent "post-installation" tips to get things working better.

Current as of June 12th, 2017

* Write-protect screw removed.
* CoolStar's coreboot w/ SeaBIOS.
* 256 GB SSD
* Ubuntu 16.04 LTS


The right side of touchpad activates right-click in addition to a 2-finger click.

You can turn this off.

Create the file /etc/X11/xorg.conf.d/80-touchpad.conf and add the following to it:

#
# /etc/X11/xorg.conf.d/80-touchpad.conf
#
# disable the right-click button
#

Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
        Option "SecondarySoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection

# EoF

Getting the hotkeys working.

I use xbindkeys and xdotool to help remap the keyboard.

Install these two packages:

sudo apt-get -y install xbindkeys xdotool

Then create the file ~/.xbindkeysrc and put the following in it:

#
# ~/.xbindkeysrc
#
# remap keyboard for C740
#

# back
"xdotool keyup F1; xdotool key alt+Left"
F1

# forward
"xdotool keyup F2; xdotool key alt+Right"
F2

# refresh
"xdotool keyup F3; xdotool key ctrl+r"
F3

# maximize
"xdotool keyup F4; xdotool key F11"
F4

# switch window
"xdotool keyup F5; xdotool key alt+Tab"
F5

# brightness down
"xdotool keyup F6; xdotool key XF86MonBrightnessDown"
F6

# brightness up
"xdotool keyup F7; xdotool key XF86MonBrightnessUp"
F7

# mute
"xdotool keyup F8; xdotool key XF86AudioMute"
F8

# volume down
"xdotool keyup F9; xdotool key XF86AudioLowerVolume"
F9

# volume up
"xdotool keyup F10; xdotool key XF86AudioRaiseVolume"
F10

# other keys

# delete key
"xdotool keyup Control+BackSpace; xdotool key Delete; xdotool keydown Control"
Control+BackSpace

# home
"xdotool keyup Control+Left; xdotool key Home; xdotool keydown Control"
Control + Left

# end
"xdotool keyup Control+Right; xdotool key End; xdotool keydown Control"
Control + Right

# page up
"xdotool keyup Control+Up; xdotool key Prior; xdotool keydown Control"
Control + Up

# page down
"xdotool keyup Control+Down; xdotool key Next; xdotool keydown Control"
Control + Down

# EoF

To change clock to use Local instead of Universal time (which helps when dual-booting with Windows), type this:

sudo timedatectl set-local-rtc 1

The following two things in /etc/rc.local can help with the user experience.

The first part is to prevent the touchpad from waking the device.

The second part disables the Power Management on WiFi, which affects performance.

Add the following to /etc/rc.local, above the "exit 0" line:

# prevent the touchpad from waking the system
echo ETPA > /proc/acpi/wakeup

# disable WiFi power management (improves connection)
/sbin/iwconfig wlp1s0 power off

WiFi would sometimes not come back for me after sleep/suspend. A common fix is to restart networking after the device resumes.

Since Ubuntu 16.04 uses systemd, the locations for a restart script mentioned in some other guides does not work.

Create the file /etc/systemd/system/wifi-restart.service and add the following to it:

#
# /etc/systemd/system/wifi-restart.service
#
# restart networking/wifi after sleep
#
# enable with "systemctl enable wifi-restart.service"
#

[Unit]
Description=Networking and WiFi Restart After Sleep
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target

[Service]
Type=oneshot
ExecStart=/bin/systemctl restart network-manager.service

[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target

# EoF

You then need to enable the new service with this command:

sudo systemctl enable wifi-restart.service