You are not logged in.

#1 2006-03-30 21:18:38

UnrealX
Member
From: Lithuania
Registered: 2005-12-30
Posts: 40
Website

Sound stuck. Alsa, atiixp and KDE [solved]

SEE http://bugs.archlinux.org/task/4325 FOR SOLUTION
-----------------------

Here`s my story:
I was watching some DVDs, relaxing and all, however when I inserted one DVD and tried to mount it, system froze.
After reboot I tried doing the same thing. Unfortunately, few moments after mount /mnt/cd system froze again.
,,Well what the heck, must be corrupt DVD" - I thought and decided to spend evening listening to the music.
But oh no, amaroK was acting strange.
Music seemed to be stuck on few first accords, it was playing them again, and again, and again.... Well you get the picture.
Since I am using amaroK 1.4 beta2 (it`s great!) I thought it may be a bug.
However my attempts to get some music flowin` with XMMS were unsuccessful too.
After a cruise to kcontrol > sound system > test sound I made sure that it wasn`t amaroK or XMMS that were buggy.
Tried changing to OSS, got some sound, however it was reaaaaally choppy and this time it stuck somewhere in the middle of the track (test sound ,,track`` that is).
Logs (/var/log/everything.log) look strange too, they were full of this:

Mar 30 23:58:28 localhost [fglrx:firegl_rmmap] *ERROR* map 0xdd325b10 still in use (map_count=1)
Mar 30 23:58:28 localhost [fglrx:firegl_free_buffer_queue] *ERROR* buffer qeue 0xdd325b00 still mapped

And around 150 lines higher it was like this:

Mar 30 23:36:10 localhost [<c0229453>] acpi_ex_access_region+0x47/0x8e
Mar 30 23:36:10 localhost [<c02295ca>] acpi_ex_field_datum_io+0xf8/0x18a
Mar 30 23:36:10 localhost [<c02297cd>] acpi_ex_extract_from_field+0x79/0x213
Mar 30 23:36:10 localhost [<c0236f5a>] acpi_ut_allocate_object_desc_dbg+0xc/0x49
Mar 30 23:36:10 localhost [<c0236dfc>] acpi_ut_create_internal_object_dbg+0x18/0x6a
Mar 30 23:36:10 localhost [<c02281df>] acpi_ex_read_data_from_field+0x11f/0x14e
Mar 30 23:36:10 localhost [<c022cbf0>] acpi_ex_resolve_node_to_value+0xb0/0xe4
Mar 30 23:36:10 localhost [<c022896d>] acpi_ex_resolve_to_value+0x39/0x4d
Mar 30 23:36:10 localhost [<c022ab05>] acpi_ex_resolve_operands+0x1b2/0x341
Mar 30 23:36:10 localhost [<c02237e8>] acpi_ds_exec_end_op+0x96/0x336
Mar 30 23:36:10 localhost [<c0230f3f>] acpi_ps_parse_loop+0x503/0x7f4
Mar 30 23:36:10 localhost [<c02308b5>] acpi_ps_parse_aml+0x46/0x1cd
Mar 30 23:36:10 localhost [<c02316e2>] acpi_ps_execute_pass+0x6c/0x7e
Mar 30 23:36:10 localhost [<c0231619>] acpi_ps_execute_method+0x49/0x70
Mar 30 23:36:10 localhost [<c022ee87>] acpi_ns_execute_control_method+0x42/0x4f
Mar 30 23:36:10 localhost [<c022ee29>] acpi_ns_evaluate_by_handle+0x73/0x8f
Mar 30 23:36:10 localhost [<c022ed23>] acpi_ns_evaluate_relative+0xab/0xcd
Mar 30 23:36:10 localhost [<c022e61c>] acpi_evaluate_object+0xf4/0x1ac
Mar 30 23:36:10 localhost [<c0170003>] __posix_lock_file+0x10a/0x572
Mar 30 23:36:10 localhost [<c0239057>] acpi_battery_get_info+0x67/0x10f
Mar 30 23:36:10 localhost [<c0239394>] acpi_battery_read_info+0x36/0x1d9
Mar 30 23:36:10 localhost [<c0179e99>] seq_read+0xef/0x26a
Mar 30 23:36:10 localhost [<c015e0b1>] vfs_read+0xa1/0x138
Mar 30 23:36:10 localhost [<c015e3a6>] sys_read+0x3b/0x64
Mar 30 23:36:11 localhost [<c0102d93>] sysenter_past_esp+0x54/0x75
Mar 30 23:36:11 localhost handlers:
Mar 30 23:36:11 localhost [<e1b79dc5>] (snd_atiixp_interrupt+0x0/0xdc [snd_atiixp])
Mar 30 23:36:11 localhost [<e1f691f2>] (ohci_irq_handler+0x0/0x5c9 [ohci1394])
Mar 30 23:36:11 localhost [<e1f48133>] (usb_hcd_irq+0x0/0x55 [usbcore])
Mar 30 23:36:11 localhost [<e1f48133>] (usb_hcd_irq+0x0/0x55 [usbcore])
Mar 30 23:36:11 localhost [<e1f48133>] (usb_hcd_irq+0x0/0x55 [usbcore])
Mar 30 23:36:11 localhost Disabling IRQ #11
Mar 30 23:44:59 localhost syslog-ng[3430]: STATS: dropped 0
Mar 30 23:54:59 localhost syslog-ng[3430]: STATS: dropped 0
Mar 30 23:56:56 localhost [fglrx] free  PCIe = 51118080
Mar 30 23:56:56 localhost [fglrx] max   PCIe = 51118080
Mar 30 23:56:56 localhost [fglrx] free  LFB = 116322304
Mar 30 23:56:56 localhost [fglrx] max   LFB = 116322304
Mar 30 23:56:56 localhost [fglrx] free  Inv = 0
Mar 30 23:56:56 localhost [fglrx] max   Inv = 0
Mar 30 23:56:56 localhost [fglrx] total Inv = 0
Mar 30 23:56:56 localhost [fglrx] total TIM = 0
Mar 30 23:56:56 localhost [fglrx] total FB  = 0
Mar 30 23:56:56 localhost [fglrx] total PCIe = 16384

My lshwd looks like this:

00:00.0 Host bridge:  (unknown)
00:02.0 PCI bridge:  (unknown)
00:06.0 PCI bridge:  (unknown)
00:13.0 USB Controller:  (unknown)
00:13.1 USB Controller:  (unknown)
00:13.2 USB Controller:  (unknown)
00:14.0 SMBus:  (unknown)
00:14.1 IDE interface:  (atiixp)
00:14.3 ISA bridge:  (unknown)
00:14.4 PCI bridge:  (unknown)
00:14.5 Multimedia audio controller: ATI|IXP400 AC'97 Audio Controller (snd-atiixp)
00:14.6 Modem: ATI|IXP400 AC'97 Audio Controller (unknown)
00:18.0 Host bridge: Advanced Micro Devices|K8 [Athlon64/Opteron] HyperTransport Technology Configuration (unknown)
00:18.1 Host bridge: Advanced Micro Devices|K8 [Athlon64/Opteron] Address Map (unknown)
00:18.2 Host bridge: Advanced Micro Devices|K8 [Athlon64/Opteron] DRAM Controller (unknown)
00:18.3 Host bridge: Advanced Micro Devices|K8 [Athlon64/Opteron] Miscellaneous Control (unknown)
01:00.0 VGA compatible controller: Advanced Micro Devices|K8 [Athlon64/Opteron] Miscellaneous Control (vesa)
02:00.0 Ethernet controller: Marvell Technology Group Ltd.|Marvell Yukon 88E8053 Gigabit Ethernet 10/100/1000Base-T Adapter (unknown)
03:07.0 CardBus bridge: Marvell Technology Group Ltd.|Marvell Yukon 88E8053 Gigabit Ethernet 10/100/1000Base-T Adapter (unknown)
03:07.2 FireWire (IEEE 1394): Marvell Technology Group Ltd.|Marvell Yukon 88E8053 Gigabit Ethernet 10/100/1000Base-T Adapter (unknown)
03:07.3 Mass storage controller: Marvell Technology Group Ltd.|Marvell Yukon 88E8053 Gigabit Ethernet 10/100/1000Base-T Adapter (unknown)
03:07.4 Class 0805: Marvell Technology Group Ltd.|Marvell Yukon 88E8053 Gigabit Ethernet 10/100/1000Base-T Adapter (unknown)
03:09.0 Ethernet controller: Atheros Communications Inc.|AR5213 802.11a/b/g Wireless Adapter (ath_pci)
002:001 USB Hub: Virtual|Hub (hub)
003:001 USB Hub: Virtual|Hub (hub)
001:001 USB Hub: Virtual|Hub (hub)
---:--- Mouse: Generic PS/2 Wheel Mouse [/dev/psaux] (msintellips/2)

As always, any ideas appreciated.

EDIT: Just noticed that lshwd does not recognize modules.
I guess it has something to do with my issue.
If hwd -u will help, I`m going to feel real stupid
EDIT2: Nope, didn`t help.
Tried issuing cat /dev/urandom > /dev/dsp without X running, went fine.
Tried aplay somefile.wav, sound stuck again.

Offline

#2 2006-03-31 03:42:52

waltm
Member
From: alabama
Registered: 2006-03-21
Posts: 69

Re: Sound stuck. Alsa, atiixp and KDE [solved]

Just a few thoughts, I have a ati chipset too.

Have you updated the kernel?  kernel26 in testing has some ati specific fixes and is worth the update.

try unloading the modem module if you don't need it.

Maybe the xf86-video-ati driver will give you accepable results (well it does for me and I prefer it to the fglrx driver).

Other than that, as the mechanic tells me "dumb looks are free"

Offline

#3 2006-03-31 11:43:38

UnrealX
Member
From: Lithuania
Registered: 2005-12-30
Posts: 40
Website

Re: Sound stuck. Alsa, atiixp and KDE [solved]

I use latest archck, I always keep synced with testing.

I have blacklisted modem driver long time ago.

And I`m pretty happy with fglrx.


Even worse, today I`ve tried plugging my USB mouse, everything`s fine, few seconds after ,,startx`` I was able to use it (while no desktop was loaded), however KDE stuck on ,,Initializing Peripherals`` for few seconds and I was unable to continue using USB mouse.
Touchpad worked fine tho.

Tried reinstalling alsa, hwd, archck, no results.
My lshwd looks like this after hwd -u:

00:00.0 Host bridge: ATI Technologies Inc.|Radeon Xpress 200 (RS480/RS482/RX480/RX482) Chipset - Host bridge (unknown)
00:02.0 PCI bridge: ATI Technologies Inc.|RS480 PCI-X Root Port (unknown)
00:06.0 PCI bridge: ATI Technologies Inc.|RS480 PCI-X Root Port (unknown)
00:13.0 USB Controller: ATI Technologies Inc.|IXP SB400 USB Host Controller (unknown)
00:13.1 USB Controller: ATI Technologies Inc.|IXP SB400 USB Host Controller (unknown)
00:13.2 USB Controller: ATI Technologies Inc.|IXP SB400 USB2 Host Controller (unknown)
00:14.0 SMBus: ATI Technologies Inc.|SMBus (unknown)
00:14.1 IDE interface: ATI Technologies Inc.|Standard Dual Channel PCI IDE Controller ATI (atiixp)
00:14.3 ISA bridge: ATI Technologies Inc.|IXP SB400 PCI-ISA Bridge (unknown)
00:14.4 PCI bridge: ATI Technologies Inc.|IXP SB400 PCI-PCI Bridge (unknown)
00:14.5 Multimedia audio controller: ATI Technologies Inc.|IXP400 AC'97 Audio Controller (snd-atiixp)
00:14.6 Modem: ATI Technologies Inc.|IXP AC'97 Modem (snd-atiixp-modem)
00:18.0 Host bridge: Advanced Micro Devices|K8 [Athlon64/Opteron] HyperTransport Technology Configuration (unknown)
00:18.1 Host bridge: Advanced Micro Devices|K8 [Athlon64/Opteron] Address Map (unknown)
00:18.2 Host bridge: Advanced Micro Devices|K8 [Athlon64/Opteron] DRAM Controller (unknown)
00:18.3 Host bridge: Advanced Micro Devices|K8 [Athlon64/Opteron] Miscellaneous Control (amd64-agp)
01:00.0 VGA compatible controller: ATI Technologies Inc.|Radeon Mobility X700 (PCIE) (vesa)
02:00.0 Ethernet controller: Marvell Semiconductor Inc.|Marvell Yukon 88E8053 Gigabit Ethernet 10/100/1000Base-T Adapter (sk98lin)
03:07.0 CardBus bridge: Texas Instruments|Texas Instruments PCIxx21/x515 Cardbus Controller (yenta_socket)
03:07.2 FireWire (IEEE 1394): Texas Instruments|Texas Instruments OHCI Compliant IEEE 1394 Host Controller (unknown)
03:07.3 Mass storage controller: Texas Instruments|Texas Instruments PCIxx21 Integrated FlashMedia Controller (unknown)
03:07.4 : Texas Instruments|Texas Instruments PCI6411, PCI6421, PCI6611, PCI6621, PCI7411, PCI7421, PCI7611, PCI7621 Secure Digital (SD) C (unknown)
03:09.0 Ethernet controller: Atheros Communications Inc.|AR5213 802.11a/b/g Wireless Adapter (ath_pci)
002:001 USB Hub: Virtual|Hub (hub)
003:002 USB Human Interface Devices: Logic3 / SpectraVideo plc|A4Tech SWOP-3 Mouse [/dev/input/mice] (usbhid)
003:001 USB Hub: Virtual|Hub (hub)
001:002 USB Mass Storage: Cypress Semiconductor Corp.|USB-2.0 IDE Adapter (usb-storage)
001:001 USB Hub: Virtual|Hub (hub)
---:--- Mouse: PS/2 Mouse port [/dev/psaux] (msintellips/2)

I suspect that this may be hwd or udev bug.

Any ideas?

Offline

#4 2006-03-31 12:45:27

UnrealX
Member
From: Lithuania
Registered: 2005-12-30
Posts: 40
Website

Re: Sound stuck. Alsa, atiixp and KDE [solved]

Ok, it`s a KDE / X problem.

When I boot and try using aplay, it works fine.

After startx aplay doesn`t work anymore with or without KDE running.

Since I`m on AMD64 (Sempron) I have to boot with noapic nolapic kernel options.
Strange thing is that when I tried to boot without these everything were fine, sound and mouse were functioning correctly in KDE.

Downgrade to KDE 3.5.1 or running with different user didn`t help either.

EDIT: It`s a KDE problem.
When running enlightenment sound was there and mouse was working no problem.
Also, booting with noapic nolapic acpi=off fixed the problem, however arch was unable to start network.

I guess I`ll send a bug report.

EDIT2: http://bugs.archlinux.org/task/4325

EDIT3: SOLVED! See bug report for solution.

Offline

Board footer

Powered by FluxBB