LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-11-2015, 06:01 PM   #1
Jmorales22
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Rep: Reputation: 0
Unable to play sound on chroot


Hello, I'm hoping somebody can help because as of now I am out of ideas.

I have an ubuntu installation (14.04) that is on my hard disk and I'm running fatdog64 in ram. I have been chrooting into the ubuntu machine to access software that isn't available on the fatdog machine (like audacious). The problem is, sound isn't working.

Here's what I do know:
1) The sound works fine in fatdog64 outside the chroot

2)This exact setup works for me on a different laptop, with fatdog as the host and ubuntu as chroot

3) The same error happens in fatdog64 AND xubuntu 14.04 live CD when I chroot into the ubuntu directory (so I don't think the problem is related to fatdog64 specificallly)

Here is my lscpci:
Code:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7640G]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI Audio Controller
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Root Port
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 03)
00:10.1 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 03)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 14)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:15.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 1)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh) Processor Function 5
02:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 07)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
Here is the output of lsmod | grep ^snd on the host:

Code:
snd_pcm_oss            37022  0 
snd_mixer_oss          13835  1 snd_pcm_oss
snd_hda_codec_idt      42652  1 
snd_hda_codec_generic    49918  1 snd_hda_codec_idt
snd_hda_codec_hdmi     36303  1 
snd_hda_intel          20483  2 
snd_hda_controller     17339  1 snd_hda_intel
snd_hda_codec          84740  5 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_pcm                79141  5 snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              17687  1 snd_pcm
snd                    55900  13 snd_pcm_oss,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_mixer_oss
Here is the chroot script:
Code:
mount --bind /proc /aufs/devsave/proc
mount --bind /dev /aufs/devsave/dev
mount --bind /dev/pts /aufs/devsave/dev/pts
mount --bind /sys /aufs/devsave/sys
mount --bind /var/lib/dbus/ /aufs/devsave/var/lib/dbus
#mount --bind /dev/shm /aufs/devsave/dev/shm
mount --bind /home /aufs/devsave/home/jonathan
mount --bind /tmp /aufs/devsave/tmp
cp /etc/resolv.conf /aufs/devsave/etc/resolv.conf
chroot /aufs/devsave /bin/bash
Here's what audacious says (when run as root on the chrooted machine):
Quote:
(terminal output: ** (audacious:2814): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
)
and audacious itself in X says:
Quote:
ALSA error: No suitable mixer element found.
ALSA error: snd_mixer_find_selem failed.

Trying to run audacious as user -ME- gives:
Code:
Could not create directory (/root/.config/audacious): Permission denied
Could not create directory (/root/.config/audacious/playlists): Permission denied

(process:2895): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
Cannot create /root/.config/audacious/lock: Permission denied.

** (audacious:2895): CRITICAL **: dbus_g_proxy_new_for_name: assertion 'connection != NULL' failed
WARNING: Audacious seems to be already running but is not responding.
shm_open() failed: Permission denied
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
pulseaudio: Failed to connect to server: Connection refused
shm_open() failed: Permission denied
Home directory not accessible: Permission denied
W: [pulseaudio] core-util.c: Failed to open configuration file '/root/.config/pulse//daemon.conf': Permission denied
W: [pulseaudio] daemon-conf.c: Failed to open configuration file: Permission denied
alsa: snd_mixer_attach failed: No such file or directory.
alsa: snd_mixer_attach failed: No such file or directory.
mpris2: Could not connect: Connection refused

(audacious:2895): Pango-WARNING **: error opening config file '/root/.config/pango/pangorc': Permission denied
vlc is unable to run as root, so sudo -u jonathan gives:
Code:
VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[0xd94118] main libvlc error: cannot open config file (/root/.config/vlc/vlcrc): Permission denied
shm_open() failed: Permission denied
Home directory not accessible: Permission denied
[0xdbf5e8] pulse audio output error: PulseAudio server connection failure: Connection refused
shm_open() failed: Permission denied
Home directory not accessible: Permission denied
[0xdae0c8] dbus interface error: Failed to connect to the D-Bus session daemon: Failed to connect to socket /tmp/dbus-sHtIetLoN9: Connection refused
[0xdae0c8] main interface error: no suitable interface module
[0xd94118] main libvlc error: interface "dbus,none" initialization failed
[0xd94118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0xdae0c8] main interface error: no configuration directory
[0xd94118] main libvlc error: no configuration directory
I feel like the problem has to be something to do with something I haven't done mount --bind with, but I can't seem to figure out what that could be. Besides, it worked on a different laptop (which admittedly had different hardware.) So I'm out of ideas and hoping someone can help me diagnose this.
 
Old 05-11-2015, 06:48 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,137

Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
when you first enter chroot you will be in the /root folder, so trying to run audacious as a non root user wont work as it cant write to the config files try using su to user and switch fokders to the users home folder, if you look at the out put of the commands you have a load of errors related to permissions fix that first
 
Old 05-13-2015, 04:29 PM   #3
Jmorales22
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks - actually the folder I get into within the chroot is /
I think it sends off some of those errors because I have mounted /home which on fatdog64 is actually /root

Any ideas on the sound problem?
 
Old 05-13-2015, 04:41 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,137

Rep: Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855Reputation: 855
again if you are trying to write files to /root as a normal user it will fail your error messages are saying that you can not write to /.root ... etc.
 
Old 05-14-2015, 03:49 PM   #5
Jmorales22
LQ Newbie
 
Registered: Mar 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Keith Hedger View Post
again if you are trying to write files to /root as a normal user it will fail your error messages are saying that you can not write to /.root ... etc.
yes, I know. But that's not the real problem. It's just another error that pops up only when I run as a regular user. Note above that I also have run the command for audacious as root, and the main error (no alsa device) is the same. The problem with a regular user writing to the /root directory is not the cause of my problems. It's a secondary issue that really isn't getting in my way right now.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to play sound directly from input on USB sound card, a Sound Blaster X-Fi THX JunctaJuvant Other *NIX 10 06-14-2014 02:36 AM
unable to play hdmi sound thru speakers schneidz Linux - Hardware 0 12-20-2010 06:52 PM
sound unable to play in user account in my sabayon linux wisdomvk Linux - Newbie 3 12-22-2007 01:34 AM
DELLL DIMENSION 3100 unable to play sound in fedora core 4 .Please help vineethshyam Fedora 0 09-22-2006 05:26 AM
unable to play more than one sound file at a time. wonka_vision Linux - Hardware 2 06-10-2003 06:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:18 AM.

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