LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-22-2010, 04:58 PM   #16
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44

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?

Last edited by lpallard; 11-22-2010 at 06:13 PM.
 
Old 11-22-2010, 06:14 PM   #17
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 396Reputation: 396Reputation: 396Reputation: 396
Make sure firefox isn't already running.

Adam
 
Old 11-22-2010, 06:35 PM   #18
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
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!
Attached Images
File Type: png snapshot1.png (109.6 KB, 9 views)
 
Old 11-22-2010, 07:33 PM   #19
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
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.
 
Old 11-24-2010, 07:54 PM   #20
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
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?
 
Old 11-24-2010, 08:36 PM   #21
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,252

Rep: Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631Reputation: 631
Quote:
Originally Posted by lpallard View Post
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.

Last edited by T3slider; 11-24-2010 at 08:39 PM.
 
Old 11-24-2010, 08:47 PM   #22
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
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!
 
Old 11-27-2010, 03:07 PM   #23
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
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?

Last edited by lpallard; 11-28-2010 at 05:37 PM.
 
Old 01-08-2011, 06:38 PM   #24
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware64-current and ATi Proprietary Driver ack_iix Slackware 5 03-06-2010 12:09 PM
[SOLVED] Video Problems in VirtualBox on Slackware64-current TSquaredF Slackware 8 10-20-2009 11:44 PM
Slackware64-current ATI, and few more proprietary questions dolphin77 Slackware 15 06-10-2009 09:15 AM
Slackware64-current ATI, and few more proprietary questions dolphin77 Linux - Newbie 1 05-22-2009 06:57 PM


All times are GMT -5. The time now is 02:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration