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 :-)
Syslog Error: cdrom: This disc doesn't have any tracks I recognize!
pefdus
Junior Member Posts: 10 Joined: Apr 2008 Reputation: 0 |
2008-04-17 19:53
Post: #11
|
| find quote |
topfs2
Team-XBMC Developer Joined: Dec 2007 Reputation: 8 |
2008-04-18 01:20
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. ![]() "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
Team-XBMC Developer Joined: May 2004 Reputation: 12 |
2008-04-18 23:11
Post: #13
I can confirm this fixed. It only spams once at startup and for each tray state change now.
Howto post your problem in a useful manner. #xbmc-linux on FreeNode XBMC online-manual, FAQ, search, forum rules, how to submit a bugreport. |
| find quote |
topfs2
Team-XBMC Developer Joined: Dec 2007 Reputation: 8 |
2008-04-18 23:12
Post: #14
pefdus Wrote:Found the offender 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
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. ![]() "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
Junior Member Joined: Jan 2008 Reputation: 0 |
2008-04-19 00:20
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
Team-XBMC Developer Joined: Dec 2007 Reputation: 8 |
2008-04-19 01:33
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
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. ![]() "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
Junior Member Joined: Jan 2008 Reputation: 0 |
2008-04-19 04:40
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
Very nice
|
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/149/badge.gif)
Search
Help