LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-27-2017, 10:02 PM   #1
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Rep: Reputation: 66
need help getting tv tuner working


Would like to get a Hauppauge WinTV-dualHD Model 01595 (USB device ID 2040:026d) for some reason my usb device id is 2040:826d.

https://www.linuxtv.org/wiki/index.p...e_WinTV-dualHD

Also goes by 955D which is difficult to find on linuxtv.org and not much info on getting it to work. sounds like some kernels need patches. I am running kernel 4.13.7
Havent been able to find out if patches have been included into newer kernel.

Using Slackware 14.2 multi lib 32bit/64bit system primarily 64bit AMD FX 8 core cpu 16gb ddr.

What do I use to view tv. Seems to be variety of programs but webpages all look old.
One thing I looked at required VLC which has a ton of dependencies at slackbuilds.

looked at xawtv followed by linuxtv.org.

Anybody know of any guides that might help me?

Last edited by mrapathy; 12-27-2017 at 10:06 PM.
 
Old 12-27-2017, 10:30 PM   #2
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Kaffeine works well with DVB-T: https://www.linuxtv.org/wiki/index.php/Kaffeine

And do a favor yourself and decide if really x86_64 is for you and dare to go pure 64. IF not, better use 32 bits all the way.

Last edited by Darth Vader; 12-27-2017 at 11:12 PM.
 
1 members found this post helpful.
Old 12-27-2017, 10:35 PM   #3
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
I am only familiar with over the air (OTA) with DVB-T/ATSC. Been a while since I looked into this.

Xine, MPlayer, VLC, and Kaffiene support TV cards. First scan the spectrum and create a configuration file so the apps know which channels exist and the associated frequencies. I used something called dvb-apps that contains a command called dvbscan. I no longer remember the details but I was then able to create a channels.conf file that both Xine and MPlayer recognized. I have been using those channels.conf files for many years and have not tinkered since. I think VLC used to use the same file but that changed with recent versions.

Kaffiene can scan and find channels. The configuration file is similar but not directly compatible with channels.conf. Kaffiene is available at slackbuilds.org.

I use SMPlayer as a GUI app to view channels on my computer.

If your card is working then you should see /dev/dvb/adapter0 and /dev/dvb/adapter1 on your system.

For using your capture card with cable or satellite, others will have to pipe in and help.
 
1 members found this post helpful.
Old 12-27-2017, 11:22 PM   #4
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Original Poster
Rep: Reputation: 66
Thanks for the replies. I am going for over the air broadcast.

Kaffiene requires vlc according to slackbuilds unless someone knows where I can find some packages that allows me to bypass all the dependencies.

apparently I dont have /dev/dvb so I am guessing I dont have card installed.

I would go pure 64bit but I like playing old games with WINE
 
Old 12-28-2017, 03:35 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
VLC without external dependencies (install the package and it works) because all those dependencies have been built into the package: https://slackware.nl/people/alien/re...ackbuilds/vlc/
 
1 members found this post helpful.
Old 12-28-2017, 09:18 AM   #6
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Original Poster
Rep: Reputation: 66
Thanks Alien Bob

now if I could just get the drivers working for my tuner
 
Old 12-28-2017, 09:21 AM   #7
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Quote:
Kaffiene requires vlc according
Interesting. Kaffeine used to use Xine as the backend.

Quote:
apparently I dont have /dev/dvb so I am guessing I dont have card installed.
Yeah, nothing will work until the kernel establishes a device node.

According to the link you provided, looks like support for the device is somewhat scattered.

The Slackware 14.2 4.4.88 kernel has support for the chipset:

/lib/modules/4.4.88/kernel/drivers/media/dvb-frontends/si2168.ko

Looks like a newer kernel is needed to obtain full support and possibly manual patching too. An additional firmware package as well, which would be downloaded to /lib/firmware.

Quote:
I would go pure 64bit but I like playing old games with WINE
Yes, use whatever suits your needs.
 
1 members found this post helpful.
Old 12-28-2017, 01:30 PM   #8
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Kaffeine works well as a simple player, but if you look for a complete experience, then go for a tvheadend + Kodi combo, even having them running on the same system. tvheadend gives you a ton of features and Kodi is just splendid.

