LinuxSir.cn,穿越时空的Linuxsir!

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

gpm,alsa不能正常工作(解决);daemon的dhcpcd也不行。

[复制链接]
发表于 2006-10-4 09:33:02 | 显示全部楼层 |阅读模式
1. 手动运行gpm -m /dev/input/mice -t imps2,可以正常工作。
rc.conf里的daemon项加上gpm,鼠标不能正常工作,表现为移动鼠标后,屏幕出现一片白,一闪一闪。

2. alsaconf -> amixer set Master 18 unmute -> amixer set PCM 18 unmute -> alsactl store。
在rc.conf里的daemon项加上alsa,开机也是没有声音,得用amixer来设置。

3. 在rc.conf的deamon里加上了dhcpcd,也行,得自己开机后运行才能上网。conf.d里的dhcpcd的内容为
DHCPCD_ARGS="-t 30 -h $HOSTNAME"
后来我把""里的内容都去掉了也不行。
发表于 2006-10-4 09:38:07 | 显示全部楼层
1、修改 /etc/conf.d/gpm ,GPM_ARGS="-m /dev/misc/psaux -t imps2"
2、alsaconf -> amixer set Master 18 unmute -> amixer set PCM 18 unmute -> alsactl store -> /etc/rc.d/alsa restart
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-4 11:01:01 | 显示全部楼层
非常感谢,解决了困惑我很久的问题!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-7 10:21:11 | 显示全部楼层
3. 在rc.conf的deamon里加上了dhcpcd,也不行,得自己开机后运行dhcpcd才能上网。conf.d里的dhcpcd的内容为
DHCPCD_ARGS="-t 30 -h $HOSTNAME"
后来我把""里的内容都去掉了也不行。

提示沒有rc.d/dhcpcd這個文件,我看了,好像是個腳本的,哪位有個模板?
回复 支持 反对

使用道具 举报

发表于 2006-10-7 20:50:11 | 显示全部楼层
  1. # Interfaces to start at boot-up (in this order)
  2. # Declare each interface then list in INTERFACES
  3. #   - prefix an entry in INTERFACES with a ! to disable it
  4. #   - no hyphens in your interface names - Bash doesn't like it
  5. #
  6. # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
  7. #
  8. lo="lo 127.0.0.1"
  9. eth0="dhcp"
  10. INTERFACES=(lo eth0)
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-8 07:37:46 | 显示全部楼层
似乎不是这个的,我给一个rc.d里的gpm的你看看
#!/bin/bash

# source application-specific settings
GPM_ARGS=
[ -f /etc/conf.d/gpm ] && . /etc/conf.d/gpm

. /etc/rc.conf
. /etc/rc.d/functions

PID=`pidof -o %PPID /usr/sbin/gpm`
case "$1" in
  start)
    stat_busy "Starting GPM Daemon"
    [ -z "$PID" ] && /usr/sbin/gpm ${GPM_ARGS}
    if [ $? -gt 0 ]; then
      stat_fail
    else
      add_daemon gpm
      stat_done
    fi
    ;;
  stop)
    stat_busy "Stopping GPM Daemon"
    [ ! -z "$PID" ]  && kill $PID &> /dev/null
    if [ $? -gt 0 ]; then
      stat_fail
    else
      rm_daemon gpm
      stat_done
    fi
    ;;
  restart)
    $0 stop
    sleep 1
    $0 start
    ;;
  *)
    echo "usage: $0 {start|stop|restart}"  
esac
exit 0
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-9 11:51:39 | 显示全部楼层
原来改rc.conf里的eth="dhcp"即可了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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