I recently tried installing Ubuntu Hardy 8.04 (32-bit) on an LG R700 laptop, and was glad that most things worked out of the box without much tweaking.
Only two things did not work correctly: the sleep/hibernate function, and the headphones would work at the same time as the speakers.
I did not resolve the sleep/hibernate issue, but I finally figured out the headphones and speakers issue.
I had to do lots of searching and testing for this, and finally succeeded, thanks to God.
The issue I had was that the headphones and speakers would be on at the same time, and whenever I turned OFF the headphones, the speakers would turn OFF, and vice versa.
And consequentially, the laptop would not detect the headphones and would therefore not re-route the sound from the speakers to the headphones.
Here are the steps I took to fix my annoying issue.
Keep in mind that this was done for an LG R700 laptop, but it might be useful to others.
Run the following to get what codec is being used:
And you should get something like:head -n 1 /proc/asound/card0/codec*
Codec: Realtek ALC888
Then run the following to read the model options under your card model, in my case ALC888, which was under ALC883/888:
Or you can alternatively read the following link for the options:zless /usr/share/doc/alsa-base/driver/ALSA-Configuration.txt.gz
I tried a lot of options (while not caring much for SPDIF), and the two following options worked for me with this card and laptop combination:
I added the option I chose to the alsa options file by doing the following:3stack-6ch
targa-2ch-dig
I changed the following line:gksu gedit /etc/modprobe.d/alsa-base
To:options snd-hda-intel position_fix=1 model=ref
Close file and restart computer for changes to take effect.options snd-hda-intel position_fix=1 model=targa-2ch-dig
Conclusion:
The reasons as to why I stuck with the option "targa-2ch-dig" as opposed to "3stack-6ch" was due to three reasons:
1) My laptop only had 2.1 channels and not six channels and did not know of the consequences that could arise
2) Even though the six channels worked in the short period I tested it, it did not automatically turn off the speakers when I plugged in the headphones
3) A side quirk that also came with the six channels option was that I had to turn OFF instead of ON the headphones switch in order to have sound on the headphones
All in all, the "targa-2ch-dig" works well with me (even though I did not try all options), and it now automatically detects when the headphones are plugged or not, and routes the sound accordingly.
I am no expert, so please don't expect any technical feedback from me. I just kept hammering till it worked.
Now everything works on this laptop, except for the sleep and hibernate function.
Note: Make sure that the "Headphones" switch is turned ON for the "targa-2ch-dig" option in order for the headphones to be detected.
Bookmarks