Differences between revisions 1 and 7 (spanning 6 versions)
Revision 1 as of 2017-06-14 12:05:37
Size: 13501
Editor: ?ruggfrancesco
Comment:
Revision 7 as of 2017-06-14 15:55:29
Size: 15955
Editor: PaulWise
Comment: more standard sources.list
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:

Line 28: Line 26:
|| CPU Fan Control || {X} ||
Line 31: Line 30:
|| - 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} ||
|| OpenGL || {OK} ||
|| Resize-and-Rotate || {i} ||
|| Screen Backlight || {OK} (use kernel >= 4.0) ||
|| Switch to External Screen || {i} ||
|| Mouse || {OK} ||
|| Built-in (Touchpad) || {OK} ||
|| Wireless/Wifi || {i} (use kernel >= 4.0) ||
|| Bluetooth || {OK} ||
Line 58: Line 54:
== 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.
=== Resize-and-Rotate ===

Debian doesn't seem to support natively the rotation.
However the Accelerometer is correctly detected.
You can ensure by installing and running monitor sensor.
I am currently using this:
 * https://github.com/hadess/iio-sensor-proxy

{{{
user@ ~$ monitor-sensor
    Waiting for iio-sensor-proxy to appear
 +++ iio-sensor-proxy appeared
 === Has accelerometer (orientation: normal)
 === No ambient light sensor
}}}

I created a script to handle automatically orientation changes.

This {{{sh}}} handles not only orientation, but correctly sets the Touchscreen matrix (it changes when we orient the screen).

I also managed to shut the keyboard backlight and the touchpad.

(even though keyboard automatically disables itself when completely closed (Notebook in "tablet-mode")).

You can start a script like this simply by adding it in xfce autostart menu.

Thanks to Links2004:
 * https://gist.github.com/Links2004/5976ce97a14dabf773c3ff98d03c0f61

The script looks like this:
{{{
#!/bin/bash
LOGPATH="~/.orientation_sensor.log"
> $LOGPATH

set_orientation () {
 xrandr --output eDP1 --rotate $1
}

set_touchscreen() {
 xinput set-prop "FTSC1000:00 2808:5120" --type=float "Coordinate Transformation Matrix" $1
}

set_keyboard_backlight() {
 tee /sys/class/leds/asus::kbd_backlight/brightness <<< $1
}

lock_things() {
 set_keyboard_backlight "0"
 xinput float 14
}

monitor-sensor >> $LOGPATH 2>&1 &
while inotifywait -e modify $LOGPATH; do
ORIENTATION=$(tail -n 1 $LOGPATH | grep 'orientation' | grep -oE '[^ ]+$')

case "$ORIENTATION" in
 normal)
  set_orientation normal
  set_touchscreen "0 0 0 0 0 0 0 0 0"
  set_keyboard_backlight "3"
  #unlock things
  xinput reattach 14 2
  xinput --map-to-output 15 eDP1
  ;;

 bottom-up)
  set_orientation inverted
  set_touchscreen "-1 0 1 0 -1 1 0 0 1"
  lock_things
  ;;

 right-up)
  set_orientation right
  set_touchscreen "0 1 0 -1 0 1 0 0 1"
  lock_things
  ;;

 left-up)
  set_orientation left
  set_touchscreen "0 -1 1 1 0 0 0 0 1"
  lock_things
  ;;
esac
done
}}}

== Kernel ==

To get the kernel Linux in version 4.* starting from a standard Jessie, you need to set some repositories.
Edit {{{ /etc/apt/sources.list }}}, mine looks like this:
{{{
# jessie
deb http://deb.debian.org/debian/ jessie main
deb-src http://deb.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ jessie-updates main contrib
deb-src http://deb.debian.org/debian/ jessie-updates main contrib

# backports
deb http://deb.debian.org/debian/ jessie-backports main contrib non-free
deb-src http://deb.debian.org/debian/ jessie-backports main contrib non-free
deb http://deb.debian.org/debian/ unstable main contrib non-free
deb-src http://deb.debian.org/debian/ unstable main contrib non-free
}}}

Then, do an {{{apt-get update; apt-get upgrade}}}
Line 120: Line 168:
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.
The UX360UA monitor has a resolution of 3200x1800px.

There's a scaling problem when connecting an external monitor.
I'm using these commands to connect either FullHD and 2K monitors along the main one.

'''FullHD Monitor (1920x1080)'''
{{{
xrandr --output eDP1 --auto --output HDMI1 --auto --scale 2x2 --right-of eDP1
xrandr --output HDMI1 --scale 2x2 --mode 1920x1080 --fb 3840x4200 --pos 3250x0
xrandr --output eDP1 --scale 1x1 --pos 0x0

#Sometimes the touchscreen loses its calibration
#I restore it as follows
xinput --map-to-output 15 eDP1
}}}

'''2K Monitor (2560x1440)'''
{{{
xrandr --output HDMI1 --scale 1.5x1.5 --mode 2560x1440 --fb 3840x4200 --pos 3250x0
xrandr --output eDP1 --scale 1x1 --pos 0x0
xinput --map-to-output 15 eDP1
#Sometimes the touchscreen loses its calibration
#I restore it as follows
xinput --map-to-output 15 eDP1
}}}

You can read a detailed explaination here, in the "Multiple displays" paragraph:
 * https://wiki.archlinux.org/index.php/HiDPI

=== XFCE ===

Using XFCE, you'll be able to set a DPI value in the Appearance settings, tab Fonts.
A value of 192 is reasonably good.
Line 127: Line 203:

==== 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".
Line 158: Line 207:
Works out of the box, even function keys, but the mute key mutes Master and Speaker channels while unmute only unmutes Master… Everything worked out of the box, including hotkeys.
Line 162: Line 211:
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.
I had to tweak its acceleration (through Xfce configuration menu) because it felt too fast.
You can also try tweaking using xset.
{{{xset m 1/2}}}

Hotkey F9 works out of the box.
Line 172: Line 221:
The only thing to notice is the lack of managing the CPU Fan speed.
Line 177: Line 228:
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.
Works with {{{4.9.0-3-amd64}}}.
Line 219: Line 235:
== 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 ==
== xinput ==
Line 244: Line 241:
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

----
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ELAN1200:00 04F3:3022 Touchpad id=14 [slave pointer (2)]
⎜ ↳ FTSC1000:00 2808:5120 id=15 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Power Button id=6 [slave keyboard (3)]
    ↳ Asus Wireless Radio Control id=7 [slave keyboard (3)]
    ↳ Video Bus id=8 [slave keyboard (3)]
    ↳ Power Button id=9 [slave keyboard (3)]
    ↳ Sleep Button id=10 [slave keyboard (3)]
    ↳ USB2.0 HD UVC WebCam id=13 [slave keyboard (3)]
    ↳ Asus WMI hotkeys id=16 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard id=17 [slave keyboard (3)]
}}}

== 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 Device [8086:5904] (rev 02)
 Subsystem: ASUSTeK Computer Inc. Device [1043:14f0]
 Flags: bus master, fast devsel, latency 0
 Capabilities: <access denied>

00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:5916] (rev 02) (prog-if 00 [VGA controller])
 Subsystem: ASUSTeK Computer Inc. Device [1043:14f0]
 Flags: bus master, fast devsel, latency 0, IRQ 282
 Memory at ee000000 (64-bit, non-prefetchable) [size=16M]
 Memory at d0000000 (64-bit, prefetchable) [size=256M]
 I/O ports at f000 [size=64]
 [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
 Capabilities: <access denied>
 Kernel driver in use: i915
 Kernel modules: i915

00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 02)
 Subsystem: ASUSTeK Computer Inc. Skylake Processor Thermal Subsystem [1043:14f0]
 Flags: fast devsel, IRQ 16
 Memory at ef120000 (64-bit, non-prefetchable) [size=32K]
 Capabilities: <access denied>
 Kernel driver in use: proc_thermal
 Kernel modules: processor_thermal_device

00:13.0 Non-VGA unclassified device [0000]: Intel Corporation Device [8086:9d35] (rev 21)
 Subsystem: Intel Corporation Device [8086:9d35]
 Flags: bus master, fast devsel, latency 0, IRQ 20
 Memory at ef139000 (64-bit, non-prefetchable) [size=4K]
 Capabilities: <access denied>
 Kernel driver in use: intel_ish_ipc
 Kernel modules: intel_ish_ipc

