Advertisement
grahamperrin

FreeBSD-CURRENT virtual_oss and webcamd

Dec 20th, 2020 (edited)
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@mowa219-gjp4-8570p:~ # date ; uptime ; uname -v
  2. Sun Dec 20 15:44:25 GMT 2020
  3. 3:44PM up 27 mins, 5 users, load averages: 0.71, 0.84, 0.84
  4. FreeBSD 13.0-CURRENT #74 r368589: Sun Dec 13 07:55:46 GMT 2020 root@mowa219-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
  5. root@mowa219-gjp4-8570p:~ # service virtual_oss onestatus
  6. /usr/local/etc/rc.d/virtual_oss: DEBUG: checkyesno: virtual_oss_enable is set to YES.
  7. /usr/local/etc/rc.d/virtual_oss: DEBUG: run_rc_command: doit: virtual_oss_status
  8. virtual_oss is not running.
  9. root@mowa219-gjp4-8570p:~ # grep virtual_oss_enable /etc/rc.conf
  10. virtual_oss_enable="NO"
  11. root@mowa219-gjp4-8570p:~ # grep webcamd_enable /etc/rc.conf
  12. webcamd_enable="YES"
  13. root@mowa219-gjp4-8570p:~ # service webcamd status
  14. /usr/local/etc/rc.d/webcamd: DEBUG: checkyesno: webcamd_enable is set to YES.
  15. /usr/local/etc/rc.d/webcamd: DEBUG: run_rc_command: doit: webcamd_status
  16. webcamd is running as pid 1711.
  17. root@mowa219-gjp4-8570p:~ # sysrc webcamd_enable="NO"
  18. webcamd_enable: YES -> NO
  19. root@mowa219-gjp4-8570p:~ # service webcamd onestop
  20. /usr/local/etc/rc.d/webcamd: DEBUG: checkyesno: webcamd_enable is set to YES.
  21. /usr/local/etc/rc.d/webcamd: DEBUG: run_rc_command: doit: webcamd_stop
  22. Stopping webcamd.
  23. Waiting for PIDs: 1711
  24. root@mowa219-gjp4-8570p:~ # service webcamd onestatus
  25. /usr/local/etc/rc.d/webcamd: DEBUG: checkyesno: webcamd_enable is set to YES.
  26. /usr/local/etc/rc.d/webcamd: DEBUG: run_rc_command: doit: webcamd_status
  27. webcamd is not running.
  28. root@mowa219-gjp4-8570p:~ # cat /dev/sndstat
  29. Installed devices:
  30. pcm0: <ATI R6xx (HDMI)> (play)
  31. pcm1: <IDT 92HD81B1X (Analog 2.0+HP/2.0)> (play/rec) default
  32. pcm2: <IDT 92HD81B1X (Analog)> (play/rec)
  33. pcm3: <USB audio> (play/rec)
  34. No devices installed from userspace.
  35. root@mowa219-gjp4-8570p:~ # ps aux | grep virtual_oss
  36. root 9237 0.0 0.0 12968 2512 4 S+ 15:52 0:00.00 grep virtual_oss
  37. root@mowa219-gjp4-8570p:~ # service virtual_oss onestart
  38. /usr/local/etc/rc.d/virtual_oss: DEBUG: checkyesno: virtual_oss_enable is set to YES.
  39. /usr/local/etc/rc.d/virtual_oss: DEBUG: run_rc_command: start_precmd: virtual_oss_precmd
  40. /usr/local/etc/rc.d/virtual_oss: DEBUG: run_rc_command: doit: virtual_oss_start
  41. Starting Virtual OSS config dsp ...hw.snd.basename_clone: 1 -> 0
  42. done
  43. root@mowa219-gjp4-8570p:~ # ps aux | grep virtual_oss
  44. root 9260 0.1 0.0 17916 5116 - S<s 15:52 0:00.55 /usr/local/sbin/virtual_oss -B -D /var/run/virtual_oss/dsp.pid -T /dev/sndstat -S -i 8 -C 2 -c 2 -r 48000 -b 24 -s 8.0ms -f /dev/dsp1 -c 2 -d dsp -t vdsp.ctl
  45. root 9319 0.0 0.0 12968 2512 4 S+ 15:53 0:00.00 grep virtual_oss
  46. root@mowa219-gjp4-8570p:~ # service virtual_oss onestop && virtual_oss -B -C 2 -c 2 -r 48000 -b 24 -s 8.0ms -f /dev/dsp3 -d dsp -D /var/run/dsp.pid
  47. /usr/local/etc/rc.d/virtual_oss: DEBUG: checkyesno: virtual_oss_enable is set to YES.
  48. /usr/local/etc/rc.d/virtual_oss: DEBUG: run_rc_command: doit: virtual_oss_stop
  49. Stopping Virtual OSS config dsp ... done
  50. hw.snd.basename_clone: 0 -> 0
  51. root@mowa219-gjp4-8570p:~ # service virtual_oss stop
  52. /usr/local/etc/rc.d/virtual_oss: DEBUG: run_rc_command: doit: virtual_oss_stop
  53. root@mowa219-gjp4-8570p:~ # pkill virtual_oss
  54. root@mowa219-gjp4-8570p:~ # service virtual_oss onestop && virtual_oss -B -C 2 -c 2 -r 48000 -b 24 -s 8.0ms -f /dev/dsp3 -d dsp -D /var/run/virtual_oss/dsp.pid -t vdsp.ctl
  55. /usr/local/etc/rc.d/virtual_oss: DEBUG: run_rc_command: doit: virtual_oss_stop
  56. hw.snd.basename_clone: 0 -> 0
  57. virtual_oss: Could not create CUSE DSP device
  58. root@mowa219-gjp4-8570p:~ # ps aux | grep virtual_oss
  59. root 11517 0.0 0.0 25596 5316 - DEs 16:43 0:06.79 virtual_oss -B -C 2 -c 2 -r 48000 -b 24 -s 8.0ms -f /dev/dsp3 -d dsp -D /var/run/dsp.pid
  60. root 12007 0.0 0.0 12968 2512 4 S+ 16:55 0:00.00 grep virtual_oss
  61. root@mowa219-gjp4-8570p:~ # kill -9 11517
  62. root@mowa219-gjp4-8570p:~ # ps aux | grep virtual_oss
  63. root 11517 0.0 0.0 25596 5316 - DEs 16:43 0:06.79 virtual_oss -B -C 2 -c 2 -r 48000 -b 24 -s 8.0ms -f /dev/dsp3 -d dsp -D /var/run/dsp.pid
  64. root 12021 0.0 0.0 12968 2512 4 S+ 16:55 0:00.00 grep virtual_oss
  65. root@mowa219-gjp4-8570p:~ # service virtual_oss onestart
  66. /usr/local/etc/rc.d/virtual_oss: DEBUG: checkyesno: virtual_oss_enable is set to YES.
  67. virtual_oss already running? (pid=11517).
  68. root@mowa219-gjp4-8570p:~ # syscrc virtual_oss_enable="YES"
  69. syscrc: Command not found.
  70. root@mowa219-gjp4-8570p:~ # sysrc virtual_oss_enable="YES"
  71. virtual_oss_enable: NO -> YES
  72. root@mowa219-gjp4-8570p:~ #
  73.  
Advertisement
RAW Paste Data Copied
Advertisement