Sound only works if I log in (on the desktop)
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+
ProcVersionSign
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/
/dev/snd/
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xfe978000 irq 45'
Mixer name : 'IDT 92HD81B1C5'
Components : 'HDA:111d76d5,
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)
PackageArchitec
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_
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.
dmi.board.name: B10IE01
dmi.board.vendor: Shuttle
dmi.board.version: To be filled by O.E.M.
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Shuttle
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: XS35
dmi.product.
dmi.sys.vendor: Standard
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Don Geddis
- Solved:
- Last query:
- Last reply:
This question was originally filed as bug #800416.
This question was reopened
- by Don Geddis