Solaris 11 no sound despite finding hardware


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 11 no sound despite finding hardware
# 15  
Old 04-08-2016
Oracle Sound Exchange

I managed to get SoX up and going, unfortunately once my syntax was correct(I think) there were no errors in the log, in fact, the log had nothing. When I had mis-wrote some code, it returned an error, so, I know it's transcribing info. Although it's quite possible I'm totally missing something.
OR, was the log supposed to return an output of some sort if it's working properly??Smilie

I tried:
Code:
/usr/bin/sox -q -b 8 -r 8000 -v 1 -e unsigned-integer /tmp/noise.raw -d trim 0 00:02 > /tmp/sox.log 2>&1

Which showed my /tmp/sox.log totally barren.

Trying to play an MP3 off my NAS I've realized that I don't have the Fruenhoffer/MP3 codec, I've heard that Fluendo is pretty awesome as well, and supports a plethora of video/audio codecs. Unfortunately I don't have any repositories I can add after doing a cursory search. Any thoughts?

However, I'm under the impression that the simple gnome accessible sound files are playable. Or, do codecs have to be installed before even playing NON-proprietary music files?

That being said, is there a way to add Beta-OSS drivers through a repository? I was reading somewhere that maybe a newer version may have certain "Fixes" to my problemo.

I am totally frustrated and losing sleep over this menagerie. Despite that, I've been totally seduced with the whole Solaris experience, unfortunately one of the basic tenants -- audio is nonexistent.Smilie

Any thoughts?

As always, Thanks for the help.

-Pete
# 16  
Old 04-08-2016
Quote:
Originally Posted by Nostradamus1973
as far as OS's, yes I've had several installed and recently, prior to installing Solaris, I was running Windows 10, and 7 before that with a dual boot running Ultimate Edition 4.6 Gamers Edition and NEVER had any sort of problem with sound. I tried loading the live DVD many times trying to access many sound settings, web pages, and videos without luck.
This one still has me scratching my head. What media did you use to install Solaris?

For what it's worth I've just installed Solaris on a HP ProLiant with a SoundBlaster add-in card (CA106 chipset) and the sound just worked. I'm using Solaris x86 11.3 Live DVD. I can boot the DVD and launch Firefox from the Live desktop and play YouTube clips with sound. I can do the same with Solaris x86 11.1 Live DVD.

I then installed Solaris on my hard drive by clicking on the "Solaris Install" desktop icon and after installation, booting from the HD, sound works just fine.

I know that saying this isn't much help to you but it should be that easy; famous last words.

What happens when you boot from Live media?
# 17  
Old 04-08-2016
OSS and PulseAudio give /dev/dsp as a device.

I did some checking and it looks like OSS 4x is already installed but I could be wrong.

From that POV there SHOULD be a device /dev/dsp available...

See if it exists ls /dev/dsp to check.

If it does try this:-

cat /dev/urandom > /dev/dsp

OR

cat /dev/random > /dev/dsp

(Ctrl-C to stop it.)

Are you using your Solaris in Terminal, Console or GUI, (Gnome?), mode?

EDIT:

Quote:
Which showed my /tmp/sox.log totally barren.
It might give a result somethng like this:-
Code:
cat /tmp/sox.log
/Users/barrywalker/sox-14.4.2/sox WARN rate: rate clipped 3330 samples; decrease volume?
/Users/barrywalker/sox-14.4.2/sox WARN sox: `coreaudio' output clipped 3292 samples; decrease volume?

This is a warning only and only comes on _input_ or _output_ overload.

As you have an empty log then it suggests to me that you either have an external input selected.
The output level is fixed at OFF.
The input level is switched OFF.

If you remove the '-q' from the sox command and run you should see something like this:-
Code:
cat /tmp/sox.log

/tmp/noise.raw:

 File Size: 65.5k     Bit Rate: 64.0k
  Encoding: Unsigned PCM  
  Channels: 1 @ 8-bit    
Samplerate: 8000Hz       
Replaygain: off         
  Duration: 00:00:08.19  

In:25.0% 00:00:02.05 [00:00:06.14] Out:88.2k [!=====|=====!] Hd:0.0 Clip:6.50k
/Users/barrywalker/sox-14.4.2/sox WARN rate: rate clipped 3217 samples; decrease volume?
/Users/barrywalker/sox-14.4.2/sox WARN sox: `coreaudio' output clipped 3286 samples; decrease volume?
Done.

If you see the !=====|=====! then you have output but the volume is OFF.
If you see the ! | ! then you may or may not have output, but the input source is possibly wrong or OFF.

Last edited by wisecracker; 04-08-2016 at 03:39 PM.. Reason: See above.
# 18  
Old 04-10-2016
Oracle

Hicks,

Yes, I've tried a Live DVD/CD and I experienced the same thing. I know that one of the simple tenants of an Desktop OS is sound, but, I don't have it and I'm quite envious that you do.Smilie

WiseCracker,

Code:
ls /dev/dsp

Confirms that /dev/dsp exists
Code:
cat /dev/urandom > /dev/dsp

Doesn't seem to return an error.
Code:
sudo /usr/bin/sox  -b 8 -r 8000 -v 1 -e unsigned-integer /tmp/noise.raw -d trim 0 00:02 > /tmp/sox.log 2>&1

Gives me the following in my /tmp/sox.log
Code:
/usr/bin/sox FAIL formats: can't open input file `/tmp/noise.raw': No such file or directory

Funny thing I don't see noise.raw in /tmp, where I thought it was created. Or am I running in circles? Or the fact that it's early in the AM for me. Shouldn't SoX have created the noise.raw file? Or, do I have to create one and give attributes?
I'm running Solaris through Gnome.
I think my Solaris shortcomings are starting to show.Smilie
I'm not sure this is related, OR, I'm putting the cart before the horse. BUT, I am unable to play MP3 files, when I try through SoX; is there a repository I need to add? The MP3 Decoder doesn't show in package manager either.
Where do we go from here?
As always, Thanks for your help and time.Smilie

-PeteSmilie

Last edited by Nostradamus1973; 04-10-2016 at 07:10 AM.. Reason: new info
# 19  
Old 04-10-2016
Did you run my original shell program?
Code:
#!/bin/sh
# af_test.sh
# Note my sox version is 14.4.2 so '~/sox-14.4.2/' will have to be changed to '/your/full/path/to/sox-xx.x.x/'.
dd if=/dev/urandom of=/tmp/noise.raw bs=1024 count=64
~/sox-14.4.2/sox -b 8 -r 8000 -v 1 -e unsigned-integer /tmp/noise.raw -d trim 0 00:02 > /tmp/sox.log 2>&1

The 'dd' command IS needed to generate the /tmp/noise.raw file.
However the line......
Code:
cat /dev/urandom > /dev/dsp

......should have generated a loud white noise sound out of the speakers.

Have you tried using headphones?

Last edited by wisecracker; 04-11-2016 at 10:42 AM.. Reason: Remove -q from sox command.
# 20  
Old 04-14-2016
WiseCracker,

I did run:
Code:
/usr/bin/sox -q -b 8 -r 8000 -v 1 -e unsigned-integer /tmp/noise.raw -dd trim 0 00:02 > /tmp/sox.log 2>&1

This time making sure I used the -dd command, however, I think I'm doing something wrong.

The sox.log only describes the following:
Code:
/usr/bin/sox FAIL formats: can't open input file `/tmp/noise.raw': No such file or directory

Which means that I didn't create a file with -dd added in.
I tried using headphones and there's absolutely zero sound coming through.
Any thoughts?
Thx
# 21  
Old 04-14-2016
Using the -dd option to sox does not magically create a file for you.

The way you create that file is to issue the command:
Code:
dd if=/dev/urandom of=/tmp/noise.raw bs=1024 count=64

as wisecracker suggested in post #19. And the sox command he suggested there was:
Code:
sox-14.4.2/sox -b 8 -r 8000 -v 1 -e unsigned-integer /tmp/noise.raw -d trim 0 00:02 > /tmp/sox.log 2>&1

which contains a -d option; not a -dd command.
This User Gave Thanks to Don Cragun For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Finding the hardware model name remotely

First, forgive me if this is a stupid questions that I should have asked in the non-expert forum. It seems like a hard questions to me. Is there a way to find the hardware model name from the command line on UNIX machines in general? I want to find out what kind of machines are running at a... (5 Replies)
Discussion started by: Pug
5 Replies

2. Hardware

No sound device in Solaris 11 running in Parallels (MacBook Pro)

I'm new to Solaris. I was able to installed Solaris 11 running GNOME. I tried to detect sound/audio but the message given that "No volume control GStreamer plugins and/or devices found". There is no dev/audio but there are audio drivers such as gstreamer installed when I checked using Solaris... (0 Replies)
Discussion started by: Abang Annuar
0 Replies

3. Solaris

Sound not working on Solaris 10 running on Sun Virtual Box

Hello Friends, I have installed Solaris 10 on on Sun Virtual Box. I am able to browse internet on solaris 10 thru firefox, however I am not getting sound, there is cross on the tray icon of sound. Please help with this !! Regards, Sahil (3 Replies)
Discussion started by: sahilsardana
3 Replies

4. UNIX for Dummies Questions & Answers

finding hardware config - HP-UX

HP-UX B.11.23 U ia64 model: HP RX7640/4 What commands can I issue to find out quantity/type of memory and CPUs? I know what I get from Glance but want to know if there are OS commands to get same or additional information. Thanks. Lisa (4 Replies)
Discussion started by: LisaS
4 Replies

5. UNIX for Advanced & Expert Users

solaris 9 hardware mulfunction

Hello, Im working on solaris 9 and I need to write script which monitoring several hardware componenets for any failures such as memory , Disks , power supply etc. I using prtdiag to extract this info. What should I check in the output for : Memory (Is the block of "Memory Module Groups"... (1 Reply)
Discussion started by: Alalush
1 Replies

6. Solaris

regarding sun solaris hardware

hi :), i am new to this forum and i am in need of some help. one of my friend i having a Sun Ultra 2 UPA/Sbus (UltraSPARC-II 296Mhz) 640 MB ram. i am not sure if that configuration will be helpful to try out some sysadmin commands. this machine has a 21-inch monster monitor, which i think... (5 Replies)
Discussion started by: sudhiroracle
5 Replies

7. Solaris

Solaris Hardware and ROHS

I'm trying to determine the End of Service Life for some of our Solaris servers, and I'm not sure if our servers are ROHS compliant. Is there a command to determine if the server is ROHS? If not, is there somewhere on the chasis where I can find this information? (2 Replies)
Discussion started by: dangral
2 Replies

8. UNIX for Advanced & Expert Users

Migrating Solaris 9 to different hardware

Hi, I am new to this forum and hope someone can help. Does anyone know how to restore a Solaris 9 backup tape from server A to a completely different server B hardware. Both boxes are sun 64bit. Your help is much appreciated. Thank you Jan. (5 Replies)
Discussion started by: snerta
5 Replies

9. Solaris

Sound control in Solaris 2.9

Hi, Gurus ! I need to find out how I can control the sound in UNIX. I have got a pair of USB speakers which do not have any volume controls. Is there any tool in Solaris 2.9 to control the volume ? Thanks D :eek: (0 Replies)
Discussion started by: Deicide5997
0 Replies

10. UNIX for Dummies Questions & Answers

finding hardware settings

Is there a unix command to find out what type of graphics card you have installed and to see other hardware settings? Any help would be appreciated. I'm using Solaris 7. :D Thanks, NH (7 Replies)
Discussion started by: nattie_h
7 Replies
Login or Register to Ask a Question