LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 661|回复: 8

请问怎么在开机的时候调整音量啊

[复制链接]
发表于 2004-4-18 09:19:49 | 显示全部楼层 |阅读模式
我每次开机是,amixer都是将所有的音量关到最小。我必须手动调整。
怎么样才能保存上一次的设置啊?
发表于 2004-4-18 12:13:10 | 显示全部楼层
# touch  /etc/asound.state
 楼主| 发表于 2004-4-19 22:02:13 | 显示全部楼层
不行啊
再次重起后还是全是off
发表于 2004-4-20 09:18:21 | 显示全部楼层

关注ing

我也同样有这个问题,楼上的方法不起任何作用
发表于 2004-4-21 08:11:23 | 显示全部楼层

再来推动一下这个问题!

推!!!
发表于 2004-4-21 09:27:46 | 显示全部楼层
#rm /etc/asound.state
#amixer  set Master 100 unmute
#amixer  set PCM 100 unmute
#alsactl store
#less /etc/asound.state

#reboot
发表于 2004-4-21 09:35:24 | 显示全部楼层

#less /etc/asound.state

[PHP]state.AudioPCI {
        control.1 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Master Playback Switch'
                value true
        }
        control.2 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 31'
                iface MIXER
                name 'Master Playback Volume'
                value.0 31
                value.1 31
        }
        control.3 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Master Mono Playback Switch'
                value false
        }
        control.4 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 31'
                iface MIXER
                name 'Master Mono Playback Volume'
                value 0
        }
        control.5 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'PC Speaker Playback Switch'
                value false
        }
        control.6 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 15'
                iface MIXER
                name 'PC Speaker Playback Volume'
                value 0
        }
        control.7 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Phone Playback Switch'
                value false
        }
        control.8 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 31'
                iface MIXER
                name 'Phone Playback Volume'
                value 0
        }
        control.9 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Mic Playback Switch'
                value false
        }
        control.10 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 31'
                iface MIXER
                name 'Mic Playback Volume'
                value 0
        }
        control.11 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Mic Boost (+20dB)'
                value false
        }
        control.12 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Line Playback Switch'
                value false
        }
        control.13 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 31'
                iface MIXER
                name 'Line Playback Volume'
                value.0 0
                value.1 0
        }
        control.14 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'CD Playback Switch'
                value false
        }
        control.15 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 31'
                iface MIXER
                name 'CD Playback Volume'
                value.0 0
                value.1 0
        }
        control.16 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Video Playback Switch'
                value false
        }
        control.17 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 31'
                iface MIXER
                name 'Video Playback Volume'
                value.0 0
                value.1 0
        }
        control.18 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Aux Playback Switch'
                value false
        }
        control.19 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 31'
                iface MIXER
                name 'Aux Playback Volume'
                value.0 0
                value.1 0
        }
        control.20 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'PCM Playback Switch'
                value true
        }
        control.21 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 31'
                iface MIXER
                name 'PCM Playback Volume'
                value.0 31
                value.1 31
        }
        control.22 {
                comment.access 'read write'
                comment.type ENUMERATED
                comment.item.0 Mic
                comment.item.1 CD
                comment.item.2 Video
                comment.item.3 Aux
                comment.item.4 Line
                comment.item.5 Mix
                comment.item.6 'Mix Mono'
                comment.item.7 Phone
                iface MIXER
                name 'Capture Source'
                value.0 Mic
                value.1 Mic
        }
        control.23 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Capture Switch'
                value false
        }
        control.24 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 15'
                iface MIXER
                name 'Capture Volume'
                value.0 0
                value.1 0
        }
        control.25 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name '3D Control - Switch'
                value false
        }
        control.26 {
                comment.access 'read write'
                comment.type ENUMERATED
                comment.item.0 Mix
                comment.item.1 Mic
                iface MIXER
                name 'Mono Output Select'
                value Mix
        }
        control.27 {
                comment.access 'read write'
                comment.type ENUMERATED
                comment.item.0 Mic1
                comment.item.1 Mic2
                iface MIXER
                name 'Mic Select'
                value Mic1
        }
        control.28 {
                comment.access 'read write'
                comment.type INTEGER
                comment.range '0 - 3'
                iface MIXER
                name '3D Control Sigmatel - Depth'
                value 0
        }
        control.29 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Sigmatel 4-Speaker Stereo Playback Switch'
                value false
        }
        control.30 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Sigmatel Surround Phase Inversion Playback '
                value false
        }
        control.31 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'External Amplifier'
                value false
        }
        control.32 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'IEC958 Playback Switch'
                value false
        }
        control.33 {
                comment.access 'read write'
                comment.type IEC958
                iface PCM
                name 'IEC958 Playback Default'
                value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
        }
        control.34 {
                comment.access read
                comment.type IEC958
                iface PCM
                name 'IEC958 Playback Mask'
                value ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
        }
        control.35 {
                comment.access 'read write'
                comment.type IEC958
                iface PCM
                name 'IEC958 Playback PCM Stream'
                value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
        }
        control.36 {
                comment.access 'read write'
                comment.type BOOLEAN
                iface MIXER
                name 'Line In->Rear Out Switch'
                value false
        }
}
[/PHP]
发表于 2004-4-21 09:39:31 | 显示全部楼层
#dmesg | less
................

USB Mass Storage support registered.
Advanced Linux Sound Architecture Driver Version 1.0.4rc2 (Tue Mar 30 08:19:30 2004 UTC).
ALSA device list:
  #0: Ensoniq AudioPCI ENS1371 at 0xdc00, irq 9

NET: Registered protocol family 2

.........................
发表于 2004-4-22 21:37:46 | 显示全部楼层

最终这样解决了:

1、touch /etc/asound.state
2、用alsamixer调整好音量,如果有些是off用m设为on
3、alsactl store 保存设置
4、chkconfig --add alsasound 让xinet来启动它

reboot完成
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表