Setting the DMA *and* making it stick
How does one make SuSE 10 accept the fact that I want the DMA on the DVD ROM set to UDMA 33? No matter what I try in Yast2 to set the DMA of hdb (the DVD ROM), Sus 10 shows me that the Required DMA Mode should be UltraDMA 33 but won't budge from showing the Curent DMA Mode as OFF. This setting has to be also set manually somewhere in some config file I would think. Anyone know which config file this may be? (Sus - no, not Suse, not until I get THIS wacky behaviour sorted out - accepted the change to the DMA to hdd which is my DVD burner.) Had no trouble with this in earlier versions of sus, BTW. Any suggestions on how to overcome this "feature" most welcome because I finally acquired the ability to view DVDs but I am not used to viewing jerky moving pictures. Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
On Saturday 05 Nov 2005 15:37, Basil Chupin wrote:
How does one make SuSE 10 accept the fact that I want the DMA on the DVD ROM set to UDMA 33?
No matter what I try in Yast2 to set the DMA of hdb (the DVD ROM), Sus 10 shows me that the Required DMA Mode should be UltraDMA 33 but won't budge from showing the Curent DMA Mode as OFF.
This setting has to be also set manually somewhere in some config file I would think. Anyone know which config file this may be?
(Sus - no, not Suse, not until I get THIS wacky behaviour sorted out - accepted the change to the DMA to hdd which is my DVD burner.)
Had no trouble with this in earlier versions of sus, BTW.
Any suggestions on how to overcome this "feature" most welcome because I finally acquired the ability to view DVDs but I am not used to viewing jerky moving pictures.
Cheers.
-- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
Works ok here yast-- > hardware --> IDE DMA Mode --> select the drive you want to change the mode on go to bottom of the box click on the small downfacing arrow in the box pick the desired mode click on finish done that is on Suse 10.0. with all the updates .. Pete . -- If Bill Gates had gotten LAID at High School do YOU think there would be a Microsoft ? Of course NOT ! You gotta spend a lot of time at your school Locker stuffing underware up your ass to think , I am going to take on the worlds Computer Industry -------:heard on Cyber Radio.:------- AFFA
Peter Nikolic wrote:
On Saturday 05 Nov 2005 15:37, Basil Chupin wrote:
How does one make SuSE 10 accept the fact that I want the DMA on the DVD ROM set to UDMA 33?
No matter what I try in Yast2 to set the DMA of hdb (the DVD ROM), Sus 10 shows me that the Required DMA Mode should be UltraDMA 33 but won't budge from showing the Curent DMA Mode as OFF.
This setting has to be also set manually somewhere in some config file I would think. Anyone know which config file this may be?
(Sus - no, not Suse, not until I get THIS wacky behaviour sorted out - accepted the change to the DMA to hdd which is my DVD burner.)
Had no trouble with this in earlier versions of sus, BTW.
Any suggestions on how to overcome this "feature" most welcome because I finally acquired the ability to view DVDs but I am not used to viewing jerky moving pictures.
Cheers.
-- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
Works ok here yast-- > hardware --> IDE DMA Mode --> select the drive you want to change the mode on go to bottom of the box click on the small downfacing arrow in the box pick the desired mode click on finish done that is on Suse 10.0. with all the updates ..
Pete .
In my query I mention that I have tried to use yast to set the DMA - and it doesn'w work so doing what you suggest is not going to work here. Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
On 5 Nov 2005, blchupin@tpg.com.au wrote:
This setting has to be also set manually somewhere in some config file I would think. Anyone know which config file this may be?
/etc/sysconfig/ide. You can also just put the hdparm command line in /etc/rc.d/boot.local (you can fine tune it more this way) which is what I do. Charles -- "Are [Linux users] lemmings collectively jumping off of the cliff of reliable, well-engineered commercial software?" (By Matt Welsh)
Charles philip Chan wrote:
On 5 Nov 2005, blchupin@tpg.com.au wrote:
This setting has to be also set manually somewhere in some config file I would think. Anyone know which config file this may be?
/etc/sysconfig/ide. You can also just put the hdparm command line in /etc/rc.d/boot.local (you can fine tune it more this way) which is what I do.
Charles
Many thanks. I shall now look at these 2 files to see what I may see. BTW, what exactly do you mean by "fine tune"? And the other thing, what exactly is the entry/entries in /boot.local, just simply hdparm -d1 /dev/hdb ? Asking because putting the correct entry in /sysconfig/ide and 'hdparm -d1 /dev/hdb' in /boot.local do not fix the problem- the udma for hdb (aka dvd and cdrom) still won't "stick" and the only way to (temporarily) set it is via the command line as Bryan does it. Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
On Sunday 06 November 2005 8:32 am, Basil Chupin wrote:
Many thanks. I shall now look at these 2 files to see what I may see.
BTW, what exactly do you mean by "fine tune"? And the other thing, what exactly is the entry/entries in /boot.local, just simply hdparm -d1 /dev/hdb ? Asking because putting the correct entry in /sysconfig/ide and 'hdparm -d1 /dev/hdb' in /boot.local do not fix the problem- the udma for hdb (aka dvd and cdrom) still won't "stick" and the only way to (temporarily) set it is via the command line as Bryan does it.
Cheers.
Once you have the command line parameters for hdparm that work for your device, cut+paste them into a line in /etc/init.d/boot.local with a comment line about what and why. The boot.local file won't be touched by future YaST, YOU or whatever updates and changes. Remember: hdparm -h will list all the things you can try on the device. The ones labeled (DANGEROUS) you can skip. As to why your device won't keep YaST's settings you will probably find that it will take a customized hdparm setting to make it work. There are the -k and -K parameters for hdparm that 'keep_settings_over_reset' and 'keep_features_over_reset' respectively, which should help your situation IF the device honors them. I had this happen to me back in the 7.3 or 8.0 days on a shiny new hard drive. A couple versions of SUSE later and YaST's IDE DMA Mode worked on it. The drive took a weird numerical value for its DMA Mode, something like 67 which wasn't listed as a legitimate value. Go figure. It worked. I had a faster device and later SUSE/YaST caught up and auto-configured it. YMMV, Stan
On Sunday 06 November 2005 12:31, Stan Glasoe wrote:
Many thanks. I shall now look at these 2 files to see what I may see.
BTW, what exactly do you mean by "fine tune"? And the other thing, what exactly is the entry/entries in /boot.local, just simply hdparm -d1 /dev/hdb ? Asking because putting the correct entry in /sysconfig/ide and 'hdparm -d1 /dev/hdb' in /boot.local do not fix the problem- the udma for hdb (aka dvd and cdrom) still won't "stick" and the only way to (temporarily) set it is via the command line as Bryan does it. [....] As to why your device won't keep YaST's settings you will probably find
On Sunday 06 November 2005 8:32 am, Basil Chupin wrote: that it will take a customized hdparm setting to make it work. There are the -k and -K parameters for hdparm that 'keep_settings_over_reset' and 'keep_features_over_reset' respectively, which should help your situation IF the device honors them. [...]
I see the same thing as the original poster. The hdparm -K option doesn't work on any CD or DVD drives here. So, the DMA has to be forced on boot as described above.
Charles philip Chan wrote:
On 5 Nov 2005, blchupin@tpg.com.au wrote:
This setting has to be also set manually somewhere in some config file I would think. Anyone know which config file this may be?
/etc/sysconfig/ide. You can also just put the hdparm command line in /etc/rc.d/boot.local (you can fine tune it more this way) which is what I do.
Charles
I have already responded to the above, but I have just been doing a bit of looking-around and must now state, "Hang on, something not quite kosher here" :-) I have a 2nd computer with sus 10 installed and there the UDMA for the HDs and the opticals are shown correctly. I just had a look at the /etc/sysconfig/ide file and it has zilch in it- not a sausage, no parameters set. So, the dma has to be set/configured elsewhere otherwise sus 10 couldn't come up with the correct UDMA settings in yast/hardware/ide dma. Any clues where this other place could be? :-). Anyone? Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2005-11-10 at 14:50 +1100, Basil Chupin wrote:
So, the dma has to be set/configured elsewhere otherwise sus 10 couldn't come up with the correct UDMA settings in yast/hardware/ide dma. Any clues where this other place could be? :-). Anyone?
The kernel does it on its own if it thinks it can. You only need to do it manually when you have to contradict the kernel thinking. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDc5VftTMYHG2NR9URAgyWAJwMjtPhK0E3DbTy+WIObVLJrBNKeQCeM2W+ bt3w+r95m1FyuXqju78E4Qc= =+0SA -----END PGP SIGNATURE-----
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Thursday 2005-11-10 at 14:50 +1100, Basil Chupin wrote:
So, the dma has to be set/configured elsewhere otherwise sus 10 couldn't come up with the correct UDMA settings in yast/hardware/ide dma. Any clues where this other place could be? :-). Anyone?
The kernel does it on its own if it thinks it can.
You only need to do it manually when you have to contradict the kernel thinking.
- -- Cheers, Carlos Robinson
Well I have to very strongly disagree with the kernel at every boot, and even if I manually set the UDMA the darn kernel (or something) just plain refuses to obey my commands. Cheers. -- Ignorance can be corrected. Stupidity is permanent.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2005-11-12 at 01:58 +1100, Basil Chupin wrote:
The kernel does it on its own if it thinks it can.
You only need to do it manually when you have to contradict the kernel thinking.
Well I have to very strongly disagree with the kernel at every boot, and even if I manually set the UDMA the darn kernel (or something) just plain refuses to obey my commands.
In that case, I'd carefully scan the kernel log (sometimes it is not enabled, or it goes mixed in /var/log/messages), watching for DMA related messages. If the kernel sees a dma timeout or some other problem when using it, it dissables dma on that drive and continues. What exact command do you use to set it? I use simply "hdparm -d1 device", and let the drive choose the exact mode. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDddL7tTMYHG2NR9URAqmRAJ9shLc1AXZInA38SeVv0Xlvty2hvQCeIWMa La3g1nwjYXkguZRL1GjVKLA= =Mx3h -----END PGP SIGNATURE-----
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Saturday 2005-11-12 at 01:58 +1100, Basil Chupin wrote:
The kernel does it on its own if it thinks it can.
You only need to do it manually when you have to contradict the kernel thinking.
Well I have to very strongly disagree with the kernel at every boot, and even if I manually set the UDMA the darn kernel (or something) just plain refuses to obey my commands.
In that case, I'd carefully scan the kernel log (sometimes it is not enabled, or it goes mixed in /var/log/messages), watching for DMA related messages. If the kernel sees a dma timeout or some other problem when using it, it dissables dma on that drive and continues.
The log shows nothing unusual. The kernel correctly detects and sets the UDMA of all 4 devices but then something "unsets" the UDMA for /dev/hdb and this is reflected in IDE DMA in Yast2.
What exact command do you use to set it? I use simply "hdparm -d1 device", and let the drive choose the exact mode.
Yep, I am using hdparm -d1 -k1 /dev/hdb to set it in /etc/sysconfig/ide but this does not help at all - I still have to set it manually after a boot. Earlier today I remembered that I had Xandros 3 Deluxe so installed it just to see what happens re (1) this UDMA hassle and (2) not being able to play DVD in sus 10 out of the box. Under Xandros the UDMA is correctly set, and I was able to play a DVD as soon as Xandros was installed - no stuffing around with anyting, just insert a DVD and xine played it. I think I know which way I am now heading.... Cheers. -- Ignorance can be corrected. Stupidity is permanent.
On Saturday 05 November 2005 10:37, Basil Chupin wrote:
Any suggestions on how to overcome this "feature" most welcome because I finally acquired the ability to view DVDs but I am not used to viewing jerky moving pictures.
I usually type in a terminal: hdparm -d1 /dev/dvd I find that it sticks for long periods but occasionally is lost. I have not been able to figure out why it goes away sometimes. However, if I see the DVD starts to play jerky, I just go to a terminal and issue the above command again. I agree with you that probably there is a config file that can store this setting, but like you, I don't know where it is. If someone here can post what file it is, that would be great. Bryan ******************************************************** Powered by SuSE Linux 9.2 Professional KDE 3.3.0 KMail 1.7.1 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ********************************************************
Bryan Tyson wrote:
On Saturday 05 November 2005 10:37, Basil Chupin wrote:
Any suggestions on how to overcome this "feature" most welcome because I finally acquired the ability to view DVDs but I am not used to viewing jerky moving pictures.
I usually type in a terminal:
hdparm -d1 /dev/dvd
I find that it sticks for long periods but occasionally is lost. I have not been able to figure out why it goes away sometimes. However, if I see the DVD starts to play jerky, I just go to a terminal and issue the above command again.
I agree with you that probably there is a config file that can store this setting, but like you, I don't know where it is. If someone here can post what file it is, that would be great.
Bryan
Ah, so it also happens to you. Glad to see that I am not Robinson Crusoe. Many thanks. I'll use this method if I cannot get it to "stick" by using what Charles has suggested. A question: when you state that you go to a terminal and issue the hdparm command when the playback is jerky,is that while the DVD is playing or do you stop the DVD first? Cheers, -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
On Sunday 06 November 2005 09:12, Basil Chupin wrote:
when you state that you go to a terminal and issue the hdparm command when the playback is jerky,is that while the DVD is playing or do you stop the DVD first?
I stop the DVD first. I never tried it while the DVD was playing, so I don't know if that would work or not. Bryan ******************************************************** Powered by SuSE Linux 9.2 Professional KDE 3.3.0 KMail 1.7.1 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ********************************************************
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Monday 2005-11-07 at 01:54 -0500, Bryan Tyson wrote:
I stop the DVD first. I never tried it while the DVD was playing, so I don't know if that would work or not.
I have, but on a HD, while Yast was installing the distro. Worked perfectly. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDb2OXtTMYHG2NR9URAt+NAKCODEEHlfSYLpZdRjRZQvZK5/+1pgCeINtt wOeND6eROTEiZzQJttycYdg= =5J4C -----END PGP SIGNATURE-----
Bryan Tyson wrote:
On Sunday 06 November 2005 09:12, Basil Chupin wrote:
when you state that you go to a terminal and issue the hdparm command when the playback is jerky,is that while the DVD is playing or do you stop the DVD first?
I stop the DVD first. I never tried it while the DVD was playing, so I don't know if that would work or not.
Bryan
Well, you CAN go to a terminal and (as root) use the hdparm command to reset the DMA but, of course, you will miss a portion of the film during this step. BTW, if you stop the DVD - at least pause the film - then the hdparm setting for DMA is lost and you will have to use the hdparm command to reset it. Such are the wonders of sus in this year of our lord 2005. AND devious plans are also now afoot to replace KDE with some gnome droppings. Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2005-11-08 at 16:19 +1100, Basil Chupin wrote:
Well, you CAN go to a terminal and (as root) use the hdparm command to reset the DMA but, of course, you will miss a portion of the film during this step.
Why "of course"? I did change that setting while copying files, and did not loose a byte. The only thing you could notice is a glitch, a delay, while the kernel activates the change: if the viever reacts to delays by dropping frames (which is a normal trick, by the way) then yes, you will miss a portion. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDcLvitTMYHG2NR9URAobbAJ9dd9sAJ5t2Jp0REifTC6PZBD3QdACfX3oE I3mEsPgjPER6W+8zyrXDhr8= =Qhf7 -----END PGP SIGNATURE-----
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Tuesday 2005-11-08 at 16:19 +1100, Basil Chupin wrote:
Well, you CAN go to a terminal and (as root) use the hdparm command to reset the DMA but, of course, you will miss a portion of the film during this step.
Why "of course"?
I don't know how you manage it but if you are watching a DVD and have to use the hdparm command then going to another desktop to start a terminal or do, say, CTRL-ALT-F2, logon as root and issue the command you miss a portion of the film. You can hear the audio but you don't see the video- hence you miss a portion of the film.
I did change that setting while copying files, and did not loose a byte. The only thing you could notice is a glitch, a delay, while the kernel activates the change: if the viever reacts to delays by dropping frames (which is a normal trick, by the way) then yes, you will miss a portion.
- -- Cheers, Carlos Robinson
Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2005-11-10 at 01:10 +1100, Basil Chupin wrote:
reset the DMA but, of course, you will miss a portion of the film during this step.
Why "of course"?
I don't know how you manage it but if you are watching a DVD and have to use the hdparm command then going to another desktop to start a terminal or do, say, CTRL-ALT-F2, logon as root and issue the command you miss a portion of the film. You can hear the audio but you don't see the video- hence you miss a portion of the film.
X'-) Touché! But you can view it on a window, with xterm in another small window ;-) I thought you meant that as a result of the command, a portion of the movie would not show, like a big jitter or jump. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDchIFtTMYHG2NR9URAuM7AJ0QTskgJ+4h31563J8mwPinioTarQCePLvq 8OmTtin2lfpW8GAxJbGPgiY= =aQtN -----END PGP SIGNATURE-----
Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The Thursday 2005-11-10 at 01:10 +1100, Basil Chupin wrote:
reset the DMA but, of course, you will miss a portion of the film during this step.
Why "of course"?
I don't know how you manage it but if you are watching a DVD and have to use the hdparm command then going to another desktop to start a terminal or do, say, CTRL-ALT-F2, logon as root and issue the command you miss a portion of the film. You can hear the audio but you don't see the video- hence you miss a portion of the film.
X'-)
Touché!
No 'touche' intended :-).
But you can view it on a window, with xterm in another small window ;-)
I have no doubt that one could also be viewing a DVD on one computer and also access it via a network and use hdparm command, could one not? I guess there are all sorts of ways of achieving the reset of DMA while a DVD is playing but not something one would employ in the an everyday situation.
I thought you meant that as a result of the command, a portion of the movie would not show, like a big jitter or jump.
Ah, I see. I didn't think of that and I suppose this could happen. Perhaps this actually happens because I only hear the fillum while using hdparm at the other runlevel. Cheers. -- In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.
participants (7)
-
Basil Chupin
-
Bryan Tyson
-
Carlos E. R.
-
Charles philip Chan
-
Peter Nikolic
-
Stan Glasoe
-
Synthetic Cartoonz