Stop vgaswitcheroo service on supend and start on resume. Gnome 3

1st. Hello, whenever I suspend my MacBook Pro mid-2012 it resumes fine, but I have a problem if on suspend I have my discrete GPU disabled I cannot make a clean restart. On wake-up the discrete gpu becomes enabled again, but for some reason I cannot disable it manually anymore. Anyway what I wanted to know is what file should I edit under gnome to enable dGPU before suspend and disable it again on wake up. I tried it manually and it works perfectly.
2nd. Also can I use systemctl suspend by default on lid close or pressing a sleep button from power menu in Gnome? It seems to do the sleep and wake up faster.
Thank you in advance!

To clarify I want to do systemctl stop vgaswitcheroo before suspend and systemctl start vgaswitcheroo on resume.

Similar Messages

  • I have a brand new macbook pro that i was doing a data transfer from an old macbook, it got stopped/cable pulled out, now have spinning wheel of death that wont stop, how do i reboot/stop the wheel of death and start again?

    i have a brand new macbook pro that i was doing a data transfer via firewire from an old macbook, it got stopped/cable pulled out, now have spinning wheel of death that wont stop, how do i reboot/stop the wheel of death and start again? (this time il use time machine transfer)

    Just power off the machine(s). Shut them down. Migration Assistant gets 'stuck' sometimes - best way to migrate really isn't over Firewire, though it will certainly work, but with both machines hardwired via Ethernet to the same router. You can use a TM backup, too, of course, provided that it's recent. Which is the best? Your choice. I've done it both ways and have a preference for MA, but TM restore can be a bit faster and less quarrelsome.
    Clinton

  • How do I view two clips overlapping each other, each being semitransparent to see both at the same time, so that I can decide where to stop of the first clip and start of the second clip? Thanks.

    Basically I want to combine to clips with correct timings. For that I want to view the two clips overlapping each other, each being semitransparent to see both at the same time, so that I can decide where to stop of the first clip and start of the second clip? Thanks.

    see my reply in your other post:
    You're familiar with the TRIM-tool?
    http://help.apple.com/finalcutpro/mac/10.1/?lang=en#ver1632caff
    http://help.apple.com/finalcutpro/mac/10.1/?lang=en#ver1632d8e4
    http://help.apple.com/finalcutpro/mac/10.1/?lang=en#ver1632d9ae

  • How can I stop downloading pictures into iPhoto and start down loading into a portable hard drive?

    How can I stop downloading pictures into iPhoto and start down loading into a portable hard drive?

    You could use the Image Capture application.

  • Hello I would like to know how to stop my service by mistake and canceled an amount not want to pay or the product

    hello I would like to know how to stop my service by mistake and canceled an amount not want to pay or the product

    Hi Jimmy,
    You may be able to cancel your membership following the processes outlined here: https://helpx.adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html
    Else, you will need to contact our support for assistance with the process: Contact Customer Care
    Be sure to sign into the Adobe ID associated with your membership
    Hope that helps,
    - Dave

  • My download of photoshop 12 stopped overnight at 1.1GB and I cannot resume?

    how do I resume it without starting all over again?

    if you're using the akamai download app, it should resume.

  • The visual Studio Test controller service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs

    We are using VS2013 Premium. i have installed vs2013 Test controller in my dev environment. While i am configuring (https://msdn.microsoft.com/en-us/library/hh546459.aspx) getting error message in
    the Configuration summary dialog box displaying following error's : 1. Failed to Configure TFS Team Project Collection, 2. Could not complete operation as the time out expired. ''
    I have checked the "visual Studio Test controller " in the
    Services --> Administrative. Its automatically stopped the service. When i started the manually its showing message like as 'The visual Studio Test controller
    service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs'
    Please guide me how to resolve this problem. 
    Thanks in Advance...

    Hi Divakar,
    What’s the version of your TFS?
    How do you configure the test control?
    Please make sure you are specify the team collection instead of team project.
    On the other hand, you may enable test controller logs. (You could share the log file on the OneDrive)
    # How to enable test controller logs
    http://blogs.msdn.com/b/aseemb/archive/2009/11/28/how-to-enable-test-controller-logs.aspx
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Scripts to notify stop and start of services

    dear all,
                 i m looking for a script to send me a mail whenever oracle apps service is shutdown and start.your help will be appreciated thanks in advance.
    os:rhel6
    ebs :12.1.3
    db:11.2.0.3

    The full order list can be found at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch05s02.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • My rented movie has stopped before the end and will not resume

    HElp
    i just rented a movie and it has stopped playing 20 minutes in and will not resume

     iTunes: How to resume interrupted iTunes Store downloads
              http://support.apple.com/kb/HT1725
    If it's a purchased movie, then just redownload it from the cloud (if not a rental)
     Downloading past purchases from the App Store, iBookstore, and iTunes Store
              http://support.apple.com/kb/HT2519

  • Order of stop and start of reporting services

    Hi All,
    I am using 11.1.1.3 version in my laptop,i want know the correct order of stop and start the services,please help me on this.
    Thanks
    Hypuser

    The full order list can be found at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch05s02.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How may I automatically stop and start Mail services at a set time please

    Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
    Cheers, David ( a realy newbie when it comes to administering OS X server)

    launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
    So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
    /Library/LaunchDaemons/local.postfix.stop.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.stop</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>stop</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>1</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    and /Library/LaunchDaemons/local.postfix.start.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.start</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>start</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>4</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
    I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down?

  • ITunes Match has stopped uploading - every file errors and says waiting - I have tried to delete the files and use other formats etc.  I have had the service since Day 1 and NEVER had an issue.  It didn't start until the Delete from Cloud switch to Hide

    iTunes Match has stopped uploading - every file errors and says waiting - I have tried to delete the files and use other formats etc.  I have had the service since Day 1 and NEVER had an issue.  It didn't start until the Delete from Cloud switch to Hide from cloud - the files that do not upload show grayed out on my other devices.

    Have you confirmed that you successfull purged iTunes Match by also looking on an iOS device?  If so, keep in mind that Apple's servers may be experiencing a heavy load right now.  They just added about 19 countries to the service and I've read a few accounts this morning that suggests all's not running perfectly right now.

  • Task created to stop and start Health service not working.

    We have multiple servers being grayed out so we created a task to stop and start the health service on SCOM 2007 R2. We have created two tasks one to stop and another task to start. The STOP task works but the START tasks keeps running but there is no result
    as well as when i check in Services.msc it is still stopped. Below are the screen shots .
    Task created to STOP the health service which is running.
    Screen shot of service start task creation which is NOT working
    The same was created for another service windows audio. Which worked for both stop and stop (Created separate tasks).
    We also tried the recycle health service and chche which is also failing.
    Can any one please help. The issue is on both SCOM 2007R2 and 2012 R2 both. Is there any other way to touch the health service.
    We are facing the issue only with Healthservice.

    Hi All,
    Thank you for all your answers.
    @ dktoa -
    You are right we have to concentrate on the servers to determine why do they go grey (all in one site). But before we do that i felt i find a temporary solution. Then go deep investigation to solve the issue.
    @Yan LI: As per the likn provided above you. I overrided the servers but still the health services were not starting or restarting. When i created a custom group and added the servers to that  group in that site and then  enabled the override on Restart
    Health Service for a specific group and pointed towards that group then it worked.
    Thanks All.

  • When i plug my ipod in it says ipod cant be read cuz the apple mobile device is not started.And i went to services and apple mobile device properties and start stops in the middle.and its on automatic.and there isnt a stop button.

    when i plug my ipod in it says ipod cant be read cuz the apple mobile device is not started.And i went to services and apple mobile device properties and start stops in the middle.and its on automatic.and there isnt a stop button.when i click start it says the apple mobile device services stopped in the middle then stopped.it said some services stop in the middle if not used by other services.and i just updated itunes before all a this and ever since ive had errors.

    Have you looked at this article:
    iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows

  • How to start and Stop Running services with Java Programme

    I have some Service Runinig on My Windows machine like Tomcat Server,i want to update some file in Tomcat server through java program ,it works only when my tomcat stops ,I want to write peice of Code so that i can stop service with my prog and start after updating my files

    heres something that may help yeah
    http://wrapper.tanukisoftware.org/doc/english/introduction.html

Maybe you are looking for