LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 01-12-2011, 02:03 AM   #1
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Asus N53JN-SZ074V Laptop configuration - everything I need works


I got Asus N53J laptop from my employer, and I want to share experience about setting various small things up in Linux.

1. Installation - what could possibly go wrong with intact CPU, RAM and HDD? OK, working screen, DVD-RW drive and keyboard were useful, too.

A catch here is that sometimes Linux believes BIOS about recommended HDD power saving mode, which leads to frequent spindowns and, eventually, HDD failure.
Code:
hdparm -B 255 /dev/sda
helps.
Code:
smartctl -A /dev/sda
output contains line like
Code:
193 Load_Cycle_Count        0x0032   092   092   000    Old_age   Always       -       16404
The last number should grow by one per reboot, and if it grows more than by one per hour, you should probably take measures.

2. Networking.
Code:
03:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
- WiFi, ath9k driver
Code:
06:00.0 Ethernet controller [0200]: Atheros Communications AR8131 Gigabit Ethernet [1969:1063] (rev c0)
- wired Ethernet, atl1c driver

3. Video.
This notebook has a nice 1920x1080 screen. It also has dual video card - something integrated and less power hungry from Intel and Nvidia GeForce for providing better performance when needed. I only use Intel - I find 10 FPS as the lowest value for Menger Sponge screensaver with 300+K polygons (4th level) acceptable, and TORCS and Extreme TuxRacer work fine with Intel card. So I need to configure Intel card and switch off power to Nvidia one.
Code:
00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 18)
i915 module handles both framebuffer and X11, thanks to Kernel Mode Setting (KMS). High resolution makes some larger console font, like iso01-12x22 desirable (using setfont). Of course, when I want full UTF-8 output in the framebuffer console along with configurable TrueType/OpenType font I use fbterm. MPlayer in framebuffer and "links -g" work fine, too; sometimes you may need to check that /dev/fb0 and /dev/tty1 are accessible to current user. XRandR works without any effort for VGA output.

For turning off Nvidia power, I use acpi_call module from https://github.com/mkottman/acpi_call . \_SB.PCI0.PEG1.GFX0.DOFF method from the test script works; notice that \_SB.PCI0.PEG1.GFX0._OFF reports success but power is still drawn.

4. Sound
Code:
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 06)
It may be that only headphones work (no sound from the speaker). To fix that, execute the following on boot:
Code:
rmmod snd-hda-intel; modprobe snd-hda-intel model=auto position_fix=0
5. Touchpad
xf86-input-synaptics driver works.
Code:
synclient       MinSpeed=0.7
synclient       MaxSpeed=1.5
(or equivalent settings in xorg.conf) is recommended - default settings are for smaller resolution.

6. USB 3.0
xhci-hcd driver reports success and lsusb reports USB 3.0 controller afterwards. If only I had a USB 3.0 device to test.


This entry is listed at http://tuxmobil.org/asus.html

Last edited by raskin; 01-12-2011 at 07:39 AM.
 
Old 03-24-2011, 06:01 AM   #2
neo2000
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Rep: Reputation: 0
Hi Raskin,

I have the same laptop and have the same problem with the sound. It doesn't work.

I tried to execute the next command:

rmmod snd-hda-intel; modprobe snd-hda-intel model=auto position_fix=0

But I obtain an error:

ERROR: Module snd_hda_intel is in use

Where and when should I execute the command above?

Thanks for all.
 
Old 03-24-2011, 06:37 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
Well, I do ensure that I execute the command when no program has had a chance to open sound device. I heard Ubuntu uses PulseAudio by default, so most most of the time audio output is "in use" by the idling PA daemon. You could ask in Ubuntu subforum how to pass the parameters to kernel modules when they are loaded - I assume there is a configuration file, but I have no idea how it is called.

The only thing you care about is that snd-hda-intel module gets
Code:
model=auto position_fix=0
parameters last time it is loaded.

Maybe you could create some upstart job that runs before pulseaudio and reloads the module with correct parameters.
 
Old 04-19-2011, 03:21 PM   #4
aussa
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
How do I know the nvidia Card is actually off?

I typed:
"echo '\_SB.PCI0.PEG1.GFX0.DOFF' > /proc/acpi/call"

without any errors but I don't know if it worked.
 
