ASUS N82JV - ArchWiki

# ASUS N82JV

From ArchWiki
Jump to navigation Jump to search

Device | Status | Modules
Intel | Working | xf86-video-intel
Nvidia | Partially Working | nouveau
Ethernet | Working | atl1c
Wireless | Working | ath9k
Audio | Working | snd_hda_intel
Touchpad | Working |
Camera | Working | uvcvideo
USB 3.0 | Working | xhci-hcd
USB 2.0 | Working | ehci-hcd
eSATA | Untested |
Card Reader | Working |
Function Keys | Partially Working |
Suspend to RAM | Working |

# Hardware

CPU Intel Core i5 430M

Mainboard | Intel HM55

RAM 4096 MB, 2x 2048 MByte DDR3-10700 (1066 MHz)

Display 14" HD LED (1366x768)

Graphics adapter NVIDIA GeForce GT 335M - 1024 MB, Core: 450 MHz, Memory: 790 MHz, Shader rate: 1080 MHz

Soundcard Realtek ALC269 @ Intel Ibex Peak PCH

Network Atheros AR8131 PCI-E Gigabit Ethernet Controller (1000MBit), Atheros AR9285 Wireless Network

Hard disk 320GB 5400rpm SATA

Webcam Chicony Electronics

Touchpad Elantech

# Configuration

My particular model is Asus N82JV-VX038V but the contents of the page should remain valid for every N82JV[1] model.

## CPU

Works out of the box.

Follow the SpeedStep guide to enable speed-stepping.

## Video

This laptop sports two gpus. The Intel GMA HD (Core ix integrated) and the Nvidia Geforce GT 335M, with the ability to switch granted by Nvidia Optimus technology.

### Intel

Follow these guides: Xorg and Intel

No problems detected. VGA out and HDMI working.

### Nvidia

The official proprietary Nvidia drivers for linux do not support Nvidia Optimus yet.

#### Switching / Using Nvidia card

While it still isn't possible to switch in the manner that Optimus is supposed to switch, in order to make use of the dedicated graphic card you need to use Bumblebee. In short, it is possible to run a specific program with Nvidia, while the rest of the system is relying on the Intel card.

Note: Bumblebee's development is rapidly progressing, so be sure to check its website[2][dead link 2020-03-28 ⓘ] regularly; it's also worth checking Linux Hybrid Graphics blog[3] and the mailing list[4].

#### Disabling the Nvidia card

There's more than one method to do this. Namely with vgaswitcheroo (not working reliably yet with these cards) and acpi_call (AUR[5][dead link 2020-03-28 ⓘ]), which is recommended.

Note: If you use the AUR version, the steps are different than the ones below, but they are explained during/after install; the scripts can be easily adapted to the new locations, if necessary

##### acpi_call (manual)

In order to switch following hack is available[6][7].

What it is: A kernel module that enables you to call parameterless ACPI methods by writing the method name to /proc/acpi/call, e.g. to turn off discrete graphics card in a dual graphics environment (like NVIDIA Optimus).

Instalation:

    git clone http://github.com/mkottman/acpi_call.git
    cd acpi_call
    make
    sudo insmod acpi_call.ko
    ./test_off.sh

Usage:

    # turn off discrete graphics card
    echo '\_SB.PCI0.PEG1.GFX0.DOFF' > /proc/acpi/call
    # turn it back on
    echo '\_SB.PCI0.PEG1.GFX0.DON' > /proc/acpi/call

###### Run on Startup

If you want run it on every startup add these lines to `/etc/rc.local`

Note: Running this without a delay on Kernel 2.6.35.x has problems (Boots fine but X and tty do not show up; to avoid that, simply add `sleep <time>` before these lines and remember that sleep affects every line below it. If you mess up or decide to test it, just boot into recovery mode and edit `/etc/rc.local` from cli, to either add the delay or remove the lines altogether

    # Disable Nvidia
    insmod <path to acpi_call dir>/acpi_call.ko
    echo '\_SB.PCI0.PEG1.GFX0.DOFF' > /proc/acpi/call

If want, you may verify the power usage, on battery, with `grep rate /proc/acpi/battery/BAT0/state`. There should be a difference of about 7500 mW in battery usage.

###### Enable/Disable Scripts

You can easily create a couple of scripts to enable and disable it.

    #/bin/sh
    # Disable Nvidia
    sudo insmod /home/xehoz/build/acpi_call/acpi_call.ko
    echo '\_SB.PCI0.PEG1.GFX0.DOFF' > /proc/acpi/call

    #/bin/sh
    # Enable Nvidia
    sudo insmod /home/xehoz/build/acpi_call/acpi_call.ko
    echo '\_SB.PCI0.PEG1.GFX0.DON' > /proc/acpi/call

`chmod +x` both of them and type `sh <name you've given them>` to use them.

## Audio

Follow the official documentation: ALSA and PulseAudio

Note: From my experience OSS doesn't work

While it outputs sound to the speakers, the headphone jack won't work, and the speakers won't mute when a headphone is plugged in and the integrated mic won't work either.

In order to fix this, follow these steps.

1. Install ALSA drivers available at Realtek [8]

    tar xvf LinuxPkg_x.x
    tar xvf alsa-driver-1.0.xx
    cd alsa-driver-1.0.xx
    ./configure --with-cards=hda-intel
    make
    make install

Note: Realtek's ALSA drivers, currently 1.0.23-5.15rc5, aren't compiling properly in kernel 2.6.35. As an alternative, download the latest alsa-driver snapshot from here[9][dead link 2020-03-28 ⓘ] (tested with 01/09/2010 snapshot)

2. Add `options snd-hda-intel index=0 model=auto` to `/etc/modprobe.d/modprobe.conf`.

Open `/etc/modprobe.d/sound.conf` and add:

    alias snd-card-0 snd-hda-intel
    alias sound-slot-0 snd-hda-intel

### HDMI

Sound through HDMI works, but requires that the sound profile (mixer) be changed manually (not really a problem).

## Touchpad

1. Follow the Synaptics guide.

Type `xinput list` . What you want to see:

    ⎜   ↳ ETPS/2 Elantech Touchpad                	id=16	[slave  pointer  (2)]

However, you'll see that the system is misinterpreting the touchpad for a wheel mouse. This is because this laptop (and so many others recently) is using an Elantech Touchpad. In order to fix it, enter this in the command line:

    echo "options psmouse force_elantech=1" | sudo tee -a /etc/modprobe.d/psmouse.conf
    sudo rmmod psmouse && sudo modprobe psmouse

Then, open `/etc/X11/xorg.conf.d/10-synaptics.conf`. A bare minimum configuration requires this text:

    Section "InputClass"
            Identifier      "touchpad catchall"
            Driver          "synaptics"
            MatchIsTouchpad "on"
                  Option    "LeftEdge"              "130"
                  Option    "RightEdge"             "840"
                  Option    "TopEdge"               "130"
                  Option    "BottomEdge"            "640"
    EndSection

Note: While I settled with these coordinates, they may require tuning: Touchpad Synaptics#Synclient.

### Working 10-synaptics.conf

Here's a fully working 10-synaptics.conf with Edge Scrolling, Two Finger Scrolling and with middle mouse click (LTCornerButton and RTCornerButton) on the top corners activated. Circular Scrolling works, but it's deactivated.

    /etc/X11/xorg.conf.d/10-synaptics.conf

    Section "InputClass"
            Identifier      "touchpad catchall"
            Driver          "synaptics"
            MatchIsTouchpad "on"
    		Option	"SHMConfig"		"on"
    		Option 	"LeftEdge"          	"130"
    		Option	"RightEdge"         	"840"
    		Option	"TopEdge"           	"130"
    		Option	"BottomEdge"        	"640"
    		Option	"VertEdgeScroll"	"on"
    		Option	"HorizEdgeScroll"	"on"
    		Option	"CornerCoasting"	"on"
    		Option	"CoastingSpeed"		"0.30"
    		Option	"VertTwoFingerScroll"   "on"
    		Option	"HorizTwoFingerScroll"  "on"
    		Option	"CircularScrolling"	"off"
    		Option	"CricularTrigger"	"0"
    		Option	"TapButton1" 		"1"
    		Option	"TapButton2" 		"2"
    		Option	"TapButton3" 		"3"
    		Option	"LTCornerButton"	"2"
    		Option	"RTCornerButton"	"2"
    EndSection

# Webcam

Working, since version v4l-utils 0.8.1-1 (in previous versions the picture was upside down).

    $ lsusb |grep Chicony
    Bus 002 Device 003: ID 04f2:b1bb Chicony Electronics Co., Ltd

# Function Keys

Most of them do work. Exceptions are the multimedia player commands (fn+arrows), fn+c, fn+v and fn+F9 (which should disable the touchpad). It should be possible to have them all working by following Extra keyboard keys.

Category:

- ASUS

Hidden category:

- Pages with dead links