NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 3 4 5 6 7 … 34 Next »
Wake after Suspend issue with dvbt devices (LE12 Kodi 21)

 
  • 0 Vote(s) - 0 Average
Wake after Suspend issue with dvbt devices (LE12 Kodi 21)
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,648
Threads: 767
Joined: Nov 2003
#31
2024-02-08, 12:16 AM
I’ll recheck it.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,819
Threads: 954
Joined: May 2006
#32
2024-02-08, 12:27 AM
You might need to make it optional, if you release it fully the firmware might get uninstalled and need to be reinstalled with each use.

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,648
Threads: 767
Joined: Nov 2003
#33
2024-02-08, 12:32 AM
(2024-02-08, 12:13 AM)mvallevand Wrote: Sub, it is definitely not released. I don't have tuner's primed but if I want to use dvbv5-scan I have to kill the child process.
Do you know if there was anything more to it?

I just started DeviceHostLinux, started a stream. Confirmed dvbv5-scan indicated the device was busy/unavailable. Stopped the stream, leaving DeviceHostLinux running. dvbv5-scan was able to correctly scan and find the channels.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,648
Threads: 767
Joined: Nov 2003
#34
2024-02-08, 12:36 AM
I also checked by starting multiple channels (from the same frequency) at the same time, then slowly stopped each. After getting to the last one, it gave me these messages:

Quote:2024-02-08 13:34:24:438 [DEBUG] No more streams active.
2024-02-08 13:34:24:438 [DEBUG] Stopping device...
2024-02-08 13:34:24:438 [DEBUG] ~Adapter()
2024-02-08 13:34:24:438 [DEBUG] Adapter::Stop()
2024-02-08 13:34:24:438 [DEBUG] Stopped@1
2024-02-08 13:34:24:438 [DEBUG] Stopped


and then dvbv5-scan could run (even though DeviceHostLinux was still running)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,819
Threads: 954
Joined: May 2006
#35
2024-02-08, 01:15 AM
Perhaps after failure it is different. In any case ShadowMask's logs show that stop followed by the failure to lock after resume

Martin
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,648
Threads: 767
Joined: Nov 2003
#36
2024-02-08, 01:39 AM
I can least reproduce this issue: start channel, stop channel, DeviceHostLinux still running, "sudo systemctl suspend", wait 30 seconds, wake machine, attempt to start channel fails.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,648
Threads: 767
Joined: Nov 2003
#37
2024-02-08, 01:57 AM
Actually, I'm not convinced this is anything to do with NextPVR. I notice I can do a dvbv5-scan successfully a couple of times, then "sudo systemctl suspend", then try running dvbv5-scan again, and it has the same issue with not locking onto any signal. ie, no NextPVR in the mix.

If I unplug the stick, wait a few seconds, then plug it back in, the device appears to be working again, and dvbv5-scan can find channels.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,648
Threads: 767
Joined: Nov 2003
#38
2024-02-08, 02:09 AM
I know OP was using a PCIe card, so info might not help them (unless they find a PCI equivalent lspci etc), but...

I found comments from other users online saying their tuners weren't working after standby (using kodi with tvheadend), and they used usb-reset to get them working. I tried the same thing here, and it got my tuner working again.

Code:
graeme@Ubuntu-NUC11i3:~$ sudo systemctl suspend

graeme@Ubuntu-NUC11i3:~$ dvbv5-scan /usr/share/dvb/dvb-t/nz-WellingtonKaukau
Scanning frequency #1 578000000
       (0x00) Signal= 0.00dBm C/N= 30.00dB UCB= 0 postBER= 273x10^-3
Scanning frequency #2 562000000
       (0x00) Signal= 0.00dBm C/N= 30.00dB UCB= 0 postBER= 273x10^-3
Scanning frequency #3 594000000
       (0x00) Signal= 0.00dBm C/N= 30.00dB UCB= 0 postBER= 273x10^-3

graeme@Ubuntu-NUC11i3:~$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2040:0265 Hauppauge
Bus 001 Device 003: ID 8087:0026 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

graeme@Ubuntu-NUC11i3:~$ sudo usb-reset 2040:0265

graeme@Ubuntu-NUC11i3:~$ dvbv5-scan /usr/share/dvb/dvb-t/nz-WellingtonKaukau
Scanning frequency #1 578000000
Lock   (0x1f) C/N= 28.25dB UCB= 0 postBER= 1.00
Service TVNZ 1, provider TVNZ: reserved
Service TVNZ 2, provider TVNZ: reserved
Service TVNZ DUKE, provider TVNZ: reserved
Service TVNZ 1 +1, provider TVNZ: reserved
Service TVNZ 2 +1, provider TVNZ: reserved
Service TVNZ DUKE+1, provider TVNZ: reserved
...
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,819
Threads: 954
Joined: May 2006
#39
2024-02-08, 07:52 AM (This post was last modified: 2024-02-08, 07:52 AM by mvallevand.)
(2024-02-07, 03:06 PM)ShadowMask Wrote: I removed my kodi service addon to make sure that wasn't doing the restarts then created /storage/.config/sleep.d and put the following script in there as nextpvr.power:

Code:
#!/bin/sh

SERVICE="service.nextpvr"

case "$1" in
  pre)
    if systemctl is-active "$SERVICE" &>/dev/null ; then
      systemctl stop "$SERVICE"
    fi
    ;;
  post)
    if systemctl is-enabled "$SERVICE" &>/dev/null ; then
      systemctl start "$SERVICE"
    fi
    ;;
esac


The power script works fine and I can now playback and record after suspend. I will try it with timed recordings throughout the week.

Interestingly, despite having tvheadend installed and it working fine with suspend, I had no sleep.d and had to create it, but it all seems to be working now.

Great that is the script i hoped would work and I will include it.  I am not sure where TVHeadend.power is ending up.  I will need to check with LE team once I have access to Slack etc after my vacation where it goes during packaging.

Martin
ShadowMask
Offline

Member

Posts: 58
Threads: 3
Joined: Apr 2019
#40
2024-02-08, 09:08 AM (This post was last modified: 2024-02-08, 09:08 AM by ShadowMask.)
(2024-02-08, 07:52 AM)mvallevand Wrote: Great that is the script i hoped would work and I will include it. I am not sure where TVHeadend.power is ending up.  I will need to check with LE team once I have access to Slack etc after my vacation where it goes during packaging.

Yes, that works for sorting the suspend/resume on my system, thank you for pointing me in the right direction.

I can see sleep.d in addons\service.tvheadend43\sleep.d within kodi, I'm not sure where else to look in linux itself but is it possible it is being run directly from there somehow?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Guide data issue using NextPVR in a Proxmox LXC njc 10 801 2025-03-23, 01:40 PM
Last Post: njc
  Kodi Addon not connecting on server if vpn on sgar75 1 232 2025-01-27, 12:44 PM
Last Post: mvallevand
  Recording Plyback Timeline Issue JeffH 11 598 2025-01-17, 03:20 PM
Last Post: mvallevand
  Not Waking From Suspend dumfy 6 1,358 2024-12-04, 06:56 AM
Last Post: Evo_Evz
  Wake on suspend for recording flyingsubs 15 4,414 2024-12-03, 01:07 PM
Last Post: mvallevand
  Pi5 / Firefox 128.0 - ctrl key in devices screen does not work TheRealRoland 4 614 2024-08-02, 07:26 PM
Last Post: TheRealRoland
  "Unexpected error scanning for other devices" BlackJack 2 718 2023-07-15, 03:03 PM
Last Post: BlackJack
  Request for supporting Ceton devices on Linux dapharsyde 280 39,350 2023-04-02, 12:34 AM
Last Post: run088
  Yay! DST issue :-( TheRealRoland 3 715 2023-03-12, 04:45 PM
Last Post: mvallevand
  Recent streaming issue with Matt Huisman Aus TV streams ballfam 74 10,698 2023-03-08, 10:35 PM
Last Post: mvallevand

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode