Syslog Error: cdrom: This disc doesn't have any tracks I recognize!

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
pefdus Offline
Junior Member
Posts: 10
Joined: Apr 2008
Reputation: 0
Post: #11
Found the offender

rbuckland@saxon:/usr/src/linux-source-2.6.22$ find . -type f | xargs -l1 grep -H "This disc doesn't have any tracks I recognize"
./drivers/cdrom/cdrom.c: cdinfo(CD_WARNING,"This disc doesn't have any tracks I recognize!\n");


It is in the function for requesting the status of the device, obviously XBMC is polling the cdrom to see what it is, but when there is no DVD/cd, it gets the response.

The function being called is

static int cdrom_ioctl_disc_status(struct cdrom_device_info *cdi)


I recompiled the driver (commented out the line), But I suspect that Ubuntu has compiled this cdrom driver into the kernel as replacing has not worked.

anyways .. one for the road :-)
find quote
topfs2 Offline
Team-XBMC Developer
Posts: 3,825
Joined: Dec 2007
Reputation: 8
Post: #12
Yeah we poll it quite often, it have been discussed changing this behaviour but from what I know it's hard to get it crossplattform.

I have commited a change which should only poll for new Info of the CD if it really have changed, like closed an opened tray.

Please svn up and try, it's a bit shoot in the dark but it seems to fit your debugging

If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote
althekiller Offline
Team-XBMC Developer
Posts: 4,701
Joined: May 2004
Reputation: 12
Post: #13
I can confirm this fixed. It only spams once at startup and for each tray state change now.
find quote
topfs2 Offline
Team-XBMC Developer
Posts: 3,825
Joined: Dec 2007
Reputation: 8
Post: #14
pefdus Wrote:Found the offender

rbuckland@saxon:/usr/src/linux-source-2.6.22$ find . -type f | xargs -l1 grep -H "This disc doesn't have any tracks I recognize"
./drivers/cdrom/cdrom.c: cdinfo(CD_WARNING,"This disc doesn't have any tracks I recognize!\n");


It is in the function for requesting the status of the device, obviously XBMC is polling the cdrom to see what it is, but when there is no DVD/cd, it gets the response.

The function being called is

static int cdrom_ioctl_disc_status(struct cdrom_device_info *cdi)


I recompiled the driver (commented out the line), But I suspect that Ubuntu has compiled this cdrom driver into the kernel as replacing has not worked.

anyways .. one for the road :-)

Just so this doesn't go unnoticed, thanx ALOT for such helpfull information. Not that I estimate any end-user being able to make such a detailed information but it was that information I needed, great work!
You get a goldstar Smile

If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote
blubyu Offline
Junior Member
Posts: 49
Joined: Jan 2008
Reputation: 0
Post: #15
In another thread there was a discussion about the library mode being very slow for some users. It was finally determined that the slowness came from users who didn't have a cd/dvd rom connected. The system was constantly polling the cd/dvd rom but since it wasn't there it was slow. Do you think the above fix would fix that problem? I have all my media on hard drives and I have no use for a cd/dvd rom. I would like to be able to run my box without an optical drive. I fully understand that I am in the minority but it would be great if I could disconnect it.
find quote
topfs2 Offline
Team-XBMC Developer
Posts: 3,825
Joined: Dec 2007
Reputation: 8
Post: #16
Nah I don't think this will help very much as we still poll for tray status (open/closed). But it might speed up abit.

I had no time testing this for real but I have commited a fix which "should" according to documentation skip the Polling completely if we don't have a drive.

So please svn update and try it out Smile

If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


[Image: badge.gif]

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
find quote
blubyu Offline
Junior Member
Posts: 49
Joined: Jan 2008
Reputation: 0
Post: #17
I just svn'd up (build 12734). I shutdown and unplugged my dvd rom and then rebooted. I went into library mode and everything seems as snappy as ever Smile Very nice Big Grin
find quote
Post Reply