-   SUSE / openSUSE (
-   -   system profile vs user profile (

bonito 06-27-2006 04:08 PM

system profile vs user profile

I had a problem with 'jumpy' DVD playback whenever i would watch a DVD on my Suse10.0.
The solution was running this one shell command:
hdparm -d1 /dev/dvd

Thats it!! i dont know why, but it works!! Smooth Playback ALL the time. = ]

The only catch is that i have to manually run it again, everytime i reboot my suse10 system.

Is there a way i can add this command so it will run everytime my system boots up?

i would prefer it to be run in the 'system' profile (instead of the user profile).
This way, no matter which local user logs in, the setting is already in effect.

is it be possible to do someting like this?

thank you

nadroj 06-27-2006 04:41 PM

i would think /etc/rc.d/rc.local would be the best place to add the command. if the file doesnt exist, create it and make it executable.

bonito 06-28-2006 08:10 AM

how so?

okay, i know how to make the file executable: chmod 755

but how do i make the file?
dont i have to start it with "#!" or something?

hdparm -d1 /dev/dvd


like that? and just save it and put it in the "/etc/rc.d/rc.local"?
or do i hav eto put it in a rc5 subdirectory or something (dont have a linux box nearby at the moment)

thanks again, and i apologize for my newbie-ness!

nadroj 06-28-2006 01:02 PM

you shouldnt HAVE to put anything else besides the commands, if you want you can do though, its: '#!/bin/bash' as the first line.
to create the file run 'vi /etc/rc.d/rc.local' if it doesnt exist already. youll need to do this as root, because other normal accounts shouldnt have access to this area.

All times are GMT -5. The time now is 06:52 AM.