Asus ux32ln and Linux mint Cinnamon 64bit

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help

Asus ux32ln and Linux mint Cinnamon 64bit

Postby falense on Sat May 03, 2014 4:35 pm

This post has been removed as it no longer is relevant to the thread.
Last edited by falense on Fri Sep 05, 2014 1:09 pm, edited 2 times in total.
falense
Level 1
Level 1
 
Posts: 6
Joined: Sat May 03, 2014 9:39 am

Linux Mint is funded by ads and donations.
 

Re: Asus ux32ln graphics driver

Postby falense on Sun May 04, 2014 6:23 am

On the Asus UX32LN Linux mint Cinnamon 17 works very well. Power consumption is around 7w not using dedicated GPU (45Wh / 7W = 6.4h) . Performance of Nvidia gpu is not optimal however but the Intel gpu works well.

Webcamera - worked right out of the box
SD card reader - worked out of the box
Sound - works out of the box
Nvidia gpu - needs work, see details below
Power savings - able to get comparable times as windows with a few simple steps, see details below
Hot keys - Keyboard backlight, volume works. Screen brightness does not work, perfect workaround possible

Installing linux mint

I currently have a dual boot with Windows 8 and Linux mint. To install anything I had to disable secure boot in bios, once disabled you get access to enable CSM which makes it possible to boot from most devices and usb keys (it's legacy bios support enable). Intalling directly from linux mint 17 usb stick worked, I selected the UEFI usb drive when prompted.

Swap space

The model I got came with an SSD as such I chose to be rather conservative with swap as it may or may not have adverse effects on the lifetime of the SSD. I did not make a seperate swap partition instead using "swapspace".

TLDR:
sudo apt-get install swapspace
sudo dd if=/dev/zero of=/swapspace
sudo mkswap /swapspace

sudo gedit /etc/sysctl.conf
Append "vm.swappiness=10" at the bottom

sudo chown root:root /swapfile
sudo chmod 0600 /swapfile
sudo swapon /swapfile

(Optional) Make it permanent by adding the following line to /etc/fstab:
"/swapfile none swap sw 0 0 "



Nvidia gpu

This system has an optimus setup with a Nvidia 840m gpu. Bumblebee allows for using the dedicated GPU when more graphics performance is needed (and turn it off in other cases). The following approach was used when installing nvidia driver (340.13).

sudo apt-add-repository ppa:xorg-edgers/ppa
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install linux-headers-generic
sudo apt-get install bumblebee bumblebee-nvidia nvidia-343 nvidia-settings primus linux-headers-generic primus-libs-ia32:i386 virtualgl virtualgl-libs virtualgl-libs-ia32:i386

The last couple of packages are needed if you wish to use bumblebee with 32bit games (for example steam).

Nvidia-settings can be accessed using: "optirun nvidia-settings -c :8"

My /etc/bumblebee/bumblebee.conf
Code: Select all

# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=virtualgl
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=rgb
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
#         bbswitch - new in BB 3, recommended if available
#       switcheroo - vga_switcheroo method, use at your own risk
#             none - disable PM completely
# https://github.com/Bumblebee-Project/Bumblebee/wiki/Comparison-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-343
PMMethod=bbswitch
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-343:/usr/lib32/nvidia-343
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-343/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau




Once the installation is complete, stop and start bumblebee. You can also reboot your laptop if you like.
sudo /etc/init.d/bumblebeed stop
sudo /etc/init.d/bumblebeed start

This should give you Nvidia gpu support. Using Optirun or Primusrun as you see fit. Do note that some applications and games work in one but not the other.

CUDA

If you require CUDA support I recommend the following:

Download NVIDIA CUDA SDK 6.5 from the official page, you want the .run file for ubuntu 14.04

When installing CUDA SDK make sure to NOT install the driver when asked, also I chose not to symlink the cuda directory.

sudo apt-get install build-essentials libxmu-dev libxi-dev freeglut3-dev nvidia-343-uvm

Running cuda programs is not straight forward, this is due to the nvidia-343-uvm module needed to be loaded while you run your program. Example:

optirun bash //Gives you a GPU enabled shell
sudo modprobe nvidia-343-uvm
sudo ./yourCUDAprogram
sudo rmmod nvidia-uvm
exit

Failing to remove the uvm module before exiting the CUDA shell will keep the GPU enabled.

Power savings

Using tlp for power savings, install by:

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start

The only change I did to the defaults of tlp was to set cpu governor to powersave on battery. Config can be found at /etc/defaults/tlp

Touchpad

By default Linux mint did not have tap to click and scroll enabled. This can be found in System setting => Mouse => Touchpad

Hotkeys

Most hotkeys work out of the box with the exception of backlighting. The best workaround involves updating kernel parameters, this can be done as following:

sudo gedit /etc/default/grub

To the variable GRUB_CMDLINE_LINUX add "acpi_osi=", like:

Code: Select all
GRUB_CMDLINE_LINUX="acpi_osi="


sudo update-grub

Useful programs

I found https://debianhelp.wordpress.com/2013/11/30/to-do-list-after-installing-linux-mint-16/ to be very useful in setting up my linux mint, there may be certain programs you find useful there as well.

UPDATE: This has been updated to work with Linux Mint 17 and added a few improvements.
Last edited by falense on Fri Sep 05, 2014 1:22 pm, edited 12 times in total.
falense
Level 1
Level 1
 
Posts: 6
Joined: Sat May 03, 2014 9:39 am

Re: Asus ux32ln and Linux mint Cinnamon 64bit

Postby floflo on Sun May 11, 2014 9:48 am

Hi falense,

Thanks a lot for all those information!
I'm considering buying this laptop and I'm quite concerned by Optimus. I have a couple of questions if you don't mind:

- Have you tried to use the HDMI port for extended display? Does it work properly? Is the Nvidia gpu used for this?
- Same questions with the VGA port?
- What are the settings available in the BIOS regarding Optimus? Is it possible to enable only the integrated card? If so, is it still possible to use an external monitor?
- Any update on your efforts regarding cuda?

Many thanks!
floflo
Level 1
Level 1
 
Posts: 1
Joined: Sun May 11, 2014 9:37 am

Re: Asus ux32ln and Linux mint Cinnamon 64bit

Postby falense on Sun May 11, 2014 4:23 pm

floflo wrote:- Have you tried to use the HDMI port for extended display? Does it work properly? Is the Nvidia gpu used for this?
- Same questions with the VGA port?


I have not tried to use the HDMI or VGA port. My general impression has been that this is always troublesome in linux (I may be wrong).

floflo wrote:- What are the settings available in the BIOS regarding Optimus? Is it possible to enable only the integrated card? If so, is it still possible to use an external monitor?


Spent some time in bios and I did not notice any settings for the graphics card at all. I suggest you ask on notebookreview forums in regards to the bios, several there have this model by now and may be able to take a more thorough look (http://forum.notebookreview.com/asus/74 ... 0m-13.html).

floflo wrote:- Any update on your efforts regarding cuda?


Had to RMA mine due to misaligned ports (ports were not aligned to chassis), supplier is currently out of stock so I don't have the laptop around to test further. I expect that getting CUDA to work might be possible however it did not seem to work with the default packages. Next step for me would have been to use the beta drivers from nvidia and try to configure these with bumblebee manually. However some have reported having trouble doing so as it may override intel GPU / driver.
falense
Level 1
Level 1
 
Posts: 6
Joined: Sat May 03, 2014 9:39 am

Re: Asus ux32ln graphics driver

Postby jon_gunnar on Mon Jun 09, 2014 12:36 pm

falense wrote:On the Asus UX32LN Linux mint Cinnamon 16 works very well. Battery life is reported as 8:45 not using dedicated GPU. Performance of Nvidia gpu is not optimal however but the Intel gpu works well.

Webcamera - worked right out of the box
SD card reader - worked out of the box
Sound - works out of the box
Nvidia gpu - needs work, see details below
Power savings - able to get comparable times as windows with a few simple steps, see details below
Hot keys - Keyboard backlight, volume works. Screen brightness does not work, workaround possible



Thanks a lot for this info. I just got machine myself, also with an SSD.
I put in Linux mint Cinnamon 17 almost at once, and it looks so nice.
Thanks a lot for all your useful info.
jon_gunnar
Level 1
Level 1
 
Posts: 1
Joined: Tue Aug 13, 2013 5:12 am
Location: Thailand

Re: Asus ux32ln and Linux mint Cinnamon 64bit

Postby falense on Wed Sep 03, 2014 7:06 am

I have updated my post in this thread to use nvidia 340.13 driver and with a better backlight workaround.
falense
Level 1
Level 1
 
Posts: 6
Joined: Sat May 03, 2014 9:39 am


Return to Hardware Support

Who is online

Users browsing this forum: No registered users and 13 guests