Re: [mythtv-users] Re: Long pause when launching mythfrontend

2005-10-14 Thread Greg Grotsky
Yup Paul, you nailed it on the head.  I traced it all the way back
to where the cdrecord command gets called from the code.  Then I
tried runnning is as they do (and as you quoted).   And of
course it paused.  I got it working by adjusting my
/etc/default/cdrecord file and now it starts up flawlessly.  Thank
you for your help, even though I didn't listen to it well enough. :)

-Greg


I had problems with cdrecord --scanbus on my system, took a good 15 seconds to complete, I think mythmusic uses this on startup.

Try running 'cdrecord --scanbus' from the console to see how long it takes.

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Long pause when launching mythfrontend

2005-10-13 Thread Greg Grotsky
Okay, I figured out that the "MusicGeneralSettings" function is really
just like the different pages in "General Setup" on the mythmusic setup
page.  So I divide and conquered it and determined that this line
is the one that's killing me:

    general2->addChild(CDWriterDevice());

I'm guessing it's the line that's linking up the CD Writer device to ATA:0,0,0 (how it's set in general settings menu2)

However, it looks correct and the logs don't show anything, even with -v all option.  How can I further troubleshoot?

Thanks,
-Greg
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Long pause when launching mythfrontend

2005-10-13 Thread Greg Grotsky
I know, it's been a long time but this problems been killin' me. 
I dug into it a little where Paul suggested and I found out that if I
comment out the following lines it loads up very quickly like it should:

(section of code found in mythmusic/main.cpp)

int mythplugin_init(const char *libversion)
{
    if (!gContext->TestPopupVersion("mythmusic", libversion,
   
MYTH_BINARY_VERSION))
    return -1;

    UpgradeMusicDatabaseSchema();

//    MusicGeneralSettings general;
//    general.load();
//    general.save();
    MusicPlayerSettings settings;
    settings.load();
    settings.save();
    MusicRipperSettings ripper;
    ripper.load();
    ripper.save();

    setupKeys();

    Decoder::SetLocationFormatUseTags();

    return 0;
}

I tried to understand what was going on in the MusicGeneralSettings
function or whatever it is, but I'm totally lost.  I'm afraid if I
comment something out in there I'll bust the works.  The
commenting out of MusicGeneralSettings makes sense because the pause
also happens when I go into the "General Settings" menu for
mythmusic.  It seems there's a problem with setting or loading the
General Settings on my system.  I've tried changing my audio
device, directory for songs, CD device but without any luck.  Any
ideas for further troubleshooting?

Thanks,
-Greg
On 9/6/05, Stutty <[EMAIL PROTECTED]> wrote:
If scanbus completes straight away then it isn't that. It doesn't looklike there is much logging in mythmusic, so I can only suggest you
look through the 'mythplugin_init' code - I assume this is the bitthat runs when the plugin registers? It is in mythmusic/main.cpp andsee if there is anything that might be tripping up.

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Long pause when launching mythfrontend

2005-09-05 Thread Stutty
On 9/6/05, Greg Grotsky <[EMAIL PROTECTED]> wrote:
> Paul, thanks for the response.  I tried out cdrecord --scanbus, it completes 
> right away and it finds both my hard drives (SATA) but there are no CD 
> drives.  If I point it specifically at my cddrive (/dev/hda) it also 
> completes immediately and finds the drive.  Any more suggestions?  Here's the 
> output if your interested:
>  

If scanbus completes straight away then it isn't that. It doesn't look
like there is much logging in mythmusic, so I can only suggest you
look through the 'mythplugin_init' code - I assume this is the bit
that runs when the plugin registers? It is in mythmusic/main.cpp and
see if there is anything that might be tripping up.

Paul
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Long pause when launching mythfrontend

2005-09-05 Thread Greg Grotsky
Paul, thanks for the response.  I tried out cdrecord --scanbus, it
completes right away and it finds both my hard drives (SATA) but there
are no CD drives.  If I point it specifically at my cddrive
(/dev/hda) it also completes immediately and finds the drive.  Any
more suggestions?  Here's the output if your interested:

