Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2017-06-14 12:05:37
Size: 13501
Editor: ?ruggfrancesco
Revision 3 as of 2017-06-14 12:09:37
Size: 48
Editor: ?ruggfrancesco
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#language en
#pragma description How to install Debian/Linux on an ASUS UX360UA
## Read http://wiki.debian.org/InstallingDebianOn/HowToContribute before modifying this page
## You will find some comments like this one below to help you write a report.
## ------------------------------------------------------------------------------------------
## Location Bar + DebianOn compatibility rating
~-Translation(s): none-~

||<tablestyle="width:100%" style="width:96px;border-right-style:none"><<Include(InstallingDebianOn/Ratings/CategoryEtchUnrated)>>||<style="border-left-style:none"><<Include(InstallingDebianOn/PageFragments/Philosophy)>>||

## In this block, we describe the similar, compatible models that are also covered by this guide.
~-''Models covered''-~<<BR>>'''ASUS UX360UA'''

= Overall Status =
## If you installed Debian from scratch on this computer, please rate it!
## see InstallingDebianOn/Ratings (change the "included" file above).
||||<tablestyle="margin-left:3em;width:90%">'''Core Components'''||<|10 style="text-align:right;border-style:none;vertical-align:top;"> {{attachment:photo.png}}||
||Boot Standard Kernel: || {i} ||
|| Detect hard drives: || {OK} ||
## If Xorg doesn't work at all (not even with vesa driver), then move Xorg line here.
||||'''Extra Features'''||
|| CPU Frequency Scaling || {OK} ||
|| Hibernation || {OK} ||
|| Sleep / Suspend || {OK} ||
|| Xorg || {OK} ||
|| - OpenGL || {OK} ||
|| - Resize-and-Rotate(randr) || {OK} ||
|| - Screen Backlight || {OK} (use kernel >= 4.0) ||
|| - VLC hardware decoding || {i} (use kernel >= 4.0) ||
|| - Flash hardware decoding || {i} (use kernel >= 4.0) ||
|| Switch to External Screen || {OK} ||
|| Mouse || || {OK}
|| - Built-in (Touchpad) || {OK} ||
|| Wireless/Wifi || {i}-( (use kernel >= 4.0) ||
|| Bluetooth || {i} ||
|| Keyboard' sound hotkeys || {OK} ||
|| Keyboard's backlight hotkeys || {OK} ||
|| SDcard reader || {OK} ||
~-Legend :<<BR>> {OK} = OK ; {X} Unsupported(No Driver) ; /!\ = Error (Couldn't get it working); [?] Unknown, Not Test ; [-] Not-applicable <<BR>> {i} = Configuration Required; X-( = Only works with a non-free driver and or firmware-~

= Important Note =
### Any Important note, before the user starts installing Debian
### Like Bios, Disk, MBR Configuration. (default : ''none'')
{i} Before installing Debian, Secure Boot needs to be disabled in BIOS, and CSM feature enabled.

### uncomment one of the two lines
## none
## {X} There is currently a bug that ...

= Configuration =

== Display ==
## First say what's the Display adapter model (lspci may help)
## Then explain how to get it working (or just the module used)
## what about : 3D ; DRI ; xrandr ; external/secondary screen...
## attach your xorg.conf at the bottom of the page.

X.org works flawlessly with version 2:2.99.917-1 of Intel video drivers.

With standard Jessie kernel (Linux 3.16), the {{{nomodeset}}} option is required to get X server displaying things. And in this case the DRI is software emulated, resulting in poor performances, such as no fluid full screen video playing. You get hardware DRI with kernel Linux 4.0 and corresponding Intel drivers.

To get the kernel Linux in version 4.0 starting from a standard Jessie, you need to set some APT preferences :
Package: *
Pin: release a=stable
Pin-Priority: 700

Package: *
Pin: release a=jessie-backports
Pin-Priority: 660

Package: *
Pin: release a=unstable
Pin-Priority: 90

And edit {{{ /etc/apt/sources.list }}} to add :
# jessie-backports
deb http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-backports main contrib non-free

# Sid unstable
deb http://ftp.us.debian.org/debian/ unstable main contrib non-free
deb-src http://ftp.us.debian.org/debian/ unstable main contrib non-free

As explained here : https://www.linuxquestions.org/questions/debian-26/kernel-backport-for-debian-jessie-4175542797/#post5364663

=== Hardware acceleration ===
==== VLC ====

Then, to get hardware coding in VLC, open the preferences dialog :
 * select "video output GLX XCB" in the Video tab ;
 * and "VA API via DRM" in the Codec tab.

==== Flash ====

As explained here : https://askubuntu.com/questions/500911/ubuntu-14-04-not-recognizing-installed-intel-graphics-driver

You can get in-Iceweasel flashplayer to be hardware accelerated, and so being able to stretch video into full screen mode. First, install {{{libvdpau-va-gl1}}} version 0.3.4-2 : {{{ sudo apt-get install libvdpau-va-gl1 }}}

Then create a file /etc/adobe/mms.conf :
sudo mkdir -p /etc/adobe
echo "EnableLinuxHWVideoDecode=1" | sudo tee /etc/adobe/mms.cfg
echo "OverrideGPUValidation=1" | sudo tee -a /etc/adobe/mms.cfg

Then, add : {{{ export VDPAU_DRIVER=va_gl }}} ; to your {{{/usr/bin/firefox}}} shell script file. Restart Iceweasel, you'll get full screen video.

=== HiDPI ===

The UX360UA screen is 293x165 mm, for a resolution of 3200x1800px, which represents a high dot-per-inch value as of 2015. In consequence, all writings are very small on the screen as long as you set some parameters.

==== XFCE ====

Using XFCE, you'll be able to set a DPI value in the Appearance settings, tab Police. Values upper than 125 are workable, and 147 is recommended.

Nevertheless I also recommend to activated anti-aliasing of the fonts, and Inconsolata as xfce4-terminal font (from {{{ fonts-inconsolata }}} Debian package).

==== QT based applications ====

QT based applications should accept the {{{ -style gtk }}} parameter, when started from command line interface. This tells QT-based applications to follow the look-and-feel of GTK based application. As XFCE is GTK based, XFCE settings will apply (tested with FreeCAD and GridcoinResearch wallet).

==== Iceweasel / Firefox-esr ====

Iceweasel 31 can't take advantage of this setting. To comfortably use it, you may open the about:config tab and set : {{{ layout.css.devPixelsPerPx=1.75 }}}

It exists a AutoHiDPI Firefox module which automatically switches between a HiDPI value of {{{ layout.css.devPixelsPerPx= }}} and LoDPI value, based on one breaking point configurable value, sets to 2880px by default : https://addons.mozilla.org/en-US/firefox/addon/autohidpi/?src=api (but it's not working well as of late 2015, clumsily changing screen DPI if a small window is popped up for instance).

It also exists a {{{ layout.css.dpi= }}} parameter : http://kb.mozillazine.org/Layout.css.dpi (not tried)

Another solution is to use Iceweasel module Zoom Page, which automatically zooms to optimal width, removing margins : https://addons.mozilla.org/en-US/firefox/addon/zoom-page/

And to finish, I use NoiaScrollbars addon, to configure different size and colors for scrollbars (which are else too small to be seen with a dark background) : https://addons.mozilla.org/en-US/firefox/addon/noiascrollbars/

==== gkrellm ====

You can set specific fonts and sizes in gkrellm, but also play with a zoom factor in Configuration, Themes, tab Options, Scale setting on the bottom of the tab. A value of 200% is a working setting.

==== VLC ====

Unfortunately, VLC don't seems to offer a way to tweak its font sizes.

## If this computer has variants with various Display adapter, simply
## duplicate this section, like "Display / Ati".

== Audio ==
## First say what's the Sound adapter model (lspci may help)
## Then explain how to get it working
Works out of the box, even function keys, but the mute key mutes Master and Speaker channels while unmute only unmutes Master…

== Touchpad ==
Works out of the box. Tap-clicks (single, double for right click, triple for middle) can be setup through XFCE mouse parameters.
Feels much better than HP Folio¹³ one's.

Hotkey F9 is not disabling it.

'''UX305C''' : As stated in ArchLinux [[https://wiki.archlinux.org/index.php/ASUS_Zenbook_UX305|wiki]], touchpad also needs a kernel Linux 4.5.0-rc1 or later to work with Debian.

== Power Management ==
## Have you tested Hibernation and/or
## Then explain how to get it working

=== Sleep and hibernate ===

Sleep and Hibernate both do work without problems.

=== Screen backlight ===
Screen backlight control needs Linux 4.0 (currently from unstable) to work, through power management icon' slider.
Screen backlight extinction hotkey is working, but not the mode-auto one with logo (fn+A with qwerty keyboard, fn+Q with azerty one).

The increase / decrease keys do exist, but they are not F5 and F6 as the physical keyboard would let you guess, but rather F3 and F4. This can be discerned with {{{ xev }}}, but cannot be used by XFCE keyboard settings tool (which is able to select those keys but won't trigger any action when pressed).

To adjust screen backlight from keyboard shortcuts, I use `xbacklight` with the following binding :
  * xbacklight -inc 10 -> Super + F6
  * xbacklight -dec 10 -> Super + F5

=== Power consumption measures ===

Information gathered with {{{ powertop }}}, on battery discharging.
Three scenarios with wifi on and bluetooth off :
  * Intensive usage (Backlight 100%, CPU 50%) : 12W - 4h of autonomy
  * Medium usage (Backlight 50%, CPU <10%) : 7W - 6h of autonomy
  * No usage (Backlight 0%, CPU <1%) : 3,4W - 12h of autonomy

=== Hardware battery saving mode = CPU at 500MHz ===

When battery level becomes under 10%, the CPU slows down under 800MHz to reach, according to gkrellm2 measures : 500MHz and stays at this slowness.

It can helps when watching a movie on battery, as {{{VLC}}} has all the chances to stop decoding images on time in fullscreen mode with only 500MHz of CPU, hence warning you to plug the laptop.

'''UX305C''' : The scaling frequency range of Intel 6Y75 CPU is 400MHz - 3100MHz, which means that the CPU is falling to 400MHz when idle with no further configuration needed.

== WiFi ==

Needs {{{firmware-iwlwifi}}} and {{{fimware-linux-nonfree}}} 0.44 to work with kernel Linux 4.0.
Plane mode hotkey (F2) effectively cuts it even if key's built-in light is lighting or not.

== Bluetooth ==

Install Blueman to get control over Bluetooth functionalities through an icon : {{{ sudo apt-get install blueman }}}

Surprisingly, the plane mode hotkey (F2) is unable to hide the peripheral once it has been set to be visible during one minute, despite the deactivated bluetooth icon.

= System Summary =
## The content of some files are embedded here, because they are very useful for search engines

== lspci ==
## Paste the output of "lspci -nn" here, within some {{{ }}} brackets. Optionally, attach "lspci -vnn"
##(lspci -nn missing)
00:00.0 Host bridge [0600]: Intel Corporation Broadwell-U Host Bridge -OPI [8086:1604] (rev 08)
00:02.0 VGA compatible controller [0300]: Intel Corporation Broadwell-U Integrated Graphics [8086:161e] (rev 08)
00:03.0 Audio device [0403]: Intel Corporation Broadwell-U Audio Controller [8086:160c] (rev 08)
00:04.0 Signal processing controller [1180]: Intel Corporation Broadwell-U Camarillo Device [8086:1603] (rev 08)
00:14.0 USB controller [0c03]: Intel Corporation Wildcat Point-LP USB xHCI Controller [8086:9cb1] (rev 03)
00:16.0 Communication controller [0780]: Intel Corporation Wildcat Point-LP MEI Controller #1 [8086:9cba] (rev 03)
00:1b.0 Audio device [0403]: Intel Corporation Wildcat Point-LP High Definition Audio Controller [8086:9ca0] (rev 03)
00:1c.0 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 [8086:9c90] (rev e3)
00:1c.3 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 [8086:9c96] (rev e3)
00:1f.0 ISA bridge [0601]: Intel Corporation Wildcat Point-LP LPC Controller [8086:9cc7] (rev 03)
00:1f.2 SATA controller [0106]: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] [8086:9c83] (rev 03)
00:1f.3 SMBus [0c05]: Intel Corporation Wildcat Point-LP SMBus Controller [8086:9ca2] (rev 03)
02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 59)

== lsusb ==
## Uncomment and Paste the output of one of the three lines (within some {{{ }}}} brackets)
## (lsusb missing)
## lsusb
## lsusb -v | grep -E '\<(Bus|iProduct|bDeviceClass|bDeviceProtocol)' 2>/dev/null
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  bDeviceClass 9 Hub
  bDeviceProtocol 3
  iProduct 2 xHCI Host Controller
Bus 001 Device 003: ID 064e:9700 Suyin Corp.
  bDeviceClass 239 Miscellaneous Device
  bDeviceProtocol 1 Interface Association
  iProduct 1 USB2.0 UVC HD Webcam
      (Bus Powered)
  bDeviceClass 239 Miscellaneous Device
  bDeviceProtocol 1 Interface Association
  (Bus Powered)
Bus 001 Device 002: ID 8087:0a2a Intel Corp.
  bDeviceClass 224 Wireless
  bDeviceProtocol 1 Bluetooth
  iProduct 0
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  bDeviceClass 9 Hub
  bDeviceProtocol 1 Single TT
  iProduct 2 xHCI Host Controller

= Further readings =

 * https://wiki.archlinux.org/index.php/ASUS_Zenbook_UX305

CategoryLaptopComputer CategoryDebianOn
Describe InstallingDebianOn/Asus/UX360UA here.

Describe InstallingDebianOn/Asus/UX360UA here.