-->

..:: seize the day ::..

December 26, 2008

Workaround for Sound Problem on openSUSE 11.1 on Intel ICH9

Filed under: IT stuff

OK without further ado, I also have problem with openSUSE 11.1 installation on HP 2230s laptop. There is no sound :-( .

My laptop soundcard is Intel 82801I (ICH9 Family), this is the "lspci | grep Audio" result

slowhand:/home/medwinz # lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03) 

I know some people also have the same problem with me in the list thread and even I make a bug report for this case. Before I submit the bug report I browse the opensuse forum thread for the same case and also googling around and found the closed relative on Ubuntu launchpad. I understand that this is holidays season and the respond from Novell internal bug solver personnel might be not too responsive. So based on the information I gathered finally I can make my laptop ready to rock again :-)

This is the workaround and the steps I took:

cat /proc/asound/card0/codec#* | grep Codec
the result of mine
   Codec: Analog Devices AD1984A
   Codec: LSI ID 1040
   Codec: Intel G45 DEVCTG

checking through less /usr/src/linux-2.6.27.7-9/Documentation/sound/alsa/ALSA-Configuration.txt, I found out some entries for AD1984A

AD1884A / AD1883 / AD1984A / AD1984B
         desktop       3-stack desktop (default)
         laptop          laptop with HP jack sensing
         mobile         mobile devices with HP jack sensing
         thinkpad      Lenovo Thinkpad X300
AD1984
         basic          default configuration
         thinkpad      Lenovo Thinkpad T61/X61
         dell             Dell T3400
Then I modified /etc/modprobe.d/sound become:
options snd slots=snd-hda-intel
options snd-hda-intel model=laptop  —> this is I added, coz alsa seems confused
# u1Nb.s7WKievqWt5:82801I (ICH9 Family) HD Audio Controller
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
Reboot and set all the slider all the way up in kmix. Check the sound with ’speaker-test -c2 -l5 -twav’ from the konsole. Everything is ready to rock again.
 
I decided to install the Amarok and the restricted format from community, and when it finished I set the engine to xine and try to play my mp3 collection but no sound :-( something broken again. I try to install vlc from packman also and now I can hear the mp3. The question is what happened with Amarok packman from packman repo? It is ok on 11 why not in 11.1. Then after reading the wiki, I decide to install yauap and gstreamer engine (which is I think not make sense emoticon), but what happen is the mp3 now automagically can be played through the Amarok. It is enough explanation for me :-)  

Have a lot of Fun

Workaround for DVD access on openSUSE 11.1

Filed under: IT stuff

medwinz note:

According to Marcus Meissner from SUSE this bug is already fixed. So first thing you should do if you as a normal user cannot get access write to your DVD writer is doing on-line update for your hal. See also information on openSUSE wiki.

openSUSE 11.1 just come out in December 18 2008. It brings the new experience for the communities who always fascinated by this distribution. One thing I feel really annoying is non-root user cannot access the DVD to make copy, burn an iso or anything using the tools like k3b. After searching the bugzilla and discussion in the openSUSE mailing list, at least we found the workaround for this problem.

Below are some workaround that maybe can help you solve the situation at least until the official update come out.

Check your access for the DVD drive. Run ‘getfacl /dev/sr0′ from the konsole. For the  non root user before we insert the blank DVD-R it should be something like:

medwinz@slowhand:~> getfacl /dev/sr0
getfacl: Removing leading ‘/’ from absolute path names
# file: dev/sr0
# owner: root
# group: disk
user::rw-
user:medwinz:rw-
group::rw-
mask::rw-
other::—

After you insert blank DVD-R the same command gives

medwinz@slowhand:~> getfacl /dev/sr0
getfacl: Removing leading ‘/’ from absolute path names
# file: dev/sr0
# owner: root
# group: disk
user::rw-
group::rw-
mask::rw-
other::—

If your result is something like above which is a non root user is missing the permission to access the DVD (rw) then you have problem :-)

The easiest workaround is to change the content of /usr/share/PolicyKit/policy/org.freedesktop.hal.device-access.policy. In some ways openSUSE 11.1 looks DVD burner as removable block medium, and the access for this medium is prohibited for non-root users. Open that file (as su) and find the section that start with <action id="org.freedesktop.hal.device-access.removable-block">, then change the content below that becomes

<action id="org.freedesktop.hal.device-access.removable-block">

   <description>Directly access removable block devices</description>
   <message>System policy prevents access to removable block devices</message>
   <defaults>
     <allow_inactive>yes</allow_inactive>
     <allow_active>yes</allow_active>
   </defaults>
 </action>

Now restart your computer. It should be ok now to use k3b to burn your DVD.

Other workaround is set your user as member of "cdrom" groups. Then create /etc/udev/rules.d/99-my.rules file with the following entry:

KERNEL=="sr*[0-9]", GROUP="cdrom", MODE="0660"

Reboot your computer and it should be ok now. The rule is to make sure that /dev/sr0 is always owned by root:cdrom and that cdrom group has the permission to read and write to the DVD/CD

Have a lot of fun