Hello SuSE-users! When I do xine-check I get a hint to enable DMA for my DVD interface. I have tested both DMA modes and they both works fine. Now I would like to make a startscript so hdparm -d1 -X66 /dev/hdc starts at boot. Can somebody teach me how to do this? Tor Kjemo.
* Tor Kjemo; <tor.kjemo@telia.com> on 03 Nov, 2002 wrote:
I have tested both DMA modes and they both works fine. Now I would like to make a startscript so hdparm -d1 -X66 /dev/hdc starts at boot. Can somebody teach me how to do this?
place the command in /etc/init.d/boot.local (hint at that time of the start program may not find where hdparm is located so specify the location as well ie /sbin/hdparm -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
söndag 03 november 2002 10:26 skrev Togan Muftuoglu:
place the command in /etc/init.d/boot.local (hint at that time of the start program may not find where hdparm is located so specify the location as well ie /sbin/hdparm
Works fine. Thanks. But i get e message under boot: /dev/hdc: setting using_dma to 1 (on) setting xfermode to 66 (UltraDMA mode2) HDIO_DRIVE_CMD(setxfermode) failed: Input/output error using_dma = 1 (on) What does it mean? Tor Kjemo
HDIO_DRIVE_CMD(setxfermode) failed: Input/output error First of all, let me make it clear that I am no expert, but have played around with this in the past. Secondly, make sure you have a backup, or at least don't mind losing your data, as I take no responsibility :o)
The failed message [from what I can understand] means that when you tried to set the -X66 option, for the transfer mode, it didn't like it and can't seem to change it. Have a look at the output of dmesg and see what it says. Mine says: Uniform Multi-Platform E-IDE driver Revision: 6.31 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=x If when you next boot your machine, you type "idebus=66" when lilo boots [not sure about grub, but from what I have read, it should be the same!] then check that the system boots, there are no data errors, and that dmesg doesn't complain, then that may just work :o) I hope this helps, if not then please let me know and I will try to be a bit more clear :o) Take care, Jon Jeffels
The Purple Tiger <Jon@tigersden.demon.co.uk> [3 Nov 2002 13:28]:
If when you next boot your machine, you type "idebus=66" when lilo boots
This option has *nothing* to do with the UDMA mode! If you would have read the message closely, you would have seen that this influences the PIO modes! To use correct timings (PIO mode has rather hard timing constraints), the code needs to now the bus speed of the system. idebus names the *system bus clock rate*, which normally is 33 MHz. This option is meant to be used when you're overclocking your system and thus possibly change the bus clock of your system (e.g. on systems where you can't set the bus speed independently from the processor clock). If you haven't changed the system clock rates, do not touch that option or you'll get *lower* transfer speed in PIO modes. Philipp -- Philipp Thomas work: pthomas@suse.de Development SuSE Linux AG private: pth@t-link.de
On Sunday 03 November 2002 3:23 pm, Philipp Thomas wrote:
If when you next boot your machine, you type "idebus=66" when lilo This option has *nothing* to do with the UDMA mode!
Ahh, thank you Philipp, I stand very much corrected and now I am more informed, thank you! Jon
* Tor Kjemo; <tor.kjemo@telia.com> on 03 Nov, 2002 wrote:
söndag 03 november 2002 10:26 skrev Togan Muftuoglu:
place the command in /etc/init.d/boot.local (hint at that time of the start program may not find where hdparm is located so specify the location as well ie /sbin/hdparm
Works fine. Thanks. But i get e message under boot:
/dev/hdc: setting using_dma to 1 (on) setting xfermode to 66 (UltraDMA mode2)
HDIO_DRIVE_CMD(setxfermode) failed: Input/output error
Actually there is a parameter at /etc/sysconfig/hardware DEVICES_FORCE_IDE_DMA_ON="" DEVICES_FORCE_IDE_DMA_OFF="" Have you tried these before you started todo via boot.local -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
I have just installed suse ver 8.1. Now I have got a strange problem, I am unable to logout, I only get a black screen with a curser i upper left corner, it wil not restart the xserver, any good idea? Tage
* Tage Danielsen <tage@htd-information.dk> [11-03-02 08:56]:
I have just installed suse ver 8.1. Now I have got a strange problem, I am unable to logout, I only get a black screen with a curser i upper left corner, it wil not restart the xserver, any good idea?
This happens when you hijack a Subject: line. -- Patrick Shanahan Registered Linux User #207535 @ http://counter.li.org
On Sunday 03 November 2002 14.53, Tage Danielsen wrote:
I have just installed suse ver 8.1. Now I have got a strange problem, I am unable to logout, I only get a black screen with a curser i upper left corner, it wil not restart the xserver, any good idea?
You could look in /var/log/kdm.log and see if kdm is crashing for some reason. Anders
Actually there is a parameter at /etc/sysconfig/hardware
DEVICES_FORCE_IDE_DMA_ON="" DEVICES_FORCE_IDE_DMA_OFF=""
Have you tried these before you started todo via boot.local
It works fine now. I edited /etc/sysconfig/hardware. DEVICES_FORCE_IDE_DMA_ON="/hdc" Thanks a lot! Tor Kjemo
participants (7)
-
Anders Johansson
-
Philipp Thomas
-
SuSEnixER
-
Tage Danielsen
-
The Purple Tiger
-
Togan Muftuoglu
-
Tor Kjemo