LinuxQuestions.org
Visit Jeremy's Blog.
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 05-14-2017, 06:11 AM   #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

Invalid card number would imply that you don't have any functional driver for any of your cards. You have a webcam and a motherboard so that "should" be two sound cards at least. I would assume that alsa isn't installed, but alsamixer and speaker-test ran. And the alsa drivers are in the linux kernel these days, so odds of that are very low.

$ cat /proc/asound/cards

Just to verify that there's no functional cards.

$ lspci -nnk
$ lsusb

To list your devices to verify that the hardware exists.
 
1 members found this post helpful.
Old 05-16-2017, 12:12 AM   #17
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
Invalid card number would imply that you don't have any functional driver for any of your cards. You have a webcam and a motherboard so that "should" be two sound cards at least. I would assume that alsa isn't installed, but alsamixer and speaker-test ran. And the alsa drivers are in the linux kernel these days, so odds of that are very low.

$ cat /proc/asound/cards

Just to verify that there's no functional cards.

$ lspci -nnk
$ lsusb

To list your devices to verify that the hardware exists.
Code:
# dnf install -y alsa-firmware
$ cat /proc/asound/cards && lsusb && lspci -nnk
Is it to install this package if missing? Other related packages to be installed thanks?
 
Old 05-16-2017, 07:07 AM   #18
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The ones I posted were to provide us with MORE INFORMATION. Some cards are "special", but we cannot tell that if we do not know what you have, and how your system recognizes it.

What you have...

$ lspci -nnk
$ lsusb

Does and how your system recognizes it...

$ cat /proc/asound/cards
 
Old 05-16-2017, 05:31 PM   #19
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Code:
[hdscania@localhost ~]$ sudo dnf install -y alsa-firmware alsa-utils && cat /proc/asound/cards && lsusb && lspci -nnk
f26_x86_64.beta                                                                                                        15 kB/s |  20 MB     22:34    
Last metadata expiration check: 0:11:18 ago on Wed May 17 04:37:41 2017 CST.
Package alsa-utils-1.1.3-2.fc26.x86_64 is already installed, skipping.
Dependencies resolved.
======================================================================================================================================================
 Package                                   Arch                         Version                                  Repository                      Size
======================================================================================================================================================
Installing:
 alsa-firmware                             noarch                       1.0.29-4.fc26                            releases                       3.2 M
Installing dependencies:
 alsa-tools-firmware                       x86_64                       1.1.3-2.fc26                             releases                        38 k
 fxload                                    x86_64                       2008_10_13-5.fc26                        releases                        29 k

Transaction Summary
======================================================================================================================================================
Install  3 Packages

Total download size: 3.3 M
Installed size: 10 M
Downloading Packages:
(1/3): alsa-tools-firmware-1.1.3-2.fc26.x86_64.rpm                                                                    6.1 kB/s |  38 kB     00:06    
(2/3): fxload-2008_10_13-5.fc26.x86_64.rpm                                                                            4.4 kB/s |  29 kB     00:06    
(3/3): alsa-firmware-1.0.29-4.fc26.noarch.rpm                                                                          18 kB/s | 3.2 MB     03:06    
------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                  18 kB/s | 3.3 MB     03:09     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                              1/1 
  Installing       : fxload-2008_10_13-5.fc26.x86_64                                                                                              1/3 
  Installing       : alsa-tools-firmware-1.1.3-2.fc26.x86_64                                                                                      2/3 
  Installing       : alsa-firmware-1.0.29-4.fc26.noarch                                                                                           3/3 
  Running scriptlet: alsa-firmware-1.0.29-4.fc26.noarch                                                                                           3/3 
  Verifying        : alsa-firmware-1.0.29-4.fc26.noarch                                                                                           1/3 
  Verifying        : alsa-tools-firmware-1.1.3-2.fc26.x86_64                                                                                      2/3 
  Verifying        : fxload-2008_10_13-5.fc26.x86_64                                                                                              3/3 

Installed:
  alsa-firmware.noarch 1.0.29-4.fc26               alsa-tools-firmware.x86_64 1.1.3-2.fc26               fxload.x86_64 2008_10_13-5.fc26              

Complete!
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7e00000 irq 28
Bus 002 Device 005: ID 8086:0189 Intel Corp. 
Bus 002 Device 046: ID 1058:259f Western Digital Technologies, Inc. My Passport Ultra (WD10JMVW)
Bus 002 Device 045: ID 24ae:1100  
Bus 002 Device 044: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 2232:1015 Silicon Motion 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: i915
	Kernel modules: i915
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: mei_me
	Kernel modules: mei_me
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: ehci-pci
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: ehci-pci
00:1f.0 ISA bridge [0601]: Intel Corporation HM65 Express Chipset Family LPC Controller [8086:1c49] (rev 04)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller [8086:1c03] (rev 04)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 04)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 130 [8086:0896] (rev 34)
	Subsystem: Intel Corporation Centrino Wireless-N 130 BGN [8086:5005]
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
[hdscania@localhost ~]$
However there is still shown ‘‘dummy output’’ to me in daemon, also Chromium even the media players are still ‘‘silent’’ which I need to play audio.

Last edited by hd_scania; 05-16-2017 at 05:47 PM.
 
Old 05-17-2017, 12:06 AM   #20
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
There we are:

Code:
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7e00000 irq 28
So the driver recognizes the hardware and runs to a point of presenting a device.

Code:
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
That's the magic search string "[8086:1c20]", although many with your issue across many distros. Although with the lack of hits to a point, suggests it's more common that this card works? Or SEO and other algorithms make my search skills ineffective.

$ alsamixer -c 0

Maybe it's muted?

Is the user in the audio group? Sometimes that one slips by depending on how you did an installation.

$ groups
$ id
 
Old 05-17-2017, 02:48 AM   #21
remma12
Member
 
Registered: May 2017
Distribution: Arch
Posts: 65

Rep: Reputation: 28
Just to isolate to hardware/drivers do you dual boot windows still? Any chance of trying in windows at least if it works there then the hardware for sure works
 
Old 05-17-2017, 02:51 AM   #22
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
There we are:
Code:
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7e00000 irq 28
So the driver recognizes the hardware and runs to a point of presenting a device.
Code:
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
	Subsystem: Samsung Electronics Co Ltd Device [144d:c604]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
That's the magic search string "[8086:1c20]", although many with your issue across many distros. Although with the lack of hits to a point, suggests it's more common that this card works? Or SEO and other algorithms make my search skills ineffective.
Code:
$ alsamixer -c 0
Maybe it's muted?
Is the user in the audio group? Sometimes that one slips by depending on how you did an installation.
Code:
$ groups && id
Code:
# groupadd 0 audio -f && groupadd 1000 audio -f
Code:
bash-4.4$ groupadd
Usage: groupadd [options] GROUP
Options:
  -f, --force                   exit successfully if the group already exists,
                                and cancel -g if the GID is already used
  -g, --gid GID                 use GID for the new group
  -h, --help                    display this help message and exit
  -K, --key KEY=VALUE           override /etc/login.defs defaults
  -o, --non-unique              allow to create groups with duplicate
                                (non-unique) GID
  -p, --password PASSWORD       use this encrypted password for the new group
  -r, --system                  create a system account
  -R, --root CHROOT_DIR         directory to chroot into
bash-4.4$
Here, is the above command correct? Honestly I was unaware to the groups with user signups when installing any systems.
Here, I still remember few hardware devices are needed to be manually config during systems installation since Ubuntu 16.10.
Quote:
Originally Posted by Shadow_7 View Post
Code:
[hdscania@localhost ~]$ groups && id
hdscania sys wheel sudo
uid=1000(hdscania) gid=1000(hdscania) groups=1000(hdscania),3(sys),10(wheel),1001(sudo) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[hdscania@localhost ~]$ alsamixer -c 0
invalid card index: 0
try `alsamixer --help' for more information
[hdscania@localhost ~]$ alsamixer -h
Usage: alsamixer [options]
Useful options:
  -h, --help              this help
  -c, --card=NUMBER       sound card number or id
  -D, --device=NAME       mixer device name
  -V, --view=MODE         starting view mode: playback/capture/all
Debugging options:
  -g, --no-color          toggle using of colors
  -a, --abstraction=NAME  mixer abstraction level: none/basic
[hdscania@localhost ~]$ sudo alsamixer -c 0
invalid card index: 0
try `alsamixer --help' for more information
[hdscania@localhost ~]$ groups audio && id audio && sudo groups audio && sudo id audio
groups: ‘audio’: no such user
id: ‘audio’: no such user
groups: ‘audio’: no such user
id: ‘audio’: no such user
[hdscania@localhost ~]$ sudo groupadd audio && sudo gpasswd -a 1000 audio && sudo gpasswd -a 0 audio
groupadd: group 'audio' already exists
[hdscania@localhost ~]$ sudo gpasswd -a 1000 audio && sudo gpasswd -a 0 audio
gpasswd: user '1000' does not exist
[hdscania@localhost ~]$ sudo gpasswd -a hdscania audio && sudo gpasswd -a root audio
Adding user hdscania to group audio
Adding user root to group audio
[hdscania@localhost ~]$ groupmod
Usage: groupmod [options] GROUP

Options:
  -g, --gid GID                 change the group ID to GID
  -h, --help                    display this help message and exit
  -n, --new-name NEW_GROUP      change the name to NEW_GROUP
  -o, --non-unique              allow to use a duplicate (non-unique) GID
  -p, --password PASSWORD       change the password to this (encrypted)
                                PASSWORD
  -R, --root CHROOT_DIR         directory to chroot into

[hdscania@localhost ~]$ sudo groupmod -g 829 audio
[hdscania@localhost ~]$ id audio
id: ‘audio’: no such user
[hdscania@localhost ~]$ id --help
Usage: id [OPTION]... [USER]
Print user and group information for the specified USER,
or (when USER omitted) for the current user.

  -a             ignore, for compatibility with other versions
  -Z, --context  print only the security context of the process
  -g, --group    print only the effective group ID
  -G, --groups   print all group IDs
  -n, --name     print a name instead of a number, for -ugG
  -r, --real     print the real ID instead of the effective ID, with -ugG
  -u, --user     print only the effective user ID
  -z, --zero     delimit entries with NUL characters, not whitespace;
                   not permitted in default format
      --help     display this help and exit
      --version  output version information and exit

Without any OPTION, print some useful set of identified information.

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/id>
or available locally via: info '(coreutils) id invocation'
[hdscania@localhost ~]$ sudo id -G
0 829
[hdscania@localhost ~]$
The results for your commands are here, still no audio playbacks are.

Last edited by hd_scania; 05-17-2017 at 05:02 AM.
 
Old 05-17-2017, 09:58 AM   #23
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
I tend to use usermod to change groups.

$ sudo usermod -G group1,group2,group3,group4 USER

Or more specifically in my case.

$ sudo usermod -G USER,lp,cdrom,sudo,video,games,lpadmin,audio USER

Which would be the output of groups plus the NEW group. Bear in mind that the user will have to login again to have the group change take affect. Or the usual M$ methodology of rebooting.
 
Old 05-20-2017, 06:42 AM   #24
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
I tend to use usermod to change groups.
Code:
# usermod -G group1,group2,group3,group4 USER
Or more specifically in my case.
Code:
# usermod -G USER,lp,cdrom,sudo,video,games,lpadmin,audio USER
Which would be the output of groups plus the NEW group. Bear in mind that the user will have to login again to have the group change take affect. Or the usual M$ methodology of rebooting.
Code:
[hdscania@localhost ~]$ groupmod
Usage: groupmod [options] GROUP

Options:
  -g, --gid GID                 change the group ID to GID
  -h, --help                    display this help message and exit
  -n, --new-name NEW_GROUP      change the name to NEW_GROUP
  -o, --non-unique              allow to use a duplicate (non-unique) GID
  -p, --password PASSWORD       change the password to this (encrypted)
                                PASSWORD
  -R, --root CHROOT_DIR         directory to chroot into

[hdscania@localhost ~]$ groupadd
Usage: groupadd [options] GROUP

Options:
  -f, --force                   exit successfully if the group already exists,
                                and cancel -g if the GID is already used
  -g, --gid GID                 use GID for the new group
  -h, --help                    display this help message and exit
  -K, --key KEY=VALUE           override /etc/login.defs defaults
  -o, --non-unique              allow to create groups with duplicate
                                (non-unique) GID
  -p, --password PASSWORD       use this encrypted password for the new group
  -r, --system                  create a system account
  -R, --root CHROOT_DIR         directory to chroot into

[hdscania@localhost ~]$ id
uid=1000(hdscania) gid=1000(hdscania) groups=1000(hdscania),3(sys),10(wheel),829(audio),1001(sudo) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[hdscania@localhost ~]$ id --help
Usage: id [OPTION]... [USER]
Print user and group information for the specified USER,
or (when USER omitted) for the current user.

  -a             ignore, for compatibility with other versions
  -Z, --context  print only the security context of the process
  -g, --group    print only the effective group ID
  -G, --groups   print all group IDs
  -n, --name     print a name instead of a number, for -ugG
  -r, --real     print the real ID instead of the effective ID, with -ugG
  -u, --user     print only the effective user ID
  -z, --zero     delimit entries with NUL characters, not whitespace;
                   not permitted in default format
      --help     display this help and exit
      --version  output version information and exit

Without any OPTION, print some useful set of identified information.

GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Full documentation at: <http://www.gnu.org/software/coreutils/id>
or available locally via: info '(coreutils) id invocation'
[hdscania@localhost ~]$ groupdel
Usage: groupdel [options] GROUP

Options:
  -h, --help                    display this help message and exit
  -R, --root CHROOT_DIR         directory to chroot into
  -f, --force                   delete group even if it is the primary group of a user

[hdscania@localhost ~]$ sudo groupdel audio -f
[hdscania@localhost ~]$ sudo usermod -G 1000,audio 1000
usermod: group 'audio' does not exist
[hdscania@localhost ~]$ sudo usermod -G hdscania,audio hdscania
usermod: group 'audio' does not exist
[hdscania@localhost ~]$ usermod
Usage: usermod [options] LOGIN

Options:
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append                  append the user to the supplemental GROUPS
                                mentioned by the -G option without removing
                                him/her from other groups
  -h, --help                    display this help message and exit
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the
                                new location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -R, --root CHROOT_DIR         directory to chroot into
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account
  -v, --add-subuids FIRST-LAST  add range of subordinate uids
  -V, --del-subuids FIRST-LAST  remove range of subordinate uids
  -w, --add-subgids FIRST-LAST  add range of subordinate gids
  -W, --del-subgids FIRST-LAST  remove range of subordinate gids
  -Z, --selinux-user SEUSER     new SELinux user mapping for the user account

[hdscania@localhost ~]$ sudo groupadd -f audio
[hdscania@localhost ~]$ sudo usermod -G 1000,audio 1000
usermod: user '1000' does not exist
[hdscania@localhost ~]$ sudo usermod -G hdscania,audio hdscania
[hdscania@localhost ~]$ sudo usermod -G root,audio root
[hdscania@localhost ~]$
But still seeing ‘‘dummy’’ output under the sound daemons, which my issue is unlikely to be users and groups related.
 
Old 05-20-2017, 09:01 AM   #25
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You need to logout and login for group changes to take affect. But yes, as long as you have nothing registering under aplay or /proc/asound/cards, it's only a step closer, NOT an arrival at the destination. TBH, you're probably at the stage where you do a fresh distro install (and use the installer this time).
 
Old 05-20-2017, 11:19 PM   #26
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
You need to logout and login for group changes to take affect. But yes, as long as you have nothing registering under aplay or /proc/asound/cards, it's only a step closer, NOT an arrival at the destination. TBH, you're probably at the stage where you do a fresh distro install (and use the installer this time).
I have signed OUT THEN IN but is still hearing nothing.
Code:
[hdscania@localhost asound]$ cd /proc/asound && ls -la
total 0
dr-xr-xr-x.   5 root root 0 May 21 12:16 .
dr-xr-xr-x. 219 root root 0 May 21 11:53 ..
dr-xr-xr-x.   3 root root 0 May 21 12:16 card0
-r--r--r--.   1 root root 0 May 21 12:16 cards
-r--r--r--.   1 root root 0 May 21 12:16 devices
-r--r--r--.   1 root root 0 May 21 12:16 hwdep
-r--r--r--.   1 root root 0 May 21 12:16 modules
dr-xr-xr-x.   2 root root 0 May 21 12:16 oss
lrwxrwxrwx.   1 root root 5 May 21 12:16 PCH -> card0
-r--r--r--.   1 root root 0 May 21 12:16 pcm
dr-xr-xr-x.   2 root root 0 May 21 12:16 seq
-r--r--r--.   1 root root 0 May 21 12:16 timers
-r--r--r--.   1 root root 0 May 21 12:16 version
[hdscania@localhost asound]$
Here, you have guessed right nothing here, but why to reinstall the system? But, I have upgraded my system to rc over alpha, still reinstall system anyway?

Last edited by hd_scania; 05-21-2017 at 12:47 AM.
 
Old 05-21-2017, 08:30 AM   #27
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ cat /proc/asound/cards
Code:
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfeb44000 irq 25
 1 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfeb40000 irq 16
Is what shows on my system. Which is 2 soundcards (technically). Although only 1 aka hw:1 outputs sound to the speakers. With the /proc/asound/card0 path, you should have at least ONE soundcard with a driver.

$ speaker-test -c 2 -l 1 -D hw:1

Not that it matters for me as I use pulseaudio over a network. One good set of speakers and audio interface (physically connected to a different machine).

FILE: $HOME/.config/pulse/client.conf
Code:
default-server = 192.168.2.1
Although in my case it was more because EQ and other things chew up a lot of system resources, which this machine just doesn't have. I still think you need to do a fresh install with the distro installer. The installer normally creates the first user and adds it to the audio group. Plus a lot of the threads about your hardware that I found were from 2014 and indicated that the card "works".

$ lsmod | grep -i ^snd | grep -i codec
Code:
snd_hda_codec_realtek    73728  1 
snd_hda_codec_generic    65536  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     49152  1 
snd_hda_codec         102400  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           61440  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm                86016  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd                    73728  8 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
I'm kind of surprised that the audio driver has "codecs", but it is what it is I guess. With the realtek ALC 662 codec being what's required on this machine by the output of dmesg.

$ dmesg | grep -i codec
Code:
[    3.172975] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC662 rev1: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    3.172999] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    3.173003] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    3.173006] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    3.173008] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    3.173012] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
[    3.173015] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
[    3.173018] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a
 
Old 05-21-2017, 05:27 PM   #28
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Code:
[hdscania@dnf ~]$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7e00000 irq 28
[hdscania@dnf ~]$ speaker-test -c 2 -l 1 -D hw:0

speaker-test 1.1.3

Playback device is hw:0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -2,No such file or directory
[hdscania@dnf ~]$ lsmod | grep -i ^snd | grep -i codec
snd_hda_codec_hdmi     49152  1
snd_hda_codec         126976  2 snd_hda_intel,snd_hda_codec_hdmi
snd_hda_core           81920  3 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               102400  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd                    77824  12 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_seq_device,snd_pcm
[hdscania@dnf ~]$ dmesg | grep -i codec
[21297.792770] Modules linked in: xfs btrfs xor raid6_pq fuse rfcomm ccm ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack libcrc32c iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables bnep sunrpc vfat fat iTCO_wdt iTCO_vendor_support intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp uvcvideo kvm_intel videobuf2_vmalloc videobuf2_memops arc4 kvm videobuf2_v4l2 videobuf2_core iwldvm snd_hda_codec_hdmi ses videodev enclosure irqbypass scsi_transport_sas mac80211 snd_hda_intel crct10dif_pclmul crc32_pclmul media
[21297.792830]  snd_hda_codec ghash_clmulni_intel intel_cstate intel_uncore snd_hda_core btusb btrtl btbcm intel_rapl_perf snd_hwdep btintel bluetooth iwlwifi snd_seq snd_seq_device cfg80211 snd_pcm joydev snd_timer rfkill snd soundcore mei_me i2c_i801 shpchp lpc_ich mei tpm_tis tpm_tis_core tpm i915 crc32c_intel uas serio_raw i2c_algo_bit drm_kms_helper usb_storage drm video
[hdscania@dnf ~]$
 
Old 05-22-2017, 01:25 AM   #29
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The open error is troubling. And I've seen it before on my own systems. Although mostly not installed or permission type issue historically. Not sure if I've seen it since the olden days of compiling alsa from sources before it was integrated into the kernel. Normally forgot the alsa-lib (libasound2 package wise) or similar back in that day.

$ ls -l /dev/ | grep -i audio
$ ls -l /dev/snd/ | grep -i audio

Trying to recall if that happens when pulseaudio is active. With autospawn=no in the /etc/pulse/ stuff (client.conf?) you can stop pulseaudio. But if other configuration is there, like my $HOME/.config/pulse/client.conf, that could get in the way. Edit it and # (comment) out any active lines in my case to change configuration without un-installing pulse or other tricks.

$ dpkg -l | grep -i alsa | awk '{ print $2; }'

alsa-utils
alsamixergui
libalsa-ocaml
libalsa-ocaml-dev
libasound2:amd64
libasound2-data
libasound2-dev:amd64
libasound2-plugins:amd64
libsox-fmt-alsa:amd64
xmms2-plugin-alsa

$ dpkg -l | grep -i jack | awk '{ print $2; }'

dssi-host-jack
jackd
jackd2
jackd2-firewire
libjack-jackd2-0:amd64
qjackctl

$ dpkg -l | grep -i pulse | awk '{ print $2; }'

libpulse-mainloop-glib0:amd64
libpulse0:amd64
libpulsedsp:amd64
osspd-pulseaudio
pavucontrol
pulseaudio
pulseaudio-module-x11
pulseaudio-utils

You shouldn't need jack or pulse to have audio though. Basically what's on my debian jessie install atm with working sound.

http://alsa-project.org

If you're wanting to know more than you ever wanted to about linux audio. #toolate
 
1 members found this post helpful.
Old 05-24-2017, 06:34 AM   #30
hd_scania
Member
 
Registered: Apr 2017
Location: Nowhere
Distribution: Plenties found in my signatures :)
Posts: 268

Original Poster
Blog Entries: 6

Rep: Reputation: Disabled
Code:
[hdscania@dnf ~]$ ls -l /dev/ | grep -i audio && ls -l /dev/snd/ | grep -i audio
[hdscania@dnf ~]$ rpm -l | grep -i alsa | awk '{ print $2; }' && rpm -l | grep -i pulse | awk '{ print $2; }' && rpm -l | grep -i jack | awk '{ print $2; }'
[hdscania@dnf ~]$
 
  


Reply



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
dvd playback - picture fine - awful sound / my guess is its a codec issue... coal-fire-ice Linux - Desktop 4 07-14-2008 07:23 AM
slackbuild libdvdcss win32 codec; permissions issue cmk77 Slackware 4 08-03-2007 07:00 AM
Codec's.... kmcgavran Linux - Software 3 01-18-2007 08:39 PM
Audio Codec Issue? wh33t General 0 10-07-2005 01:25 AM
how to install divx codec?where to get codec ginda Linux - Newbie 1 10-22-2004 12:47 PM

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

All times are GMT -5. The time now is 03:49 PM.

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