|
实在不知道为什么rc的alsa的自动启动无效(没声音,启动时显示done),
- sudo rc.d list | grep alsa
- [STARTED][AUTO] alsa
复制代码 系统启动后必须再手动启动一遍
才能有声音,log里没有相关信息
出现问题前升级了三样东西:
1、硬件:升级到了HD ALC662 (主板 cpu 内存全换了)
2、arch从32位升到了64位:从arch cd 直接pacman -root 升级系统的所有包到64位,之后chroot mkinitcpio,没重做系统
3、从OSS换到了alsa:用OSS后,播放声音全是杂音爆音噪音,没调好,就换到了alsa,删了OSS
/etc/asound.conf
- defaults.pcm.rate_converter "samplerate_best"
复制代码 /etc/rc.conf
- #
- # /etc/rc.conf - Main Configuration for Arch Linux
- #
- # -----------------------------------------------------------------------
- # LOCALIZATION
- # -----------------------------------------------------------------------
- #
- # LOCALE: available languages can be listed with the 'locale -a' command
- # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
- # startup and during the boot process. If set to 'no', the C locale is used.
- # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
- # in the hardware clock being left untouched (useful for virtualization)
- # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
- # to the value in /var/lib/hwclock/adjfile
- # TIMEZONE: timezones are found in /usr/share/zoneinfo
- # Note: if unset, the value in /etc/localtime is used unchanged
- # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
- # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
- # CONSOLEMAP: found in /usr/share/kbd/consoletrans
- # USECOLOR: use ANSI color sequences in startup messages
- #
- LOCALE="en_US.UTF-8"
- DAEMON_LOCALE="no"
- HARDWARECLOCK="localtime"
- TIMEZONE="Asia/Shanghai"
- KEYMAP="us"
- CONSOLEFONT=
- CONSOLEMAP=
- USEcolor="yes"
- # -----------------------------------------------------------------------
- # HARDWARE
- # -----------------------------------------------------------------------
- #
- # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
- # Replace every !module by an entry as on the following line in a file in
- # /etc/modprobe.d:
- # blacklist module
- # See "man modprobe.conf" for details.
- #
- #disbale zram
- MODULES=(microcode coretemp fuse eeprom vboxdrv acpi-cpufreq cpufreq_ondemand)
- # Udev settle timeout (default to 30)
- UDEV_TIMEOUT=30
- # Scan for FakeRAID (dmraid) Volumes at startup
- USEDMRAID="no"
- # Scan for BTRFS volumes at startup
- USEBTRFS="no"
- # Scan for LVM volume groups at startup, required if you use LVM
- USELVM="yes"
- # -----------------------------------------------------------------------
- # NETWORKING
- # -----------------------------------------------------------------------
- #
- # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
- #
- HOSTNAME="eyesonly"
- # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
- #
- # Wired network setup
- # - interface: name of device (required)
- # - address: IP address (leave blank for DHCP)
- # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
- # - broadcast: broadcast address (ignored for DHCP) (optional)
- # - gateway: default route (ignored for DHCP)
- #
- # Static IP example
- # interface=eth0
- # address=192.168.0.2
- # netmask=255.255.255.0
- # broadcast=192.168.0.255
- # gateway=192.168.0.1
- #
- # DHCP example
- # interface=eth0
- # address=
- # netmask=
- # gateway=
- # Setting this to "yes" will skip network shutdown.
- # This is required if your root device is on NFS.
- NETWORK_PERSIST="no"
- # Enable these netcfg profiles at boot-up. These are useful if you happen to
- # need more advanced network features than the simple network service
- # supports, such as multiple network configurations (ie, laptop users)
- # - set to 'menu' to present a menu during boot-up (dialog package required)
- # - prefix an entry with a ! to disable it
- #
- # Network profiles are found in /etc/network.d
- #
- # This requires the netcfg package
- #
- #NETWORKS=(main)
- NETWORKS=(onboard)
- # -----------------------------------------------------------------------
- # DAEMONS
- # -----------------------------------------------------------------------
- #
- # Daemons to start at boot-up (in this order)
- # - prefix a daemon with a ! to disable it
- # - prefix a daemon with a @ to start it up in the background
- #
- # If something other takes care of your hardware clock (ntpd, dual-boot...)
- # you should disable 'hwclock' here.
- #
- #DAEMONS=(hwclock syslog-ng mcelog ulatencyd network net-profiles netfs smartd sshd atop preload fcron dbus oss sensors slim)
- DAEMONS=(cpupower hwclock syslog-ng mcelog ulatencyd net-profiles @netfs @smartd sshd @atop preload fcron dbus alsa @sensors slim @mysqld @autossh @polipo @vnstat)
复制代码
==============================
alsa没设 restore,设完就好了,my stupid question.:sorry |
|