Results 1 to 6 of 6

Thread: Reboot if...

  1. #1
    Join Date
    Apr 2014
    Beans
    3

    Reboot if...

    Hello! I have one quick question since I cannot find anything useful on Google, I came here .
    Is it possible to reboot PC, if GPU temperature drops under 40°C?
    Thats all folks!

  2. #2

    Re: Reboot if...

    I'm sure it's possible, but you must have misstyped that question. Don't you mean reboot PC if GPU temp rises ABOVE 40⁰C?

  3. #3
    Join Date
    Apr 2014
    Beans
    3

    Re: Reboot if...

    Nope. It was not typo. If it drops UNDER is what I ment

  4. #4
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: Reboot if...

    Do you currently have a method to get your gpu temp?
    eg for my nvidia I can use ...
    Code:
    nvidia-settings -t -q GPUCoreTemp
    ....or when using the nouveau driver I can get a temp using lm-sensors.

    Once you have a method to get temps would be fairly simple to write a bash script
    to reboot below a certain temp.

    Here's an example of a script running a command when a temp is exceeded.
    http://ubuntuforums.org/showthread.php?t=816410

    To use the reboot command without sudo in a script, run.....
    Code:
    sudo chmod +s /sbin/reboot
    Last edited by grumblebum2; April 4th, 2014 at 10:13 AM.

  5. #5
    Join Date
    Apr 2014
    Beans
    3

    Re: Reboot if...

    root@local:~# aticonfig --adapter=all --odgt


    Adapter 0 - AMD Radeon R9 200 Series
    Sensor 0: Temperature - 35.00 C

    Now it should reboot

    EDIT!: The only thing is that i'm scared of loop. When PC will reboot, thing is that GPU will be under 40°...
    Last edited by sebastjan2; April 4th, 2014 at 10:54 AM.

  6. #6
    Join Date
    Mar 2014
    Beans
    Hidden!

    Re: Reboot if...

    So why do you want to monitor for a low temp?
    Would you need to delay the start of the script to allow
    computer to warmup sufficiently?
    Last edited by grumblebum2; April 5th, 2014 at 03:11 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •