Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with sound
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
JotaStar
n00b
n00b


Joined: 01 Oct 2016
Posts: 25

PostPosted: Thu Feb 09, 2017 5:43 pm    Post subject: Problems with sound Reply with quote

Hi,

I'm trying to get work sound in gentoo. In which group should the user be included in order to have permission? "audio"?

I think that is not driver problem...

Code:

jota@localhost / $ sudo lshw
          *-multimedia
                description: Audio device
                product: Tahiti XT HDMI Audio [Radeon HD 7970 Series]
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]
                physical id: 0.1
                bus info: pci@0000:01:00.1
                version: 00
                width: 64 bits
                clock: 33MHz
                capabilities: pm pciexpress msi bus_master cap_list
                configuration: driver=[b]snd_hda_intel[/b] latency=0
                resources: irq:29 memory:fea60000-fea63fff


Showing devices...

Code:
jota@localhost / $ sudo aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=SB
    HDA ATI SB, ALC887-VD Analog
    Default Audio Device
front:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    Front speakers
surround21:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
[b]iec958:CARD=SB,DEV=0
    HDA ATI SB, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=HDMI,DEV=0
    HDA ATI HDMI, Generic Digital
    HDMI Audio Output[/b]
jota@localhost / $


Are the two latest audio output devices the ones to be used?

My make.conf
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j4"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.

CHOST="x86_64-pc-linux-gnu"

# These are the USE and USE_EXPAND flags that were used for
# buidling in addition to what is provided by the profile.

USE="X a52 aac acpi alsa amd64 berkdb bindist bluetooth branding bzip2
   cairo cdda cdr cli client colord cracklib crypt cups cxx
   dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran
   gdbm gif glamor glib gnome-keyring gnome-online-accounts gpm gstreamer gtk
   iconv icu introspection ipv6 jpeg lcms ldap libnotify libsecret
   mad minizip mmx mmxext mng modules mp3 mp4 mpeg multilib
   nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pm-utils png policykit ppds pulseaudio python
   qt3support readline samba sdl seccomp session spell sqlite sse sse2 ssl
   startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb
   vesa vmware vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib
   sasl threads aspell miner-fs nss
   -kde -qt4 -openrc -static"

PYTHON_SINGLE_TARGET="python3_4"
PYTHON_TARGETS="python2_7 python3_4"

CURL_SSL="nss"

RUBY_TARGETS="ruby19 ruby20 ruby21"

#PORTDIR_OVERLAY="/opt/local/portage"

PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
CLOUDDIR="/mnt/cloud/Others/gentoo"
PKGDIR="${CLOUDDIR}/desktop/packages"
GRUB_PLATFORMS="emu pc efi-64"

XFCE_PLUGINS="brigthness clock trash"
INPUT_DEVICES="edev keyboard mouse"
VIDEO_CARDS="radeon amdgpu fbdev vesa"

LINGUAS="es es-ES"
L10N="es es-ES"


Is there anything else I should do?

Thank you.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Thu Feb 09, 2017 7:14 pm    Post subject: Reply with quote

You are using USE=pulseaudio which will interfere with applications that only can use ALSA directly.

With pulseaudio you should make sure it's outputting to the devices you want. You can use pavucontrol or other pulseaudio mixer to control it, and make sure your applications are using pulseaudio. There is a translation for alsa applications to use pulseaudio.

Other questions before making conclusions:

Are you using systemd and is it set up properly? Seems consolekit is not setup properly as USE does not contain consolekit. These two automatically put you into the right groups when you login to the console. Also what is your make.profile?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
JotaStar
n00b
n00b


Joined: 01 Oct 2016
Posts: 25

PostPosted: Fri Feb 10, 2017 11:15 am    Post subject: Reply with quote

Hi,

I'm trying to remove pulseaudio because I emerged it for testing... but I'm having problems.

First of all I change make.conf to USE=-pulseaudio. Then I do a
Code:
emerge --update --newuse --changed-use --deep --with-bdeps=y @world
emerge --depclean


And the system recompiled all packages without pulseuadio. Now I want to remove pulseaudio, so if I do a
Code:
emerge -C pulseaudio


The system shows me this error:
Code:
localhost / # emerge -C pulseaudio
 * This action can remove important packages! In order to be safer, use
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before
 * removing packages.

 media-sound/pulseaudio
    selected: 9.0
   protected: none
     omitted: none

All selected packages: =media-sound/pulseaudio-9.0

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 1) media-sound/pulseaudio-9.0...
>>> needed   sym /usr/lib64/libpulse-mainloop-glib.so.0
>>> needed   obj /usr/lib64/libpulse-mainloop-glib.so.0.0.5
>>> needed   sym /usr/lib64/libpulse.so.0
>>> needed   obj /usr/lib64/libpulse.so.0.20.0
>>> needed   obj /usr/lib64/pulseaudio/libpulsecommon-9.0.so

 * GNU info directory index is up-to-date.

!!! existing preserved libs:
>>> package: media-sound/pulseaudio-9.0
 *  - /usr/lib64/pulseaudio/libpulsecommon-9.0.so
 *  - /usr/lib64/libpulse.so.0
 *  - /usr/lib64/libpulse.so.0.20.0
 *      used by /usr/bin/gnome-control-center (gnome-base/gnome-control-center-3.20.1-r1)
 *      used by /usr/lib64/alsa-lib/libasound_module_conf_pulse.so (media-plugins/alsa-plugins-1.1.1)
 *      used by /usr/lib64/alsa-lib/libasound_module_ctl_pulse.so (media-plugins/alsa-plugins-1.1.1)
 *      used by 6 other files
 *  - /usr/lib64/libpulse-mainloop-glib.so.0
 *  - /usr/lib64/libpulse-mainloop-glib.so.0.0.5
 *      used by /usr/bin/gnome-control-center (gnome-base/gnome-control-center-3.20.1-r1)
 *      used by /usr/lib64/gnome-settings-daemon-3.0/libmedia-keys.so (gnome-base/gnome-settings-daemon-3.20.1)
 *      used by /usr/lib64/gnome-shell/libgnome-shell.so (gnome-base/gnome-shell-3.20.4)
 *      used by /usr/libexec/gsd-test-media-keys (gnome-base/gnome-settings-daemon-3.20.1)
Use emerge @preserved-rebuild to rebuild packages using these libraries
localhost / #


And If I try a --depclean

Code:
localhost / # emerge --depclean

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 *
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence of this, it often becomes necessary to run
 * `emerge --update --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   >=media-sound/pulseaudio-2 pulled in by:
 *     gnome-base/gnome-shell-3.20.4
 *
 *   >=media-sound/pulseaudio-2 pulled in by:
 *     gnome-base/gnome-settings-daemon-3.20.1
 *
 *   >=media-sound/pulseaudio-2[glib] pulled in by:
 *     gnome-base/gnome-control-center-3.20.1-r1
 *
 * Have you forgotten to do a complete update prior to depclean? The
 * most comprehensive command for this purpose is as follows:
 *
 *   emerge --update --newuse --deep --with-bdeps=y @world
 *
 * Note that the --with-bdeps=y option is not required in many
 * situations. Refer to the emerge manual page (run `man emerge`)
 * for more information about --with-bdeps.
 *
 * Also, note that it may be necessary to manually uninstall
 * packages that no longer exist in the portage tree, since it may
 * not be possible to satisfy their dependencies.
localhost / #


Those packages dont use the USE pulseaudio
Why this error and why I cannt remove pulseaudio & deps?

Code:
[ebuild   R    ] gnome-base/gnome-settings-daemon-3.20.1::gentoo  USE="colord cups networkmanager policykit udev -debug (-openrc-force) -smartcard {-test} -wayland" INPUT_DEVICES="-wacom" PYTHON_TARGETS="python2_7 python3_4 (-python3_5)" 0 KiB
[ebuild   R    ] gnome-base/gnome-control-center-3.20.1-r1:2::gentoo  USE="bluetooth colord cups gnome-online-accounts i18n networkmanager -debug -kerberos -v4l -wayland" INPUT_DEVICES="-wacom" 0 KiB
[ebuild   R    ] gnome-base/gnome-shell-3.20.4::gentoo  USE="bluetooth networkmanager nls (-openrc-force)" PYTHON_TARGETS="python3_4 (-python3_5)" 0 KiB


And finally I use a systemd and my make.profile is
Code:
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd *

Using Xfce4
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Feb 10, 2017 12:20 pm    Post subject: Reply with quote

JotaStar,

USE-pulseaudio builds packages without optional pulseaudio support.

Reading the ebuild for gnome-base/gnome-shell-3.20.4, it says
Code:
>=media-sound/pulseaudio-2

That's a hard dependency.

Run
Code:
equery d pulseaudio

Where it shows
Code:
pulseaudio ? media-sound/pulseaudio
Thats a USE flag control, so you can turn it off.
Where it shows
Code:
(media-sound/pulseaudio)
,missing the pulseaudio ? part, that's a hard dependency.

What it boils down to is if you want Gnome, you must have pulseaudio, for some parts of it anyway.

I don't know what happens if you edit those three ebuilds to make pulseaudio optional.
Results can vary between Gnome being broken and it all still works.

I gave up Gnome around gnome-3.6.
_________________
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
JotaStar
n00b
n00b


Joined: 01 Oct 2016
Posts: 25

PostPosted: Fri Feb 10, 2017 12:50 pm    Post subject: Reply with quote

NeddySeagoon,

What is strange is that I installed it deliberately (pulseaudio), just for try it. I haven't emerged before and no package ask for it...

Quote:
I gave up Gnome around gnome-3.6.


I set my profile to gnome because Xfce4 have a lot of dependencies from gnome. Is good idea to change profile to desktop instead desktop/gnome?

I think I go to unmerge gnome-light and update world to clean gnome enterily and from there continue, what do you think?

Thank you very much.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7134
Location: almost Mile High in the USA

PostPosted: Fri Feb 10, 2017 7:16 pm    Post subject: Reply with quote

Pulseaudio was a mess early on, but I think it's pretty much settled down and works fine nowadays. I really like the per-application out of band volume adjustment - basically even if the application does not have a volume control or one that's easily accessible, I can raise or lower the volume outside of the application. It does add another layer of complexity however.

I have some machines that are solely xfce4, you don't need to use a gnome profile. Most of my xfce4 machines are openrc so there's the added benefit of not having to use systemd. But xfce4 works fine with systemd in any case - my Gnome3 machines are also systemd machines, and have xfce4 installed as well because Gnome doesn't seem to play well with Wine...

Perhaps this needs to be looked from another perspective - what applications do you want sound working that is currently not working? Or is sound completely broken for all applications? Including basic tests like speaker-test (part of media-sound/alsa-utils - and is a full alsa application)? How about as root?
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
JotaStar
n00b
n00b


Joined: 01 Oct 2016
Posts: 25

PostPosted: Sat Feb 11, 2017 5:22 pm    Post subject: Reply with quote

Well, I'm going from bad to worse...

Finally I remove pulseaudio. I dont know why I was starting system with OpenRC (not systemd) but my profile was gnome/systemd (???)
I changed grub to start with systemd and reboot system... Everything works fine, included the sound.

So then I changed the profile in order to remove gnome-light. When I changed the profile to desktop (not gnome/systemd), emerge depclean removes xorg-server (included drivers, libs, etc) Why?

Why on emerge --update --deep --with-bdeps=y @world dont emerge xorg-server if I have xfce4-meta?

Well, I reemerge everything again and now Its all recompiled ok... I starx X

BUT xorg-server stop working with an error.. Is in this post:
https://forums.gentoo.org/viewtopic-t-1059202.html
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Feb 11, 2017 5:45 pm    Post subject: Reply with quote

JotaStar,

You have to install xorg-server explicitly as its not required to run Xorg applications.
It is required to display the output of Xorg applications.

Xorg is what is called network transparent. It the dim and distant past, it was quite common to run X applications on one system and display the output on another.
Its less common today. Anyway the feature is still there. You install xorg-server where you want to display Xorg output.
_________________
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
JotaStar
n00b
n00b


Joined: 01 Oct 2016
Posts: 25

PostPosted: Wed Feb 15, 2017 6:56 pm    Post subject: Reply with quote

NeddySeagoon wrote:
JotaStar,

You have to install xorg-server explicitly as its not required to run Xorg applications.
It is required to display the output of Xorg applications.

Xorg is what is called network transparent. It the dim and distant past, it was quite common to run X applications on one system and display the output on another.
Its less common today. Anyway the feature is still there. You install xorg-server where you want to display Xorg output.


Thank you for your explanation.

eccerr0r wrote:
Perhaps this needs to be looked from another perspective - what applications do you want sound working that is currently not working? Or is sound completely broken for all applications? Including basic tests like speaker-test (part of media-sound/alsa-utils - and is a full alsa application)? How about as root?


Finally I removed pulseaudio. I want to keep it simply. I'm unable to get sound work with OpenRC. If I start with systemd it works fine, so although I do not like it, I'll leave it.

The last problem that I'm having is that I cannt change the output channel. I have two monitors, one connected with DVI and the other via HDMI and the standard output of computer (speakers).
In windows I can switch between those three but I cannt do it this with gentoo, it only works the output of computer.
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 487
Location: Estonia

PostPosted: Wed Feb 15, 2017 8:49 pm    Post subject: Reply with quote

eccerr0r wrote:
You are using USE=pulseaudio which will interfere with applications that only can use ALSA directly.


Pulseaudio does not interfere with applications that can only use ALSA directly.
At least as long as media-plugins/alsa-plugins[pulseaudio] is installed, which will seamlessly route it to pulseaudio and make it be an audio stream, so you can even apply application volume level to it.
Pulseaudio pulls it in with USE="alsa alsa-plugin", which both are default enabled for pulseaudio.
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
Leio
Developer
Developer


Joined: 27 Feb 2003
Posts: 487
Location: Estonia

PostPosted: Wed Feb 15, 2017 8:51 pm    Post subject: Reply with quote

JotaStar wrote:

The last problem that I'm having is that I cannt change the output channel. I have two monitors, one connected with DVI and the other via HDMI and the standard output of computer (speakers).
In windows I can switch between those three but I cannt do it this with gentoo, it only works the output of computer.

This is one of the main things pulseaudio has solved since its inception. You probably had that working nicely before, but not anymore, because you stopped using pulseaudio.
Yes, it's possible without pulseaudio, but it's a pain, while it just works(tm) with pulseaudio.
_________________
GNOME team lead; GStreamer; MIPS/ARM64
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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