Asus ZenBook UX303LN-4199H Debian install tips

Boot and configure Windows OEM in order to keep productId, and a restore partition. Gonna help for any warranty or resell. Wifi needs firmware, and you need wifi for the install, so get the debian installer from : http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/daily-builds/sid_d-i/current/amd64/iso-cd/firmware-testing-amd64-netinst.iso

Working “top line” buttons, in /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

Select internal speakers/jack as default sound card (instead of HDMI). In ̀/etc/modprobe.d/something.conf:

options snd-hda-intel index=1,0  # fucking hdmi

Use bumblebee, to make apps use nvidia GPU when needed

apt-get install bumblebee-nvidia primus
dpkg --add-architecture i386 ; sudo apt-get update
sudo apt-get install bumblebee-nvidia primus primus-libs:i386 libgl1-nvidia-glx:i386
sudo adduser $USER bumblebee

Disable instant shutdon in wonsole when accidently hitting the power button instead of Suprr: check your /etc/systemd/logind.conf file. It should look like this:

#HandlePowerKey=poweroff

and change the value to

HandlePowerKey=ignore

Patch for kernel 3.16, to get a “working” touchpad : https://github.com/hanipouspilot/ubuntu-fixes/commit/de3ba763aebbea303f077acfc75952af23b1f38b

And use tutorial on https://wiki.debian.org/HowToRebuildAnOfficialDebianKernelPackage to build your new kernel.

Included in Sid’s kernel as of 3.16.7-ckt9-1.

## NetworkManager

To prevent NetworkManager from managing not real interfaces, edit ̀/etc/NetworkManager/NetworkManager.conf :

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

[keyfile]
unmanaged-devices=interface-name:vmnet1;interface-name:vmnet8;interface-name=tun0

NetworkManager will warn about /usr/bin/arping not being found:

apt-get install iputils-arping

If you want to be asked for your WPA2 keys, you need to : apt-get install gnome-keyring