LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware64 -current video problem with ATI HD5570 (https://www.linuxquestions.org/questions/slackware-14/slackware64-current-video-problem-with-ati-hd5570-845569/)

lpallard 11-22-2010 04:58 PM

I tried to start firefox froma terminal typing firefox URL but it simply opens the URL in a new firefox window, no errors in the terminal, I am simply dumped to the user@htpc:~$ prompt...

I just installed pulseaudio from sources using the slackbuild but I just realized that the instructions at the page you sent me are asking to move pulseaudio within the list to the top as the prefered sound server.... Does it mean that I will lose the sound over hdmi capability?

SHould it be in slackware by default?

adamk75 11-22-2010 06:14 PM

Make sure firefox isn't already running.

Adam

lpallard 11-22-2010 06:35 PM

1 Attachment(s)
Quote:

Make sure firefox isn't already running.
I tried that and there is no output... Like if there was no errors..

I also tried the pulse audio thing.. It did not work. I ended up with losing all my sound devices and I had to remove pulseaudio to re-enable them. I was told by KDE that the devices were no longer required and it was recommended to remove them. I then removed pulseaudio and deleted the /etc/asound.conf file and rebooted and I got where I was at the beginning. See attached a screenshot of what I have in sound devices.

thanks!

T3slider 11-22-2010 07:33 PM

You should *not* have to install pulseaudio for flash (technically it can be a solution alongside libflashsupport, but I would not recommend it). Flash outputs to the default sound device via ALSA directly (unless you use the hacky pulseaudio solution). If you want *all* sound to go through HDMI then you should set that sound card as the default sound device (index 0). See this page for setting the sound card priority globally or this page for routing audio to a default sound device via a ~/.asoundrc file.

lpallard 11-24-2010 07:54 PM

T3slider, I got confused by this alsa stuff... this is the first time I play around that and I need more info...

aplay -l will give:

Code:

**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: SB [HDA ATI SB], device 1: VT1708S Digital [VT1708S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: ATI HDMI [ATI HDMI]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

So if I understand correctly, I got 3 sound devices in this machine: HDA ATI SB VT1708S Analog, HDA ATI SB VT1708S Digital, and HD Audio generic ATI HDMI...

The one I want to use is the HDMI that goes to the HDTV via a HDMI cable (until I get a nice set of speakers). Because I have audio through HDMI in both KDE and amarok, I assume these programs, for some reasons, use device 1,3 (HDMI Audio) instead of the others. Speaker-test will try to run the test via the default audio device and I hear nothing..

Code:

speaker-test 1.0.23

Playback device is default                                                                                                                                                                                                                                                   
Stream parameters are 48000Hz, S16_LE, 1 channels                                                                                                                                                                                                                             
Using 16 octaves of pink noise                                                                                                                                                                                                                                               
Rate set to 48000Hz (requested 48000Hz)                                                                                                                                                                                                                                       
Buffer size range from 2048 to 8192                                                                                                                                                                                                                                           
Period size range from 1024 to 1024                                                                                                                                                                                                                                           
Using max buffer size 8192                                                                                                                                                                                                                                                   
Periods = 4                                                                                                                                                                                                                                                                   
was set period_size = 1024                                                                                                                                                                                                                                                   
was set buffer_size = 8192                                                                                                                                                                                                                                                   
 0 - Front Left                                                                                                                                                                                                                                                               
Time per period = 2.836303                                                                                                                                                                                                                                                   
 0 - Front Left

So where in alsa.conf do I need to change the devices addresses for the whole system to output to HDMI?

T3slider 11-24-2010 08:36 PM

Quote:

Originally Posted by lpallard (Post 4170188)
T3slider, I got confused by this alsa stuff... this is the first time I play around that and I need more info...

aplay -l will give:

Code:

**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: SB [HDA ATI SB], device 1: VT1708S Digital [VT1708S Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 3: ATI HDMI [ATI HDMI]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

So if I understand correctly, I got 3 sound devices in this machine: HDA ATI SB VT1708S Analog, HDA ATI SB VT1708S Digital, and HD Audio generic ATI HDMI...

The one I want to use is the HDMI that goes to the HDTV via a HDMI cable (until I get a nice set of speakers). Because I have audio through HDMI in both KDE and amarok, I assume these programs, for some reasons, use device 1,3 (HDMI Audio) instead of the others. Speaker-test will try to run the test via the default audio device and I hear nothing..

So where in alsa.conf do I need to change the devices addresses for the whole system to output to HDMI?

It looks like both of your sound devices use the snd-hda-intel module (though I could be wrong here -- the output of `lspci -vv` as root would say for sure), so ordering them is going to be a fun exercise. The hard (but most correct) way would be to add a udev rule for each of your sound cards, following this page. You can get information about your sound devices with the following command (as root):
Code:

udevadm info --attribute-walk --path `udevadm info --query path --name=/dev/audio`
However, you need to know a bit about udev to do this, and it's quite a learning curve.

If you don't want to fight with that, the easy way is to just route all of your audio to hw:1,3 via a ~/.asoundrc file for each user (or globally via /etc/asound.conf -- note that /etc/asound.conf exists in a full Slackware installation but just contains bluetooth stuff. You would have to append to this file). The following is untested but might work:
Code:

pcm.!default {
        type hw
        card 1
}

ctl.!default {
        type hw         
        card 1
}

You may or may not need to specify the device explicitly...if the above doesn't work you can try
Code:

pcm.!default {
        type hw
        card 1
        device 3
}

ctl.!default {
        type hw         
        card 1
        device 3
}

I wish you good luck with this -- it can be done, but because both cards use the same kernel module it is unfortunately more difficult for you.

lpallard 11-24-2010 08:47 PM

Quote:

because both cards use the same kernel module it is unfortunately more difficult for you
That describe my Linux adventures! What doesnt kill you makes you stronger! Tomorrow I will try all that stuff and post back!

thanks!

lpallard 11-27-2010 03:07 PM

I really dont understand linux.... without changing anything and not even trying to, all sound now goes through hdmi like I wanted! The only thing now that does not work is the volume control (kmix). When I play around with it, it does not change the volume level that my hdtv output. kmix report only HDA ATI SB & HD audio generic which is my hdmi output according to the multimedia page in the system config (screenshot I posted in one of my posts above).

UPDATE: If anyone is reading this, I'd like some feedback... I previously said that the sound over hdmi came alive by "itself" (how thats possible) but I forgot to add that the sound is intermittent, that is, it plays and every 30sec or so, cuts off dfor a second and comes back. I noticed this only while watching movies (XBMC, VLC, MPlayer, etc). Using amarok to listen to my music collection does not do this. Could it be linked to the ATI HD5570 driver?

lpallard 01-08-2011 06:38 PM

I recently discovered possible hardware malfunction with this ATI hd5570 card and I'm considering to close this thread because I replaced the card and seems to be OK now (no more sound problems). I replaced by an Nvidia GT430.

If need be, I might be opening a new thread in the future to solve the sound card ordering thing with udev, I never had a chance to try this.

Anyways thanks for all the help!


All times are GMT -5. The time now is 08:20 AM.