Skip to content

Instantly share code, notes, and snippets.

@M66B
M66B / gist:655f0f9b297c2136b2c0
Last active August 29, 2015 14:03
Acer C720 suspend/resume
sudo nano /etc/default/grub
GRUB_TIMEOUT=1
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash tpm_tis.interrupts=0 modprobe.blacklist=ehci_hcd,ehci_pci nmi_watchdog=panic,lapic i915.modeset=1"
sudo update-grub
sudo update-grub2
sudo nano /etc/rc.local
@M66B
M66B / gist:87f25e327cfbc49366e3
Last active August 29, 2015 14:03
Acer C720 keyboard
sudo apt-get install xdotool xbacklight
CAPS xdotool key Caps_Lock
F6 xbacklight -dec 10
F7 xbacklight -inc 10
F8 amixer sset Master toggle
F9 amixer sset Master 5%- unmute
F10 amixer sset Master 5%+ unmute
(Control_R xdotool key --clearmodifiers End)
@M66B
M66B / gist:da8a69bd2550419d693e
Last active August 29, 2015 14:03
Acer C720 installed packages
sudo dpkg --get-selections > installed.conf
sudo dpkg --set-selections < installed.conf
acl install
acpi install
acpi-support-base install
acpid install
adduser install
aircrack-ng install
alsa-base install
@M66B
M66B / gist:1784789ae3f3c79048a5
Last active August 29, 2015 14:03
Acer C720 touchpad
https://wiki.archlinux.org/index.php/Acer_C720_Chromebook#Touchpad_Kernel_Modules
http://blog.mdosch.de/
Setting -> Window Manager Tweaks -> Workspaces -> User the mouse wheel on the desktop to switch workspaces -> Off
@M66B
M66B / gist:f6bed355dbd88e01c5e0
Last active August 29, 2015 14:03
Acer C720 SSD
sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="... elevator=noop"
sudo nano /etc/fstab
UUID=... / ext4 errors=remount-ro,noatime 0 1
su root
crontab -e
@M66B
M66B / gist:e88f4d0a2bb75c1a2683
Last active August 29, 2015 14:03
Acer C720 bluetooth audio
sudo apt-get install firmware-atheros blueman bluez-alsa
sudo apt-get purge pulseaudio
sudo apt-get autoremove --purge
sudo nano /etc/pm/sleep.d/05_Sound
#!/bin/bash
mods=( btusb bnep ath3k rfcomm bluetooth )
case "${1}" in
hibernate|suspend)
@M66B
M66B / gist:62793616a6359886d4c8
Last active April 1, 2017 04:37
Acer C720 fix tearing
sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "sna"
Option "TearFree" "true"
EndSection
Settings > Window Manager Tweaks > Enable display compositing
@M66B
M66B / gist:58f660348d01d87de2e6
Last active August 29, 2015 14:03
Acer C720 wireless
sudo nano /etc/modprobe.d/ath9k.conf
options ath9k btcoex_enable=1 ps_enable=1 bt_ant_diversity=1
#performance: nohwcrypt=1
@M66B
M66B / gist:400d79ba8429251469d9
Created June 29, 2014 07:10
Acer C720 audio
sudo nano /etc/modprobe.d/alsa.conf
options snd_hda_intel index=1
@M66B
M66B / gist:e1a47246d9e1ee6c2f1e
Last active August 29, 2015 14:03
Acer C720 restart/shutdown without password
sudo nano /etc/sudoers
ALL ALL=(root) NOPASSWD: /usr/lib/x86_64-linux-gnu/xfce4/session/xfsm-shutdown-helper