Bug 371190 - Kaffeine 2.0.4 doesn't scan DVB-S
Summary: Kaffeine 2.0.4 doesn't scan DVB-S
Status: RESOLVED WORKSFORME
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: 2.0.5
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-18 20:06 UTC by arnaud
Modified: 2017-12-02 08:58 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
scanfile.dvb (14.03 KB, video/vnd.dvb.file)
2017-01-28 10:07 UTC, wgbuchholz
Details
config.dvb (620 bytes, video/vnd.dvb.file)
2017-01-28 10:07 UTC, wgbuchholz
Details
error.log (77.35 KB, text/plain)
2017-01-28 10:11 UTC, wgbuchholz
Details
attachment-29088-0.html (1.92 KB, text/html)
2017-10-06 17:50 UTC, knossos456
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arnaud 2016-10-18 20:06:53 UTC
Hi,
on  my Fedora24, Kaffeine 1.2.2 is able to scan DVB-S and I can watch TV.
After an update to Kaffeine 2.0.4 the scanning of the channels nearly immediately stops after the start and the channels list stays empty.

Reproducible: Always

Steps to Reproduce:
1. fedora 24 (gnome or KDE - problem on both)
2. installation of the current Kaffeine (2.0.4) via rpm
3. configure TV => device => Astra 19,2E on LNB1 
4. channels => scan

Actual Results:  
The scan of the channels nearly immediately stops after the start and the channels list stays empty.
Tried with AtlanticBird3 5W on LNB2 isn't scaned too.

Expected Results:  
List of channels available.

$ kaffeine -d --dumpdvb
18-10-16 21:03:57.371 [Debug   ] Using libVLC with args: --no-video-title-show
18-10-16 21:03:57.487 [Info    ] Using built-in dvb device manager
18-10-16 21:03:57.689 [Debug   ] supports lnb UNIVERSAL
18-10-16 21:03:57.689 [Debug   ] supports lnb DBS
18-10-16 21:03:57.689 [Debug   ] supports lnb EXTENDED
18-10-16 21:03:57.689 [Debug   ] supports lnb STANDARD
18-10-16 21:03:57.689 [Debug   ] supports lnb ENHANCED
18-10-16 21:03:57.689 [Debug   ] supports lnb C-BAND
18-10-16 21:03:57.690 [Debug   ] supports lnb C-MULT
18-10-16 21:03:57.690 [Debug   ] supports lnb DISHPRO
18-10-16 21:03:57.690 [Debug   ] supports lnb 110BS
18-10-16 21:03:57.690 [Info    ] Found dvb device P13d0210313d02103: Conexant CX24123/CX24109
18-10-16 21:04:02.770 [Debug   ] Device Conexant CX24123/CX24109 (/dev/dvb/adapter0/frontend0) capabilities:
18-10-16 21:04:02.770 [Debug   ]      CAN_FEC_1_2
18-10-16 21:04:02.771 [Debug   ]      CAN_FEC_2_3
18-10-16 21:04:02.771 [Debug   ]      CAN_FEC_3_4
18-10-16 21:04:02.771 [Debug   ]      CAN_FEC_4_5
18-10-16 21:04:02.771 [Debug   ]      CAN_FEC_5_6
18-10-16 21:04:02.771 [Debug   ]      CAN_FEC_6_7
18-10-16 21:04:02.771 [Debug   ]      CAN_FEC_7_8
18-10-16 21:04:02.771 [Debug   ]      CAN_FEC_AUTO
18-10-16 21:04:02.771 [Debug   ]      CAN_INVERSION_AUTO
18-10-16 21:04:02.771 [Debug   ]      CAN_QPSK
18-10-16 21:04:02.771 [Debug   ]      CAN_RECOVER
18-10-16 21:04:02.771 [Debug   ] DVB API Version 5.10, Current v5 delivery system: DVBS
18-10-16 21:04:02.771 [Debug   ] Supported delivery system: 
18-10-16 21:04:02.771 [Debug   ]     [DVBS]
18-10-16 21:04:02.772 [Debug   ] Use other NIT is disabled
18-10-16 21:04:02.772 [Debug   ] Transponder 0/1
18-10-16 21:04:02.772 [Debug   ] Using LNBf type UNIVERSAL
18-10-16 21:04:02.772 [Debug   ] tune to: S 12551500 V 22000000 5/6
18-10-16 21:04:02.772 [Debug   ] DiSEqC VOLTAGE: 13
18-10-16 21:04:02.772 [Debug   ] DiSEqC TONE: OFF
18-10-16 21:04:02.788 [Debug   ] DiSEqC command: e0 10 38 f5 
18-10-16 21:04:02.937 [Debug   ] DiSEqC BURST: SEC_MINI_B
18-10-16 21:04:03.039 [Debug   ] DiSEqC TONE: ON
18-10-16 21:04:04.498 [Debug   ] tuning failed on 12551.50 MHz
18-10-16 21:04:04.498 [Debug   ] Transponder 1/1
18-10-16 21:04:04.500 [Debug   ] DiSEqC VOLTAGE: OFF

I had a look at this bug: https://bugs.kde.org/show_bug.cgi?id=366302 but it didn't help me to get Kaffeine 2.0.4 scanning DVB-S.

Thank you.
Bye Arnaud
Comment 1 Martin Weinelt 2016-11-06 11:20:19 UTC
I agree that #366302 is not fixed yet. On 2.0.5 I get the following log, when starting to scan for channels:

% kaffeine -d --dumpdvb
06-11-16 12:15:02.127 [Debug   ] Using libVLC with args:
--no-video-title-show
06-11-16 12:15:02.295 [Info    ] Using built-in dvb device manager
06-11-16 12:15:02.874 [Warning ] Unsupported transmission type: 4
06-11-16 12:15:02.874 [Debug   ] supports lnb UNIVERSAL
06-11-16 12:15:02.874 [Debug   ] supports lnb DBS
06-11-16 12:15:02.874 [Debug   ] supports lnb EXTENDED
06-11-16 12:15:02.874 [Debug   ] supports lnb STANDARD
06-11-16 12:15:02.874 [Debug   ] supports lnb ENHANCED
06-11-16 12:15:02.874 [Debug   ] supports lnb C-BAND
06-11-16 12:15:02.874 [Debug   ] supports lnb C-MULT
06-11-16 12:15:02.874 [Debug   ] supports lnb DISHPRO
06-11-16 12:15:02.874 [Debug   ] supports lnb 110BS
06-11-16 12:15:02.874 [Info    ] Found dvb device P18224e35153b1179:
STB0899 Multistandard
06-11-16 12:15:06.303 [Debug   ] Device STB0899 Multistandard
(/dev/dvb/adapter0/frontend0) capabilities:
06-11-16 12:15:06.303 [Debug   ]      CAN_2G_MODULATION
06-11-16 12:15:06.303 [Debug   ]      CAN_FEC_AUTO
06-11-16 12:15:06.303 [Debug   ]      CAN_INVERSION_AUTO
06-11-16 12:15:06.304 [Debug   ]      CAN_QPSK
06-11-16 12:15:06.304 [Debug   ] DVB API Version 5.10, Current v5 delivery
system: DVBS
06-11-16 12:15:06.304 [Debug   ] Supported delivery systems:
06-11-16 12:15:06.304 [Debug   ]     [DVBS]
06-11-16 12:15:06.304 [Debug   ]      DVBS2
06-11-16 12:15:06.304 [Debug   ]      DSS
06-11-16 12:15:06.304 [Debug   ] Use other NIT is disabled
06-11-16 12:15:06.304 [Debug   ] Transponder 0/1
06-11-16 12:15:06.304 [Debug   ] Using LNBf type UNIVERSAL
06-11-16 12:15:06.304 [Debug   ] tune to: S 12551500 V 22000000 5/6
06-11-16 12:15:06.304 [Debug   ] DiSEqC VOLTAGE: 13
06-11-16 12:15:06.305 [Debug   ] DiSEqC TONE: OFF
06-11-16 12:15:06.320 [Debug   ] DiSEqC command: e0 10 38 f5
06-11-16 12:15:06.447 [Debug   ] DiSEqC BURST: SEC_MINI_B
06-11-16 12:15:06.511 [Debug   ] DiSEqC TONE: ON
06-11-16 12:15:08.090 [Debug   ] tuning failed on 12551.50 MHz
06-11-16 12:15:08.091 [Debug   ] Transponder 1/1
06-11-16 12:15:08.091 [Debug   ] DiSEqC VOLTAGE: OFF

Looks very similar.
Comment 2 knossos456 2016-11-19 16:15:57 UTC
Same here with lowest C/N and V2.05
was ok with v1.22, perhaps AGC problem ?
Comment 3 Mauro Carvalho Chehab 2016-12-27 18:15:33 UTC
(In reply to knossos456 from comment #2)
> Same here with lowest C/N and V2.05
> was ok with v1.22, perhaps AGC problem ?

I double-checked the logic: Kaffeine doesn't check if the signal
is too weak for DVB-S/S2. I suspect that this bug is, instead,
related to a DiSEqC bug, as I got a report that Kaffeine is not
sending the right command to the DiSEqC switch. I'll need to
investigate it further. Unfortunately, right now, I don't have
any environment to test DiSEqC.
Comment 4 Mauro Carvalho Chehab 2016-12-28 20:04:21 UTC
(In reply to Mauro Carvalho Chehab from comment #3)
> (In reply to knossos456 from comment #2)
> > Same here with lowest C/N and V2.05
> > was ok with v1.22, perhaps AGC problem ?
> 
> I double-checked the logic: Kaffeine doesn't check if the signal
> is too weak for DVB-S/S2. I suspect that this bug is, instead,
> related to a DiSEqC bug, as I got a report that Kaffeine is not
> sending the right command to the DiSEqC switch. I'll need to
> investigate it further. Unfortunately, right now, I don't have
> any environment to test DiSEqC.

I applied some patches today meant to fix Kaffeine. Unfortunately, there's a bug also at libdvbv5. So, you need to update libdvbv5 too, from upstream, in order to be able to test it.
Comment 5 arnaud 2016-12-31 17:37:32 UTC
good news,
but unfortunately I'm not able to deal with upstream.......
so I can't test.
Can somebody do it?
Comment 6 wgbuchholz 2017-01-28 10:07:01 UTC
Created attachment 103678 [details]
scanfile.dvb
Comment 7 wgbuchholz 2017-01-28 10:07:59 UTC
Created attachment 103679 [details]
config.dvb
Comment 8 wgbuchholz 2017-01-28 10:11:40 UTC
Created attachment 103680 [details]
error.log
Comment 9 wgbuchholz 2017-01-28 10:14:23 UTC
(In reply to Mauro Carvalho Chehab from comment #4)
> (In reply to Mauro Carvalho Chehab from comment #3)
> > (In reply to knossos456 from comment #2)
> > > Same here with lowest C/N and V2.05
> > > was ok with v1.22, perhaps AGC problem ?
> > 
> > I double-checked the logic: Kaffeine doesn't check if the signal
> > is too weak for DVB-S/S2. I suspect that this bug is, instead,
> > related to a DiSEqC bug, as I got a report that Kaffeine is not
> > sending the right command to the DiSEqC switch. I'll need to
> > investigate it further. Unfortunately, right now, I don't have
> > any environment to test DiSEqC.
> 
> I applied some patches today meant to fix Kaffeine. Unfortunately, there's a
> bug also at libdvbv5. So, you need to update libdvbv5 too, from upstream, in
> order to be able to test it.

I have made a test with v4-utils-1.12.2 (libdvbv5) and kaffeine-2.0.5-1.
The scan seems to be scanning across all LNB's (four), searching for the same transponder which is defined in 'scanfile.dvb', regardless the satellite name. See attachments.
Comment 10 Mauro Carvalho Chehab 2017-02-15 12:14:50 UTC
(In reply to wgbuchholz from comment #9)
> (In reply to Mauro Carvalho Chehab from comment #4)
> > (In reply to Mauro Carvalho Chehab from comment #3)
> > > (In reply to knossos456 from comment #2)
> > > > Same here with lowest C/N and V2.05
> > > > was ok with v1.22, perhaps AGC problem ?
> > > 
> > > I double-checked the logic: Kaffeine doesn't check if the signal
> > > is too weak for DVB-S/S2. I suspect that this bug is, instead,
> > > related to a DiSEqC bug, as I got a report that Kaffeine is not
> > > sending the right command to the DiSEqC switch. I'll need to
> > > investigate it further. Unfortunately, right now, I don't have
> > > any environment to test DiSEqC.
> > 
> > I applied some patches today meant to fix Kaffeine. Unfortunately, there's a
> > bug also at libdvbv5. So, you need to update libdvbv5 too, from upstream, in
> > order to be able to test it.
> 
> I have made a test with v4-utils-1.12.2 (libdvbv5) and kaffeine-2.0.5-1.
> The scan seems to be scanning across all LNB's (four), searching for the
> same transponder which is defined in 'scanfile.dvb', regardless the
> satellite name. See attachments.

There were some bugs at libdvbv5 with regards to support for multi-LO LNBf devices like the Universal type. It was fixed this Monday.

Could you please test again, compiling v4l-utils from its source? You can get its source from its master repository with:

   git clone git://linuxtv.org/v4l-utils.git

and build/install it with:

   ./bootstrap.sh && configure && make && sudo make install
Comment 11 wgbuchholz 2017-03-15 17:01:30 UTC
(In reply to Mauro Carvalho Chehab from comment #10)
> (In reply to wgbuchholz from comment #9)
> > (In reply to Mauro Carvalho Chehab from comment #4)
> > > (In reply to Mauro Carvalho Chehab from comment #3)
> > > > (In reply to knossos456 from comment #2)
> > > > > Same here with lowest C/N and V2.05
> > > > > was ok with v1.22, perhaps AGC problem ?
> > > > 
> > > > I double-checked the logic: Kaffeine doesn't check if the signal
> > > > is too weak for DVB-S/S2. I suspect that this bug is, instead,
> > > > related to a DiSEqC bug, as I got a report that Kaffeine is not
> > > > sending the right command to the DiSEqC switch. I'll need to
> > > > investigate it further. Unfortunately, right now, I don't have
> > > > any environment to test DiSEqC.
> > > 
> > > I applied some patches today meant to fix Kaffeine. Unfortunately, there's a
> > > bug also at libdvbv5. So, you need to update libdvbv5 too, from upstream, in
> > > order to be able to test it.
> > 
> > I have made a test with v4-utils-1.12.2 (libdvbv5) and kaffeine-2.0.5-1.
> > The scan seems to be scanning across all LNB's (four), searching for the
> > same transponder which is defined in 'scanfile.dvb', regardless the
> > satellite name. See attachments.
> 
> There were some bugs at libdvbv5 with regards to support for multi-LO LNBf
> devices like the Universal type. It was fixed this Monday.
> 
> Could you please test again, compiling v4l-utils from its source? You can
> get its source from its master repository with:
> 
>    git clone git://linuxtv.org/v4l-utils.git
> 
> and build/install it with:
> 
>    ./bootstrap.sh && configure && make && sudo make install

Hello, I've made the test. The changes in libdvbv5 did not solve the problem of the DiSEqC commands.
In one search for a special satellite the address of lnb must not change, but it does! The address is changing over all four positions f8, f9, fa and fb.

Thank you for your support!
Comment 12 Mauro Carvalho Chehab 2017-10-04 12:12:19 UTC
(In reply to wgbuchholz from comment #11)
> (In reply to Mauro Carvalho Chehab from comment #10)

> Hello, I've made the test. The changes in libdvbv5 did not solve the problem
> of the DiSEqC commands.
> In one search for a special satellite the address of lnb must not change,
> but it does! The address is changing over all four positions f8, f9, fa and
> fb.
> 
> Thank you for your support!

Could you provide mode details? What's that "special satellite"? What versions of libdvbv5 and Kaffeine you're using? Please enable Kaffeine debug logs and attach.
Comment 13 knossos456 2017-10-06 17:50:37 UTC
Created attachment 108209 [details]
attachment-29088-0.html

HI,
In fact the problem diden't comes from Kaffeine but from STB0899 driver.
The driver won't lock with low c/n ( the driver from technotrend / windows
does on the same machine)
I have made a setup with vlc and correct syntax -> same problem.
I've loaded the driver in verbose mode to analyse this ...

I 'll try to contact the writer of the driver  Manu Abraham via gmail

2017-10-04 14:12 GMT+02:00 Mauro Carvalho Chehab <bugzilla_noreply@kde.org>:

> https://bugs.kde.org/show_bug.cgi?id=371190
>
> --- Comment #12 from Mauro Carvalho Chehab <mchehab+kde@kernel.org> ---
> (In reply to wgbuchholz from comment #11)
> > (In reply to Mauro Carvalho Chehab from comment #10)
>
> > Hello, I've made the test. The changes in libdvbv5 did not solve the
> problem
> > of the DiSEqC commands.
> > In one search for a special satellite the address of lnb must not change,
> > but it does! The address is changing over all four positions f8, f9, fa
> and
> > fb.
> >
> > Thank you for your support!
>
> Could you provide mode details? What's that "special satellite"? What
> versions
> of libdvbv5 and Kaffeine you're using? Please enable Kaffeine debug logs
> and
> attach.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
>
Comment 14 Mauro Carvalho Chehab 2017-12-02 08:58:15 UTC
(In reply to knossos456 from comment #13)
> Created attachment 108209 [details]
> attachment-29088-0.html
> 
> HI,
> In fact the problem diden't comes from Kaffeine but from STB0899 driver.
> The driver won't lock with low c/n ( the driver from technotrend / windows
> does on the same machine)
> I have made a setup with vlc and correct syntax -> same problem.
> I've loaded the driver in verbose mode to analyse this ...

Ok. I'll then close this BZ, as there's nothing we can do to fix a driver-specific issue on Kaffeine.

One thing you could do on Kaffeine, though, is to increase the timeout at the device's config. Giving more time for the algorithm to lock sometimes solve issues with low C/N.