Skip to content

Instantly share code, notes, and snippets.

@plieningerweb
Last active February 3, 2021 16:00
Show Gist options
  • Save plieningerweb/6453a0d14bb7821c1551d59e3cc4ba6a to your computer and use it in GitHub Desktop.
Save plieningerweb/6453a0d14bb7821c1551d59e3cc4ba6a to your computer and use it in GitHub Desktop.
Ubuntu 16.10 Linux on Asus ZenBook UX310UA

Ubuntu 16.10 on Asus ZenBook UX310UA

What is working:

  • Keyboard
    • Backlight control
    • Screenlight contro
    • Volumne, Display on/off, Touchbad
    • Seems like everything is working
  • Trackpad is ok
  • Wireless
  • HDMI
  • Ethernet over USB Adapter
  • Sleep Mode

Fix very noisy fan

Default fan config of asus will start fan at 35°C of CPU

This can be fixed with using notebook fan control (https://github.com/hirschmann/nbfc/wiki/First-steps)

To do that, install it (steps are from link)

cd /tmp/
git clone --depth 1 https://github.com/hirschmann/nbfc.git
cd nbfc/
sudo apt-get install mono-complete
./build.sh 
sudo mkdir -p /opt/nbfc/
sudo cp -r ./Linux/bin/ReleaseLinux/* /opt/nbfc/
sudo cp ./Linux/*.service /etc/systemd/system/
sudo systemctl enable nbfc --now
# recommend a config file
/opt/nbfc/nbfc.exe config -r
# for UX310UA there is no config file yet, but the UX360UAK also seems to work
/opt/nbfc/nbfc.exe config --set "Asus Zenbook Flip UX360UAK"
# start in read only mode
/opt/nbfc/nbfc.exe start -r
# check readings
/opt/nbfc/nbfc.exe status -a
# if ok, enable control
/opt/nbfc/nbfc.exe start -e



Check https://github.com/hirschmann/nbfc/wiki/Command-line-interface for more command line optios

To control your fan (without the software, cpu might get too hot and damanged), install psensor.

sudo apt-get install psensor

Configure it with an alert, as described in https://itsfoss.com/check-laptop-cpu-temperature-ubuntu/

Hardware Details

Output of sudo lshw:

ubuntu
    description: Notebook
    product: UX310UAK
    vendor: ASUSTeK COMPUTER INC.
    version: 1.0
    serial: H1N0CV03U07801B
    width: 64 bits
    capabilities: smbios-3.0 dmi-3.0 smp vsyscall32
    configuration: boot=normal chassis=notebook family=UX uuid=F3192755-AD81-4A03-8224-EEAAAD01259D
  *-core
       description: Motherboard
       product: UX310UAK
       vendor: ASUSTeK COMPUTER INC.
       physical id: 0
       version: 1.0
       serial: N0CV1701MB0001799
       slot: MIDDLE
     *-firmware
          description: BIOS
          vendor: American Megatrends Inc.
          physical id: 0
          version: UX310UAK.300
          date: 10/03/2016
          size: 64KiB
          capacity: 8128KiB
          capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification uefi
     *-memory
          description: System Memory
          physical id: 8
          slot: System board or motherboard
          size: 8GiB
        *-bank:0
             description: SODIMM DDR4 Synchronous 2400 MHz (0.4 ns)
             product: 8ATF1G64HZ-2G3B1
             vendor: Micron
             physical id: 0
             serial: 00000000
             slot: ChannelA-DIMM0
             size: 8GiB
             width: 64 bits
             clock: 2400MHz (0.4ns)
        *-bank:1
             description: [empty]
             physical id: 1
             slot: ChannelA-DIMM1
        *-bank:2
             description: [empty]
             physical id: 2
             slot: ChannelB-DIMM0
        *-bank:3
             description: [empty]
             physical id: 3
             slot: ChannelB-DIMM1
     *-cache:0
          description: L1 cache
          physical id: e
          slot: L1 Cache
          size: 128KiB
          capacity: 128KiB
          capabilities: synchronous internal write-back unified
          configuration: level=1
     *-cache:1
          description: L2 cache
          physical id: f
          slot: L2 Cache
          size: 512KiB
          capacity: 512KiB
          capabilities: synchronous internal write-back unified
          configuration: level=2
     *-cache:2
          description: L3 cache
          physical id: 10
          slot: L3 Cache
          size: 3MiB
          capacity: 3MiB
          capabilities: synchronous internal write-back unified
          configuration: level=3
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
          vendor: Intel Corp.
          physical id: 11
          bus info: cpu@0
          version: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
          serial: To Be Filled By O.E.M.
          slot: U3E1
          size: 2569MHz
          capacity: 4005MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp cpufreq
          configuration: cores=2 enabledcores=2 threads=4
     *-pci
          description: Host bridge
          product: Intel Corporation
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 02
          width: 32 bits
          clock: 33MHz
        *-display
             description: VGA compatible controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 02
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:126 memory:ee000000-eeffffff memory:d0000000-dfffffff ioport:f000(size=64) memory:c0000-dffff
        *-generic:0
             description: Signal processing controller
             product: Skylake Processor Thermal Subsystem
             vendor: Intel Corporation
             physical id: 4
             bus info: pci@0000:00:04.0
             version: 02
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm cap_list
             configuration: driver=proc_thermal latency=0
             resources: irq:16 memory:ef120000-ef127fff
        *-usb
             description: USB controller
             product: Sunrise Point-LP USB 3.0 xHCI Controller
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:124 memory:ef110000-ef11ffff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 4.8.0-22-generic xhci-hcd
                physical id: 0
                bus info: usb@1
                logical name: usb1
                version: 4.08
                capabilities: usb-2.00
                configuration: driver=hub slots=12 speed=480Mbit/s
              *-usb:0
                   description: Mass storage device
                   product: USB Flash Disk
                   vendor: General
                   physical id: 2
                   bus info: usb@1:2
                   logical name: scsi3
                   version: 11.00
                   serial: 1304160000000037
                   capabilities: usb-2.00 scsi emulated scsi-host
                   configuration: driver=usb-storage maxpower=500mA speed=480Mbit/s
                 *-disk
                      description: SCSI Disk
                      product: USB Flash Disk
                      vendor: General
                      physical id: 0.0.0
                      bus info: scsi@3:0.0.0
                      logical name: /dev/sdb
                      logical name: /cdrom
                      version: 1100
                      serial: AA00000000000489
                      size: 3824MiB (4009MB)
                      capabilities: removable
                      configuration: ansiversion=4 logicalsectorsize=512 mount.fstype=iso9660 mount.options=ro,noatime sectorsize=512 state=mounted
                    *-medium
                         physical id: 0
                         logical name: /dev/sdb
                         logical name: /cdrom
                         size: 3824MiB (4009MB)
                         capabilities: partitioned partitioned:dos
                         configuration: mount.fstype=iso9660 mount.options=ro,noatime signature=05e037df state=mounted
                       *-volume
                            description: Windows FAT volume
                            vendor: mkfs.fat
                            physical id: 2
                            logical name: /dev/sdb2
                            version: FAT12
                            serial: 34f4-a3f4
                            size: 15EiB
                            capabilities: primary boot fat initialized
                            configuration: FATs=2 filesystem=fat
              *-usb:1
                   description: Video
                   product: USB2.0 HD UVC WebCam
                   vendor: Chicony Electronics Co.,Ltd.
                   physical id: 6
                   bus info: usb@1:6
                   version: 10.01
                   serial: 0x0001
                   capabilities: usb-2.00
                   configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
              *-usb:2
                   description: Bluetooth wireless interface
                   vendor: Intel Corp.
                   physical id: 8
                   bus info: usb@1:8
                   version: 0.01
                   capabilities: bluetooth usb-2.00
                   configuration: driver=btusb maxpower=100mA speed=12Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 4.8.0-22-generic xhci-hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 4.08
                capabilities: usb-3.00
                configuration: driver=hub slots=6 speed=5000Mbit/s
              *-usb
                   description: Generic USB device
                   product: USB 10/100/1000 LAN
                   vendor: Realtek
                   physical id: 1
                   bus info: usb@2:1
                   version: 30.00
                   serial: 9CEBE84D35BF
                   capabilities: usb-3.00
                   configuration: driver=r8152 maxpower=144mA speed=5000Mbit/s
        *-generic:1
             description: Signal processing controller
             product: Sunrise Point-LP Thermal subsystem
             vendor: Intel Corporation
             physical id: 14.2
             bus info: pci@0000:00:14.2
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi cap_list
             configuration: driver=intel_pch_thermal latency=0
             resources: irq:18 memory:ef138000-ef138fff
        *-generic:2
             description: Signal processing controller
             product: Sunrise Point-LP Serial IO I2C Controller #0
             vendor: Intel Corporation
             physical id: 15
             bus info: pci@0000:00:15.0
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel-lpss latency=0
             resources: irq:16 memory:ef137000-ef137fff
        *-generic:3
             description: Signal processing controller
             product: Sunrise Point-LP Serial IO I2C Controller #1
             vendor: Intel Corporation
             physical id: 15.1
             bus info: pci@0000:00:15.1
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel-lpss latency=0
             resources: irq:17 memory:ef136000-ef136fff
        *-communication
             description: Communication controller
             product: Sunrise Point-LP CSME HECI #1
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:127 memory:ef135000-ef135fff
        *-storage
             description: SATA controller
             product: Sunrise Point-LP SATA Controller [AHCI mode]
             vendor: Intel Corporation
             physical id: 17
             bus info: pci@0000:00:17.0
             version: 21
             width: 32 bits
             clock: 66MHz
             capabilities: storage msi pm ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:125 memory:ef130000-ef131fff memory:ef134000-ef1340ff ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:ef133000-ef1337ff
        *-pci:0
             description: PCI bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:122 ioport:2000(size=4096) memory:a0000000-a01fffff ioport:a0200000(size=2097152)
        *-pci:1
             description: PCI bridge
             product: Sunrise Point-LP PCI Express Root Port #8
             vendor: Intel Corporation
             physical id: 1c.7
             bus info: pci@0000:00:1c.7
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:123 memory:ef000000-ef0fffff
           *-network
                description: Wireless interface
                product: Wireless 8260
                vendor: Intel Corporation
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: wlp2s0
                version: 3a
                serial: 34:f3:9a:60:21:1f
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=iwlwifi driverversion=4.8.0-22-generic firmware=22.361476.0 ip=192.168.0.16 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:129 memory:ef000000-ef001fff
        *-isa
             description: ISA bridge
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 21
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master
             configuration: latency=0
        *-memory UNCLAIMED
             description: Memory controller
             product: Sunrise Point-LP PMC
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 21
             width: 32 bits
             clock: 33MHz (30.3ns)
             configuration: latency=0
             resources: memory:ef12c000-ef12ffff
        *-multimedia
             description: Audio device
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=32
             resources: irq:128 memory:ef128000-ef12bfff memory:ef100000-ef10ffff
        *-serial UNCLAIMED
             description: SMBus
             product: Sunrise Point-LP SMBus
             vendor: Intel Corporation
             physical id: 1f.4
             bus info: pci@0000:00:1f.4
             version: 21
             width: 64 bits
             clock: 33MHz
             configuration: latency=0
             resources: memory:ef132000-ef1320ff ioport:f040(size=32)
     *-scsi
          physical id: 1
          logical name: scsi2
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: Micron_1100_MTFD
             physical id: 0.0.0
             bus info: scsi@2:0.0.0
             logical name: /dev/sda
             version: A020
             serial: 16421495404F
             size: 238GiB (256GB)
             capabilities: gpt-1.00 partitioned partitioned:gpt
             configuration: ansiversion=5 guid=e3c61def-c4ec-4385-a2dd-49aeda428c94 logicalsectorsize=512 sectorsize=512
           *-volume:0
                description: Windows FAT volume
                vendor: MSDOS5.0
                physical id: 1
                bus info: scsi@2:0.0.0,1
                logical name: /dev/sda1
                version: FAT32
                serial: fcea-e7fa
                size: 255MiB
                capacity: 259MiB
                capabilities: boot precious readonly hidden nomount fat initialized
                configuration: FATs=2 filesystem=fat label=SYSTEM name=EFI system partition
           *-volume:1
                description: reserved partition
                vendor: Windows
                physical id: 2
                bus info: scsi@2:0.0.0,2
                logical name: /dev/sda2
                serial: 9fdb0a96-c75e-451c-8223-5ab3c4a11f54
                capacity: 15MiB
                capabilities: nofs precious readonly hidden nomount
                configuration: name=Microsoft reserved partition
           *-volume:2
                description: Windows NTFS volume
                vendor: Windows
                physical id: 3
                bus info: scsi@2:0.0.0,3
                logical name: /dev/sda3
                version: 3.1
                serial: ba6d0816-01c8-404b-a2ce-90a5d8d5bc79
                size: 237GiB
                capacity: 237GiB
                capabilities: ntfs initialized
                configuration: clustersize=4096 created=2017-01-07 10:50:58 filesystem=ntfs label=OS name=Basic data partition state=clean
           *-volume:3
                description: Windows NTFS volume
                vendor: Windows
                physical id: 4
                bus info: scsi@2:0.0.0,4
                logical name: /dev/sda4
                version: 3.1
                serial: 985a-2ca2
                size: 479MiB
                capacity: 498MiB
                capabilities: boot precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2017-01-07 11:51:16 filesystem=ntfs label=RECOVERY modified_by_chkdsk=true mounted_on_nt4=true name=Basic data partition resize_log_file=true state=dirty upgrade_on_mount=true
  *-network
       description: Ethernet interface
       physical id: 1
       logical name: enx9cebe84d35bf
       serial: 9c:eb:e8:4d:35:bf
       size: 10Mbit/s
       capacity: 1Gbit/s
       capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.08.6 duplex=half link=no multicast=yes port=MII speed=10Mbit/s
@hamrant
Copy link

hamrant commented Oct 30, 2017

I have Asus ZenBook UX310UQ and Ubuntu 16.04 on board. In addition to very very noisy fan also frustrating short period battery life compared to Windows, it work maximum 2.5h. I tested on Windows - on videos playing ZenBook works 7h (small screen brightness).
Сan you recommend something for increasing battery life on ubuntu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment