Skip to content

Instantly share code, notes, and snippets.

@ewann
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewann/b0aeedf57bd6879946c6 to your computer and use it in GitHub Desktop.
Save ewann/b0aeedf57bd6879946c6 to your computer and use it in GitHub Desktop.
Ubuntu 15.04 Acer c710 Chromebook (Google Parrot) trackpad, keyboard-shortcut & hibernate support
#check the graphics driver is supported by unity for 3d acceleration
#appears to work out of the box on 15.04, but historically this has been problematic
/usr/lib/nux/unity_support_test -p
#References:
#http://askubuntu.com/questions/318024/how-to-check-if-everything-is-ok-with-unity3d-in-ubuntu-12-04-lts
#modify ubuntu config to allow trackpad to work
#https://bugs.launchpad.net/ubuntu/+source/kmod/+bug/1475945
sudo sed 's/blacklist i2c_i801/#blacklist i2c_i801/g' -i /etc/modprobe.d/blacklist.conf
echo "softdep chromeos_laptop pre: i2c-core i2c-i801 cyapa" | sudo tee /etc/modprobe.d/chromeos_laptop.conf
References:
#http://www.reddit.com/r/chrubuntu/comments/34d6qs/help_acer_c710_touchpad_support_with_ubuntu_1504/
#once enabled, pad sensitivity can be erratic:
#add the below to /usr/share/X11/xorg.conf.d/50-synaptics.conf
#add into the section:
#Section "InputClass"
# Identifier "touchpad catchall"
Option "FingerLow" "5"
Option "FingerHigh" "5"
#References
#http://ubuntuforums.org/showthread.php?t=2161965
#Pre-requisites to make hibernate work.
#Around kernel 3.19.0-25 started experiencing hibernate/resume issues
#trialing tuxonice:
#https://launchpad.net/~tuxonice/+archive/ubuntu/ppa
#
#1of3: add a script to ensure the unload/reload of the trackpad & wifi driver happens at hibernate/resume
####################start of 15.04 / systemd version #/lib/systemd/system-sleep/05_AcerC710_TrackPad
#!/bin/bash
if [ "$1" = "pre" ]; then
/sbin/rmmod cyapa
/sbin/rmmod ath9k
sleep 5
# /sbin/modprobe cyapa
fi
if [ "$1" = "post" ]; then
# sleep 1
# /sbin/rmmod cyapa
# sleep 1
/sbin/modprobe ath9k
/usr/sbin/powertop --auto-tune
/usr/sbin/pm-powersave true
/sbin/modprobe cyapa
fi
####################end systemd version
sudo chmod a+x /lib/systemd/system-sleep/05_AcerC710_TrackPad
References:
#http://www.reddit.com/r/chrubuntu/comments/1rsxkd/list_of_fixes_for_xubuntu_1310_on_the_acer_c720/ch8eq2o
#http://pastebin.com/aAZPd5qQ
#http://www.reddit.com/r/chrubuntu/comments/1rsxkd/list_of_fixes_for_xubuntu_1310_on_the_acer_c720/char0cp
#systemd - https://launchpad.net/ubuntu/+source/pm-utils/+bug/1455097
#2of3: remove the splash screen and event suppression from boot.
#Experience suggests something here can cause resume to fail when a number of apps are in memory
#We also set recordfail timeout to 0, to work around what appears to be a different bug:
#https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1475620
sudo sed 's/GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"/GRUB_CMDLINE_LINUX_DEFAULT=""\nGRUB_RECORDFAIL_TIMEOUT=0/g' -i etc/default/grub
sudo update-grub
#3of3: Enable hibernation in unity menu:
gksu gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla &
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
#followed by:
killall unity-panel-service
References:
#http://askubuntu.com/questions/361734/hibernation-is-still-missing-from-menu-in-13-10-after-enabling-via-polkit-how-t/362499#362499
#Keyboard function key shortcuts:
sudo apt-get install xdotool
"System Settings..." Then "Keyboard" and then the "Shortcuts"
Click "Custom Shortcuts" then the plus sign
xdotool key alt+Left
xdotool key alt+Right
xdotool key ctrl+r
xdotool key XF86MonBrightnessDown
xdotool key XF86MonBrightnessUp
xdotool key XF86AudioMute
xdotool key XF86AudioRaiseVolume
xdotool key XF86AudioLowerVolume
#example dconf locations for custom keys:
/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name
/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command
/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding
The Fullscreen button is a little different to set up.
Click "Windows" in the left side pane
Click "Maximize window"
Hit F4
#dconf:
/org/gnome/desktop/wm/keybindings/maximize
#References:
#http://www.reddit.com/r/chrubuntu/comments/1crefd/how_to_get_shortcut_keys_to_work_on_chrubuntu/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment