You are not logged in.

#1 2020-04-04 04:14:38

KaibutsuX
Member
Registered: 2015-04-22
Posts: 20

PCI Sound Card Fails to initialize

Looking for some advice on this hardware problem.

My motherboard's onboard audio went out and instead of upgrading the entire system I installed a cheap soundcard in a spare pci slot.

Card works just fine, except about 40% of the time after a reboot the card just fails to show up in any utility as an available output.

lspci | grep audio
07:01.0 Multimedia audio controller: Creative Labs CA0106/CA0111 [SB Live!/Audigy/X-Fi Series]

The card is always visible in the lspci output but it simply won't show up as an available soundcard in alsamixer nor shows up in pulseaudio volume control widget.

I have search and tried:

echo 1 > /sys/class/pci_bus/0000\:07/rescan
bash: /sys/class/pci_bus/0000:07/rescan: Permission denied

But I always get the permission denied error (yes I am root).

A reboot will ALWAYS fix the issue, but I'm so tired of doing a reboot, starting up all my programs only the find that my audio is out and having to reboot again to fix it.

Anyone have any ideas on a non-reboot fix or at least how to get linux to rescan the pci bus and try to reload it?

Last edited by KaibutsuX (2020-04-04 04:15:08)

Offline

#2 2020-04-04 04:37:50

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: PCI Sound Card Fails to initialize

Here's the script I used when I had this kind of problem:

#!/bin/bash

[[ $UID = 0 ]] || exec sudo "$0"

echo 1 > '/sys/bus/pci/devices/0000:00:1b.0/remove'
sleep 1
echo 1 > /sys/bus/pci/rescan

It first removes the device, and then it tells the kernel to look for devices again. This will make the kernel reinitialize the device.

Make sure you customize that "0000:00:1b.0" part if you want to try this script. I guess you will need "0000:07:01.0" according to that lspci output you shared. Run "lspci -D" to check on things.

Last edited by Ropid (2020-04-04 04:38:16)

Offline

#3 2020-04-04 04:54:42

KaibutsuX
Member
Registered: 2015-04-22
Posts: 20

Re: PCI Sound Card Fails to initialize

I don't have the pci directory, mine is in pci_bus, but regardless, I still get the "permission denied" error as root.

It seems it will not let me create or modify any file in this directory.

Offline

#4 2020-04-04 21:40:19

loqs
Member
Registered: 2014-03-06
Posts: 17,315

Re: PCI Sound Card Fails to initialize

Are you sure the path you are trying to write to exists?

echo 1 > /sys/class/pci_bus/0000\:07/rescan'
bash: /sys/class/pci_bus/0000:07/rescan: Permission denied
stat /sys/class/pci_bus/0000:07/rescan
stat: cannot stat '/sys/class/pci_bus/0000:07/rescan': No such file or directory

Offline

#5 2020-04-06 10:23:04

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: PCI Sound Card Fails to initialize

KaibutsuX wrote:

I don't have the pci directory, mine is in pci_bus, but regardless, I still get the "permission denied" error as root.

It seems it will not let me create or modify any file in this directory.

The "pci" entry that the script uses is inside "/sys/bus". You are looking inside "/sys/class" by mistake.

Offline

#6 2020-04-07 14:28:24

KaibutsuX
Member
Registered: 2015-04-22
Posts: 20

Re: PCI Sound Card Fails to initialize

ahh thanks I missed that. I will give this path a try next time it fails.

Last edited by KaibutsuX (2020-04-07 14:28:36)

Offline

#7 2020-04-16 17:57:17

KaibutsuX
Member
Registered: 2015-04-22
Posts: 20

Re: PCI Sound Card Fails to initialize

Deleted

Last edited by KaibutsuX (2020-04-16 18:37:03)

Offline

Board footer

Powered by FluxBB