“UbuntuHelp:Install IVTV Troubleshooting”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/Install_IVTV_Troubleshooting}} {{Languages|UbuntuHelp:Install_IVTV_Troubleshooting}} === Troubleshooting === ==== Check IVTV is initialized ==== ...) |
小 |
||
第3行: | 第3行: | ||
=== Troubleshooting === | === Troubleshooting === | ||
==== Check IVTV is initialized ==== | ==== Check IVTV is initialized ==== | ||
− | |||
Run: | Run: | ||
<pre><nowiki> | <pre><nowiki> | ||
dmesg |grep Initialized | dmesg |grep Initialized | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
You should see something like: | You should see something like: | ||
<pre><nowiki> | <pre><nowiki> | ||
第18行: | 第16行: | ||
ivtv: Initialized WinTV PVR 250, card #0 | ivtv: Initialized WinTV PVR 250, card #0 | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
This is a good way to identify if the card even initially loaded. | This is a good way to identify if the card even initially loaded. | ||
− | |||
==== Testing Capture ==== | ==== Testing Capture ==== | ||
* After the driver is loaded, you can test it by doing a simple capture | * After the driver is loaded, you can test it by doing a simple capture | ||
第32行: | 第28行: | ||
</nowiki></pre> | </nowiki></pre> | ||
* See if you have some recorded content coming up in the test capture. | * See if you have some recorded content coming up in the test capture. | ||
− | |||
==== Poor Audio Quality on a PVR-500 ==== | ==== Poor Audio Quality on a PVR-500 ==== | ||
If you are encountering distorted audio, this is a known issue with certain versions of the ivtv driver (and is apparent in the windows driver too). Follow the directions below on this page to upgrade to a newer version. Thanks to jlr4u for verifying that this solved the problem. | If you are encountering distorted audio, this is a known issue with certain versions of the ivtv driver (and is apparent in the windows driver too). Follow the directions below on this page to upgrade to a newer version. Thanks to jlr4u for verifying that this solved the problem. | ||
If you encounter issues still, post in this thread: http://ubuntuforums.org/showthread.php?t=345655 | If you encounter issues still, post in this thread: http://ubuntuforums.org/showthread.php?t=345655 | ||
− | |||
==== Diagnosing Problems ==== | ==== Diagnosing Problems ==== | ||
* Check dmesg to see if there are any errors loading firmware or anything like that. | * Check dmesg to see if there are any errors loading firmware or anything like that. | ||
第42行: | 第36行: | ||
dmesg | tac | sed -n '/=\ \ END INIT IVTV\ \ =/,/== START INIT IVTV ==/p;/== START INIT IVTV ==/q' | tac | dmesg | tac | sed -n '/=\ \ END INIT IVTV\ \ =/,/== START INIT IVTV ==/p;/== START INIT IVTV ==/q' | tac | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
If you see any errors that are not covered below, go into #ubuntu and see if you can grab some help or post on the forums. | If you see any errors that are not covered below, go into #ubuntu and see if you can grab some help or post on the forums. | ||
− | |||
==== Errors during modprobe ==== | ==== Errors during modprobe ==== | ||
If you encounter errors similar to: | If you encounter errors similar to: | ||
第71行: | 第63行: | ||
</nowiki></pre> | </nowiki></pre> | ||
you will need to reinstall the running linux image. This can be caused by overwriting the modules necessary for ivtv to work. | you will need to reinstall the running linux image. This can be caused by overwriting the modules necessary for ivtv to work. | ||
− | |||
Reinstall the linux image: | Reinstall the linux image: | ||
<pre><nowiki> | <pre><nowiki> | ||
第77行: | 第68行: | ||
sudo depmod -a | sudo depmod -a | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
Follow the steps to rebuild the modules. | Follow the steps to rebuild the modules. | ||
− | |||
==== Resource allocation errors ==== | ==== Resource allocation errors ==== | ||
There are two possible solutions to resource allocation problems: | There are two possible solutions to resource allocation problems: | ||
* Be sure that you have enabled APIC on your machine's BIOS. This will guarantee enough resources are allocated for the device. | * Be sure that you have enabled APIC on your machine's BIOS. This will guarantee enough resources are allocated for the device. | ||
See http://ubuntuforums.org/showthread.php?t=284041 for more information. | See http://ubuntuforums.org/showthread.php?t=284041 for more information. | ||
− | |||
* Add <code><nowiki> vmalloc=192m </nowiki></code> to your kernel boot parameters. | * Add <code><nowiki> vmalloc=192m </nowiki></code> to your kernel boot parameters. | ||
− | |||
First make a copy of your old grub configuration. You should do this everytime you make an edit of grub. | First make a copy of your old grub configuration. You should do this everytime you make an edit of grub. | ||
<pre><nowiki> | <pre><nowiki> | ||
cp /boot/grub/menu.list /boot/grub/menu.list.backup | cp /boot/grub/menu.list /boot/grub/menu.list.backup | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
− | |||
Edit /boot/grub/menu.lst to add the <code><nowiki>vmalloc=192</nowiki></code> to the end of your kernel line: | Edit /boot/grub/menu.lst to add the <code><nowiki>vmalloc=192</nowiki></code> to the end of your kernel line: | ||
<pre><nowiki> | <pre><nowiki> | ||
第103行: | 第88行: | ||
boot | boot | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
− | |||
[[Include(Install_IVTV_Troubleshooting/PreFeisty)]] | [[Include(Install_IVTV_Troubleshooting/PreFeisty)]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 19:42的版本
点击翻译: |
English |
目录
Troubleshooting
Check IVTV is initialized
Run:
dmesg |grep Initialized
You should see something like:
ivtv: Initialized WinTV PVR 250, card #0 ivtv: Initialized WinTV PVR 350, card #1
This example shows two cards. If you only have one, you will see results similar to this:
ivtv: Initialized WinTV PVR 250, card #0
This is a good way to identify if the card even initially loaded.
Testing Capture
- After the driver is loaded, you can test it by doing a simple capture
cat /dev/video0 > /tmp/test_capture.mpg
Let this go for about 5 sec and then press <ctrl> + 'c'
- Attempt to play this back using your favorite media player. (mplayer for the example)
mplayer /tmp/test_capture.mpg
- See if you have some recorded content coming up in the test capture.
Poor Audio Quality on a PVR-500
If you are encountering distorted audio, this is a known issue with certain versions of the ivtv driver (and is apparent in the windows driver too). Follow the directions below on this page to upgrade to a newer version. Thanks to jlr4u for verifying that this solved the problem. If you encounter issues still, post in this thread: http://ubuntuforums.org/showthread.php?t=345655
Diagnosing Problems
- Check dmesg to see if there are any errors loading firmware or anything like that.
dmesg | tac | sed -n '/=\ \ END INIT IVTV\ \ =/,/== START INIT IVTV ==/p;/== START INIT IVTV ==/q' | tac
If you see any errors that are not covered below, go into #ubuntu and see if you can grab some help or post on the forums.
Errors during modprobe
If you encounter errors similar to:
sudo modprobe ivtv FATAL: Error inserting ivtv (/lib/modules/2.6.17-10-generic/ivtv/ivtv.ko): Unknown symbol in module, or unknown parameter (see dmesg)
and check dmesg
to see similar things to this:
[17182375.312000] ivtv: disagrees about version of symbol video_unregister_device [17182375.312000] ivtv: Unknown symbol video_unregister_device [17182375.312000] ivtv: disagrees about version of symbol video_device_alloc [17182375.312000] ivtv: Unknown symbol video_device_alloc [17182375.312000] ivtv: disagrees about version of symbol video_register_device [17182375.312000] ivtv: Unknown symbol video_register_device [17182375.312000] ivtv: disagrees about version of symbol video_device_release [17182375.312000] ivtv: Unknown symbol video_device_release [17182762.044000] ivtv: disagrees about version of symbol video_unregister_device [17182762.044000] ivtv: Unknown symbol video_unregister_device [17182762.044000] ivtv: disagrees about version of symbol video_device_alloc [17182762.044000] ivtv: Unknown symbol video_device_alloc [17182762.044000] ivtv: disagrees about version of symbol video_register_device [17182762.044000] ivtv: Unknown symbol video_register_device [17182762.044000] ivtv: disagrees about version of symbol video_device_release [17182762.044000] ivtv: Unknown symbol video_device_release
you will need to reinstall the running linux image. This can be caused by overwriting the modules necessary for ivtv to work. Reinstall the linux image:
sudo apt-get install --reinstall linux-image-`uname -r` sudo depmod -a
Follow the steps to rebuild the modules.
Resource allocation errors
There are two possible solutions to resource allocation problems:
- Be sure that you have enabled APIC on your machine's BIOS. This will guarantee enough resources are allocated for the device.
See http://ubuntuforums.org/showthread.php?t=284041 for more information.
- Add
vmalloc=192m
to your kernel boot parameters.
First make a copy of your old grub configuration. You should do this everytime you make an edit of grub.
cp /boot/grub/menu.list /boot/grub/menu.list.backup
Edit /boot/grub/menu.lst to add the vmalloc=192
to the end of your kernel line:
title Ubuntu, kernel 2.6.17-10-server root (hd0,0) kernel /boot/vmlinuz-2.6.17-10-server root=/dev/hda1 ro quiet splash vmalloc=192m initrd /boot/initrd.img-2.6.17-10-server quiet savedefault boot