Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#7597 - Suppressing /etc/rc.d/alsa "XXX Write TLV" messages

Attached to Project: Arch Linux
Opened by Loic Nageleisen (lloeki) - Tuesday, 10 July 2007, 09:07 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 21 August 2007, 16:04 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.05 Duke
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

On some soundcards, 'alsactl store' writes a seemingly useless 'comment.tlv' field in /etc/asound.state, which, upon the first 'alsactl restore', makes some unaesthetic 'XXX Write TLV' messages appear on console. count is depending on total number of tlv fields, currently two on my machine, but it could be as big as how many controls there is on the soundcard, which is 14 in mine. that could get pretty ugly.

I tried silencing it by adding the usual '2>&1 > /dev/null' but no luck, message still here ?!

Then, as a fix, I added this:

if [ ! -z strip_tlv ]; then
cat /etc/asound.state | sed 's/.*tlv.*//' > /etc/asound.state.tmp
mv /etc/asound.state.tmp /etc/asound.state
fi

and a strip_tlv="true" to my /etc/conf.d/alsa

now init output is much more quiet, consistent, and pretty, with no notable side effects.

This task depends upon

Closed by  Tobias Powalowski (tpowa)
Tuesday, 21 August 2007, 16:04 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Tuesday, 10 July 2007, 09:39 GMT
Two side notes:
- useless use of cat/mv award: use sed -i.
- setting strip_tlv=false or strip_tlv=0 will also clear the fields.
Comment by Roman Kyrylych (Romashka) - Sunday, 15 July 2007, 11:31 GMT
using 2>/dev/null worked for me
Comment by Xavier (shining) - Sunday, 19 August 2007, 18:20 GMT Comment by Xavier (shining) - Sunday, 19 August 2007, 18:23 GMT
And the actual commit if anyone is interested : http://hg-mirror.alsa-project.org/alsa-utils/rev/b230fef1ea76

Loading...