Old 04-27-2011, 10:56 AM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
Monitor power consumption attentively. You will notice the change
 
Old 05-16-2011, 12:21 AM   #6
rogera
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by neo2000 View Post
Hi Raskin,

I have the same laptop and have the same problem with the sound. It doesn't work.

I tried to execute the next command:

rmmod snd-hda-intel; modprobe snd-hda-intel model=auto position_fix=0

But I obtain an error:

ERROR: Module snd_hda_intel is in use

Where and when should I execute the command above?

Thanks for all.
Fedora 14 with Asus N53JQ-XR1

create a configuration file in /etc/modprobe.d, I called mine /etc/modprobe.d/asus.conf, with this line of code

Code:
options snd-hda-intel model=auto position_fix=0
Those options will be in effect after every boot. I believe that this will work with Ubuntu, too.

Thanks Raskin, this fixed my headphone works, but no speaker output problem.

Also, thanks for the hint about the Load_Cycle_Count. Mine was up to 107908!
 
Old 05-16-2011, 12:38 AM   #7
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
The speaker/headphone/microphone problems seems very kernel-version-dependent. With 2.6.38 I fail to have speaker and microphone working at once, but I don't care about that usecase too much and I hope it will work better with 2.6.39... Load_Cycle_Count is a widespread problem and it is the duty of each of us to spread the word whenever we talk about configuring hardware in Linux...
 
Old 05-20-2011, 07:17 AM   #8
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
Well, with 2.6.39 it doesn't work out of the box, either. If you specify model=auto, you get your speaker working, if you do not - you get your microphone working, and headphones work fine either way. I don't have a use case where it would be a real problem, though.
 
Old 05-29-2011, 07:22 PM   #9
aussa
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
How do I "only use" intel graphics? first of all, how do I know which one is currently working? I know I could turn off nvidia graphics with with the acpi_call link, but I think it hasn't worked for me..
 
Old 05-29-2011, 09:44 PM   #10
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
I do not load nVidia drivers and I watch power consumption before and after acpi_call: the correct call reduces it noticeably
 
Old 05-31-2011, 03:46 PM   #11
aussa
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
Does your mic works, haven't been able to make it work, if so, how did you do it?
 
Old 06-15-2011, 04:46 AM   #12
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
Currently I have two states, unfortunately.

If I do apply the fix for snd_hda_intel that I described, I get working speaker but no microphone. If I don't I get microphone working but only hedaphones. I am not sure what to do with that.
 
Old 07-10-2011, 11:10 PM   #13
aussa
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by rogera View Post
Fedora 14 with Asus N53JQ-XR1

create a configuration file in /etc/modprobe.d, I called mine /etc/modprobe.d/asus.conf, with this line of code

Code:
options snd-hda-intel model=auto position_fix=0
Those options will be in effect after every boot. I believe that this will work with Ubuntu, too.

Thanks Raskin, this fixed my headphone works, but no speaker output problem.

Also, thanks for the hint about the Load_Cycle_Count. Mine was up to 107908!
Could that work too with Debian?

I don't know if it happens the same with you, but my speakers and headphone works, the mic is what does not...
 
Old 07-11-2011, 03:37 AM   #14
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
As I said, if (with 2.6.39) you simply reload snd and snd-pcm and and-hda-intel without parameters to modules, microphone will work but speaker won't. I failed (so far) to find parameter set that would fix it. On the other hand, I usually don't use microphone and speaker together, so I gave up quite quickly.
 
Old 08-08-2011, 11:04 PM   #15
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Original Poster
Rep: Reputation: 69
Linux kernel 3.0.1. Finally I have speaker and microphone simultaneously.
 
  


Reply

Tags
hardware, laptop, notebook



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ASUS G1s A1 - Sound/ALSA doesn't works mercadodiego Linux - Hardware 3 11-16-2007 01:21 PM
Asus laptop turning on wireless? (actual wireless works when on) Mikesoft Fedora 7 01-14-2007 10:30 AM
pppoeconf do not works on notebook while it works on desktop ...same configuration sarajevo Debian 2 06-12-2006 02:57 PM
Slackware 10 + ASUS M3700N +Bluetooth now WORKS! sett Linux - Laptop and Netbook 0 12-09-2004 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 02:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration