Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey there, I have a problem, and all the sources I find are either outdated or... just not close enough to my problem for me to adapt.
So anyway, whenever I do anything that requires the CPU, (like opening up a .tgz file or moving a file), while I'm running amarok (or anything else) the music will skip, and even so far as the mouse getting laggy.
Here's my info:
Code:
CPU: Pentium 4 2.8 GHZ
RAM: 2GB
Swap: 1GB
KDE sound system:
Skip prevention on, and set to "as large as possible"
Audio Device: ALSA
nothing else in that menu is checked or non-default
Linux Kernal: 2.6.20.3
Distro: Slackware 11.0
KDE 3.5.4
Well, is there anyway I can get KDE to do that for all the processes, or set the audio players at a higher priority than all other processes? I know my computer CAN work and play audio at the same time... heck it can play any song w/o skipping while Windows is crashing lol.
It's not normally necessary. Instead, consider increasing the audio buffers. For example, if you are using the xine engine in Amarok, quit Amarok, edit '~/.kde/share/apps/amarok/xine-config' and set 'engine.buffers.audio_num_buffers:1000'.
You should also make sure your hard drives have DMA enabled. For example:
The lack of DMA is your problem; every disk I/O monopolizes your CPU. If you are using the IDE connectors on your motherboard, make sure your BIOS is up to date, and that you are using the proper (80 conductor) cables. If that doesn't correct the problem, buy a PCI card and move the cables to that.
OK, I don't understand it. I compiled into the kernel anything that MIGHT help this, i.e. I put in the right chipset for the I2C thing. The cables fit the drive just fine, I don't know how to differentiate the correct and incorrect cables from one another. I really don't want to but a PCI card because I'm gonna get a new PC here in a few months.
I even tried
Code:
hdparm -X -d1 /dev/hda
and gave me pretty much the same error. Whenever I boot up, fsck gives me a warning telling me dma is off, and that's been around since I upgraded my kernel from the original one Slackware 11.0 has to 2.6.20.3. So I have a feeling that at one time DMA DID work.
OK, so I looked at my Hard drives harder, and they use the same interface, but are called different things. Here are the specs:
Code:
Manufacturer: Hitachi (/dev/hda, Windows hard drive)
Model #: IC35L090AVV207-0 (the "-0" makes it not really findable through google)
Interface: ATA-6
Supports: UDMA 5 (100) aka UDMA/100
Code:
Manufacturer: Seagate (/dev/hdb, Linux's hard drive)
Model #: ST380011A
Interface: Ultra ATA/100
supports: UDMA 5 (100) aka UDMA/100
80-conductor cables. Count the number of wires on the ribbon cable; if it's 40, you have the wrong cable. You also need a controller that is UDMA5/ATA100 or better.
Hi David
Umm, well one thing I learned, both from making kernels AND from my own BIOS, is that there are two types of "80-conductor" IDE ribbon-cables. One is infact a 40-conductor cable, and the other is an 80-conductor. In many cases, it's obvious, because a lot of machines have one of each. The thing of it all is this: with a real 80-conductor cable, some devices will NOT run in DMA mode, and in particular, they won't go above UDMA-2 if they go at all.
If DMA has worked for you in the past, on ANY operating system, then don't worry about the cables..
So now.. **SOMETIMES** depending on the machine, and the BIOS, a hard disk should be the first thing on the IDE bus, and THEN a CD device. It is common (my machine is an example), atleast perhaps with the exception of newer/higher-tech machines, that the IDE0 and IDE2 (the first devices on each IDE) can be UDMA-100 or UDMA-133, but the second device on each will not go that high.
I have this case: My Hard disk hda is UDMA5, hdb (CD) can do UDMA4 but will only reach UDMA2. My hdc (a HD) is UDMA5, and hdd (a DVD) can do UDMA4 or 5, but is only at UDMA2 (which incidentally is perfectly good for watching DVD's and using the computer simultaneously).
So, assuming UDMA *has* worked for this device at some time in the past, things to check are (and any of these may have been mentioned above, by other members too):
1-- Check BIOS: If it's upgradeable, flash the newer one in.
2 - Check for 32-bit IO capability in the BIOS; enable it.
3 - Enable UDMA in the BIOS (I think you said you did this)..
4 - In your LILO, either at the top, or in the image section for your OS, append the line "idebus=66" to set the IDE bus speed to 66Mhz. (This should work, whether it fixes DMA or not; if it doesn't you will see in dmesg something like "bad idebus speed; using 33")..
Umm....... Atop this stuff so far, I do like you were doing, using hdparm -d -1 /dev/hdx, to turn on all my DMA after bootup..
Sorry if you have tried all this stuff, or if it still doesn';t work.. I will add more if/as I think of stuff..
Plus, after re-reading the first page of this thread, it sounds like you have missed something in your kernel upgrade (that is, IF you constructed it yourself, rather than the default..)
If so, triple check all your IDE/ATA/ etc. stuff in the kernel, and as Macemonta suggested, identify your IDE chipset by going to the motherboards manufacturer website and looking up the board, OR by opening the machine and physically identifying the IDE chip(s).
OK, I don't understand it. I compiled into the kernel anything that MIGHT help this, i.e. I put in the right chipset for the I2C thing. The cables fit the drive just fine, I don't know how to differentiate the correct and incorrect cables from one another. I really don't want to but a PCI card because I'm gonna get a new PC here in a few months.
I even tried
Code:
hdparm -X -d1 /dev/hda
and gave me pretty much the same error. Whenever I boot up, fsck gives me a warning telling me dma is off, and that's been around since I upgraded my kernel from the original one Slackware 11.0 has to 2.6.20.3. So I have a feeling that at one time DMA DID work.
So this is your kernel which is defaulting to generic IDE support, thus the DMA is disabled.
Double-check your kernel configuration, you missed your chipset support.
ARGH, for the life of me I'd love to update my BIOS, but dell only has a Windows format, and Vista won't let me open it w/o having administrator privalege... even though my account is one...
Hopefully I'll find a way around it
You can update your BIOS from MSDOS, if you have an MSDOS boot floppy, or make one
PS- @ Vista locking you out, that sux..
NOTE to Macemonta, next post down: WOW, they actually have BIOS flash tools for Linux?? I have been searching on and off for months for such a thing, because I don't have any Windows installed.. Too bad my BIOS is already updated to the latest and greatest (LOL, that happens to be 3 yrs old now, this 'new' BIOS) But I would sure like to know that the Linux-OS ability exists. Thanks for posting those links below)
Last edited by GrapefruiTgirl; 04-04-2007 at 09:20 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.