00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21) (prog-if 30 [XHCI])
 Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP USB 3.0 xHCI Controller [1043:201f]
 Flags: bus master, medium devsel, latency 0, IRQ 276
 Memory at ef110000 (64-bit, non-prefetchable) [size=64K]
 Capabilities: <access denied>
 Kernel driver in use: xhci_hcd
 Kernel modules: xhci_pci

00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Thermal subsystem [8086:9d31] (rev 21)
 Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP Thermal subsystem [1043:14f0]
 Flags: fast devsel, IRQ 18
 Memory at ef138000 (64-bit, non-prefetchable) [size=4K]
 Capabilities: <access denied>
 Kernel driver in use: intel_pch_thermal
 Kernel modules: intel_pch_thermal

00:15.0 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 [8086:9d60] (rev 21)
 Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP Serial IO I2C Controller [1043:14f0]
 Flags: bus master, fast devsel, latency 0, IRQ 16
 Memory at ef137000 (64-bit, non-prefetchable) [size=4K]
 Capabilities: <access denied>
 Kernel driver in use: intel-lpss
 Kernel modules: intel_lpss_pci

00:15.1 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 [8086:9d61] (rev 21)
 Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP Serial IO I2C Controller [1043:14f0]
 Flags: bus master, fast devsel, latency 0, IRQ 17
 Memory at ef136000 (64-bit, non-prefetchable) [size=4K]
 Capabilities: <access denied>
 Kernel driver in use: intel-lpss
 Kernel modules: intel_lpss_pci

00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-LP CSME HECI #1 [8086:9d3a] (rev 21)
 Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP CSME HECI [1043:14f0]
 Flags: bus master, fast devsel, latency 0, IRQ 280
 Memory at ef135000 (64-bit, non-prefetchable) [size=4K]
 Capabilities: <access denied>
 Kernel driver in use: mei_me
 Kernel modules: mei_me

00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] [8086:9d03] (rev 21) (prog-if 01 [AHCI 1.0])
 Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP SATA Controller [AHCI mode] [1043:14f0]
 Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 277
 Memory at ef130000 (32-bit, non-prefetchable) [size=8K]
 Memory at ef134000 (32-bit, non-prefetchable) [size=256]
 I/O ports at f090 [size=8]
 I/O ports at f080 [size=4]
 I/O ports at f060 [size=32]
 Memory at ef133000 (32-bit, non-prefetchable) [size=2K]
 Capabilities: <access denied>
 Kernel driver in use: ahci
 Kernel modules: ahci

00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:9d10] (rev f1) (prog-if 00 [Normal decode])
 Flags: bus master, fast devsel, latency 0, IRQ 274
 Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
 I/O behind bridge: 00002000-00002fff
 Memory behind bridge: a0000000-a01fffff
 Prefetchable memory behind bridge: 00000000a0200000-00000000a03fffff
 Capabilities: <access denied>
 Kernel driver in use: pcieport
 Kernel modules: shpchp

00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 [8086:9d15] (rev f1) (prog-if 00 [Normal decode])
 Flags: bus master, fast devsel, latency 0, IRQ 275
 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
 Memory behind bridge: ef000000-ef0fffff
 Capabilities: <access denied>
 Kernel driver in use: pcieport
 Kernel modules: shpchp

00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:9d58] (rev 21)
 Subsystem: ASUSTeK Computer Inc. Device [1043:14f0]
 Flags: bus master, medium devsel, latency 0

00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC [8086:9d21] (rev 21)
 Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP PMC [1043:14f0]
 Flags: fast devsel
 Memory at ef12c000 (32-bit, non-prefetchable) [disabled] [size=16K]

00:1f.3 Audio device [0403]: Intel Corporation Device [8086:9d71] (rev 21)
 Subsystem: ASUSTeK Computer Inc. Device [1043:14f0]
 Flags: bus master, fast devsel, latency 32, IRQ 283
 Memory at ef128000 (64-bit, non-prefetchable) [size=16K]
 Memory at ef100000 (64-bit, non-prefetchable) [size=64K]
 Capabilities: <access denied>
 Kernel driver in use: snd_hda_intel
 Kernel modules: snd_hda_intel, snd_soc_skl

00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21)
 Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP SMBus [1043:14f0]
 Flags: medium devsel, IRQ 16
 Memory at ef132000 (64-bit, non-prefetchable) [size=256]
 I/O ports at f040 [size=32]
 Kernel driver in use: i801_smbus
 Kernel modules: i2c_i801

02:00.0 Network controller [0280]: Intel Corporation Wireless 8260 [8086:24f3] (rev 3a)
 Subsystem: Intel Corporation Wireless 8260 [8086:0110]
 Flags: bus master, fast devsel, latency 0, IRQ 281
 Memory at ef000000 (64-bit, non-prefetchable) [size=8K]
 Capabilities: <access denied>
 Kernel driver in use: iwlwifi
 Kernel modules: iwlwifi
}}}

Translation(s): none

DebianOn is an effort to document how to install, configure and use Debian on some specific hardware. Therefore potential buyers would know if that hardware is supported and owners would know how get the best out of that hardware.

The purpose is not to duplicate the Debian Official Documentation, but to document how to install Debian on some specific hardware.

If you need help to get Debian running on your hardware, please have a look at our user support channels where you may find specific channels (mailing list, IRC channel) dedicated to certain types of hardware.

Models covered
ASUS UX360UA

Overall Status

Core Components

[ATTACH]

Boot Standard Kernel:

{i}

Detect hard drives:

{OK}

Extra Features

CPU Frequency Scaling

{OK}

CPU Fan Control

{X}

Hibernation

{OK}

Sleep / Suspend

{OK}

Xorg

{OK}

OpenGL

{OK}

Resize-and-Rotate

{i}

Screen Backlight

{OK} (use kernel >= 4.0)

Switch to External Screen

{i}

Mouse

{OK}

Built-in (Touchpad)

{OK}

Wireless/Wifi

{i} (use kernel >= 4.0)

Bluetooth

{OK}

Keyboard's backlight hotkeys

{OK}

SDcard reader

{OK}

Legend :
{OK} = OK ; {X} Unsupported(No Driver) ; /!\ = Error (Couldn't get it working); [?] Unknown, Not Test ; [-] Not-applicable
{i} = Configuration Required; X-( = Only works with a non-free driver and or firmware

Important Note

{i} Before installing Debian, Secure Boot needs to be disabled in BIOS, and CSM feature enabled.

Configuration

Resize-and-Rotate

Debian doesn't seem to support natively the rotation. However the Accelerometer is correctly detected. You can ensure by installing and running monitor sensor. I am currently using this:

user@ ~$ monitor-sensor
    Waiting for iio-sensor-proxy to appear
        +++ iio-sensor-proxy appeared
        === Has accelerometer (orientation: normal)
        === No ambient light sensor

I created a script to handle automatically orientation changes.

This sh handles not only orientation, but correctly sets the Touchscreen matrix (it changes when we orient the screen).

I also managed to shut the keyboard backlight and the touchpad.

(even though keyboard automatically disables itself when completely closed (Notebook in "tablet-mode")).

You can start a script like this simply by adding it in xfce autostart menu.

Thanks to Links2004:

The script looks like this:

LOGPATH="~/.orientation_sensor.log"
> $LOGPATH

set_orientation () {
 xrandr --output eDP1 --rotate $1
}

set_touchscreen() {
 xinput set-prop "FTSC1000:00 2808:5120" --type=float "Coordinate Transformation Matrix" $1
}

set_keyboard_backlight() {
 tee /sys/class/leds/asus::kbd_backlight/brightness <<< $1
}

lock_things() {
 set_keyboard_backlight "0"
 xinput float 14
}

monitor-sensor >> $LOGPATH 2>&1 &
while inotifywait -e modify $LOGPATH; do
ORIENTATION=$(tail -n 1 $LOGPATH | grep 'orientation' | grep -oE '[^ ]+$')

case "$ORIENTATION" in
 normal)
  set_orientation normal
  set_touchscreen "0 0 0 0 0 0 0 0 0"
  set_keyboard_backlight "3"
  #unlock things
  xinput reattach 14 2
  xinput --map-to-output 15 eDP1
  ;;

 bottom-up)
  set_orientation inverted
  set_touchscreen "-1 0 1 0 -1 1 0 0 1"
  lock_things
  ;;

 right-up)
  set_orientation right
  set_touchscreen "0 1 0 -1 0 1 0 0 1"
  lock_things
  ;;

 left-up)
  set_orientation left
  set_touchscreen "0 -1 1 1 0 0 0 0 1"
  lock_things
  ;;
