LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-09-2017, 01:37 PM   #16
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874

$ sudo apt-get install apt-file
$ sudo apt-file update
$ apt-file find bin/speaker

The apt-file option isn't normally installed by default, but it's soo useful.


There's other ways to get sound outputted to a specified device by it's alsa name.

$ aplay -f cdr -t raw -d 2 /dev/urandom -c 2 -r 44100 -f S16_LE -D hw:1,3
$ aplay -f cdr -t raw -d 2 /dev/urandom -c 2 -r 44100 -f S16_LE -D hw:1,7
$ aplay -f cdr -t raw -d 2 /dev/urandom -c 2 -r 44100 -f S16_LE -D hw:1,8
$ aplay -f cdr -t raw -d 2 /dev/urandom -c 2 -r 44100 -f S16_LE -D hw:1,9

Basically takes a binary input/file and plays it like a CD.
 
1 members found this post helpful.
Old 04-09-2017, 09:32 PM   #17
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Shadow_7 View Post
$ sudo apt-get install apt-file
$ sudo apt-file update
$ apt-file find bin/speaker

The apt-file option isn't normally installed by default, but it's soo useful.


There's other ways to get sound outputted to a specified device by it's alsa name.

$ aplay -f cdr -t raw -d 2 /dev/urandom -c 2 -r 44100 -f S16_LE -D hw:1,3
$ aplay -f cdr -t raw -d 2 /dev/urandom -c 2 -r 44100 -f S16_LE -D hw:1,7
$ aplay -f cdr -t raw -d 2 /dev/urandom -c 2 -r 44100 -f S16_LE -D hw:1,8
$ aplay -f cdr -t raw -d 2 /dev/urandom -c 2 -r 44100 -f S16_LE -D hw:1,9

Basically takes a binary input/file and plays it like a CD.
I tried all 4 aplay commands and still nothing, which makes me think even more that it's a driver issue, I'm dealing with here. There is a kernel update in the repo's, so I think I'll try that.

I'll let ya know how it goes, thanks again for all of your help.
 
Old 04-10-2017, 05:22 AM   #18
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Original Poster
Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Update: I tried updating the kernel, but this did not change anything. But the good news is, I have got HDMI audio WORKING! Yay!

I had disabled EDID, as it was not getting the DPI for my TV correct, so I thought maybe let's re-enable it and see if that does it, and sure enough, HDMI audio worked straight away! (don't know why it was different with PCLinuxOS 2017 though, as in PCLinuxOS 2016, I'm sure I also disabled EDID as well, and HDMI audio still worked)

So I used the option below instead, to fix the DPI for my TV;

Code:
nvidia-xconfig --no-use-edid-dpi
Thanks again, Shadow_7 for all of your help!
 
  


Reply

Tags
nvidia hdmi alsa pulse



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
hdmi sound not working in LXDI (but working in KDE) StefanP Linux - Newbie 1 06-15-2015 01:43 PM
Not all Sound routes through to my ATI HDMI Attached Monitor supere989 Linux - Newbie 0 10-20-2012 08:50 PM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
hdmi sound with x2 monitor olexandr.klymenko Linux - Desktop 0 08-02-2012 03:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration