How To ASUS N550JV with Mint 15-16 - 17 and 17.1 (64bits)

Questions about hardware, drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
pulseur
Level 1
Level 1
Posts: 12
Joined: Thu Sep 26, 2013 1:12 pm

How To ASUS N550JV with Mint 15-16 - 17 and 17.1 (64bits)

Post by pulseur »

The Asus N550JV works quite well with Linux Mint Olivia 15, 16, 17 and 17.1, but does need a little of post installation configuration. Please install all the updates available to Linux Mint on your first run.

I installed the 64bits version on my notebook without any dual boot with win 8 (preinstalled os on the netbook) : i deleted everything, and just usin Linux Mint babyyyy :twisted:

So, this page aims to describe the steps needed to fully enable all features of the Asus N550JV. It seems, most features of this modern notebook rely on a higher Linux kernel version than delivered by default with Linux Mint Olivia 15....
Let's see how it works !


Upgrading Linux kernel manually

This step is recommended for Mint 15 and 16 in order to get most hardware features working.
This guys, is gonna resolve looooooot's of problems 8)

Go to this page http://kernel.ubuntu.com/~kernel-ppa/mainline/ and download the lastest kernel

install the headers-generic, the headers-all and the image

and....you will be done with the bluetooth for example, which doesn't work out of the box !


SD card slot

The card reader on the N550JV uses the RTS5139 chipset and not recognized out of the box, but works with the last update of the kernel above
but !!! you will still two more steps, to be able to mount 64GB file system :)

sudo add-apt-repository ppa:relan/exfat
sudo apt-get update && sudo apt-get install exfat-utils fuse-exfat


works finally out of the box in 17.1 !!! wooow :)

Power Management

took the hint from http://nyblnet.blogspot.fr/

Put the following in /etc/pm/power.d/power (create the file with executable permissions if not present) -

#!/bin/sh

# Shell script to reduce energy consumption when running battery. Place
# it in /etc/pm/power.d/ and give execution rights.

#if on_ac_power; then
# Put specific AC power config here
#else
# Put specific Battery power config here
#fi

# Common Settings

# Enable Laptop-Mode disk writing
echo 5 > /proc/sys/vm/laptop_mode

# NMI watchdog should be turned off
for foo in /proc/sys/kernel/nmi_watchdog;
do echo 0 > $foo;
done

# Set SATA channel to power saving
for foo in /sys/class/scsi_host/host*/link_power_management_policy;
#do echo "min_power" > $foo;
#do echo "medium_power" > $foo;
#do echo "max_performance" > $foo;
done

# Activate USB autosuspend
# Autosuspend for USB device Bluetooth USB Host Controller [Atheros Communications]
echo 'auto' > '/sys/bus/usb/devices/3-5/power/control';
# Autosuspend for USB device Touchscreen [ELAN]
echo 'auto' > '/sys/bus/usb/devices/3-10/power/control';
# Autosuspend for USB device USB2.0-CRW [Generic]
echo 'auto' > '/sys/bus/usb/devices/3-8/power/control';

# Activate PCI autosuspend
for foo in /sys/bus/pci/devices/*/power/control;
do echo auto > $foo;
done

# Activate audio card power saving
echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';

# VM Writeback timeout
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';

# Turn off WOL
ethtool -s p3p1 wol d;

The script above will turn on most of the power management setting. However, regarding SATA link power management, some SSDs (and maybe some HDDs as well) do not work well with min_power, and I have corrupted disks with this setting on. Currently, I'm using medium_power and this setting is fine for my M500 SSD so far. However, please do your own tests before turning on the SATA link power management - I left this commented out in the script above for this reason!

8) have the same ssd....everything is ok for now

Issue of Backlight with Fn/F2 & F3 keys in Mint 13/14/15

Let's install acpi :

sudo apt-get install acpi

If you are not able to change backlight with FN keys (F2/F3 or F5/F6 depending on your keyboard style), there's a simple way to do that. But you need to alter a very important file on your system:

sudo gedit /etc/default/grub

look for the following and alter it to be exactly as you see:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
GRUB_CMDLINE_LINUX="acpi_backlight=vendor"



FOR MINT 17
-*-*-*-*-*-*-*-*-*

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="
GRUB_CMDLINE_LINUX="acpi_backlight=linux video.use_native_backlight=1"

save and close. Back in terminal, make sure to save all your work because you're going to update system boot grub and restart.

sudo update-grub && reboot


Graphic Card and Optimus technology

working at last...tried lot's of solutions...and this one finally worked :D :D

FOR MINT 15
-*-*-*-*-*-*-*-*-*-*

Once installed, your laptop fan will probably be really load. You need to install the NVIDIA drivers to stop this. http://linuxg.net/how-to-install-nvidia-319-32-drivers-on-ubuntu-13-04-12-10-12-04-and-linux-mint-15-14-13/
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install nvidia-319
You now have the latest nvidia 319 driver installed. (may need to read online to find the latest nvidia driver version as 319 is latest at this time)

Now Cinnamon is not working (yeaaaah i got this message that cinnamon was always in broken mode). So you need to install bumblebee. http://forums.linuxmint.com/viewtopic.php?f=49&t=135283
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia


PS: If any problems, make sure nvidia is set as default in bumblebee.conf: (I did this anyway just to make sure)
gksu gedit /etc/bumblebee/bumblebee.conf

Edit the lines starting with
Driver=
KernelDriver=
PMMethod=


to read

Driver=nvidia
KernelDriver=nvidia
PMMethod=bbswitch


Save the file. Reboot. Everything should now be working!

FOR MINT 16, 17 and 17.1
-*-*-*-*-*-*-*-*-*

Clean up any previously installed Bumblebee and nvidia drivers

$ sudo apt-get purge bbswitch-dkms bumblebee-nvidia
$ sudo apt-get purge nvidia*

Install Nvidia-331 driver and Bumblebee

$ sudo apt-get install nvidia-331
$ sudo apt-get install bumblebee bumblebee-nvidia primus
$ sudo reboot

DON'T INSTALL THE 304 DRIVER it will break your MDM (which you will have to install again) and your bumblebee install !
* * * * * * * KEEP THE 331 it works great :) * * * * * * * *
Last edited by pulseur on Mon Dec 15, 2014 4:32 pm, edited 10 times in total.
GreenCatX
Level 1
Level 1
Posts: 18
Joined: Sun Sep 29, 2013 5:57 am
Location: Poland

Re: How To ASUS N550JV with Mint 15 Olivia (64bits)

Post by GreenCatX »

First, I want to thank you - I have a Lenovo IdeaPad Z500 notebook, with i5 CPU and intel 4000 / GeForce 740M Optimus card, but you've helped me a lot :)
Now, I must admit I'm a newbie, so if you find something wrong below please be so kind and show me how to do it right.

I've followed your little "tutorial" and I'm quite happy with the results, however my nVidia is running in "stealth mode" now :D $ inxi Gx shows only Intel chipset, but the GeForce is actually working if needed, and you can see it here:

Code: Select all

$ dmesg | grep bbswitch
[    9.556336] bbswitch: version 0.7
[    9.556342] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[    9.556346] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[    9.556477] bbswitch: detected an Optimus _DSM function
[    9.556487] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[    9.560945] bbswitch: disabling discrete graphics
I've also tested it with Minecraft Snooper, and it shows proper nVidia card. The only problem is you have to run everything manually with Optirun, but it's not a big deal and I hope it will be solved soon with new 3.12 kernel release.
I've also tried to switch completely to nVidia card (like here: [url]http://tuxilero.blogspot.com/2013/09/how-to-official-nvidia-drivers.html[/url]), but the Cinnamon kept crushing afterwards. Maybe I did something wrong, but anyway I didn't want to run on GeForce only.

*Just a note for other newbies: some more useful info I've found here: https://github.com/Bumblebee-Project/Bu ... leshooting.
Lenovo IdeaPad Z500 / i5-3230M / NVIDIA GeForce GT 740M / Linux Mint 17.1 "Rebecca" Cinnamon 64-bit
Image
pulseur
Level 1
Level 1
Posts: 12
Joined: Thu Sep 26, 2013 1:12 pm

Re: How To ASUS N550JV with Mint 15 Olivia (64bits)

Post by pulseur »

Thanks GreenCatX for your feedback

Indeed the Nvidia is not used by default, only the Intel graphic card (for less power consumption). And still for now, we will have to use the optirun command.
But Nvidia, is moving finally it's ass and working on a new driver that will interact i think with the kernel to take full advantage of the optimus technology (as i understood :P )

Just to give an example with the optirun command :
optirun glxspheres
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: GeForce GT 750M/PCIe/SSE2
261.708049 frames/sec - 292.066182 Mpixels/sec
265.798606 frames/sec - 296.631244 Mpixels/sec
279.301061 frames/sec - 311.699984 Mpixels/sec

camille@MinSus ~ $ glxspheres
Polygons in scene: 62464
Visual ID of window: 0x20
Context is Direct
OpenGL Renderer: Mesa DRI Intel(R) Haswell Mobile
57.228471 frames/sec - 63.866974 Mpixels/sec
61.503280 frames/sec - 68.637661 Mpixels/sec



By the way, sometimes i loose the bluetooth :( and it comes back later !!!
pulseur
Level 1
Level 1
Posts: 12
Joined: Thu Sep 26, 2013 1:12 pm

Re: How To ASUS N550JV with Mint 15-16 (64bits)

Post by pulseur »

update for linux mint 16 :D
pulseur
Level 1
Level 1
Posts: 12
Joined: Thu Sep 26, 2013 1:12 pm

Re: How To ASUS N550JV with Mint 15-16 (64bits)

Post by pulseur »

update for linux mint 17
working like a charm :P
Post Reply