MythTV General Discussion and Support

Discussion in 'Other Operating Systems' started by Dedge, Apr 10, 2007.

Tags:
  1. RILEYP

    RILEYP Member

    Joined:
    Jul 22, 2004
    Messages:
    1,107
    Location:
    Lara Vic
    Now your post looks like my post :tongue: And your right it will only work on new rules created after the setting is changed. I found this out the hard way... and forgot about it until Hamal's mention of it. I went through and deleted all rules and remade them. Good work Hamal for remembering the quirk ...:thumbup:
    cheers rileyp
     
  2. daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,057
    Location:
    Mt Gravatt E, BNE, QLD
  3. HyRax1

    HyRax1 ¡Viva la Resolutión!

    Joined:
    Jun 28, 2001
    Messages:
    7,764
    Location:
    At a desk
    Ubuntu 10.04 is still supported for another two years. If your setup is working right now, then there is currently no discernible benefit to upgrading to 12.04.

    If your server broke and you needed to rebuild it, then yeah - go to 12.04, but until then, just leave it.
     
  4. daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,057
    Location:
    Mt Gravatt E, BNE, QLD
    Is the version of mythtv in 12.04 newer than the Avenard repo? I've done a fresh install of 12.04 on my laptop and the frontend tells me that the version on the server needs to be upgraded and won't connect to the server; maybe I should just install the frontend version on my laptop from Avenard :p

    Hmm, how do I tell aptitude that I want to install an older version of a package, from a different repo...
     
  5. HyRax1

    HyRax1 ¡Viva la Resolutión!

    Joined:
    Jun 28, 2001
    Messages:
    7,764
    Location:
    At a desk
    Yes, 12.04 has MythTV 0.25 while 10.04 had 0.24. Mr Avenard has not yet produced a Precise repository yet, but no doubt he will soon.

    In general, I'd be looking at upgrading your MythTV setup to 0.25 anyway. That's what I'm working on today for myself.

    I've already tried using the Oneiric repo from Avenard on 12.04, but sadly there are some dependency issues (some of Precise's libraries are much newer than Lucid or even Oneiric, so installation fails as the dependency expects a specific version of a library here and there).
     
  6. daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,057
    Location:
    Mt Gravatt E, BNE, QLD
    Humm, I see. Well, if you do get it worked out, please let me know what repo you used :D

    No shows are scheduled to be recorded right now, so I was going to slip in a ninja upgrade while family are otherwise engaged :p
     
  7. HyRax1

    HyRax1 ¡Viva la Resolutión!

    Joined:
    Jun 28, 2001
    Messages:
    7,764
    Location:
    At a desk
    For now I'm just using the main Ubuntu repository. I'll switch it back to Avenard when his Precise repo is made.
     
  8. birdie

    birdie Member

    Joined:
    Jun 18, 2002
    Messages:
    2,733
    Location:
    Bundaberg, Queensland
    I did a clean install of 12.04 last night... :) so I'm using the main Ubuntu repository...

    What is Avenard? And what does if offer over the standard ubuntu repository?
     
  9. HyRax1

    HyRax1 ¡Viva la Resolutión!

    Joined:
    Jun 28, 2001
    Messages:
    7,764
    Location:
    At a desk
    Jean-Yves Avenard is a prominent Australian MythTV developer (well, he's French, but now lives in Australia) who made a big name for himself during the 0.23 and 0.24 development periods. He was one of the instrumental people who brought proper VDPAU support into MythTV and provided his own packages from his own repo.

    He now works directly with the MythTV development team, but many people still prefer to use his repositories.

    His personal website: http://www.avenard.org/media/Home.html
    His LinkedIn profile: http://www.linkedin.com/in/jeanyvesavenard
     
  10. Blinky

    Blinky Member

    Joined:
    Jul 4, 2001
    Messages:
    2,530
    Location:
    South TAS.
    It is Jean's (John's) last name in this case, a mythtv developer.

    possible early trunk code/advancements.

    If what you've got ain't broke don't fix it.

    Edit: beaten by the Hyrax1 - does he never sleep ???
     
    Last edited: May 6, 2012
  11. HyRax1

    HyRax1 ¡Viva la Resolutión!

    Joined:
    Jun 28, 2001
    Messages:
    7,764
    Location:
    At a desk
    Occasionally. ;)
     
  12. daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,057
    Location:
    Mt Gravatt E, BNE, QLD
    Well, I decided to go ahead and upgrade, so that I could have 0.25 and watch from my 12.04 laptop, and the IR receiver I want to put on the lounge frontend was recognized no problems on my laptop, but not on 10.04.

    And the upgrade on the backend has had a problem :( I've done a manual install of perl-base as per here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494106

    The upgrade has more problems, and dpkg --configure -a gives:

    Code:
    daehenoc@mythtv-server:~$ sudo dpkg --configure -a
    dpkg: dependency problems prevent configuration of libgcr-3-1:
     libgcr-3-1 depends on libgdk-pixbuf2.0-0 (>= 2.22.0); however:
      Package libgdk-pixbuf2.0-0 is not installed.
     libgcr-3-1 depends on libgtk-3-0 (>= 3.1.4); however:
      Package libgtk-3-0 is not installed.
     libgcr-3-1 depends on libgcr-3-common; however:
      Package libgcr-3-common is not installed.
    dpkg: error processing libgcr-3-1 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libxrender1:
     libxrender1 depends on libx11-6 (>= 2:1.4.99.1); however:
      Version of libx11-6 on system is 2:1.3.2-1ubuntu3.
    dpkg: error processing libxrender1 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libapt-pkg4.12:
     libapt-pkg4.12 depends on libstdc++6 (>= 4.6); however:
      Version of libstdc++6 on system is 4.4.3-4ubuntu5.1.
    dpkg: error processing libapt-pkg4.12 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of gnome-keyring:
     gnome-keyring depends on libgcr-3-1 (>= 3.2.2); however:
      Package libgcr-3-1 is not configured yet.
     gnome-keyring depends on libgtk-3-0 (>= 3.0.0); however:
      Package libgtk-3-0 is not installed.
     gnome-keyring depends on libcap2-bin; however:
      Package libcap2-bin is not installed.
    dpkg: error processing gnome-keyring (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libapt-inst1.4:
     libapt-inst1.4 depends on libapt-pkg4.12 (>= 0.8.16~exp12ubuntu10); however:
      Package libapt-pkg4.12 is not configured yet.
    dpkg: error processing libapt-inst1.4 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libgnome-keyring0:
     libgnome-keyring0 depends on libgnome-keyring-common (= 3.2.2-2); however:
      Package libgnome-keyring-common is not installed.
    dpkg: error processing libgnome-keyring0 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libcairo2:
     libcairo2 depends on libxrender1; however:
      Package libxrender1 is not configured yet.
    dpkg: error processing libcairo2 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of gvfs-backends:
     gvfs-backends depends on libgnome-keyring0 (>= 2.20.3); however:
      Package libgnome-keyring0 is not configured yet.
    dpkg: error processing gvfs-backends (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libgdu0:
     libgdu0 depends on libgnome-keyring0 (>= 2.22.2); however:
      Package libgnome-keyring0 is not configured yet.
    dpkg: error processing libgdu0 (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of libcairo-perl:
     libcairo-perl depends on libcairo2 (>= 1.10.0); however:
      Package libcairo2 is not configured yet.
    dpkg: error processing libcairo-perl (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of gvfs-daemons:
     gvfs-daemons depends on libgdu0 (>= 3.0.2); however:
      Package libgdu0 is not configured yet.
    dpkg: error processing gvfs-daemons (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of gvfs:
     gvfs depends on gvfs-daemons (>= 1.12.1-0ubuntu1); however:
      Package gvfs-daemons is not configured yet.
     gvfs depends on gvfs-daemons (<< 1.12.1-0ubuntu1.1~); however:
      Package gvfs-daemons is not configured yet.
    dpkg: error processing gvfs (--configure):
     dependency problems - leaving unconfigured
    Errors were encountered while processing:
     libgcr-3-1
     libxrender1
     libapt-pkg4.12
     gnome-keyring
     libapt-inst1.4
     libgnome-keyring0
     libcairo2
     gvfs-backends
     libgdu0
     libcairo-perl
     gvfs-daemons
     gvfs
    Damnit. I'm going to start searching for this problem, meantime has anyone else has this issue?

    Edit: manual installation of assorted packages as pointed out by 'dpkg --configure -a' seems to have resolved issues, restarting the upgrade...

    Edit edit: yay, upgrade seems to be proceeding OK :)

    Edit edit edit: all good! upgrade completed OK, was very slow to change channels, power cycle on the PlayTV tuners fixed that, phew!
     
    Last edited: May 6, 2012
  13. Oblong Cheese

    Oblong Cheese Member

    Joined:
    Aug 31, 2001
    Messages:
    10,574
    Location:
    Brisbane
    My guide data emptied itself since I upgraded to 12.04 - the missus isn't happy, neither The Voice nor Masterchef recorded! :eek: (nor did my MotoGP or V8SC!)

    Now it's time to get to the bottom of this. Anyone else experienced shepherd/mythfilldatabase unreliability since upgrading from 10.04?

    edit:
    Output from mythfilldatabase:

    Code:
    2012-05-07 10:13:40.202540 I  XMLTV config file is: /home/owen/.mythtv/HDTV-AU.xmltv
    2012-05-07 10:13:45.509844 E  Error in 1:1: unexpected end of file
    
    HDTV-AU.xmltv does not exist. I created a symlink with that name to ~/.shepherd/output.xmltv but I am still seeing the 'unexpected end of file' error. No obvious problems like wrong file permissions etc...

    edit: I just deleted my shepherd directory and started over. Seems to be working fine now!
     
    Last edited: May 7, 2012
  14. daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,057
    Location:
    Mt Gravatt E, BNE, QLD
    Hi all, I've got a problem with my new IR remote, sigh.

    I don't understand why irrecord works, but lircd does not! irrecord sees keypresses and I can create a lircd.conf file with irrecord, but when I use the same driver and device in the hardware.conf file, irw won't see any keypresses from lircd. Here are the command and file:
    Code:
    $sudo irrecord --driver=devinput --device=/dev/input/by-id/usb-FINTEK_eHome_Infrared_Transceiver_88636562727801-event-if00 VRC-1100
    This works just fine, irrecord sees the keypresses, I can name them and a file is created. (VRC-1100 copied to /etc/lirc/lircd.conf)
    Code:
    $ cat hardware.conf
    # /etc/lirc/hardware.conf
    #
    #Chosen Remote Control
    REMOTE="VRC-1100"
    REMOTE_MODULES=""
    REMOTE_DRIVER="devinput"
    REMOTE_DEVICE="/dev/input/by-id/usb-FINTEK_eHome_Infrared_Transceiver_88636562727801-event-if00"
    REMOTE_SOCKET=""
    REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
    REMOTE_LIRCD_ARGS=""
    
    #Enable lircd
    START_LIRCD="true"
    
    #Don't start lircmd even if there seems to be a good config file
    #START_LIRCMD="false"
    
    #Try to load appropriate kernel modules
    LOAD_MODULES="true"
    
    # Default configuration files for your hardware if any
    LIRCMD_CONF=""
    
    #Forcing noninteractive reconfiguration
    #If lirc is to be reconfigured by an external application
    #that doesn't have a debconf frontend available, the noninteractive
    #frontend can be invoked and set to parse REMOTE and TRANSMITTER
    #It will then populate all other variables without any user input
    #If you would like to configure lirc via standard methods, be sure
    #to leave this set to "false"
    FORCE_NONINTERACTIVE_RECONFIGURATION="false"
    START_LIRCMD=""
    I must be missing something, can anyone see the obvious problem with my above configuration?? Thanks!
     
  15. RILEYP

    RILEYP Member

    Joined:
    Jul 22, 2004
    Messages:
    1,107
    Location:
    Lara Vic
    1 Are you using the correct naming convention for the lircd.conf you are making?
    2 Have you got this in rc.local?
    Code:
    echo lirc > /sys/class/rc/rc0/protocols
    3 Are you restarting lirc each time you change something?
    I have been told that some of whats in hardware.conf isnt actually used and is deprecated. I'd try putting the lird.conf you have made in usr/share/lirc/remotes/devinput/ and name it whatever is in that folder.
    I had problems ages ago getting irsend to work when specifying lircd.confs in etc/hardware conf and even in the include list which is normally in /etc/lirc/lircd.conf that points to usr/share/lirc/remotes/yourremotename. I gave up in the end and put in usr/share/lirc/remotes and it worked what can I say?
    Heres mine anyway less the commented out stuff
    Code:
    REMOTE="Windows Media Center Transceivers/Remotes (all)"
    REMOTE_MODULES="lirc_dev mceusb"
    REMOTE_DRIVER=""
    REMOTE_DEVICE="/dev/lirc0"
    REMOTE_SOCKET=""
    REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
    REMOTE_LIRCD_ARGS=""
    TRANSMITTER_LIRCD_CONF="dish/general.conf"
    START_LIRCD="true"
    LOAD_MODULES="true"
    LIRCMD_CONF=""
    FORCE_NONINTERACTIVE_RECONFIGURATION="false"
    START_LIRCMD=""
    
    notice this line REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
    I have my lircd.conf that has my mceusb codes along with my projecter and yamaha reciever codes in that location and I can control those devices.. So lirc assumes its in /usr/share/remotes/ before you start.
    I think this is the auto generated mythbuntu hardware.conf too? I honesty cant remember.
    Differences between mine and your are
    Code:
    REMOTE="VRC-1100"
    REMOTE_MODULES=""
    REMOTE_DRIVER="devinput"
    REMOTE_DEVICE="/dev/input/by-id-rarara"
    REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
    cheers rileyp
    Edit I just ran dkpg-reconfigure lirc on my backend and selected a "device by path" like yours and it suggests the REMOTE_LIRCD_CONF="devinput/lircd.conf.devinput" meaning in /usr/share/devinput/lircd.conf.devinput
    So edit your hardware conf so it has REMOTE_LIRCD_CONF="devinput/lircd.conf.devinput" and dump the one you have made in there and rename it to suit
    Oh and my etc/lirc/lircd.conf now has in it
    Code:
    include "/usr/share/lirc/remotes/devinput/lircd.conf.devinput" 
    So make yours the same and then restart lirc and try irw
    I think that should sort it out.
     
    Last edited: May 9, 2012
  16. daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,057
    Location:
    Mt Gravatt E, BNE, QLD
    Thanks for the information, RILEYP, I literally haven't had time to have another stab at the receiver since I last posted. Once I do, I'll let you know how I go!
     
  17. daehenoc

    daehenoc Member

    Joined:
    Nov 4, 2005
    Messages:
    2,057
    Location:
    Mt Gravatt E, BNE, QLD
    Well, this is interesting. Interesting as in "May you live in interesting times" interesting.

    This remote is a VRC-1100, with HP branding on the receiver.

    Watching /var/log/syslog, I can see the following information when I plug the IR receiver in:
    Code:
    May 18 14:39:21 littlepot kernel: [   34.133486] usb 3-1: new full-speed USB device number 2 using xhci_hcd
    May 18 14:39:21 littlepot mtp-probe: checking bus 3, device 2: "/sys/devices/pci0000:00/0000:00:1c.5/0000:05:00.0/usb3/3-1"
    May 18 14:39:21 littlepot mtp-probe: bus: 3, device: 2 was not an MTP device
    May 18 14:39:21 littlepot kernel: [   34.202439] IR NEC protocol handler initialized
    May 18 14:39:21 littlepot kernel: [   34.204408] IR RC5(x) protocol handler initialized
    May 18 14:39:21 littlepot kernel: [   34.206538] IR RC6 protocol handler initialized
    May 18 14:39:21 littlepot kernel: [   34.208479] IR JVC protocol handler initialized
    May 18 14:39:21 littlepot kernel: [   34.210951] IR Sony protocol handler initialized
    May 18 14:39:21 littlepot kernel: [   34.213085] IR MCE Keyboard/mouse protocol handler initialized
    May 18 14:39:21 littlepot kernel: [   34.215808] lirc_dev: IR Remote Control driver registered, major 250 
    May 18 14:39:21 littlepot kernel: [   34.216133] IR LIRC bridge handler initialized
    May 18 14:39:21 littlepot kernel: [   34.233202] Registered IR keymap rc-rc6-mce
    May 18 14:39:21 littlepot kernel: [   34.233410] input: Media Center Ed. eHome Infrared Remote Transceiver (1934:5168) as /devices/pci0000:00/0000:00:1c.5/0000:05:00.0/usb3/3-1/3-1:1.0/rc/rc0/input15
    May 18 14:39:21 littlepot kernel: [   34.233552] rc0: Media Center Ed. eHome Infrared Remote Transceiver (1934:5168) as /devices/pci0000:00/0000:00:1c.5/0000:05:00.0/usb3/3-1/3-1:1.0/rc/rc0
    May 18 14:39:21 littlepot kernel: [   34.233819] input: MCE IR Keyboard/Mouse (mceusb) as /devices/virtual/input/input16
    May 18 14:39:21 littlepot kernel: [   34.234157] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
    May 18 14:39:22 littlepot kernel: [   34.408813] mceusb 3-1:1.0: Registered FINTEK eHome Infrared Transceiver with mce emulator interface version 2
    May 18 14:39:22 littlepot kernel: [   34.408820] mceusb 3-1:1.0: 0 tx ports (0x0 cabled) and 2 rx sensors (0x1 active)
    May 18 14:39:22 littlepot kernel: [   34.408873] usbcore: registered new interface driver mceusb
    Doing an 'ls -l' of /dev/input/by-id shows:
    Code:
    lrwxrwxrwx 1 root root 10 May 18 14:39 usb-FINTEK_eHome_Infrared_Transceiver_88636562727801-event-if00 -> ../event15
    I can record from the device like so:
    Code:
    $ sudo irrecord -H devinput -n -d /dev/input/by-id/usb-FINTEK_eHome_Infrared_Transceiver_88636562727801-event-if00 ORTEK_VRC-1100.remote
    Which gives some joy; buttons pressed give data to irrecord, yay! However, not all buttons work (about 2/3 work, the rest of the buttons, irrecord tells me after 10 seconds that no data was received) and as you can see from the file below, all button presses record the same IR code :(
    Code:
    $ cat ORTEK_VRC-1100.remote.try01 
    
    # Please make this file available to others
    # by sending it to <lirc@bartelmus.de>
    #
    # this config file was automatically generated
    # using lirc-0.9.0(devinput) on Fri May 18 14:05:47 2012
    #
    # contributed by 
    #
    # brand:                       ORTEK_VRC-1100.remote
    # model no. of remote control: 
    # devices being controlled by this remote:
    #
    
    begin remote
    
      name  ORTEK_VRC-1100.remote
      bits           56
      eps            30
      aeps          100
    
      one             0     0
      zero            0     0
      pre_data_bits   8
      pre_data       0x0
      gap          65993
      toggle_bit_mask 0x0
    
          begin codes
              HOMEPAGE                 0x04000400000040 0x00000000000000
              POWER                    0x04000400000040 0x00000000000000
              YELLOW                   0x04000400000040 0x00000000000000
              BLUE                     0x04000400000040 0x00000000000000
              GREEN                    0x04000400000040 0x00000000000000
              RED                      0x04000400000040 0x00000000000000
              TV                       0x04000400000040 0x00000000000000
              GUIDE                    0x04000400000040 0x00000000000000
              PICTURE                  0x04000400000040 0x00000000000000
              CD                       0x04000400000040 0x00000000000000
              FASTFORWARD              0x04000400000040 0x00000000000000
              PREV                     0x04000400000040 0x00000000000000
              NEXT                     0x04000400000040 0x00000000000000
              STOP                     0x04000400000040 0x00000000000000
              PAUSE                    0x04000400000040 0x00000000000000
              INFO                     0x04000400000040 0x00000000000000
              RIGHT                    0x04000400000040 0x00000000000000
              OK                       0x04000400000040 0x00000000000000
              BTN_RIGHT                0x04000400000040 0x00000000000000
              VOLUMEUP                 0x04000400000040 0x00000000000000
              VOLUMEDOWN               0x04000400000040 0x00000000000000
              CHANNELUP                0x04000400000040 0x00000000000000
              START                    0x04000400000040 0x00000000000000
              1                        0x04000400000040 0x00000000000000
              2                        0x04000400000040 0x00000000000000
              3                        0x04000400000040 0x00000000000000
              5                        0x04000400000040 0x00000000000000
              6                        0x04000400000040 0x00000000000000
              HASH                     0x04000400000040 0x00000000000000
              CLOSE                    0x04000400000040 0x00000000000000
              NTER                     0x04000400000040 0x00000000000000
          end codes
    
    end remote
    Here's my hardware.conf file:
    Code:
    $ cat /etc/lirc/hardware.conf
    # /etc/lirc/hardware.conf
    #
    #Chosen Remote Control
    REMOTE="hama_52451"
    REMOTE_MODULES=""
    REMOTE_DRIVER="devinput"
    REMOTE_DEVICE="/dev/input/by-id/usb-FINTEK_eHome_Infrared_Transceiver_88636562727801-event-if00"
    #REMOTE_SOCKET="/dev/lircd"
    REMOTE_SOCKET="/var/run/lirc/lircd"
    REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
    REMOTE_LIRCD_ARGS=""
    
    #Chosen IR Transmitter
    #TRANSMITTER="None"
    #TRANSMITTER_MODULES=""
    #TRANSMITTER_DRIVER="devinput"
    #TRANSMITTER_DEVICE="/dev/input/event8"
    #TRANSMITTER_SOCKET="/var/run/lirc/lircd"
    #TRANSMITTER_LIRCD_CONF="/etc/lirc/lircd.conf"
    #TRANSMITTER_LIRCD_ARGS="" 
    
    #Enable lircd
    START_LIRCD="true"
    
    #Don't start lircmd even if there seems to be a good config file
    #START_LIRCMD="false" 
    
    #Try to load appropriate kernel modules
    LOAD_MODULES="true" 
    
    # Default configuration files for your hardware if any
    LIRCMD_CONF=""
    
    FORCE_NONINTERACTIVE_RECONFIGURATION="false"
    START_LIRCMD=""
    lirc starts just fine, but when I copy the output file from irrecord to /etc/lirc/hardware.conf and stop/start the lircd daemon, and run irw, irw doesn't detect any keypresses via lircd :(

    I don't understand why irrecord can see the keypresses but they aren't shown when running irw. Does anyone have any suggestions?
     
  18. RILEYP

    RILEYP Member

    Joined:
    Jul 22, 2004
    Messages:
    1,107
    Location:
    Lara Vic
    Put the recorded file in /usr/share/lirc/remotes/yourremotenamesfolder/yourremotesnames-lircd.conf
    and make sure /etc/lircd.conf points to it and hardware.conf does as well but in hardware conf just the /yourremotenamesfolder/yourremotesnames-lircd.conf
    oh and try using lirc in raw mode to get individual codes and turn off the lights and close curtains to prevent additional ir getting in room
     
    Last edited: May 18, 2012
  19. kizzav

    kizzav Member

    Joined:
    Mar 10, 2005
    Messages:
    2,070
    Location:
    Sydney
    Right, it's the first time I've been back on here in a while.

    I've previously posted about issues I've had trying to delete old recordings, without success. Today, I tried to delete a whole whack of recordings, only to be met with the same issue.

    I've since discovered, a number of my recordings have different file permission owners, groups etc. The reason for this, they were old recordings from a previous system, under another owner & group name, hence why I can't delete them on the current system (the files were copied from one location/system to the current location/system).

    I've fiddled with some recordings that I've found the files to & have been able to successfully change the permissions & delete them from both MythTV & MythWeb.

    My only remaining problem now is, I have approx 270 files with this same issue remaining.

    Question 1 - How can I do a batch/mass file permission change for those 270 files?

    I've noticed that the files that have been created under the current system have different permissions, depending on the file type.

    Ie; The MPEG's have a read/write ownership, but a read only group. The thumbnails however, have read/write for ownership, group & other.

    Question 2 - Can changing all file permissions in the recordings folder cause harm to other/all files, if I changed them all to something like read/write for ownership, group & other?
     
  20. mike-s

    mike-s Member

    Joined:
    Dec 15, 2003
    Messages:
    1,865
    Location:
    Sydney, Australia
    change permissions: chmod
    example: chmod u+x,g-w,o-w file.blah ( u=user g=group o=other)
    Alternate options are to change absolute permissions by using the appropriate number (example)

    Alternatively if the owner is wrong, then it's "chown", as in "change owner"
    there are two parts to the permission, the owner and the group owner. It's possible that the uid of the appropriate owner has changed with the migration of the system.
    chmod user:group file(s) will sort that out. If you're unsure of the group then you can just use "cat /etc/passwd | grep username" and the first number after the x following the username is the userid on the system, and the next number is the group the user is a member of, then viewing /etc/group will give you the relevant name of the group for that user. On my dedicated system it's easy with just using "chown mythtv:mythtv file.nuv" as that is the only active user on my system that accesses the volume where my recordings are kept.
     

Share This Page