You are not logged in.

#1 2011-11-01 11:23:01

jdn06
Member
Registered: 2010-02-01
Posts: 67

[SOLVED] No more CD/DVD in wine applications

I read quite a few threads about udev problems with /dev/sr0. I think my problem has a link with this, but I am not sure. Since a week, I cannot use my cdrom drive with wine applications.
My /dev/sr0 is :

brw-rw----+ 1 root disk 11, 0  1 nov.  12:09 /dev/sr0

I added myself to disk group, just to see if it solved the problem, but nothing changed.
A lot of non-wine applications work well (smplayer, vlc, for example), but another one ask me my root password (K9copy says that it is necessary to change the read ahead properties of the drive). (EDIT this last remark has no link with the problem; it is a special feature in K9copy and it is the normal way.. I usually don't use this program; sorry...)

Here is my udevadm info -a -n /dev/sr0

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:06.0/host5/target5:0:0/5:0:0:0/block/sr0':
    KERNEL=="sr0"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{range}=="1"
    ATTR{ext_range}=="1"
    ATTR{removable}=="1"
    ATTR{ro}=="0"
    ATTR{size}=="14572780"
    ATTR{alignment_offset}=="0"
    ATTR{discard_alignment}=="0"
    ATTR{capability}=="119"
    ATTR{stat}==" 1677166  1677748 13419656  1674536        0        0        0        0        0   919343  1672853"
    ATTR{inflight}=="       0        0"
    ATTR{events}=="media_change eject_request"
    ATTR{events_async}==""
    ATTR{events_poll_msecs}=="-1"

  looking at parent device '/devices/pci0000:00/0000:00:06.0/host5/target5:0:0/5:0:0:0':
    KERNELS=="5:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sr"
    ATTRS{device_blocked}=="0"
    ATTRS{type}=="5"
    ATTRS{scsi_level}=="6"
    ATTRS{vendor}=="PHILIPS "
    ATTRS{model}=="SPD2412T        "
    ATTRS{rev}=="P1.4"
    ATTRS{state}=="running"
    ATTRS{timeout}=="30"
    ATTRS{iocounterbits}=="32"
    ATTRS{iorequest_cnt}=="0x1b9d0b"
    ATTRS{iodone_cnt}=="0x1b9a87"
    ATTRS{ioerr_cnt}=="0x13"
    ATTRS{evt_media_change}=="0"
    ATTRS{queue_depth}=="1"
    ATTRS{queue_type}=="none"

  looking at parent device '/devices/pci0000:00/0000:00:06.0/host5/target5:0:0':
    KERNELS=="target5:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:06.0/host5':
    KERNELS=="host5"
    SUBSYSTEMS=="scsi"
    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:06.0':
    KERNELS=="0000:00:06.0"
    SUBSYSTEMS=="pci"
    DRIVERS=="pata_amd"
    ATTRS{vendor}=="0x10de"
    ATTRS{device}=="0x0053"
    ATTRS{subsystem_vendor}=="0x147b"
    ATTRS{subsystem_device}=="0x1c1a"
    ATTRS{class}=="0x01018a"
    ATTRS{irq}=="0"
    ATTRS{local_cpus}=="00000000,00000001"
    ATTRS{local_cpulist}=="0"
    ATTRS{numa_node}=="0"
    ATTRS{dma_mask_bits}=="32"
    ATTRS{consistent_dma_mask_bits}=="32"
    ATTRS{broken_parity_status}=="0"
    ATTRS{msi_bus}==""

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

Have I got a specific problem or is it only the consequency of this bug?

Last edited by jdn06 (2011-11-04 18:47:06)

Offline

#2 2011-11-01 11:35:59

RichAustin
Member
From: Wakefield, Yorkshire, England
Registered: 2011-07-27
Posts: 186

Re: [SOLVED] No more CD/DVD in wine applications

Have you tried running winecfg? I can't remember exactly what the layout of the screen is - I use XP in virtualbox instead of Wine - but there is an option to set the drives. I found quite a few times that Wine seemed to get mixed up and "lose" drives including the CD. Alternatively you could run the windows file manager which is, if I recall correctly, in your ".wine" folder.

Offline

#3 2011-11-01 11:42:48

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED] No more CD/DVD in wine applications

Yes I checked the configuration with winecfg. The drive was put on /dev/sr0 with CDROM as type: everything seems correct to me. I tried an automatic recognition, but it did'nt change anything.

Last edited by jdn06 (2011-11-01 11:48:21)

Offline

#4 2011-11-04 16:51:13

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED] No more CD/DVD in wine applications

Some new facts about my problem.
I tried this, as wine application was asking for a /dev/sg0 file which doesn't exist anymore:

ln -s /dev/sr0 /dev/sg0
chown root:disk /dev/sg0

Quite ugly, but if it works...
But it didn't. The new error message is:

err:aspi:SCSI_OpenDevice Failed to open device /dev/sg0: Système de fichiers accessible en lecture seulement

The french part means that the filesystem is accessible only in reading. The wine application is EAC (CD extractor to FLAC files); it does'nt write on disk, but I guess it needs to have more rights on /dev/sr0. I don't want to make more crazy things like changing rights on /dev/sr0 or starting a wine application on root.
Would anyone have an idea?

Offline

#5 2011-11-04 17:39:53

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] No more CD/DVD in wine applications

sr and sg are two completely different interfaces. If you want a proper /dev/sg0, do

modprobe sg

I'm surprised it's needed though, I use a custom kernel and don't even have sg in it. But wine works fine.

Offline

#6 2011-11-04 18:06:09

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED] No more CD/DVD in wine applications

Thank you very much!
I erased my symlink and loaded the sg module and it worked. I don't understand at all what is going on here, but anyway. I use wine applications with this CD/DVD drive for a long time, with /dev/sr0 in winecfg (just like now: I didn't put any sg config) and this never happened before last udev upgrade.

Last edited by jdn06 (2011-11-04 18:07:28)

Offline

#7 2011-11-04 18:10:54

gfang
Member
Registered: 2011-11-04
Posts: 6

Re: [SOLVED] No more CD/DVD in wine applications

Had the same issue.  Found this solution in ubuntuforums.  http://ubuntuforums.org/showthread.php?t=1744494

sudo mkdir /media/cdrom0
echo "/dev/sr0   /media/cdrom0   udf,iso9660 user,noauto,exec   0 0" |sudo tee -a /etc/fstab
cd ~/.wine/dosdevices
ln -s /media/cdrom0 e:
mount /media/cdrom

I did not need the "sg" module with this method.

Last edited by gfang (2011-11-04 18:12:48)

Offline

#8 2011-11-04 18:17:15

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED] No more CD/DVD in wine applications

Does anyone know wether there is a better way to do between these two solutions?

Last edited by jdn06 (2011-11-04 18:24:14)

Offline

#9 2011-11-04 19:06:09

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] No more CD/DVD in wine applications

jdn06 wrote:

Does anyone know wether there is a better way to do between these two solutions?

Yeah, HAL. I'm not kidding, wine still has HAL support (at least the version I'm using, 1.3.25, does). With it, cdrom stuff is handled automatically. Whether you'll want to run HAL just for wine, and whether it will work along with whatever other mounting solution you're using is a different thing though. I have only HAL and also use it with pcmanfm-0.5.2, so it works out great. And I removed most of the hal helpers, I only kept the stuff needed for mounting.

Offline

#10 2011-11-04 20:31:02

jdn06
Member
Registered: 2010-02-01
Posts: 67

Re: [SOLVED] No more CD/DVD in wine applications

A third solution...
OK let's a try a last question. I didn't find a lot documentation about sg module. I am quite perplexed about using /dev/sr0 through /dev/sg5. Is there any objection to do so?

Last edited by jdn06 (2011-11-05 00:53:52)

Offline

Board footer

Powered by FluxBB