On your unsupported USB Tuner:
There are confirmed issues with USB DVB adapters starting with the 4.9.x kernel, I'm also stuck with 4.4.50, take a look here:
https://www.linuxquestions.org/quest...6/#post5750317

Therefore, I'd suggest to go for this (out of your link from the original post):
A kernel patch for the support of both tuners can be found at https://forum.libreelec.tv/thread-2867.html . The thread refers to a patch file for kernel 4.2.5 downloadable at https://www.dropbox.com/s/qkw7fn7y9s...ch.tar.xz?dl=0

I'd also suggest to try building the latest media tree, you might be lucky to get it already patched. If not, you can patch it yourself with the instructions above. I'm always doing this for my unsupported Technisat DVB adapter and it just works fine.

Here are some hints / instructions to help you on the way:

- make sure you have the exact kernel version with uname -a
- use that and substitute wherever you find EXACT-KERNEL-VERSION

- get the kernel headers source (use slackpkg install kernel-source-EXACT-KERNEL-VERSION) for your running kernel and obtain the current kernel .config file:

Code:
modprobe configs
cp /proc/config.gz /usr/src/linux-headers-EXACT-KERNEL-VERSION
rmmod configs
cd /usr/src/linux-headers-EXACT-KERNEL-VERSION
gunzip config.gz
mv config .config
- prepare thee kernel headers source tree:
Code:
cd /usr/src/linux-headers-EXACT-KERNEL-VERSION
make oldconfig
make prepare
make modules_prepare
- backup your current /lib/modules & /lib/firmware
Code:
cd /lib/
tar -czvpf firmware-modules-back.tgz firmware/ modules/
- to restore them after a failed attempt
Code:
cd /lib/
rm -rf firmware/
rm -rf modules/
tar -xzvpf firmware-modules-back.tgz
/sbin/depmod -a EXACT-KERNEL-VERSION
shutdown -r now

- for compiling media tree you'll need patch-utils and two perl dependecies:

1. patch-utils
slackpkg install patch
2. PCRE - Perl Compatible Regular Expressions:
http://www.pcre.org/
slackpkg install pcre
3. perl module DateTime::TimeZone (try not to update cpan itself, it'll take ages )
Code:
perl -MCPAN -e shell
cpan> install DateTime::TimeZone
cpan> quit
Media Tree download, PATCHING and compilation. My approach is to start the media tree build script, follow the progress and run my own patch script in a second tty at the time the build script finishes downloading and extracting the driver/firmware archives.
Code:
mkdir /kit
cd /kit
git clone git://linuxtv.org/media_build.git
cd media_build/
./build
# HERE you need to focus and look after the section below - "Start building" - and execute in a second tty your patch script
make install
/sbin/depmod -a EXACT-KERNEL-VERSION
shutdown -r now
Media Tree section you need to wait for and execute your patch script in a second tty (be quick!):
Code:
******************
* Start building *
******************
make -C /kit/media_build/v4l allyesconfig
make[1]: Entering directory '/kit/media_build/v4l'
No version yet, using 4.4.50-v7+
make[2]: Entering directory '/kit/media_build/linux'
Applying patches for kernel 4.4.50-v7+

Just for inspiration, here is how I patch my stb0899_drv.c tuner file:
- cat patch.sh
Code:
#!/bin/bash
#Patching stb0899
rm /kit/media_build/linux/drivers/media/dvb-frontends/stb0899_drv.c
cp /kit/DVB-WORKS/stb0899_drv-PATCHED_OK.c /kit/media_build/linux/drivers/media/dvb-frontends/stb0899_drv.c

Obviously you can use Ctrl-Z to suspend the execution, manually run your patches commands in the same tty and then issue a fg command to resume the build script - many times I broke things by doing this, that's why I'm not using it anymore. Or, modify the media tree build script and insert your own patches, this should be the most elegant solution.

Have fun!
 
1 members found this post helpful.
Old 12-28-2017, 07:00 PM   #9
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Original Poster
Rep: Reputation: 66
Quote:
Originally Posted by abga View Post
Kaffeine works well as a simple player, but if you look for a complete experience, then go for a tvheadend + Kodi combo, even having them running on the same system. tvheadend gives you a ton of features and Kodi is just splendid.

On your unsupported USB Tuner:
There are confirmed issues with USB DVB adapters starting with the 4.9.x kernel, I'm also stuck with 4.4.50, take a look here:
https://www.linuxquestions.org/quest...6/#post5750317

Therefore, I'd suggest to go for this (out of your link from the original post):
A kernel patch for the support of both tuners can be found at https://forum.libreelec.tv/thread-2867.html . The thread refers to a patch file for kernel 4.2.5 downloadable at https://www.dropbox.com/s/qkw7fn7y9s...ch.tar.xz?dl=0

I'd also suggest to try building the latest media tree, you might be lucky to get it already patched. If not, you can patch it yourself with the instructions above. I'm always doing this for my unsupported Technisat DVB adapter and it just works fine.

Here are some hints / instructions to help you on the way:

- make sure you have the exact kernel version with uname -a
- use that and substitute wherever you find EXACT-KERNEL-VERSION

- get the kernel headers source (use slackpkg install kernel-source-EXACT-KERNEL-VERSION) for your running kernel and obtain the current kernel .config file:

Code:
modprobe configs
cp /proc/config.gz /usr/src/linux-headers-EXACT-KERNEL-VERSION
rmmod configs
cd /usr/src/linux-headers-EXACT-KERNEL-VERSION
gunzip config.gz
mv config .config
- prepare thee kernel headers source tree:
Code:
cd /usr/src/linux-headers-EXACT-KERNEL-VERSION
make oldconfig
make prepare
make modules_prepare
- backup your current /lib/modules & /lib/firmware
Code:
cd /lib/
tar -czvpf firmware-modules-back.tgz firmware/ modules/
- to restore them after a failed attempt
Code:
cd /lib/
rm -rf firmware/
rm -rf modules/
tar -xzvpf firmware-modules-back.tgz
/sbin/depmod -a EXACT-KERNEL-VERSION
shutdown -r now

- for compiling media tree you'll need patch-utils and two perl dependecies:

1. patch-utils
slackpkg install patch
2. PCRE - Perl Compatible Regular Expressions:
http://www.pcre.org/
slackpkg install pcre
3. perl module DateTime::TimeZone (try not to update cpan itself, it'll take ages )
Code:
perl -MCPAN -e shell
cpan> install DateTime::TimeZone
cpan> quit
Media Tree download, PATCHING and compilation. My approach is to start the media tree build script, follow the progress and run my own patch script in a second tty at the time the build script finishes downloading and extracting the driver/firmware archives.
Code:
mkdir /kit
cd /kit
git clone git://linuxtv.org/media_build.git
cd media_build/
./build
# HERE you need to focus and look after the section below - "Start building" - and execute in a second tty your patch script
make install
/sbin/depmod -a EXACT-KERNEL-VERSION
shutdown -r now
Media Tree section you need to wait for and execute your patch script in a second tty (be quick!):
Code:
******************
* Start building *
******************
make -C /kit/media_build/v4l allyesconfig
make[1]: Entering directory '/kit/media_build/v4l'
No version yet, using 4.4.50-v7+
make[2]: Entering directory '/kit/media_build/linux'
Applying patches for kernel 4.4.50-v7+

Just for inspiration, here is how I patch my stb0899_drv.c tuner file:
- cat patch.sh
Code:
#!/bin/bash
#Patching stb0899
rm /kit/media_build/linux/drivers/media/dvb-frontends/stb0899_drv.c
cp /kit/DVB-WORKS/stb0899_drv-PATCHED_OK.c /kit/media_build/linux/drivers/media/dvb-frontends/stb0899_drv.c

Obviously you can use Ctrl-Z to suspend the execution, manually run your patches commands in the same tty and then issue a fg command to resume the build script - many times I broke things by doing this, that's why I'm not using it anymore. Or, modify the media tree build script and insert your own patches, this should be the most elegant solution.

Have fun!
My system didnt like the first bit of code with /proc/config.gz and /usr/src/linux-headers-version

Dont know what to think. Think I might just hold off and see if support kernel gets better.

Thanks for the replies everyone.
 
Old 12-28-2017, 08:11 PM   #10
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@mrapathy

You shouldn't get demotivated by some inadvertence on my side. I mistakenly pointed you towards /usr/src/linux-headers-version instead of /usr/src/linux/EXACT-KERNEL-VERSION, because you don't really need the whole kernel source tree but just the headers for compiling media_tree. Don't know if Slackware supports / has a way to get only the headers, I've never played with the kernel provided by Slackware but on re-compilations I took the official one from kernel.org
Again, use /usr/src/linux/EXACT-KERNEL-VERSION in my instructions above.

On the /proc/config.gz issue, you might not need that at all if you already have the .config file in your /usr/src/linux/EXACT-KERNEL-VERSION

I think the hardest part will be to check the media_tree if it's patched, understand / accommodate / apply the patches.
 
Old 12-29-2017, 06:14 AM   #11
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by abga View Post
@mrapathy

You shouldn't get demotivated by some inadvertence on my side. I mistakenly pointed you towards /usr/src/linux-headers-version instead of /usr/src/linux/EXACT-KERNEL-VERSION, because you don't really need the whole kernel source tree but just the headers for compiling media_tree. Don't know if Slackware supports / has a way to get only the headers, I've never played with the kernel provided by Slackware but on re-compilations I took the official one from kernel.org
Again, use /usr/src/linux/EXACT-KERNEL-VERSION in my instructions above.

On the /proc/config.gz issue, you might not need that at all if you already have the .config file in your /usr/src/linux/EXACT-KERNEL-VERSION

I think the hardest part will be to check the media_tree if it's patched, understand / accommodate / apply the patches.
It's /usr/src/linux-EXACT-KERNEL-VERSION by the way.
And Slackware installs a "kernel-headers" package which is tied to the version of glibc on the system. The kernel-headers are installed into /usr/include instead of in /usr/src/. And for compiling 3rd-party kernel modules, you actually need the kernel source code, not just its headers.
 
1 members found this post helpful.
Old 12-29-2017, 12:09 PM   #12
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@Alien Bob

Thank you for the inputs and for trying to help the OP on subject (need help getting tv tuner working).
I'm lately hacking under Slackware only on ARM with the kernel from Raspbian (slightly different paths) and translated the instructions for the X86 without double-checking first. My Bad. Thanks again for the correction.

Again, on subject, building media_tree requires only the kernel headers and obviously the key files: .config and Module.symvers
Having the entire Kernel source tree doesn't harm either.
https://www.linuxtv.org/wiki/index.p..._Requrirements

Last edited by abga; 12-29-2017 at 12:11 PM. Reason: typo
 
1 members found this post helpful.
Old 01-13-2018, 01:44 PM   #13
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
@mrapathy

I've provided incomplete information about the capabilities of Slackware and some other Slacker might read this thread and get confused. AlienBob was right, although only from a maintainer/developer point of view - regarding the headers as needed by glibc and not as a minimal requested part of the kernel source tree, Slackware doesn't have an automated way to provide only the kernel headers from the kernel source tree, that's why you need the whole kernel source tree in order to recompile these media drivers (media_build) and patch your driver. The media_build script will download all the updated media_tree drivers sources and firmware (which are part of the kernel BTW) by itself in its working directory, it doesn't need the sources from the kernel but only the header files from the kernel source tree. Therefore, get the whole kernel source tree on Slackware, that's the only way unfortunately.
 
Old 01-13-2018, 03:27 PM   #14
mrapathy
Member
 
Registered: Nov 2005
Distribution: Slackware,Debian
Posts: 366

Original Poster
Rep: Reputation: 66
Okay
 
Old 01-13-2018, 09:16 PM   #15
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,363
Blog Entries: 28

Rep: Reputation: 6150Reputation: 6150Reputation: 6150Reputation: 6150Reputation: 6150Reputation: 6150Reputation: 6150Reputation: 6150Reputation: 6150Reputation: 6150Reputation: 6150
This is a bit of a different direction, but you can find a lot of useful information about various tuner cards at the MythTV wiki.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finally Got my Tuner working...BUT hellmet Linux - Hardware 0 05-26-2006 06:33 AM
Please! Why my PCMCIA TV tuner not working?? OLEGHA Linux - Laptop and Netbook 0 02-17-2006 05:24 AM
WintvGo+ tuner not working pierre-luc Linux - Hardware 0 12-17-2005 11:37 PM
Is it possible to get a USB TV Tuner working? sw67 Linux - Hardware 2 07-15-2005 11:42 AM
HOW TO get All in Wonder 9000 TV tuner working in RH 9 manthis Linux - Hardware 18 07-11-2004 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration