UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
Trying to imrpove the function of my dvd drive I tried to switch on dma via hdparm.
This works fine from the command line.
I then trie dto make this change permanent by altering /etc/hdparm.conf, but did not get anywhere. The comment section suggested four different ways of using hdparm.conf, setting defaults, settings for people with devfs, setting directly for the devices and finally with a commandline integrated into hdparm.conf.
While the individual settings worked fine set from the commandline, nothing at all ever happened when introducing these settings via any of the four described ways into hdparm.conf.
There is a hdparm script in init.d, which calls hdparm.conf at boot.
One solution obviously would be to put a script into my own startup routines e.g in gnome startup, but this appears to be a bit of a botch job.
Well since the proper config file is not working for you try editing the file /etc/init.d/bootmisc.sh and near the bottom just before the : exit 0 put your hdparm command there and see if it helps.
hdparm works fine if called on the commandline, but the /etc/init.d/hdparm script does not seem to parse /etc/hdparm.conf
I have enclosed a variety of different commands into /etc/hdparm.conf and run "sudo /etc/init.d/hdparm restart" over and again, but with absolutely no difference made.
I have used the defaults option, I set direct commandlines, I have done everything.
I then put an echo into /etc/init.d/hdparm at various places where I knew I would not cause harm but could not elucidate the problem. Unfortunatley I do not understand code enough to read and understand /etc/init.d/hdparm really... But I do think teh problem must be in that file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.