LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2012, 09:20 AM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
modprobe question


Gday. So i'm trying to configure my macbook pro with Gnu/Linux again. Last time i wasn't happy with the battery life and that seems to be my biggest issue again.
Anyways, i need to run these two commands.
Code:
modprobe acpi_cpufreq
modprobe cpufreq_ondemand
I can run them fine, but if i reboot, i need to run them again, how does one have these run each time i reboot.

I'm running Opensuse 12.2 if that's of any consequence

Thanks
 
Old 09-11-2012, 10:59 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,146

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Put them in a script and set it to run at start-up using the KDE Session manager.

On the general topic of power saving, you may find something useful here:
http://www.lesswatts.org/
 
1 members found this post helpful.
Old 09-11-2012, 08:52 PM   #3
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
So there isn't a standard configuration file that usually gets edited to achieve this?

Thankyou very much for that websight, that'll be very helpful. It's been really awesome, while i've been configuring this mac, i've been finding tricks like the ones on that page, and once i'm done, many i can implement on my primary laptop too, which is my main work machine by the way. (dependent on laptops, not on the power grid)
 
Old 09-11-2012, 11:24 PM   #4
malak33
Member
 
Registered: Dec 2011
Location: Amish Country PA, USA
Distribution: CentOS 6.2
Posts: 104

Rep: Reputation: 3
i believe that the file you want is /etc/rc.d/rc.local
 
1 members found this post helpful.
Old 09-14-2012, 11:29 AM   #5
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,146

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I'd forgotten rc.local! Using Linux is like living in a great city: no matter how long you've been there, you still need to get directions sometimes.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about modprobe miros84 Linux - Newbie 13 12-28-2009 01:53 AM
modprobe question greplinux Linux - Newbie 2 04-09-2009 01:00 AM
modprobe question ethyrdude Debian 2 11-17-2006 04:52 PM
Need to un-modprobe question jbuckley2004 Linux - General 2 01-25-2006 03:01 PM
modprobe question littleking Slackware 8 12-04-2003 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration