Difference between revisions of "ASUS N82JV"

From ArchWiki
Jump to: navigation, search
(Video: Bumblebee or how to make actual use of the Nvidia Card. + some reformatting of the section.)
m (codeline -> ic)
Line 101: Line 101:
  
 
======Run on Startup======
 
======Run on Startup======
If you want run it on every startup add these lines to {{Filename|/etc/rc.local}} {{Note|Running this without a delay on Kernel 2.6.35.x has issues (Boots fine but X and tty do not show up; to avoid that, simply add {{Codeline|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 {{Filename|/etc/rc.local}} from cli, to either add the delay or remove the lines altogether}}
+
If you want run it on every startup add these lines to {{Filename|/etc/rc.local}} {{Note|Running this without a delay on Kernel 2.6.35.x has issues (Boots fine but X and tty do not show up; to avoid that, simply add {{Ic|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 {{Filename|/etc/rc.local}} from cli, to either add the delay or remove the lines altogether}}
  
 
<pre># Disable Nvidia
 
<pre># Disable Nvidia
Line 107: Line 107:
 
echo '\_SB.PCI0.PEG1.GFX0.DOFF' > /proc/acpi/call</pre>
 
echo '\_SB.PCI0.PEG1.GFX0.DOFF' > /proc/acpi/call</pre>
  
If want, you may verify the power usage, on battery, with {{Codeline|grep rate /proc/acpi/battery/BAT0/state}}. There should be a difference of about 7500 mW in battery usage.
+
If want, you may verify the power usage, on battery, with {{Ic|grep rate /proc/acpi/battery/BAT0/state}}. There should be a difference of about 7500 mW in battery usage.
  
 
======Enable/Disable Scripts======
 
======Enable/Disable Scripts======
Line 121: Line 121:
 
sudo insmod /home/xehoz/build/acpi_call/acpi_call.ko
 
sudo insmod /home/xehoz/build/acpi_call/acpi_call.ko
 
echo '\_SB.PCI0.PEG1.GFX0.DON' > /proc/acpi/call</pre>
 
echo '\_SB.PCI0.PEG1.GFX0.DON' > /proc/acpi/call</pre>
{{Codeline|chmod +x}} both of them and type {{Codeline|sh <name you've given them>}} to use them.
+
{{Ic|chmod +x}} both of them and type {{Ic|sh <name you've given them>}} to use them.
  
 
==Audio==
 
==Audio==
Line 143: Line 143:
 
{{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[http://ftp.kernel.org/pub/linux/kernel/people/tiwai/alsa/alsa-driver/alsa-driver-snapshot.tar.gz] (tested with 01/09/2010 snapshot)}}
 
{{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[http://ftp.kernel.org/pub/linux/kernel/people/tiwai/alsa/alsa-driver/alsa-driver-snapshot.tar.gz] (tested with 01/09/2010 snapshot)}}
  
2. Add {{Codeline|options snd-hda-intel index<nowiki>=</nowiki>0 model<nowiki>=</nowiki>auto}} to {{Filename|/etc/modprobe.d/modprobe.conf}}.
+
2. Add {{Ic|options snd-hda-intel index<nowiki>=</nowiki>0 model<nowiki>=</nowiki>auto}} to {{Filename|/etc/modprobe.d/modprobe.conf}}.
  
 
Open {{Filename|/etc/modprobe.d/sound.conf}} and add:
 
Open {{Filename|/etc/modprobe.d/sound.conf}} and add:
Line 157: Line 157:
 
1. Follow the [[Synaptics]] guide.
 
1. Follow the [[Synaptics]] guide.
  
Type {{Codeline|xinput list |grep pointer}}. What you want to see:
+
Type {{Ic|xinput list |grep pointer}}. What you want to see:
 
<pre>⎜  ↳ ETPS/2 Elantech Touchpad                id=16 [slave  pointer  (2)]</pre>
 
<pre>⎜  ↳ ETPS/2 Elantech Touchpad                id=16 [slave  pointer  (2)]</pre>
  
Line 215: Line 215:
 
1. Follow the [[pm-utils]] article . It is quite extense and can be confusing, but, if I recall, this is the very minimum of what is needed to do:
 
1. Follow the [[pm-utils]] article . It is quite extense and can be confusing, but, if I recall, this is the very minimum of what is needed to do:
  
1.1 Type {{Codeline|pacman -S pm-utils uswsusp}}
+
1.1 Type {{Ic|pacman -S pm-utils uswsusp}}
  
 
1.2 To a file inside {{Filename|/etc/pm/config.d/}}, add:
 
1.2 To a file inside {{Filename|/etc/pm/config.d/}}, add:
Line 222: Line 222:
 
HIBERNATE_MODE="shutdown"</pre>
 
HIBERNATE_MODE="shutdown"</pre>
  
1.3 Add the {{Codeline|resume}} hook to {{Filename|/etc/mkinitcpio.conf}}, before filesystems.
+
1.3 Add the {{Ic|resume}} hook to {{Filename|/etc/mkinitcpio.conf}}, before filesystems.
 
<pre>HOOKS="base udev autodetect pata scsi sata resume filesystems"</pre>
 
<pre>HOOKS="base udev autodetect pata scsi sata resume filesystems"</pre>
  
1.4 Rebuild the initrd image with {{Codeline|mkinitcpio -p linux}}.
+
1.4 Rebuild the initrd image with {{Ic|mkinitcpio -p linux}}.
  
 
Now, to the hardware specific part.
 
Now, to the hardware specific part.
Line 233: Line 233:
 
disabling that module.
 
disabling that module.
  
3. Add {{Codeline|!nouveau}} to the {{Codeline|MODULES}} line in {{Filename|rc.conf}}. It should look like this:
+
3. Add {{Ic|!nouveau}} to the {{Ic|MODULES}} line in {{Filename|rc.conf}}. It should look like this:
 
<pre>MODULES=(fuse acpi-cpufreq cpufreq_ondemand cpufreq_powersave !snd-pcm-oss vboxdrv !nouveau)</pre>
 
<pre>MODULES=(fuse acpi-cpufreq cpufreq_ondemand cpufreq_powersave !snd-pcm-oss vboxdrv !nouveau)</pre>
  

Revision as of 17:55, 11 December 2011


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 it's website[2] 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]), 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 Template:Filename
Note: Running this without a delay on Kernel 2.6.35.x has issues (Boots fine but X and tty do not show up; to avoid that, simply add sleep

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.