# cdrecord --scanbus dev=/dev/hda
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Joerg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
  and thus may have bugs that are not present in the original version.
  Please send bug reports and support requests to <[EMAIL PROTECTED]>.
  The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.12.5-Aug_19th
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: '/dev/hda'
devname: '/dev/hda'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'ubuntu-0.8ubuntu1'.
cdrecord: Warning: using inofficial version of libscg
(ubuntu-0.8ubuntu1 '@(#)scsitransp.c  1.91
04/06/17 Copyright 1988,1995,2000-2004 J. Schilling').
scsibus0:
   
0,0,0 0) 'LITE-ON ' 'DVDRW SOHW-1633S' 'BS0R'
Removable CD-ROM
    0,1,0 1) *
    0,2,0 2) *
    0,3,0 3) *
    0,4,0 4) *
    0,5,0 5) *
    0,6,0 6) *
    0,7,0 7) *



# cdrecord --scanbus
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Joerg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord
  and thus may have bugs that are not present in the original version.
  Please send bug reports and support requests to <[EMAIL PROTECTED]>.
  The original author should not be bothered with problems of this version.

cdrecord: Warning: Running on Linux-2.6.12.5-Aug_19th
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
Linux sg driver version: 3.5.33
Using libscg version 'ubuntu-0.8ubuntu1'.
cdrecord: Warning: using inofficial version of libscg
(ubuntu-0.8ubuntu1 '@(#)scsitransp.c  1.91
04/06/17 Copyright 1988,1995,2000-2004 J. Schilling').
scsibus0:
   
0,0,0 0) 'ATA ' 'Maxtor
6Y250M0  ' 'YAR5' Disk
    0,1,0 1) *
    0,2,0 2) *
    0,3,0 3) *
    0,4,0 4) *
    0,5,0 5) *
    0,6,0 6) *
    0,7,0 7) *
scsibus1:
    1,0,0   100)
'ATA ' 'Maxtor 6Y250M0  ' 'YAR5' Disk
    1,1,0   101) *
    1,2,0   102) *
    1,3,0   103) *
    1,4,0   104) *
    1,5,0   105) *
    1,6,0   106) *
    1,7,0   107) *

It's interesting that cdrecord labels SATA0 scsibus0 and IDE0 scsibus0
also.  I don't know if that's an issue but I've always had it like
this.  I seems that ever since the mythmusic media handler was
implemented I have had this problem.

Thanks,
-GregOn 9/5/05, Stutty <[EMAIL PROTECTED]> wrote:
I had problems with cdrecord --scanbus on my system, took a good 15 seconds to complete, I think mythmusic uses this on startup.



Try running 'cdrecord --scanbus' from the console to see how long it takes.

Paul 

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


Re: [mythtv-users] Re: Long pause when launching mythfrontend

2005-09-05 Thread Stutty
On 8/26/05, Greg Grotsky <[EMAIL PROTECTED]> wrote:
Has anyone had this issue, or know how to fix it?  It's definetly aproblem in mythmusic because I can build and install mythpluginswithout mythmusic and the frontend loads very quickly, if I build andinstall it with mythmusic, then it pauses for 20 seconds just before
spitting out the line "Registering MythMusic Media Handler as a mediahandler".
I had problems with cdrecord --scanbus on my system, took a good 15 seconds to complete, I think mythmusic uses this on startup.

Try running 'cdrecord --scanbus' from the console to see how long it takes.

Paul 

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] Re: Long pause when launching mythfrontend

2005-08-25 Thread Greg Grotsky
Has anyone had this issue, or know how to fix it?  It's definetly a
problem in mythmusic because I can build and install mythplugins
without mythmusic and the frontend loads very quickly, if I build and
install it with mythmusic, then it pauses for 20 seconds just before
spitting out the line "Registering MythMusic Media Handler as a media
handler".

Thanks,
-Greg

On 8/19/05, Greg Grotsky <[EMAIL PROTECTED]> wrote:
> More info:
> 
>   So I figure it must be with the line: "Registering MythMusic Media
> Handler as a media handler" since it is directly after the other lines
> which didn't seem to solve to problem.  As, I am poking around in the
> music settings I noticed that entering the "General Settings" menu
> takes nearly as long as the startup pause.  I think the problem is
> with something new in MythMusic.
> 
> -Greg
>
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] Re: Long pause when launching mythfrontend

2005-08-19 Thread Greg Grotsky
More info:

  So I figure it must be with the line: "Registering MythMusic Media
Handler as a media handler" since it is directly after the other lines
which didn't seem to solve to problem.  As, I am poking around in the
music settings I noticed that entering the "General Settings" menu
takes nearly as long as the startup pause.  I think the problem is
with something new in MythMusic.

-Greg
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users