This forum will soon be archived and you won't be able to interact with it anymore. Please use KDE Discuss instead.
Reply to topic

CD Dvd drive not working in KDE 4.5.x

User avatar tushargok
Registered Member
Posts
13
Karma
0
OS
I'm having trouble in KDE 4.5.3 in reading CDROM. I've a dual layer drive attached to my HP Pavilion dv6-2150us notebook. My drive works perfectly well under Windows 7 with same CD's however If I boot back into KUbuntu CD does not mount. Most of my CD's are data CD's with mp3 files on it. Also strange thing is I do not have any entry in /etc/fstab for the CD/DVD drive. In the same drive if I insert a KUbuntu 10.10 CD then it works perfectly fine!

Here is a log from /var/log/message when a CD is inserted into drive.

Nov 13 20:05:22 kde4-laptop kernel: [ 1288.365224] sr 1:0:0:0: [sr0] Unhandled sense code
Nov 13 20:05:22 kde4-laptop kernel: [ 1288.365229] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Nov 13 20:05:22 kde4-laptop kernel: [ 1288.365234] sr 1:0:0:0: [sr0] Sense Key : Hardware Error [current]
Nov 13 20:05:22 kde4-laptop kernel: [ 1288.365240] sr 1:0:0:0: [sr0] Add. Sense: Timeout on logical unit
Nov 13 20:05:22 kde4-laptop kernel: [ 1288.365246] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 04 c2 f0 00 00 02 00
Nov 13 20:05:22 kde4-laptop kernel: [ 1288.429041] sr 1:0:0:0: [sr0] Unhandled sense code
Nov 13 20:05:22 kde4-laptop kernel: [ 1288.429046] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Nov 13 20:05:22 kde4-laptop kernel: [ 1288.429050] sr 1:0:0:0: [sr0] Sense Key : Medium Error [current]
Nov 13 20:05:22 kde4-laptop kernel: [ 1288.429056] sr 1:0:0:0: [sr0] Add. Sense: L-EC uncorrectable error
Nov 13 20:05:22 kde4-laptop kernel: [ 1288.429061] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 04 c2 f0 00 00 02 00
Nov 13 20:05:28 kde4-laptop kernel: [ 1294.864414] sr 1:0:0:0: [sr0] Unhandled sense code
Nov 13 20:05:28 kde4-laptop kernel: [ 1294.864420] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Nov 13 20:05:28 kde4-laptop kernel: [ 1294.864425] sr 1:0:0:0: [sr0] Sense Key : Hardware Error [current]
Nov 13 20:05:28 kde4-laptop kernel: [ 1294.864430] sr 1:0:0:0: [sr0] Add. Sense: Timeout on logical unit
Nov 13 20:05:28 kde4-laptop kernel: [ 1294.864437] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 04 c2 f4 00 00 01 00
Nov 13 20:05:35 kde4-laptop kernel: [ 1301.296985] sr 1:0:0:0: [sr0] Unhandled sense code
Nov 13 20:05:35 kde4-laptop kernel: [ 1301.296990] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Nov 13 20:05:35 kde4-laptop kernel: [ 1301.296995] sr 1:0:0:0: [sr0] Sense Key : Hardware Error [current]
Nov 13 20:05:35 kde4-laptop kernel: [ 1301.297001] sr 1:0:0:0: [sr0] Add. Sense: Timeout on logical unit
Nov 13 20:05:35 kde4-laptop kernel: [ 1301.297007] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 04 c2 f4 00 00 01 00


http://tusharg.blogspot.com

To love Linux, you don't need to hate Microsoft!
User avatar Primoz
Moderator
Posts
859
Karma
1
OS
I'm pretty sure I had the same problem. The problem being HAL.
You have to do this:
edit /etc/hal/fdi/information/media-check-disable-storage_model_your-CD/DVD-model.fdi in nano or whatever, and change it from false to true. Then reboot.
This should solve the problem.

Just use:
Code: Select all
ls /etc/hal/fdi/information

to see the exact name of the .fdi file...


Primoz, proud to be a member of KDE forums since 2008-Nov.
User avatar tushargok
Registered Member
Posts
13
Karma
0
OS
Hey primoz thanks a lot for a quick reply.
I do have the mentioned directory but its empty!

[email protected]:~$ ls /etc/hal/fdi/information/
[email protected]:~$

Do i need to create a file? or maybe you can post your file here for my sample.


http://tusharg.blogspot.com

To love Linux, you don't need to hate Microsoft!
User avatar Primoz
Moderator
Posts
859
Karma
1
OS
Maybe you should before creating this file, try to mount your CD in Dolphin. If you get this error:
Code: Select all
error: /media/cd folder not found.

then continue, if not you could still try, but I don't know if it will actually help.

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
  <device>
    <match key="info.udi" string="/org/freedesktop/Hal/devices/storage_model_DVD_RAM_GSA_H55L">
      <merge key="storage.media_check_enabled" type="bool">true</merge>
    </match>
  </device>
</deviceinfo>

Of course you'll have to rename the DVD_RAM_GSA_H55L to what ever the name of your DVD/CD is.
And name the file as I said before. Hope that helps.
If it doesn't then it probably isn't this.
Also when you insert the CD does KDE recognise it but doesn't want to mount it, or is like you'd put no CD in?


Primoz, proud to be a member of KDE forums since 2008-Nov.
User avatar tushargok
Registered Member
Posts
13
Karma
0
OS
I googled a lot and found too many people are facing similar issue since 10.04 in ubuntu and 10.10 in KUbuntu

I also managed to load the CD by repeatedly doing following

sudo hal-disable-polling --device /dev/scd0
Following symlink from /dev/scd0 to /dev/sr0.
Polling for drive /dev/scd0 have been disabled. The fdi file written was
/etc/hal/fdi/information/media-check-disable-storage_model_CDDVDW_TS_L633M.fdi

If this doesnot fix then I excuted following

sudo hal-disable-polling --device /dev/scd0 --enable-polling

The strange thing I found is one of the above command works sometime!!


http://tusharg.blogspot.com

To love Linux, you don't need to hate Microsoft!
User avatar Primoz
Moderator
Posts
859
Karma
1
OS
Now that you got the .fdi file, you should just check if its bool value is true or false then change it to true if it's not.
Then technically it should just work(tm) but I can't assure you.


Primoz, proud to be a member of KDE forums since 2008-Nov.
User avatar tushargok
Registered Member
Posts
13
Karma
0
OS
Thanks a lot Primoz for your support in solving this issue. I'm accepting you answer. ;D


http://tusharg.blogspot.com

To love Linux, you don't need to hate Microsoft!
User avatar Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS
Sorry, but is this in any way related to Amarok?

m0nk


If men could get pregnant, abortion would be a sacrament.
weeclop
Registered Member
Posts
1
Karma
0
thanks for the replys as i have been having the same problem and the info on here has been very good, i could not work out what was wrong with my cd dvd drive.thanks for your help

 
Reply to topic

Bookmarks



Who is online

Registered users: Bing [Bot], frdbr, Google [Bot], HobbyTuxer, Sogou [Bot], YaCy [Bot]