esac
done

Kernel

To get the kernel Linux in version 4.* starting from a standard Jessie, you need to set some repositories. Edit  /etc/apt/sources.list , mine looks like this:

# jessie
deb http://deb.debian.org/debian/ jessie main
deb-src http://deb.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib

# jessie-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ jessie-updates main contrib
deb-src http://deb.debian.org/debian/ jessie-updates main contrib

# backports
deb http://deb.debian.org/debian/ jessie-backports main contrib non-free
deb-src http://deb.debian.org/debian/ jessie-backports main contrib non-free
deb http://deb.debian.org/debian/ unstable main contrib non-free
deb-src http://deb.debian.org/debian/ unstable main contrib non-free

Then, do an apt-get update; apt-get upgrade

HiDPI

The UX360UA monitor has a resolution of 3200x1800px.

There's a scaling problem when connecting an external monitor. I'm using these commands to connect either FullHD and 2K monitors along the main one.

FullHD Monitor (1920x1080)

xrandr --output eDP1 --auto --output HDMI1 --auto --scale 2x2 --right-of eDP1
xrandr --output HDMI1 --scale 2x2 --mode 1920x1080 --fb 3840x4200 --pos 3250x0
xrandr --output eDP1 --scale 1x1 --pos 0x0

#Sometimes the touchscreen loses its calibration
#I restore it as follows
xinput --map-to-output 15 eDP1

2K Monitor (2560x1440)

xrandr --output HDMI1 --scale 1.5x1.5 --mode 2560x1440 --fb 3840x4200 --pos 3250x0
xrandr --output eDP1 --scale 1x1 --pos 0x0
xinput --map-to-output 15 eDP1
#Sometimes the touchscreen loses its calibration
#I restore it as follows
xinput --map-to-output 15 eDP1

You can read a detailed explaination here, in the "Multiple displays" paragraph:

XFCE

Using XFCE, you'll be able to set a DPI value in the Appearance settings, tab Fonts. A value of 192 is reasonably good.

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

Audio

Everything worked out of the box, including hotkeys.

Touchpad

Works out of the box. Tap-clicks (single, double for right click, triple for middle) can be setup through XFCE mouse parameters. I had to tweak its acceleration (through Xfce configuration menu) because it felt too fast. You can also try tweaking using xset. xset m 1/2

Hotkey F9 works out of the box.

Power Management

The only thing to notice is the lack of managing the CPU Fan speed.

Sleep and hibernate

Sleep and Hibernate both do work without problems.

Screen backlight

Works with 4.9.0-3-amd64.


System Summary

xinput

⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ELAN1200:00 04F3:3022 Touchpad            id=14   [slave  pointer  (2)]
⎜   ↳ FTSC1000:00 2808:5120                     id=15   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Asus Wireless Radio Control               id=7    [slave  keyboard (3)]
    ↳ Video Bus                                 id=8    [slave  keyboard (3)]
    ↳ Power Button                              id=9    [slave  keyboard (3)]
    ↳ Sleep Button                              id=10   [slave  keyboard (3)]
    ↳ USB2.0 HD UVC WebCam                      id=13   [slave  keyboard (3)]
    ↳ Asus WMI hotkeys                          id=16   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=17   [slave  keyboard (3)]

lspci

00:00.0 Host bridge [0600]: Intel Corporation Device [8086:5904] (rev 02)
        Subsystem: ASUSTeK Computer Inc. Device [1043:14f0]
        Flags: bus master, fast devsel, latency 0
        Capabilities: <access denied>

00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:5916] (rev 02) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device [1043:14f0]
        Flags: bus master, fast devsel, latency 0, IRQ 282
        Memory at ee000000 (64-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at f000 [size=64]
        [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: <access denied>
        Kernel driver in use: i915
        Kernel modules: i915

00:04.0 Signal processing controller [1180]: Intel Corporation Skylake Processor Thermal Subsystem [8086:1903] (rev 02)
        Subsystem: ASUSTeK Computer Inc. Skylake Processor Thermal Subsystem [1043:14f0]
        Flags: fast devsel, IRQ 16
        Memory at ef120000 (64-bit, non-prefetchable) [size=32K]
        Capabilities: <access denied>
        Kernel driver in use: proc_thermal
        Kernel modules: processor_thermal_device

00:13.0 Non-VGA unclassified device [0000]: Intel Corporation Device [8086:9d35] (rev 21)
        Subsystem: Intel Corporation Device [8086:9d35]
        Flags: bus master, fast devsel, latency 0, IRQ 20
        Memory at ef139000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: intel_ish_ipc
        Kernel modules: intel_ish_ipc

00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller [8086:9d2f] (rev 21) (prog-if 30 [XHCI])
        Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP USB 3.0 xHCI Controller [1043:201f]
        Flags: bus master, medium devsel, latency 0, IRQ 276
        Memory at ef110000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

00:14.2 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Thermal subsystem [8086:9d31] (rev 21)
        Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP Thermal subsystem [1043:14f0]
        Flags: fast devsel, IRQ 18
        Memory at ef138000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal

00:15.0 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 [8086:9d60] (rev 21)
        Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP Serial IO I2C Controller [1043:14f0]
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at ef137000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci

00:15.1 Signal processing controller [1180]: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 [8086:9d61] (rev 21)
        Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP Serial IO I2C Controller [1043:14f0]
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at ef136000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: intel-lpss
        Kernel modules: intel_lpss_pci

00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-LP CSME HECI #1 [8086:9d3a] (rev 21)
        Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP CSME HECI [1043:14f0]
        Flags: bus master, fast devsel, latency 0, IRQ 280
        Memory at ef135000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: mei_me
        Kernel modules: mei_me

00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] [8086:9d03] (rev 21) (prog-if 01 [AHCI 1.0])
        Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP SATA Controller [AHCI mode] [1043:14f0]
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 277
        Memory at ef130000 (32-bit, non-prefetchable) [size=8K]
        Memory at ef134000 (32-bit, non-prefetchable) [size=256]
        I/O ports at f090 [size=8]
        I/O ports at f080 [size=4]
        I/O ports at f060 [size=32]
        Memory at ef133000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: <access denied>
        Kernel driver in use: ahci
        Kernel modules: ahci

00:1c.0 PCI bridge [0604]: Intel Corporation Device [8086:9d10] (rev f1) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 274
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00002000-00002fff
        Memory behind bridge: a0000000-a01fffff
        Prefetchable memory behind bridge: 00000000a0200000-00000000a03fffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 [8086:9d15] (rev f1) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 275
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        Memory behind bridge: ef000000-ef0fffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1f.0 ISA bridge [0601]: Intel Corporation Device [8086:9d58] (rev 21)
        Subsystem: ASUSTeK Computer Inc. Device [1043:14f0]
        Flags: bus master, medium devsel, latency 0

00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-LP PMC [8086:9d21] (rev 21)
        Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP PMC [1043:14f0]
        Flags: fast devsel
        Memory at ef12c000 (32-bit, non-prefetchable) [disabled] [size=16K]

00:1f.3 Audio device [0403]: Intel Corporation Device [8086:9d71] (rev 21)
        Subsystem: ASUSTeK Computer Inc. Device [1043:14f0]
        Flags: bus master, fast devsel, latency 32, IRQ 283
        Memory at ef128000 (64-bit, non-prefetchable) [size=16K]
        Memory at ef100000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel, snd_soc_skl

00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-LP SMBus [8086:9d23] (rev 21)
        Subsystem: ASUSTeK Computer Inc. Sunrise Point-LP SMBus [1043:14f0]
        Flags: medium devsel, IRQ 16
        Memory at ef132000 (64-bit, non-prefetchable) [size=256]
        I/O ports at f040 [size=32]
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801

02:00.0 Network controller [0280]: Intel Corporation Wireless 8260 [8086:24f3] (rev 3a)
        Subsystem: Intel Corporation Wireless 8260 [8086:0110]
        Flags: bus master, fast devsel, latency 0, IRQ 281
        Memory at ef000000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: <access denied>
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

CategoryLaptopComputer CategoryDebianOn