вторник, 17 юни 2014 г.

Asus N56's running Ubuntu 14.04: display brighness and subwoofer


Not so long ago I bought an Asus N56JN notebook. Inexpensive, but powerful machine with nice sound. After managing to install UEFI Ubuntu 14.04 (the firmware does not support BIOS compatibility mode), I noticed several problems that really annoys me. First - the subwoofer is not working, next - can not control display brightness with Fn+F5/F6 buttons and constant power cycling of HDD when running on battery.
In order to really enjoy the sound system, I  needed to get your subwoofer working. After looking around, I found several blog posts and forum comments, related to the issue. Here is what I did. First open

/etc/modprobe.d/alsa-base.conf

and add following line to the end:


options snd-hda-intel model=,asus-mode4


Notice the comma sign, I have seen many suggestion doing this without it, but it didn't work on my machine. It won't hurt to try above with and without comma.
Next thing is get appropriate sound configuration 2.1. This is done by doing following. Edit the

/usr/share/pulseaudio/alsa-mixer/profile-sets/extra-hdmi.conf

file and add following:

[Mapping analog-surround-21]
device-strings = surround40:%f
channel-map = front-left,front-right,lfe,lfe
paths-output =
analog-output analog-output-speaker
priority = 7
direction = output



Then edit the file:

/etc/pulse/daemon.conf

and set:

enable-lfe-remix = yes

Now you can restart the system and set "analog-surround-21" in you sound settings. And one more thing - enjoy it!

Getting display brightness working is not so important as subwoofer, but it is still annoying. First I made working around - use custom keyboard shortcut with xbacklight utility. Ugly but working...until last Ubuntu update. So I needed the "real" solution to this problem. And here it is, edit the

/etc/default/grub

and set

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

Reboot the system and keep finger crossed.Hope this helps!