Bug#289563: Totem fails to determine optical drives

<zulu@gala.net>, 289563@bugs.debian.org <zulu@gala.net>, 289563@bugs.debian.org
Sun, 9 Jan 2005 20:42:37 -0000


Package: totem
Version: 0.99.22-1

I have two atapi CD-drives and I use ide-scsi && 2.4-series kernel. In this
circumstances, totem fails to identify my optical drives.

According to strace, totem opens /proc/sys/dev/cdrom/info,
/proc/scsi/sg/devices and /proc/scsi/sg/device_strs. Those files contains a=
ll
required information about optical drives, but in
"Edit->preferences->general->optical device" I have only
one option, "unnamed scsi device (scd1)".

Some transcripts follows.

1) hardware/OS info:
zulu:~$ uname -a
Linux home 2.4.27-1-k7 #1 Wed Dec 1 20:12:01 JST 2004 i686 GNU/Linux
zulu:~$ dmesg | grep hd[cd]
Kernel command line: root=3D/dev/hda3 vga=3D0x0309 hdc=3Dide-scsi hdd=3Dide=
-scsi
acpi=3Don apm=3Doff ro
ide_setup: hdc=3Dide-scsi
ide_setup: hdd=3Dide-scsi
    ide1: BM-DMA at 0xd408-0xd40f, BIOS settings: hdc:DMA, hdd:DMA
hdc: CD-W54E, ATAPI CD/DVD-ROM drive
hdd: ATAPI-CD ROM-DRIVE-52MAX, ATAPI CD/DVD-ROM drive
hdc: attached ide-scsi driver.
hdd: attached ide-scsi driver.


2) part of strace output:
open("/proc/sys/dev/cdrom/info", O_RDONLY|O_LARGEFILE) =3D 18
fstat64(18, {st_mode=3DS_IFREG|0444, st_size=3D0, ...}) =3D 0
fcntl64(18, F_GETFL)                    =3D 0x8000 (flags O_RDONLY|O_LARGEF=
ILE)
fstat64(18, {st_mode=3DS_IFREG|0444, st_size=3D0, ...}) =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0=
) =3D
0x40d24000
_llseek(18, 0, [0], SEEK_CUR)           =3D 0
read(18, "CD-ROM information, Id: cdrom.c "..., 2048) =3D 417
read(18, "", 1024)                      =3D 0
close(18)                               =3D 0
munmap(0x40d24000, 4096)                =3D 0
access("/dev/scd1", F_OK)               =3D 0
access("/dev/scd0", F_OK)               =3D 0
open("/dev/sg0", O_RDWR|O_LARGEFILE)    =3D 18
close(18)
open("/proc/scsi/sg/devices", O_RDONLY|O_LARGEFILE) =3D 18
fstat64(18, {st_mode=3DS_IFREG|0444, st_size=3D0, ...}) =3D 0
fcntl64(18, F_GETFL)                    =3D 0x8000 (flags O_RDONLY|O_LARGEF=
ILE)
fstat64(18, {st_mode=3DS_IFREG|0444, st_size=3D0, ...}) =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0=
) =3D
0x40d24000
_llseek(18, 0, [0], SEEK_CUR)           =3D 0
read(18, "0\t0\t0\t0\t5\t0\t5\t0\t1\n0\t0\t1\t0\t5\t0\t5\t"..., 2048) =3D 3=
6
read(18, "", 1024)                      =3D 0
close(18)                               =3D 0
munmap(0x40d24000, 4096)                =3D 0
open("/proc/scsi/sg/device_strs", O_RDONLY|O_LARGEFILE) =3D 18
fstat64(18, {st_mode=3DS_IFREG|0444, st_size=3D0, ...}) =3D 0
fcntl64(18, F_GETFL)                    =3D 0x8000 (flags O_RDONLY|O_LARGEF=
ILE)
fstat64(18, {st_mode=3DS_IFREG|0444, st_size=3D0, ...}) =3D 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0=
) =3D
0x40d24000
_llseek(18, 0, [0], SEEK_CUR)           =3D 0
read(18, "TEAC    \tCD-W54E         \t1.1B\nA"..., 2048) =3D 62
read(18, "", 1024)                      =3D 0
close(18)                               =3D 0
munmap(0x40d24000, 4096)             =20

3) three files with all information about drives:
zulu:~$ cat /proc/sys/dev/cdrom/info
CD-ROM information, Id: cdrom.c 3.12 2000/10/18

drive name:             sr1     sr0
drive speed:            52      32
drive # of slots:       1       1
Can close tray:         1       1
Can open tray:          1       1
Can lock tray:          1       1
Can change speed:       1       1
Can select disk:        0       0
Can read multisession:  1       1
Can read MCN:           1       1
Reports media changed:  1       1
Can play audio:         1       1
Can write CD-R:         0       1
Can write CD-RW:        0       1
Can read DVD:           0       0
Can write DVD-R:        0       0
Can write DVD-RAM:      0       0

zulu:~$ cat /proc/scsi/sg/devices
0       0       0       0       5       0       5       0       1
0       0       1       0       5       0       5       0       1

zulu:~$ cat /proc/scsi/sg/device_strs
TEAC            CD-W54E                 1.1B
ATAPI-CD        ROM-DRIVE-52MAX         52CA

4) totem package version:
zulu:~$ LANG=3DC dpkg -l totem*
Desired=3DUnknown/Install/Remove/Purge/Hold
| Status=3DNot/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=3D(none)/Hold/Reinst-required/X=3Dboth-problems (Status,Err: upperc=
ase=3Dbad)
||/ Name           Version        Description
+++-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D-=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
ii  totem          0.99.22-1      A simple media player for the Gnome deskt=
op
pn  totem-gstreame <none>         (no description available)
ii  totem-xine     0.99.22-1      A simple media player for the Gnome deskt=
op



____________________________________________________________

=E2=C5=D3=D0=CC=C1=D4=CE=C1=D1 =D0=CF=DE=D4=CF=D7=C1=D1 =D3=CC=D5=D6=C2=C1 =
Gala Mail - http://mail.gala.net/
WEB, WAP =C9 POP3 =C4=CF=D3=D4=D5=D0, =CD=CF=DD=CE=D9=C5 =C6=C9=CC=D8=D4=D2=
=D9 =C9 =DA=C1=DD=C9=D4=C1 =CF=D4 =D3=D0=C1=CD=C1.