Archived

This topic is now archived and is closed to further replies.

A couple of Linux questions (hdparm, gcc and sound)

This topic is 5642 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Okay, I''ve got 3 questions, and I thought I''d just make one post for them. 1) I''m trying to get my DVD drive to run in DMA mode. I know how to do that using hdparm, but the thing is, hdparm doesn''t store my settings. After I reboot, I''ve got to go /sbin/hdparm -d1 /dev/hdc each and every time. Is there anyway to make my settings stay, even after a reboot? 2) Sound card woes. On my RedHat 7.3 system, I''ve got a SiS/Trident integrated sound chip. Sometimes, the soundcard works, sometimes it doesn''t. I thought it might be a problem with the configuration, and I run sndconfig. This is the weird part. I''ve got to run sndconfig a few times, with the same settings before the soundcard actually works. Even then, when I reboot, the sound may be there, may be gone. I don''t get it. 3) gcc doesn''t link with functions in math.h. One system of mine is running a default SuSE 8.0. gcc doesn''t want to compile any programs which use functions in math.h. It says they are undefined. Suggestions? Thanks for your time, guys.

Share this post


Link to post
Share on other sites
I think I can only answer the last question.
I''ve had the same problem some time ago and in one of the gcc-tuts/mans on the web I''ve found you have to use the -lm option with gcc.
(-l for the use of a library and ''m'' for the ''math'', I presume)
Hope that it helps.

===========================
UNKNOWN caused an invalid page fault in module unknown at 0000:bff80eb6
: win98 with multiple sclerose

Share this post


Link to post
Share on other sites
Configuring the sound card can be a real pain sometimes. I found it easiest to just compile the sound as a module when building a kernel, then load the module with the sound card paramters (irq=, io=, dma=). Also the docs are pretty decent for sound cards, usually found in /usr/src/linux/Documentation/sound. In there you can find your particular sound card. Also you may have to get the configuration info by using windows device manager.

If that don''t work there are other sound alternatives, I''ve had good luck with Alsa.

Another thing I found odd about configuring the soundcard is that its already configured, but sound is low or muted by default. I have to run a mixer program like kmix and raise the sound, then test it using xmms to play sounds and adjust the volume higher. After that it works fine.

Share this post


Link to post
Share on other sites