Difference between revisions of "ASUS N55SF"

From ArchWiki
Jump to: navigation, search
(Added config to get the subwoofer to play both R/L channels)
(improve install link as recommended in Help:Style#Package management instructions)
 
(36 intermediate revisions by 4 users not shown)
Line 56: Line 56:
 
Works out of the box.
 
Works out of the box.
  
Follow the [[CPU Frequency Scaling]] guide to enable speed-stepping.
+
Follow the [[CPU frequency scaling]] guide to enable speed-stepping.
Processor has Intel Turbo Boost which works out of the box, but you can't see the frequencies above 2.4GHz in {{ic|/proc/cpuinfo}}. To see the actual frequency [[pacman|install]] {{Pkg|i7z}}.
+
Processor has Intel Turbo Boost which works out of the box, but you can't see the frequencies above 2.4GHz in {{ic|/proc/cpuinfo}}. To see the actual frequency [[install]] {{Pkg|i7z}}.
  
 
===Video===
 
===Video===
Line 66: Line 66:
  
 
====Nvidia====
 
====Nvidia====
The official proprietary nvidia drivers for linux do not support Nvidia Optimus yet, but there is a workaround in the form of {{AUR|bumblebee}}.
+
The official proprietary nvidia drivers for linux do not support Nvidia Optimus yet, but there is a workaround in the form of {{Pkg|bumblebee}}.
 
It enables the use of Nvidia graphic card via virtualgl. Just follow the instructions for setting up [[bumblebee]] in our wiki.
 
It enables the use of Nvidia graphic card via virtualgl. Just follow the instructions for setting up [[bumblebee]] in our wiki.
  
 
====Outputs====
 
====Outputs====
VGA working.
+
VGA out works fine out of the box. Since the NVIDIA chip is wired to the HDMI out, you can get this working using Bumblebee with xf86-video-intel-virtual-crtc and hybrid-screenclone. See [https://github.com/Bumblebee-Project/Bumblebee/wiki/FAQ Bumblebee FAQ].
 
+
HDMI not working, but still testing. I'm not sure if it can work on this laptop. See [[https://github.com/Bumblebee-Project/Bumblebee/wiki/FAQ Bumblebee FAQ]]
+
  
 
===Audio===
 
===Audio===
Follow the official documentation: [[ALSA]] and/or [[Pulseaudio]]
+
Follow the official documentation: [[ALSA]] or/and [[PulseAudio]]
  
To make the external subwoofer work edit/create {{ic|/etc/modprobe.d/alsa-base.conf}} and add these options:
+
=====Subwoofer=====
 +
======Pulseaudio======
 +
We need pulseaudio profile which will use surround21 alsa device.
 +
{{hc|/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf|2=<nowiki>
 +
...
 +
[Mapping analog-surround-21]
 +
device-strings = surround21:%f
 +
channel-map = front-left,front-right,lfe
 +
paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-desktop-speaker
 +
priority = 10
 +
direction = output
 +
...
 +
</nowiki>}}
 +
Lfe remixing must be enabled for remixing third channel.
 +
{{hc|~/.config/pulse/daemon.conf|2=<nowiki>
 +
enable-lfe-remixing = yes
 +
</nowiki>}}
 +
To prevent volume changing of PCM set volume to ignore in:
 +
{{hc|/usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common|2=<nowiki>
 +
[Element PCM]
 +
switch = on
 +
volume = ignore
 +
override-map.1 = all
 +
override-map.2 = all-left,all-right
 +
</nowiki>}}
  
{{hc|/etc/modprobe.d/alsa-base.conf|2=<nowiki>
+
Install {{pkg|blop}},{{pkg|cmt}} and {{pkg|ladspa}} and append these lines to your default.pa if you want to configure subwoofer on every pulseaudio daemon start:
options snd-hda-intel model=asus-mode4
+
{{Note|Before using this configuration you should change {{ic|alsa_output.pci-0000_00_1b.0.analog-stereo-21}} to your own name of sink(you can find names of your sinks in pulseaudio with command {{ic|$ pactl list sinks}} ).}}
 +
{{hc|~/.config/pulse/default.pa|2=<nowiki>
 +
load-module module-ladspa-sink  sink_name=ladspa_low_pass master=alsa_output.pci-0000_00_1b.0.analog-stereo-21 plugin=lp4pole_1671 label=lp4pole_fcrcia_oa control=200,0
 +
load-module module-remap-sink  sink_name=remapLFE        master=ladspa_low_pass                              remix=no  channels=1 master_channel_map=lfe                    channel_map=lfe
 +
load-module module-remap-sink  sink_name=remap20        master=alsa_output.pci-0000_00_1b.0.analog-stereo-21 remix=no  channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right
 +
load-module module-combine-sink sink_name=combine        slaves=remap20,remapLFE                                        channels=3                                          channel_map=front-left,front-right,lfe
 +
set-default-sink combine
 
</nowiki>}}
 
</nowiki>}}
  
As explained in this [https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/871808| bug report], by default, the subwoofer plays the right channel. To correct this, add the following:
+
Commands to control volume:
 
+
{{bc|<nowiki>
{{hc|/usr/share/pulseaudio/alsa-mixer/profile-sets/extra-hdmi.conf|2=<nowiki>
+
pactl set-sink-volume 0 +10%
[Mapping analog-surround-21]
+
pactl set-sink-volume 0 -- -10%
device-strings = surround40:%f
+
pactl set-sink-mute 0 toggle
channel-map = front-left,front-right,lfe,lfe
+
paths-output = analog-output analog-output-speaker
+
priority = 7
+
direction = output
+
 
</nowiki>}}
 
</nowiki>}}
 +
{{Note|When we compare pulseaudio and alsa low pass filter configuration we find out that subwoofer is less heard, it is because pulseaudio use own remixing method which sends to subwoofer half of left and right channel.}}
  
And enable this:
+
======Alsa======
{{hc|/etc/pulse/daemon.conf|2=<nowiki>
+
External subwoofer + low pass filter configuration.
enable-lfe-remixing = yes
+
Configuration uses {{pkg|blop}},{{pkg|cmt}} and {{pkg|ladspa}}.
 +
{{hc|/etc/asound.conf|2=<nowiki>
 +
# upmix 2channels to 3, one for LFE
 +
pcm.upmix2021 {
 +
    type plug
 +
    slave.pcm lowpass2121
 +
    slave.channels 3
 +
    ttable {
 +
        0.0    1
 +
        1.1    1
 +
        0.2    1
 +
        1.2    1
 +
    }
 +
}
 +
 
 +
# low pass filter for LFE channel
 +
pcm.lowpass2121 {
 +
    type ladspa
 +
    slave.pcm upmix2121
 +
    path "/usr/lib/ladspa"
 +
    channels 3
 +
    plugins {     
 +
        0 {
 +
            id 1672 # 4 Pole Low-Pass Filter with Resonance (FCRCIA) (1672/lp4pole_fcrcia_oa)
 +
            policy none
 +
            input.bindings.2 "Input";
 +
            output.bindings.2 "Output";
 +
            input { controls [ 200 0 ] }
 +
        }
 +
        1 {
 +
            id 1098
 +
            policy duplicate
 +
            input.bindings.0 "Input";
 +
            output.bindings.0 "Output";       
 +
        }       
 +
    }
 +
}
 +
 
 +
 
 +
pcm.upmix2121 {
 +
    type plug
 +
    slave.pcm surround21
 +
    slave.channels 3
 +
    ttable {
 +
        0.0 1
 +
        1.1 1
 +
        2.2 1
 +
    }
 +
}
 +
 
 +
pcm.!default upmix2021
 
</nowiki>}}
 
</nowiki>}}
 +
 +
===Backlight===
 +
Follow [[Backlight]] wiki page and use {{ic|1=acpi_backlight=vendor acpi_osi=Linux}} as kernel parameter in your [[bootloader]].
  
 
===Touchpad===
 
===Touchpad===
Line 104: Line 182:
 
===Webcam===
 
===Webcam===
 
Working.
 
Working.
 +
 +
===Bluetooth===
 +
Should be working out of the box - just remember to install {{pkg|bluez-firmware}}.
  
 
===Power management===
 
===Power management===
  
 
The USB unbind hook is no longer necessary as of [http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=dbf0e4c7257f8d684ec1a3c919853464293de66e Linux 3.5].
 
The USB unbind hook is no longer necessary as of [http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=dbf0e4c7257f8d684ec1a3c919853464293de66e Linux 3.5].

Latest revision as of 21:12, 13 December 2015

Device Status Modules
Intel graphics Working xf86-video-intel
Nvidia graphics Working, see below nvidia, bumblebee
Graphic outputs Not working nvidia, bumblebee
Ethernet Working atl1c
Wireless Working iwlan
Audio Working, see below snd_hda_intel
Touchpad Working xf86-input-synaptics
Camera Working uvcvideo
USB 3.0 Working xhci_hcd
Card Reader Working
Special Keys Untested
Power management Working, see below

Hardware

CPU: Intel Core i7-2630QM @ 2.00GHz

Mainboard: Intel HM65 Express

RAM: 6/8GB DDR3

Display: 15,6" HD LED (1920x1080)

Graphics adapter: Intel Core Processor Integrated Graphics Controller, NVIDIA GeForce GT 555M

Soundcard: Integrated Intel HDA, Bang & Olufsen speakers with external subwoofer

Network: Atheros Gigabit Ethernet Controller, Intel Centrino Wireless-N 1030

Hard disk: Seagate Momentus 750GB 5400rpm SATA

Webcam: IMC Networks

Touchpad: Synaptics

Configuration

There is a BIOS update (v207) on Asus support website (go to the english one if you don't find) that fix the numpad bug.

CPU

Works out of the box.

Follow the CPU frequency scaling guide to enable speed-stepping. Processor has Intel Turbo Boost which works out of the box, but you can't see the frequencies above 2.4GHz in /proc/cpuinfo. To see the actual frequency install i7z.

Video

Intel

Follow these guides: Xorg and Intel. You will need to blacklist the nouveau driver (the kernel detects the nvidia card and loads it). Bumblebee will load it as needed, see next section.

/etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau

Nvidia

The official proprietary nvidia drivers for linux do not support Nvidia Optimus yet, but there is a workaround in the form of bumblebee. It enables the use of Nvidia graphic card via virtualgl. Just follow the instructions for setting up bumblebee in our wiki.

Outputs

VGA out works fine out of the box. Since the NVIDIA chip is wired to the HDMI out, you can get this working using Bumblebee with xf86-video-intel-virtual-crtc and hybrid-screenclone. See Bumblebee FAQ.

Audio

Follow the official documentation: ALSA or/and PulseAudio

Subwoofer
Pulseaudio

We need pulseaudio profile which will use surround21 alsa device.

/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf
...
[Mapping analog-surround-21]
device-strings = surround21:%f
channel-map = front-left,front-right,lfe
paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-desktop-speaker
priority = 10
direction = output
...

Lfe remixing must be enabled for remixing third channel.

~/.config/pulse/daemon.conf
enable-lfe-remixing = yes

To prevent volume changing of PCM set volume to ignore in:

/usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common
[Element PCM]
switch = on
volume = ignore
override-map.1 = all
override-map.2 = all-left,all-right

Install blop,cmt and ladspa and append these lines to your default.pa if you want to configure subwoofer on every pulseaudio daemon start:

Note: Before using this configuration you should change alsa_output.pci-0000_00_1b.0.analog-stereo-21 to your own name of sink(you can find names of your sinks in pulseaudio with command $ pactl list sinks ).
~/.config/pulse/default.pa
load-module module-ladspa-sink  sink_name=ladspa_low_pass master=alsa_output.pci-0000_00_1b.0.analog-stereo-21 plugin=lp4pole_1671 label=lp4pole_fcrcia_oa control=200,0
load-module module-remap-sink   sink_name=remapLFE        master=ladspa_low_pass                               remix=no   channels=1 master_channel_map=lfe                    channel_map=lfe
load-module module-remap-sink   sink_name=remap20         master=alsa_output.pci-0000_00_1b.0.analog-stereo-21 remix=no   channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right
load-module module-combine-sink sink_name=combine         slaves=remap20,remapLFE                                         channels=3                                           channel_map=front-left,front-right,lfe
set-default-sink combine

Commands to control volume:

pactl set-sink-volume 0 +10%
pactl set-sink-volume 0 -- -10%
pactl set-sink-mute 0 toggle
Note: When we compare pulseaudio and alsa low pass filter configuration we find out that subwoofer is less heard, it is because pulseaudio use own remixing method which sends to subwoofer half of left and right channel.
Alsa

External subwoofer + low pass filter configuration. Configuration uses blop,cmt and ladspa.

/etc/asound.conf
# upmix 2channels to 3, one for LFE
pcm.upmix2021 {
    type plug
    slave.pcm lowpass2121
    slave.channels 3
    ttable {
        0.0    1
        1.1    1
        0.2    1
        1.2    1
    }
}

# low pass filter for LFE channel
pcm.lowpass2121 {
    type ladspa
    slave.pcm upmix2121
    path "/usr/lib/ladspa"
    channels 3
    plugins {       
        0 {
            id 1672 # 4 Pole Low-Pass Filter with Resonance (FCRCIA) (1672/lp4pole_fcrcia_oa)
            policy none
            input.bindings.2 "Input";
            output.bindings.2 "Output";
            input { controls [ 200 0 ] }
        }
        1 {
            id 1098
            policy duplicate
            input.bindings.0 "Input";
            output.bindings.0 "Output";        
        }         
    }
}


pcm.upmix2121 {
    type plug
    slave.pcm surround21
    slave.channels 3
    ttable {
        0.0 1
        1.1 1
        2.2 1
    }
}

pcm.!default upmix2021

Backlight

Follow Backlight wiki page and use acpi_backlight=vendor acpi_osi=Linux as kernel parameter in your bootloader.

Touchpad

Follow the Synaptics guide.

Webcam

Working.

Bluetooth

Should be working out of the box - just remember to install bluez-firmware.

Power management

The USB unbind hook is no longer necessary as of Linux 3.5.