[solved] and yet this question..why my rc.local doesn't work

Hi,
I would like to add some commands to the rc.local but I can't figure out why rc.multi is reading it but it doesn't have any effect.
rc.local
#!/bin/bash
echo "LOCAL"
/usr/bin/xset dpms 180 360 720 &> /dev/null
/usr/bin/cpufreq-set -c 1 -f ondemand &> /dev/null
/usr/bin/cpufreq-set -c 0 -f ondemand &> /dev/null
I see during booting that the echo "LOCAL" is written but when I check for instance xset the values are the default and not what I want... the same applies for the cpufreq...
just in case if I run:
#/etc/rc.local
it works.. it does what I want but why not at boot-time?
I understood from the wiki that:
it is run after the basic setup (modules/daemons)
as the root user,
and whether or not X starts.
I'd appreciate it if someone can tell me how to set the rc.local
Last edited by bradomyn (2011-09-26 22:27:48)

It's working actually, my bad.
First issue:
/usr/bin/cpufreq-set -c 1 -f ondemand &> /dev/null
/usr/bin/cpufreq-set -c 0 -f ondemand &> /dev/null
this two commands can be replaced by
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
for each of my cores in /etc/rc.local to set the governor during boot.
as  moetunes suggested me in this post:
https://bbs.archlinux.org/viewtopic.php?id=127165
and the other issue:
/usr/bin/xset dpms 180 360 720 &> /dev/null
well after reading the xorg documentation xset sets the values but the default values are going to be load after...overwriting. If I specify this values in the xorg.conf according to:
blanking section
http://www.shallowsky.com/linux/x-screen-blanking.html

Similar Messages

  • Question: why the 802.11n doesn't work on my brand new MacBook?

    dear sirs,
    I've just found out that the 802.11n upgrade doesn't work for my MacBook 2 GHz Intel Core Duo. How come? Is it possible? What should I do to have it talk to my also new AirPort Extreme 802.11n at the same rate?
    Thanks in advance for your help.
    Tomaso

    Also on http://www.apple.com/airportextreme/performance.html it states:Most currently shipping Mac systems support the next-generation 802.11n technology in the new AirPort Extreme Base Station.2
    2. All Mac computers with Intel Core 2 Duo and Intel Xeon processors except the 17-inch iMac with 1.83GHz Intel Core 2 Duo processor support the 802.11n technology in AirPort Extreme. These 802.11n-compatible Mac systems require enabler software that is included on the AirPort Extreme CD.

  • Whenever I go to preview a song in itunes, the song with play out for about 10 seconds and then stop. Why isn't the song previews working? How can I fix this? I tried updating my itunes and it didn't work.

    Whenever I go to preview a song in itunes, the song with play out for about 10 seconds and then stop. Why isn't the song previews working? How can I fix this? I tried updating my itunes and it didn't work. I use windows 7. Thanks!

    Try:                           
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar                                     

  • My 80gb doesn't boot up this morning. apple logo keeps coming up for a few seconds then you hear it "wind down" and got blank. Tried reseting multiple time - doesn't work. Ideas?

    my 80gb IPod doesn't boot up this morning. Worked great last nite. The apple logo keeps coming up for a few seconds then you hear it "wind down" and got blank. Tried reseting multiple time - doesn't work. Ideas?

    my 80gb IPod doesn't boot up this morning. Worked great last nite. The apple logo keeps coming up for a few seconds then you hear it "wind down" and got blank. Tried reseting multiple time - doesn't work. Ideas?

  • My mini Ipad says I haven't backed it up to iCloud for 2 weeks.  Back ups happen when this ipad is plugged in, locks, and connected to wifi.  The ok button doesn't work, I can't open settings to make sure wifi is connected. Nothing works!!!

    My mini Ipad says:   I haven't backed it up to iCloud for 2 weeks.  Back ups happen when this ipad is plugged in, locks, and connected to wifi. 
    The ok button doesn't work, I can't open settings to make sure wifi is connected. Nothing works!!!  I have it pluggled into my computer but apparently it isn't backing up since nothing has changed.  it is unuseable!

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • The last update failed on my window 7 pc, resulting in me having to try it manually download and install, this also failed leaving my I tunes not working, I tried restore back to a safer date, but every time it tried to update it failed. eventually i

    The last update failed on
    my window 7 home prermium pc, resulting in me having to try it manually download and install,
    this also failed leaving my I tunes not working, I tried restore back to a
    safer date, but every time it tried to update it failed. eventually it told me
    to delete and reinstall, this fails due to the apple mobile device service
    failing to start, and asking me if I have sufficient privileges to start system
    service, I have tried all suggestions on iTunes page, ie delete everything to
    do with apple, and start as administrator, nothing works, help please

    I too have tried the latest iTunes (12.1.1.4) in Win7. I did a search for latent drivers as you noted but found none. I am glad it worked for you - I'm still no-joy at this point. I'm able to install AMDS over and over again, without issue - it just doesn't start then iTunes launch fails with Error 7. I have to manually remove it.
    I am able to connect my iPhone via USB cable and access my photo storage on the phone. I am just not able to install iTunes anymore. I have attempted resolution to this issue for almost two months now. Until that time, I was content with what was installed. It was only when the proverbial update box appeared that I attempted to 'update' my iTunes. WHAT A MISTAKE putting blind faith into an Apple request to update. I SUGGEST NOT TO UPDATE YOUR ITUNES IF IT IS RUNNING PROPERLY!
    I realize now, once again I might add, my reliance on software provided by others. It's like anything else, I shouldn't rely on just one method for anything. Time to search for a more pleasant alternative than Apple. Truly, when it worked, it was good at its job, but now that I am wasting time I am looking seriously at upgrading to another type of smartphone and media management software. Way too much trouble for anything as simple as this should be. I wonder, is this a result of another feud with Microsoft?

  • Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    Why the italic function doesn't works in my Pages? I have already installed the actualization and it keeps not working...

    drag the other clip 'over' the main clip
    the 2nd clip has to be selected/yellow border...
    then you're prompted in the Inspector with the several options...

  • I have a 64 bit windows 7 and i have itunes 11 on it . itunes doesn't work as properly as 32 bit windows 7 .

    i have a 64 bit windows 7 and i have itunes 11 on it . itunes doesn't work as properly as one on 32 bit windows 7 .

    When requesting assistance, please provide the complete model name and/or product number of the HP computer in question. HP/Compaq makes thousands of models of computers that are all different. Without this information it may be difficult or impossible to assist you in resolving your issue.
    The above requested information can be found on the side, back, or bottom of your computer.
    Most driver packages available from most computer manufacturers and chipset providers contain setup information for both 32 and 64 bit operating systems. The installer determines the version to install based on the indentified operating system. This is an industry wide pratice and nothing is wrong.
    Please click the white KUDOS star to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • I can't seem to get my iMac (late 2009 model) into automatic sleep mode.  If I manually put it into sleep I don't have any issues.  I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion.

    I can't seem to get my iMac (late 2009 model) into automatic sleep mode.  If I manually put it into sleep I don't have any issues.
    I used to solve the issue by running "PleaseSleep" application but that doesn't work anymore since Lion. I now want to fix the underlying problem.
    I'm not running any weird background processes and in my energy saver settings I've tagged "put the hard disk to sleep when possible:, "allow power button to put computer to sleep" and "automatically reduce brigthness". All pretty standard.
    Is there anyone who can give me some pointers ?

    Today I solved the same problem for my iMac running Snow Leopard. See https://discussions.apple.com/thread/3008791#15947706. The method may help you, too.
    For me it was the DynDNS Updater preventing my iMac from automatically entering sleep mode.
    To my knowledge the cause of this sleep problem can only be a peripheral device or a process. So I suggest to first unplug all peripherals and test whether that's the cause. If not, I suggest to terminate one process after another and to test automatic entering of sleep mode after each. Start with user processes; continue with system process if necessary.
    At least that's the way I found the offending process. Fortunately, I was able to change the configuration of that process to allow again automatic entering of sleep mode.
    Good luck!

  • I have purchased the Adobe Creative Suite 4 and now my first dvd of the software doesn't work anymor

    I have purchased the Adobe Creative Suite 4 and now my first dvd of the software doesn't work anymore. My computer doesn't want to read it anymore. I want to mention that I also tried on some other computers and still the problems continues. How can I solve this? On the Adobe webpage I can't find anymore the download for Adobe CS4. Thanks. Marius Lupu

    You can download the software from http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html and can serialize it with the serial number you have.
    NOTE:- READ THE INSTRUCTION PROPERLY TO AVOID ANY ERROR.

  • Why some contact forms doesn't work on some websites? We don't receive the submission form with the information?

    Why some contact forms doesn't work on some websites? We don't receive the submission form with the information?

    Hi Aish
    I wanted to check the following, but the URL is not found, you have another one?
    thanks
    Nicole
        4. Visit http://my-site.com/scripts/form_check.php in a web browser and make sure you see all green checkmarks. If some items do not display green checkmarks that means that the hosting server is not configured correctly to allow the Form widgets to send email messages to the address you've specified.
                    Contact your web-hosting provider about the server configuration problem. Describe the items that are not marked as green in the form check page, so that they can help you set up the servers to use the correct settings.
    Il giorno 9-set-2014, alle ore 16:11, Aishvarya Raj Rastogi <[email protected]> ha scritto:
    Why some contact forms doesn't work on some websites? We don't receive the submission form with the information?
    created by Aishvarya Raj Rastogi in Help with using Adobe Muse CC - View the full discussion
    Hi Nicole,
    What is the "From" email address in your form?
    Also, have you checked the spam folder?
    Please check the following posts as well :
    https://forums.adobe.com/docs/DOC-3581
    Re: PHP mail may be disabled or incorrectly configured on the web server.
    Regards,
    Aish
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6714281#6714281
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Why does my n81 doesn't work properly in Vodafone ...

    Why does my n81 doesn't work properly in Vodafone Live?? I can't download....etc

    Hi,
    I'm sorry to hear that you're having problems downloading from Vodafone Live.
    If you're able to access the pages of Vodafone Live then the settings in your handset are correct else you wouldn't get that far.
    It's possible that there's a problem with your account that’s restricting you from downloading which will need to be looked into. Rather then transferring your account details on the forum would it be possible for you to contact me via email by completing Vodafone Online Contact Forum following the link below.
    https://online.vodafone.co.uk/dispatch/Portal/appmanager/vodafone/wrp?_nfpb=true&_pageLabel=Page_Hel...
    Please fill in all the fields and include the code FIT135 to ensure that the email is directed to the forum Team.
    As soon as we receive your email we can look into this further for you.
    I look forward to hearing from you.
    Techgirl
    Vodafone UK

  • I had to change my Apple ID and password in itunes. Now my icloud doesn't work and I can't update my apps on my iPhone. I have looked at suggestions on the community pages and apple suggestions but none of them are relevant to iOS 8.1.2  icloud just

    I had to change my Apple ID and password in itunes. Now my icloud doesn't work and I can't update my apps on my iPhone. I have looked at suggestions on the community pages and apple suggestions but none of them are relevant to iOS 8.1.2
    icloud just keeps bringing up my old email address & asking for my old password which doesn't exist anymore and when I try to sign out of icloud it wants my old password, when I tried to change my primary email back to the old one it wants me to verify it through an email address that doesn't exist. Please can you help me sort out this nightmare.

    Hi skippy2012trev,
    Welcome to the Apple Support Communities!
    I understand that you updated your Apple Id and password but now you are being prompted for the old information in iCloud. You are on the right track by changing the Apple ID back to the previous email address temporarily so that you can sign out. You should not need to verify the email address. After you edit the Apple ID back to the old email address and then sign out of iCloud on your iPhone, edit the Apple ID back to the address you would currently like to use. There is no need to change the password again, only the email address, unless you prefer to update the password again.
    If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support
    Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't help, try these steps:
    Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    Tap Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
    Scroll down and tap Sign Out, then tap Sign Out to confirm. If you're using iOS 7 or earlier, tap Delete Account, then tap Delete to confirm.
    Tap Keep on My [Device] or Delete from My [Device]. In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
    Enter the password for your previous Apple ID.
    Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    Return to Settings > iCloud and sign in with your new Apple ID.
    Cheers,
    Joe

  • I have an iPod Classic and the latest version of iTunes. I make all my purchases on my computer, but when I try to click the "add to" option and transfer the songs to my iPod, it doesn't work. How can I get my songs from my computer to my iPod?

    I have an iPod Classic and the latest version of iTunes. I make all my purchases on my computer, but when I try to click the "add to" option and transfer the songs to my iPod, it doesn't work. How can I get my songs from my computer to my iPod?

    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    B-rock

  • [SOLVED]Something wrong with Locale, "ÅÖÄ" doesn't work in terminal.

    If you have this kind of problem stated above in the title, or similar, here is what I did...
    Make sure you have correct locale, you'll need a UTF-8 one.
    As stated in the install guide(or beginner's guide iirc) do the following:
    Uncomment  one of the locales in "/etc/locale.gen", it doesn't have to be language pacific if you're only after using UTF-8 which provides more characters than normal ASCII.
    then run "locale-gen". Make sure to set your "/etc/locale.conf" to "LANG=en_US-UTF8" of course you can choose whatever locale you want not just "en_US-UTF-8". After that make sure to reboot, it may also work with just log-out and log-in again, but I did not reboot and neither log-out and when back in. If it still doesn't work, run "locale" and "locale-a" if the output is "C" in each column just redo what I stated above, if it still not work, then you have to consult the manual, wiki and if you don't find the problem use a search-engine and if you still don't find answer here on the forums, the people here is really helpful!
    Last edited by kalle97 (2012-10-01 17:46:16)

    " Okey I uncommented sv_SE.utf8 in /etc/locale.gen ...
    You're supposed to uncomment "sv_SV.UTF-8 UTF-8", then run locale-gen (with sudo), not "sv_SE.utf8".
    That's what I did.
    https://wiki.archlinux.org/index.php/Be … ide#Locale
    ^ Except that you shouldn't use "echo" in this case. That command works well when you're logged in as root, but for sudo, not so much. Check the file with nano and you'll see that nothing changed. For sudo, use tee.
    $ sudo tee /etc/locale.conf <<< "LANG=en_US.UTF-8"
    Note: You don't necessarily need "sv_SV" for those characters to show up. Setting a "sv_SV" locale would make programs show up in Swedish instead of English - unless that's what you want. UTF-8 locales will cover those characters just fine (provided that the font from the terminal actually contains those glyphs, of course).
    So you mean I can have en_US.UTF8 as locale but still write swedish letters? So the problem is with the font or somthing, not the locale?
    If you still have problems, post the output of:
    $ ls -l /etc/profile.d/locale.sh
    $ curl sprunge.us -F sprunge=@/etc/locale.gen
    $ curl sprunge.us -F sprunge=@/etc/locale.conf
    $ locale -a
    $ locale
    Well, I did as the guide told about locale.conf, it doesn't seem to work, even if "locale" outputs correct info now, but I'll try with restarting the X server too, just in case.....

Maybe you are looking for