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!
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!
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
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
|
DetailsOn 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
- useless use of cat/mv award: use sed -i.
- setting strip_tlv=false or strip_tlv=0 will also clear the fields.