Sound only works if I log in (on the desktop)

Bug #800416 reported by Don Geddis

This bug report was converted into a question: question #162266: Sound only works if I log in (on the desktop).

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Just installed a new 11.04 Ubuntu on a new box. I can log in on the desktop, and sound works fine. "aplay -L" and "aplay -l" show lots of options. "mpg123 -a "hw:0,0" <song>" works great.

But I'm trying to make a headless server, that continuously plays music upon reboot. I don't want to log in.

Unfortunately, if I don't log in at the desktop (but instead from outside, via ssh), then there seem to be no alsa devices. /proc/asound/ shows lots of hardware detected, but "aplay -L" show no ALSA devices (except "null").

Similarly, if I log in at the desktop, but then log out again, all the alsa devices get destroyed. Or, if I log in, but then switch to a different user, that second user has no access to any valid alsa devices either.

I'm trying to make a script that will start up on system boot, and will continuously play music, hopefully with some special user id (= not me). How can I get all the software alsa devices to be generated at boot time, rather than per-user at desktop login time?

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: alsa-base 1.0.24+dfsg-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: geddis 6475 F.... pulseaudio
 /dev/snd/controlC0: geddis 6475 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe978000 irq 45'
   Mixer name : 'IDT 92HD81B1C5'
   Components : 'HDA:111d76d5,12974003,00100402'
   Controls : 14
   Simple ctrls : 9
Card1.Amixer.info:
 Card hw:1 'default'/'Generic USB Audio Device at usb-0000:00:1d.0-1, full speed'
   Mixer name : 'USB Mixer'
   Components : 'USB0d8c:000e'
   Controls : 7
   Simple ctrls : 3
Date: Tue Jun 21 14:18:56 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/tcsh
SourcePackage: alsa-driver
Symptom: audio
Symptom_AudioUsers: pulse
Symptom_Card: Internal Audio - HDA Intel
Symptom_DevicesInUse: 6475 6475/dev/snd/controlC0: geddis F.... pulseaudio
Symptom_Jack: Green Headphone Out, Front
Symptom_Type: Sound works for some users but not for others
Title: [HDA-Intel - HDA Intel, playback] sound not working for all users
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/28/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 080015
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: B10IE01
dmi.board.vendor: Shuttle
dmi.board.version: To be filled by O.E.M.
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: Shuttle
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr080015:bd06/28/2010:svnStandard:pnXS35:pvrToBeFilledByO.E.M.:rvnShuttle:rnB10IE01:rvrTobefilledbyO.E.M.:cvnShuttle:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: XS35
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: Standard

Revision history for this message
Don Geddis (don-geddis) wrote :
Don Geddis (don-geddis)
Changed in alsa-driver (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.