Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa-firmware is blocking linux-firmware
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gentoo-n00b
n00b
n00b


Joined: 12 Feb 2018
Posts: 7
Location: Paris

PostPosted: Mon Feb 19, 2018 4:31 pm    Post subject: alsa-firmware is blocking linux-firmware Reply with quote

Hello All,

I come from arch Linux, and I'm thinking moving to Gentoo on my main computer any time soon, because I wanna learn more stuff about Linux and because I've been reading lots of things on this forums and the community is realy great.

For the moment I'm trying to install Gentoo on an old PC that i have (not to fuck up my *real* install on my everyday computer)

I installed MATE desktop ; but having no sound i figured I would need to install somme Alsa stuff ; and one of theme is causing me problems in Portage.

Code:

sudo emerge alsa-firmware
Password:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-firmware/alsa-firmware-1.0.29::gentoo  ALSA_CARDS="maestro3 ymfpci -aica -asihpi -ca0132 -cs46xx -darla20 -darla24 -echo3g -emu10k1 -emu1212 -emu1616 -emu1820 -gina20 -gina24 -hdsp -hdspm -indigo -indigoio -korg1212 -layla20 -layla24 -mia -mixart -mona -msnd-pinnacle -pcxhr -sb16 -usb-usx2y -vx222 -wavefront" 4880 KiB
[blocks B      ] sys-firmware/alsa-firmware[alsa_cards_ymfpci] ("sys-firmware/alsa-firmware[alsa_cards_ymfpci]" is blocking sys-kernel/linux-firmware-20180103-r1)
[blocks B      ] sys-firmware/alsa-firmware[alsa_cards_maestro3] ("sys-firmware/alsa-firmware[alsa_cards_maestro3]" is blocking sys-kernel/linux-firmware-20180103-r1)

Total: 1 package (1 new), Size of downloads: 4880 KiB
Conflict: 2 blocks (2 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-kernel/linux-firmware-20180103-r1:0/0::gentoo, installed) pulled in by
    sys-kernel/linux-firmware required by @selected

  (sys-firmware/alsa-firmware-1.0.29:0/0::gentoo, ebuild scheduled for merge) pulled in by
    alsa-firmware


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages


I kind of understand that this is what we call "hard blockers" ; but i don't know how to fix this.
Any help would be appriciated !

Thanx in advance,
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Mon Feb 19, 2018 4:32 pm    Post subject: Reply with quote

rm alsa-firmware. it should all be contained within the linux-firmware ebuild
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
gentoo-n00b
n00b
n00b


Joined: 12 Feb 2018
Posts: 7
Location: Paris

PostPosted: Mon Feb 19, 2018 7:09 pm    Post subject: Reply with quote

Naib,

Thanks ; so I dont'ont need alsa-firmware.
But then do you have an idea of the reason I have no sound ?
I have installed linux-firmware and complied my kernel with "genkernel all".

Thanx in advance,
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Mon Feb 19, 2018 7:09 pm    Post subject: Reply with quote

Naib,

You mean with the emerge command, not with rm.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Mon Feb 19, 2018 7:11 pm    Post subject: Reply with quote

gentoo-n00b,

Firmware is fairly rare on sound cards.
Post your lspci output, the output of ls -l /dev/snd and the output of groups, run as your normal user.

That will get us started.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Mon Feb 19, 2018 7:20 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Naib,

You mean with the emerge command, not with rm.
yup :). emerge -C alsa-firmware
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
gentoo-n00b
n00b
n00b


Joined: 12 Feb 2018
Posts: 7
Location: Paris

PostPosted: Tue Feb 20, 2018 6:33 am    Post subject: Reply with quote

Hi !

Here's my lspci (which BTW I can only run as root ; same for reboot poweroff etc.... Have any idea why ?)

Code:

localhost /home/ordi # lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: NVIDIA Corporation GT216M [GeForce GT 230M] (rev a2)
01:00.1 Audio device: NVIDIA Corporation GT216 HDMI Audio Controller (rev a1)
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8057 PCI-E Gigabit Ethernet Controller (rev 10)
03:00.0 Network controller: Intel Corporation WiFi Link 5100
04:00.0 SD Host controller: Ricoh Co Ltd MMC/SD Host Controller
04:00.1 System peripheral: Ricoh Co Ltd R5U2xx (R5U230 / R5U231 / R5U241) [Memory Stick Host Controller]
04:00.3 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 PCIe IEEE 1


Here's my ls -l /dev/sdn

Code:

ordi@localhost ~ $ ls -l /dev/snd
total 0
drwxr-xr-x 2 root root       80 Feb 20 07:28 by-path
crw-rw---- 1 root audio 116,  6 Feb 20 07:28 controlC0
crw-rw---- 1 root audio 116,  2 Feb 20 07:28 controlC1
crw-rw---- 1 root audio 116, 11 Feb 20 07:28 hwC0D0
crw-rw---- 1 root audio 116, 12 Feb 20 07:28 hwC0D1
crw-rw---- 1 root audio 116, 13 Feb 20 07:28 hwC0D2
crw-rw---- 1 root audio 116, 14 Feb 20 07:28 hwC0D3
crw-rw---- 1 root audio 116,  5 Feb 20 07:28 hwC1D0
crw-rw---- 1 root audio 116,  7 Feb 20 07:28 pcmC0D3p
crw-rw---- 1 root audio 116,  8 Feb 20 07:28 pcmC0D7p
crw-rw---- 1 root audio 116,  9 Feb 20 07:28 pcmC0D8p
crw-rw---- 1 root audio 116, 10 Feb 20 07:28 pcmC0D9p
crw-rw---- 1 root audio 116,  4 Feb 20 07:28 pcmC1D0c
crw-rw---- 1 root audio 116,  3 Feb 20 07:28 pcmC1D0p
crw-rw---- 1 root audio 116, 33 Feb 20 07:28 timer


groups

Code:

ordi@localhost ~ $ groups
wheel users ordi


Iguess I should be adding myself to the sound group right ? But I don't have sound either when I log into MATE as root.

Thanks !
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue Feb 20, 2018 8:24 am    Post subject: Reply with quote

the reason lspci "can only be run as root" will more than likely be due to /sbin & /usr/sbin not being in a normal users path by default. you could add these or just pretend the path.

You will need to add your normal user to the audio group THEN you need to ensure the correct sound card is selected (sometimes the hdmi device is selected as "default) and unmute it.
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Tue Feb 20, 2018 9:54 am    Post subject: Reply with quote

gentoo-n00b,

Code:
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
01:00.1 Audio device: NVIDIA Corporation GT216 HDMI Audio Controller (rev a1)


Your analogue sound card is listed first in lspci, so should be the default card.
From /dev/snd, your kernel looks good. All the right bits are there.

You need to be in the audio group to use the sound devices. Root owns them so that's OK for root.

Looks in alsamixer
Code:
┌────────────────────────────── AlsaMixer v1.1.5 ──────────────────────────────┐
│ Card: HDA ATI SB                                     F1:  Help               │
│ Chip: VIA VT1708S                                    F2:  System information │
│ View: F3:[Playback] F4: Capture  F5: All             F6:  Select sound card  │
│ Item: Master [dB gain: 0.00]                         Esc: Exit               │
│                                                                              │
│     ┌──┐              ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐     ┌──┐      │
│     │▒▒│              │  │     │  │     │  │     │  │     │  │     │  │      │
│     │▒▒│              │  │     │▒▒│     │  │     │  │     │▒▒│     │  │      │
│     │▒▒│              │  │     │▒▒│     │  │     │  │     │▒▒│     │  │      →
│     │▒▒│              │▒▒│     │▒▒│     │  │     │  │     │▒▒│     │▒▒│      →
│     │▒▒│              │▒▒│     │▒▒│     │  │     │  │     │▒▒│     │▒▒│      →
│     │▒▒│              │▒▒│     │▒▒│     │  │     │  │     │▒▒│     │▒▒│      →
│     │▒▒│              │▒▒│     │▒▒│     │  │     │  │     │▒▒│     │▒▒│      →
│     │▒▒│              │▒▒│     │▒▒│     │  │     │  │     │▒▒│     │▒▒│      →
│     │▒▒│              │▒▒│     │▒▒│     │  │     │  │     │▒▒│     │▒▒│      →
│     │▒▒│              │▒▒│     │▒▒│     │  │     │  │     │▒▒│     │▒▒│      │
│     │▒▒│              │▒▒│     │▒▒│     │  │     │  │     │▒▒│     │▒▒│      │
│     ├──┤     ┌──┐     └──┘     ├──┤     ├──┤     └──┘     ├──┤     ├──┤      │
│     │OO│     │OO│              │OO│     │MM│              │OO│     │OO│      │
│     └──┘     └──┘              └──┘     └──┘              └──┘     └──┘      │
│     100              75<>75   94<>94    0<>0     0<>0    88<>88     73       │
│  < Master >Headphon   PCM     Front   Front Mi Front Mi Surround  Center 

Unmute Master, PCM and Front and set the sliders to about 75%.
Be sure that anything with IEC or SPDI/F in its name is muted.

OO menas open
MM means muted.

-- edit --

For completeness, neither of your sound cards has firmware.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gentoo-n00b
n00b
n00b


Joined: 12 Feb 2018
Posts: 7
Location: Paris

PostPosted: Tue Feb 20, 2018 7:31 pm    Post subject: Reply with quote

Thank you guys for your advices.

Unfortunately, I didn't manage to work things out as desribed in your posts ; I could see my sound card in the "sound" setup of MATE, and I unuted it in alsamixer but still got no sound.

I remembered that in one of my previous install, i had sound workin using pulseaudio. So in emerge pulseaudio, and sound worked.

So then assumed thant since I had pulseaudio working I didn't need alsa ; and I did

Code:

sudo emerge -Ca media-sound/alsa-utils media-sound/alsa-tools media-plugins/alsa-plugins media-libs/alsa-lib dev-python/pyalsa


But then sound stoped working... So I re-emerged all these alsa packages and now sound is fine.

I though that alsa and pulseaudio were alternative to one another, and it seems to me that I need both ; have I been mistaken ?

Thanks again a lot for your input guys !
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Tue Feb 20, 2018 7:35 pm    Post subject: Reply with quote

gentoo-n00b,

pulse audio is a sound server that depends on a working alsa.

You must have alsa.
Pulse audio is not required.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gentoo-n00b
n00b
n00b


Joined: 12 Feb 2018
Posts: 7
Location: Paris

PostPosted: Thu Feb 22, 2018 7:13 pm    Post subject: Reply with quote

My problem is "solved" sine I have sound working with alsa + pulseaudio.

The reason why I didn't want pulseaudio in the first place is that I understood it was somehow dependent on systemd (it was created by the same guy Poettering or something, right ?). How true is that ? I mean, il have PA without systemd right now (and I have a -systemd use flag).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Thu Feb 22, 2018 8:23 pm    Post subject: Reply with quote

gentoo-n00b,

Yes, PA was created by the systemd guy. So was HAL.
PA does not depend on systemd. Well, not yet anyway.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum