![]() |
|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
||||
|
||||
I forked and cloned the git repo. I successfully ran ./buildall.sh. I moved my current installation. I laid down the new .tar.gz that I built. I copied my Wiz.bin and Sage.properties files into the new installation folder. I installed the .deb. I copied in the Gentuner object and my script. I started Sage...
Same thing. It core dumps when I try to use the Generic Tuner and It core dumps when I stop recording with the HDPVR. I watched all of "Ride Along" with the HDPVR and everything was cool until I hit stop. Then it core dumped again. |
#22
|
||||
|
||||
Just for fun I decided to see if SageTV would run as a normal user. I created a sagetv user and group. chown'd everything to the new user (including the media directories and files). Changed /var/run/sagetv.pid to /var/tmp/sagetv.pid in the start and stop scripts. Then I added "su sagetv -c" in the /etc/init.d/sagetv where it calls the start and stop scripts. It seemed to run fine as a non-root user. I did get a "warning: -XX:ThreadPriorityPolicy requires root privilege on Linux" from java. My HDHomeRuns recorded and played back just fine. Everything seemed to work. Until I tried to add my HDPVR as a source. It looks like SageTV needs root to control the HDPVR. So I changed it back to root. |
#23
|
|||
|
|||
I have not used v9 yet, but I have a pretty simple script that executes channel changes for me using cURL:
Code:
#!/bin/bash chanraw=$2 useSTB=$1 # printf 'Enter the Video Source Designation: ' # read useSTB # printf 'Enter the channel: ' # read chanraw case $useSTB in DSS1) IPVAL="31" ;; DSS2) IPVAL="32" ;; DSS3) IPVAL="33" ;; DSS4) IPVAL="34" ;; DSS5) IPVAL="35" ;; DSS6) IPVAL="36" ;; *) IPVAL="37" ;; esac if [ $chanraw -gt 999 ]; then chanpre=${chanraw:1:3} chansub=${chanraw:4:1} tunecmd=http://192.168.1.$IPVAL:8080/tv/tune?major=$chanpre"&"minor=$chansub else tunecmd=http://192.168.1.$IPVAL:8080/tv/tune?major=$chanraw fi wget -q -O \dev\null $tunecmd echo chanraw: $chanraw >TuneHold.txt echo chanpre: $chanpre >>TuneHold.txt echo chansub: $chansub >>TuneHold.txt echo tunecmd: $tunecmd >>TuneHold.txt echo useSTB: $useSTB >>TuneHold.txt |
#24
|
||||
|
||||
I wrote a script that uses curl as well. The problem is that SageTV crashes any time it calls the Generic Tuner plugin. I think it's an issue with the 64bit build of SageTV. It also crashes if I select the Firewire Tuner plugin.
|
#25
|
||||
|
||||
Quote:
![]() Hopefully Jeff can take a look at your crash report and provide some feedback.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#26
|
||||
|
||||
I'd gladly run 32bit if it solved these issues. I don't have a V7 Linux license (though I have multiple windows licenses) and I haven't seen anyone post a 32bit build of V9.
|
#27
|
||||
|
||||
So I installed the V7 32bit version and dropped in the Sage.jar from the windows installation section of the V9 FAQ. It's now changing channels perfectly without crashing. It's also no longer crashing when I stop recording with the HDPVR.
I'll keep my 64bit version around in case Jeff wants to troubleshoot these issues and needs someone to test. |
#28
|
||||
|
||||
Now that it's working, I converted it back to a non-root sagetv user. I had to add the user to the 'video' group to give it access to the HDPVR.
|
#29
|
|||
|
|||
Geez, 64 bit and tuning seem to not fit together well. Firewire drivers don't exist for 64 bit so if you go to a 64 bit OS your days of tuning via firewire have come to an end - at least that is the case on Windows.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#30
|
|||
|
|||
Quote:
I'm going to do more testing later tonight and I'll let you know how it goes.
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7 |
#31
|
|||
|
|||
For anyone not following the other thread related to HD-PVR crashes on 64-bit Linux, the following code commit should fix that as well as the tuner plugin crashes:
https://github.com/google/sagetv/pull/75
__________________
Server: HP DL380 G6, VMware ESXi 5.0 with HW passthrough for USB and Firewire, 4 x HD-PVR, ZFS storage SageTV: Production: 7.1.9+Java 1.6.0_32 on XP, Test: 9.0.4.291+Java 1.8.0_72 on Linux 64-bit Clients: 2 x Sage HD200 Extender, 1 x Sage HD100 Extender Sources: 4 x Motorola DCH-3200 (firewire channel changing), HD Homerun Prime, OpenDCT 0.5.7 |
#32
|
||||
|
||||
This script is working well for me turak - thanks for sharing!
One thing I have noticed on some other threads is that the genie mini can be controlled via HTTP also - just need an extra parameter to the url. Code:
&clientAddr=MAC_ADDRESS_OF_GENIE_MINI" btl. Quote:
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#33
|
|||
|
|||
That's good to know. Unfortunately, the 4K capable (C61K) mini client is HDMI video out only, so if one is looking for a client to do double duty as a Sage STB then the earlier versions are better options ...
|
#34
|
||||
|
||||
Quote:
|
#35
|
||||
|
||||
Quote:
Anyone have any advice for a novice linux guy?
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60 Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup. |
#36
|
||||
|
||||
Quote:
Code:
cp gentuner.LOCAL gentuner https://github.com/jwittkoski/GenericTunerPlugin
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#37
|
||||
|
||||
Quote:
Maybe there is an issue with my script?
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60 Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup. |
#38
|
||||
|
||||
Quote:
If you have some linux experience you can run the docker container in interactive mode (ie, ssh into your server, and then run the docker command... Code:
# docker exec -ti stuckless-sagetv-server-java8 /bin/bash this gives you a shell into your sagetv environment. Code:
# cd /opt/saget/server/ # ./gentuner REMOTES
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#39
|
||||
|
||||
Quote:
Any advice on keeping the permissions in order? Setting as root doesn't sound like the best idea.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60 Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup. |
#40
|
||||
|
||||
What was the permission issue? The whole container runs as "nobody" and the permissions are set to nobody when the container starts. Just wondering what your specific issue was... maybe I need to tweak something there.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
External Command Tuner Plugin for Linux | stuckless | SageTV Linux | 36 | 05-16-2017 03:11 PM |
Plugin Request: Run external command on error | tedson | SageTV v7 Customizations | 10 | 06-14-2010 07:32 PM |
Adding custom command for launching external program | dinki | SageMC Custom Interface | 14 | 01-22-2010 08:16 AM |
Getting the status after running an external command | pedz25 | SageMC Custom Interface | 0 | 04-05-2009 06:55 AM |
Fail to launch PowerDVD Ultra as external command | basset | SageTV Customizations | 4 | 12-20-2007 11:59 AM |