LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   insert music CDs floods dmesg (https://www.linuxquestions.org/questions/slackware-14/insert-music-cds-floods-dmesg-837427/)

Bruce Hill 10-11-2010 10:51 AM

insert music CDs floods dmesg
 
I had a terminal open waiting to catch these messages that spam dmesg.
Simply inserting a music CD into /dev/sr0 or /dev/sr1 gives me this:
Code:

mingdao@silas ~ $ sudo tail -f /var/log/messages
Oct 11 20:40:47 silas /usr/sbin/gpm[1423]: *** info [mice.c(1766)]:
Oct 11 20:40:47 silas /usr/sbin/gpm[1423]: imps2: Auto-detected intellimouse PS/2
Oct 11 20:42:16 silas acpid: client connected from 1464[0:100]
Oct 11 20:42:16 silas acpid: 1 client rule loaded
Oct 11 20:42:24 silas acpid: client connected from 1464[0:100]
Oct 11 20:42:24 silas acpid: 1 client rule loaded
Oct 11 20:42:37 silas kernel: scim-bridge[1613]: segfault at 4444415f ip b7733d47 sp bfd32a30 error 4 in libscim-1.0.so.8.2.4[b76d2000+c7000]
Oct 11 21:00:27 silas -- MARK --
Oct 11 21:20:27 silas -- MARK --
Oct 11 21:40:27 silas -- MARK --
Oct 11 21:53:02 silas kernel: sr 4:0:0:0: [sr0]  Result: hostbyte=0x00 driverbyte=0x08
Oct 11 21:53:02 silas kernel: sr 4:0:0:0: [sr0]  Sense Key : 0x5 [current]
Oct 11 21:53:02 silas kernel: sr 4:0:0:0: [sr0]  ASC=0x64 ASCQ=0x0
Oct 11 21:53:02 silas kernel: sr 4:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 02 00

Code:

Oct 11 21:55:46 silas kernel: sr 6:0:0:0: [sr1]  Result: hostbyte=0x00 driverbyte=0x08
Oct 11 21:55:46 silas kernel: sr 6:0:0:0: [sr1]  Sense Key : 0x5 [current]
Oct 11 21:55:46 silas kernel: sr 6:0:0:0: [sr1]  ASC=0x64 ASCQ=0x0
Oct 11 21:55:46 silas kernel: sr 6:0:0:0: [sr1] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 02 00

It's literally thousands of lines, making any "dmesg" output useless.

My Google fu isn't helping ...

This is on a fresh Slack-13.1 install today, with all packages from patches updated.

Information:
Code:

mingdao@silas ~ $ uname -a
Linux silas 2.6.36-rc7+ #1 SMP Mon Oct 11 17:11:49 CST 2010 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux

and the kernel-generic-smp-2.6.33.4_smp-i686-1 distro kernel does it also.
Code:

root@silas:~# lspci -k
00:00.0 RAM memory: nVidia Corporation MCP55 Memory Controller (rev a2)
        Subsystem: ASUSTeK Computer Inc. Device 8239
00:01.0 ISA bridge: nVidia Corporation MCP55 LPC Bridge (rev a3)
        Subsystem: ASUSTeK Computer Inc. Device 8239
00:01.1 SMBus: nVidia Corporation MCP55 SMBus (rev a3)
        Subsystem: ASUSTeK Computer Inc. Device 8239
        Kernel driver in use: nForce2_smbus
        Kernel modules: i2c-nforce2
00:02.0 USB Controller: nVidia Corporation MCP55 USB Controller (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device 8239
        Kernel driver in use: ohci_hcd
00:02.1 USB Controller: nVidia Corporation MCP55 USB Controller (rev a2)
        Subsystem: ASUSTeK Computer Inc. Device 8239
        Kernel driver in use: ehci_hcd
00:04.0 IDE interface: nVidia Corporation MCP55 IDE (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device 8239
        Kernel driver in use: pata_amd
00:05.0 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
        Subsystem: ASUSTeK Computer Inc. Device 8239
        Kernel driver in use: sata_nv
00:05.1 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
        Subsystem: ASUSTeK Computer Inc. Device 8239
        Kernel driver in use: sata_nv
00:05.2 IDE interface: nVidia Corporation MCP55 SATA Controller (rev a3)
        Subsystem: ASUSTeK Computer Inc. Device 8239
        Kernel driver in use: sata_nv
00:06.0 PCI bridge: nVidia Corporation MCP55 PCI bridge (rev a2)
00:06.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)
        Subsystem: ASUSTeK Computer Inc. Device 81f6
        Kernel driver in use: HDA Intel
00:0f.0 PCI bridge: nVidia Corporation MCP55 PCI Express bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
        Kernel driver in use: k8temp
        Kernel modules: k8temp
01:07.0 Ethernet controller: VIA Technologies, Inc. VT6105/VT6106S [Rhine-III] (rev 86)
        Subsystem: D-Link System Inc DFE-530TX rev C
        Kernel driver in use: via-rhine
02:00.0 VGA compatible controller: nVidia Corporation GT200 [GeForce GT 220] (rev a2)
        Kernel driver in use: nvidia
        Kernel modules: nvidia
02:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
        Kernel driver in use: HDA Intel

Code:

root@silas:~# hdparm -iI /dev/sr0

/dev/sr0:

 Model=ASUS    DRW-2014L1T, FwRev=1.02, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 *udma4
 AdvancedPM=no
 Drive conforms to: unknown:  ATA/ATAPI-3,4,5,6,7

 * signifies the current active mode


ATAPI CD-ROM, with removable media
        Model Number:      ASUS    DRW-2014L1T                   
        Serial Number:     
        Firmware Revision:  1.02   
Standards:
        Supported: CD-ROM ATAPI-3 -4 -5 -6 -7
Configuration:
        DRQ response: 50us.
        Packet size: 12 bytes
        cache/buffer size  = unknown
Capabilities:
        LBA, IORDY(can be disabled)
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4
            Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
            Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled        Supported:
                    PACKET command feature set
                    DEVICE_RESET command
                    Removable Media Status Notification feature set
          *        Gen1 signaling speed (1.5Gb/s)
          *        Host-initiated interface power management
          *        Phy event counters
                    Device-initiated interface power management
                    Asynchronous notification (eg. media change)
          *        Software settings preservation

root@silas:~# hdparm -iI /dev/sr1

/dev/sr1:

 Model=ASUS    CD-S520/A, FwRev=2.0L, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=yes, tPIO={min:227,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 *udma2
 AdvancedPM=no

 * signifies the current active mode


ATAPI CD-ROM, with removable media
        Model Number:      ASUS    CD-S520/A                     
        Serial Number:     
        Firmware Revision:  2.0L   
Standards:
        Used: ATAPI for CD-ROMs, SFF-8020i, r2.5
        Supported: CD-ROM ATAPI-2
Configuration:
        DRQ response: 50us.
        Packet size: 12 bytes
        cache/buffer size  = unknown
Capabilities:
        LBA, IORDY(cannot be disabled)
        DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
            Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
            Cycle time: no flow control=227ns  IORDY flow control=120ns

Asus DRW-2014L1T (DVD+/-RW) is /dev/sr0 ; Asus CD-S520/A (CD-ROM) is /dev/sr1

PenGUiN_6_1 10-12-2010 01:00 PM

I had something like that happen with stdout, but that, I think was when I tried to use the discs; probably because they...the discs...had problems. That is all I can say on that. Once, there was a disc that showed something like that on stdout when I tried to mount it...the disc was data...turned out the disc had a scratch like a spot

Bruce Hill 10-12-2010 08:18 PM

Hey PenGUiN_6_1,

Thanks for your reply.

This is only happening with music CDs, so of course they're not mounted.
It does not happen with data CDs, or with DVDs. The discs are originals,
and not scratched. The CD-ROM drive is about 8 years old, but the DVD is
much newer ... maybe a year or so, but I haven't checked. They both work
fine doing what they were designed to do.

It does not happen with Gentoo on the same computer.

The output starts after the drive tray is closed, and then the CD-ROM
starts spinning up the disc. Maybe there is some script in Slackware
that is trying to read the disc, though personally I have no automount
stuff to my knowledge.

I'll have to check that when I get back home ... on the way to Vietnam atm.

Nylex 10-13-2010 06:13 AM

I think I get similar messages on boot when I have an audio CD in my drive. I don't have any problems with the CDs, or the drive.

glorsplitz 12-25-2010 10:13 AM

@Bruce Hill, did you ever get anywhere with this?

kthxbai

Bruce Hill 12-26-2010 08:55 PM

Quote:

Originally Posted by glorsplitz (Post 4202808)
@Bruce Hill, did you ever get anywhere with this?

kthxbai

Yes, I tried many things on Slackware 13.1, and nothing fixed it. There were
also several other problems with Slackware 13.1.

I tried 2 other distros on the same box, and neither of them had that problem.

Now it is permanently fixed ... I removed Slackware and installed Gentoo.

glorsplitz 12-27-2010 08:53 AM

thanks for your reply, not kind of fix i was hoping for

cd/dvd drive works fine, log messages for audio are more of a nag

i was thinking of writing script to delete annoying log messages

cheers!

glorsplitz 12-28-2010 08:42 PM

if anyone is interested
 
screwed around with this a little more

slackware 13.1, up to date via slackpkg, 2.6.33.5

/dev/sr0: TSSTcorp DVD+-RW TS-L632H D300 [cd/dvd]

messages:
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: sr 1:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 02 00
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: sr 1:0:0:0: [sr0] Result: hostbyte=0x00 driverbyte=0x08
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: sr 1:0:0:0: [sr0] Sense Key : 0x5 [current]
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: sr 1:0:0:0: [sr0] ASC=0x64 ASCQ=0x0
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: sr 1:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 00 00 00 00 02 00
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: sr 1:0:0:0: [sr0] Result: hostbyte=0x00 driverbyte=0x08
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: sr 1:0:0:0: [sr0] Sense Key : 0x5 [current]
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: sr 1:0:0:0: [sr0] ASC=0x64 ASCQ=0x0
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: sr 1:0:0:0: [sr0] CDB: cdb[0]=0x28: 28 00 00 00 04 00 00 00 02 00

syslog:
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: end_request: I/O error, dev sr0, sector 0
Dec 28 20:08:15 XXXX-XXXXXXXX last message repeated 5 times
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: end_request: I/O error, dev sr0, sector 8
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: end_request: I/O error, dev sr0, sector 128
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: end_request: I/O error, dev sr0, sector 0
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: end_request: I/O error, dev sr0, sector 0
Dec 28 20:08:15 XXXX-XXXXXXXX kernel: end_request: I/O error, dev sr0, sector 4096

inserted commericial audio cd

cdparnoia -vsQ (does check of drive, cd, lists cd contents), messages/syslog flooded, see above samples

cdparanoia -B 1 (rip track 1) no log flood

did couple more tracks, no log flood

ejected cd, repeated above cdparanoia stuff, new log flood

ripped couple more tracks, no log flood

seems after initial access to audio cd, logging stops


All times are GMT -5. The time now is 06:35 AM.