Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80069 - livecd-tools 1.0.13 - mixer
Summary: livecd-tools 1.0.13 - mixer
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-30 07:20 UTC by Jonas MG
Modified: 2005-01-30 09:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas MG 2005-01-30 07:20:06 UTC
1- The amixer options 'unmute' and 'cap' are deprecated:

amixer -q set [CONTROL] unmute
 amixer: Unknown playback setup 'unmute'..

amixer -q set [CONTROL] cap
 amixer: Unknown capture setup 'cap'..

2- autoconfig shows the next error:
 amixer: Mixer attach default error: No such file or directory

It is caused because it creates the file '/etc/amixer' empty

if [ -d /proc/asound/card0 ] && [ -x /usr/bin/amixer ]; then
    amixer scontrols > /etc/amixer
...

I checked in the shell that the directory and executable exists. If i execute 'amixer scontrols ...', it creates the file 'amixer' correct but in the script it fails.

NOTE: If you have the file '/etc/asound.state', then you will not see this failure, since alsasound will be in charge to load the saved values of the mixer. To check it:

[ -f /etc/asound.state ] && mv /etc/asound.state /etc/asound.state_
sed -i 's/"yes"/"no"/' /etc/conf.d/alsasound  # don't save 'asound.state'

and reboot.

3- If '/etc/asound.state' not exist, alsasound shows a warning message:
 * Restoring Mixer Levels...
 * No mixer config in /etc/asound.state, you have to unmute your card!

SOLUTION:
To add to the package livecd-tools a file '/etc/asound.state'. Thus alsasound will be in charge to restore the levels of the mixer, and any warning message will not take place.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Jonas MG 2005-01-30 07:43:32 UTC
To create a file /etc/asound.state:

amixer set Master 100
amixer set PCM 100
alsactl store -f /etc/asound.state
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-30 08:26:48 UTC
Actually... catalyst makes the asound.state when you set livecd/type to gentoo-release-environmental

Now... allow me to explain something to you.  You are working now in an area of things that is known unworking and still under heavy development.  Essentially, you're telling me things that I already know and not taking into account their intended usage.  Also, you rdescriptions are really hard for me to determine what your meaning is, and I'm really not sure why.

Essentially, livecd-tools is used by Gentoo when making our LiveCD images.  Due to this, it abides by the needs of Gentoo in LiveCD building.  If you're not following the current Gentoo processes for building, you will get errors and failures and there's really nothing that I can do about it.

If you want to build a LiveCD that *isn't* a Gentoo release, then you *cannot* use the gentoo-release-minimal or gentoo-release-universal livecd/type.  These types automatically assume that you are building an official release and following the official release guidelines.

At this time there are currently 2 other livecd/type available: gentoo-gamecd and gentoo-release-environmental and you can expect both of them to change and evolve as I slowly get support added into catalyst for them.

When you are creating unofficial releases, then you will need to take your own measures that things work.  If you need a /etc/asound.state file to be present, then you need to use a livecd/fsscript to touch /etc/asound.state, not expect livecd-tools to provide it, because livecd-tools should not be providing anything of the sort.

As for unmute and cap being deprecated, what is their replacement?
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-30 08:29:15 UTC
Anyway... this is WONTFIX, because livecd-tools is only a set of tools used on the LiveCD.  It is not expected to provide the entire environment, as that is your job as the LiveCD builder.
Comment 4 Jonas MG 2005-01-30 09:56:40 UTC
>>Actually... catalyst makes the asound.state when you set livecd/type to gentoo-release-environmental

Everybody doesn't use catalyst to create a live-CD. I have created a mini CD that fit in less of 50 M (that I hope, I must compress it) witch xorg, openbox, xpdf, beaver, emelfm2, gqview,etc

>>Essentially, livecd-tools is used by Gentoo when making our LiveCD images.

If livecd-tools were created to be only used with catalyst or gentoo livecd images, then the description of this package would not have to be so generic as:

* app-misc/livecd-tools
Description: LiveCD tools (autoconfig, net-setup)

>>Also, you rdescriptions are really hard for me to determine what your meaning is, and I'm really not sure why.
If my descriptions are hard or I don't explain well is because I am not English

You have made a great work with catalyst, livecd-tools, mkxf86config. But if I have sent these failures are because I believe that there was a form to improve it. Since I have made those modifications to improve it, less than it could do is to say it. But you you do not take it to badly.