• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Working on disabling Throttlestop undervolt when sleeping - Dell XPS 15

boofbuscus

New Member
Joined
Oct 29, 2019
Messages
4 (0.16/day)
I have a Dell XPS 15 and have successfully undervolted it which has drastically improved temperatures and performance which is great!
The downside, is that when the laptop is put to sleep it will most often crash due to the reduced voltage and fail to sleep requiring a hard reset.
This occurs during any small or large undervolt and is common across Dell XPS 15 owners. So my mission is to have the undervolt only applied when inside Windows and to turn off before the laptop sleeps.
Previously the fix was to go into the BIOS and set 'Force S3 Sleep', however Dell in their infinite wisdom have removed this option.

I already have task scheduler set to start Throttlestop when I login which works beautifully setting my -0.125mV undervolt (confirmed with HWmonitor) however now I need a solution to set the undervolt to 0mV offset before it sleeps.
I observed the event logs when the laptop sleeps, and it sends a Kernel Power Event with ID 42 just before going to sleep. I can use this trigger to try and run a script to set the Undervolt to 0mV right before it sleeps to save it from crashing. Then once I login it will resume the -0.125mV underclock.

I can think of two ways of doing this:
1) Run a script to change the .ini file to set an underclock of 0mV, and hopefully this change would be immediate and apply before Sleep
2) Run a script to turn off Throttlestop before the laptop sleeps

I am thinking Option 1 would be best, as for some reason no matter if I turn on or off Throttlestop (whether it is green or red in the task bar) the underclock is still applied (confirmed with HWmonitor). So simply turning off or killing the Throttlestop process would not disable the underclock. I would need to actually TELL the laptop to remove the voltage offset, does that sound right?

If all the above sounds good, can someone help me write a script that is simple and can run very quickly to remove the underclock before the laptop goes to sleep?

Thanks!
 

unclewebb

RealTemp Author
Joined
Jun 1, 2008
Messages
1,440 (0.34/day)
1) Running a script to change the INI configuration file is not going to work because ThrottleStop does not read the INI file before the computer goes to sleep.
2) ThrottleStop does not reset the voltages when it exits so this is not going to work either.

Can you post a screenshot of your ThrottleStop FIVR window so I can see your under volt settings? What CPU model do you have? Is your under volt 100% stable? What sort of stress testing have you done? Can you pass a 1 Thread 1024M TS Bench test with 0 errors as well as a full load TS Bench test with 0 errors? I just want to make sure that your sleep issues are not being caused by too big of an under volt.

For testing purposes, try setting up a second profile in ThrottleStop. In the FIVR window for your second profile, you will need to check the Unlock adjustable voltage option and set the offset voltage to zero. When you switch to this profile, it should zero your offset voltage. Now go into sleep mode and see if you have any problems resuming. Try this 5 or 10 times to see what your success rate is. When you resume, ThrottleStop will still be at zero offset voltage so you will have to manually switch back to your profile that has the under volt applied.

If this fixes the problem you are having with sleep mode then I will add a "zero voltage when going to sleep" option to ThrottleStop. This would be way easier than trying to cobble together some scripts. Send me a private message so we can do some testing.

Edit - Checking the new Voltage option should reset the offset voltages to zero just before Windows enters sleep mode.

 
Last edited:

boofbuscus

New Member
Joined
Oct 29, 2019
Messages
4 (0.16/day)
Edit - Checking the new Voltage option should reset the offset voltages to zero just before Windows enters sleep mode.

How do I find the new voltage option? I seem to have the latest version of Throttlestop 8.70.6 but cannot see this option

Thanks
 

unclewebb

RealTemp Author
Joined
Jun 1, 2008
Messages
1,440 (0.34/day)
How do I find the new voltage option?
I added a zero offset voltage option to ThrottleStop just for you but I have not publicly released this updated version yet. In the next day or two I will send you a download link so you can give it a try.

Initial testing looks good. It takes my laptop about 1.5 seconds to shutdown from the time that Windows gives the signal to ThrottleStop. In the log file, you can see the VID voltage increase so the zero offset voltage option is definitely working. When it resumes from sleep mode, the CPU immediately goes back to using offset voltage.

I brought this topic up in the NBR ThrottleStop forum and another user said that he had a similar problem on a couple of his low power laptops. Hopefully the updated ThrottleStop version will allow users to maintain their under volt without having any issues when going to and resuming from sleep mode.

Code:
   DATE       TIME    MULTI   C0%   CKMOD  CHIPM   BAT_mW  TEMP  GPU     VID   POWER
2019-10-29  14:33:44  35.91    1.2  100.0  100.0        0   45     0   1.0457    4.3
2019-10-29  14:33:44  35.83    1.3  100.0  100.0        0   44     0   1.0463    4.1
2019-10-29  14:33:44  35.90    1.1  100.0  100.0        0   44     0   1.0463    3.9
2019-10-29  14:33:44  35.57    2.3  100.0  100.0        0   45     0   1.0463    5.5
2019-10-29  14:33:44  35.89    1.9  100.0  100.0        0   45     0   1.0463    4.5
2019-10-29  14:33:44  35.87    1.7  100.0  100.0        0   45     0   1.0463    4.6
2019-10-29  14:33:44  35.89    1.6  100.0  100.0        0   44     0   1.0463    4.2
2019-10-29  14:33:44  35.89    1.6  100.0  100.0        0   45     0   1.0463    4.3
2019-10-29  14:33:45  35.91    1.1  100.0  100.0        0   44     0   1.0458    3.7
2019-10-29  14:33:45  35.89    1.5  100.0  100.0        0   44     0   1.0457    4.0
2019-10-29  14:33:45  35.43    3.2  100.0  100.0        0   44     0   1.0458    6.7
2019-10-29  14:33:45  35.77    1.9  100.0  100.0        0   44     0   1.0458    4.7
2019-10-29  14:33:45  35.67    1.9  100.0  100.0        0   44     0   1.0458    4.7
2019-10-29  14:33:45  34.72    8.2  100.0  100.0        0   45     0   1.0458    9.7
2019-10-29  14:33:46  35.87    4.2  100.0  100.0        0   46     0   1.0463    6.1
2019-10-29  14:33:46  33.98   55.7  100.0  100.0        0   53     0   1.0853   34.3 - Windows shutdown signal received
2019-10-29  14:33:46  34.00   86.0  100.0  100.0        0   57     0   1.0841   34.1 - overclock is decreased and VID voltage has increased
2019-10-29  14:33:46  34.00   94.6  100.0  100.0        0   56     0   1.0841   35.6
2019-10-29  14:33:46  34.00   55.3  100.0  100.0        0   56     0   1.0841   30.6
2019-10-29  14:33:46  34.00   33.6  100.0  100.0        0   53     0   1.0845   23.6
2019-10-29  14:33:46  34.00   27.8  100.0  100.0        0   56     0   1.0853   22.2
2019-10-29  14:33:47  34.00   33.1  100.0  100.0        0   58     0   1.0841   23.6
2019-10-29  14:33:47  34.00   26.9  100.0  100.0        0   58     0   1.0841   22.3
2019-10-29  14:33:47  34.00   67.3  100.0  100.0        0   59     0   1.0804   28.5
2019-10-29  14:33:47  34.00   97.0  100.0  100.0        0   60     0   1.0804   35.8
2019-10-29  14:33:47  34.00   80.0  100.0  100.0        0   60     0   1.0804   33.1
2019-10-29  14:33:47  34.00   80.8  100.0  100.0        0   60     0   1.0792   33.2
2019-10-29  14:33:47  34.00   49.9  100.0  100.0        0   60     0   1.0792   33.9 - computer heading into sleep mode with 0 offset voltage
2019-10-29  14:33:56   1.00  100.0  100.0  100.0        0   58     0   1.0414   33.9 - Approximately 9 seconds later, computer wakes up
2019-10-29  14:33:56  32.01   67.3  100.0  100.0        0   58     0   1.0414   68.1 - CPU is coming back up to speed
2019-10-29  14:33:56  32.00   51.7  100.0  100.0        0   57     0   1.0408   32.4 - VID offset (-40 mV) has been re-applied
2019-10-29  14:33:56  32.13   37.4  100.0  100.0        0   58     0   1.0414   32.2
 

unclewebb

RealTemp Author
Joined
Jun 1, 2008
Messages
1,440 (0.34/day)
ThrottleStop 8.71

New Features
- new option to set FIVR offset voltages to zero when entering Windows Sleep mode.
- reporting of maximum multiplier in FIVR Turbo Ratio Limits.
- updated link to The ThrottleStop Guide (2019) at Ultrabook Review.





Only a couple of minor updates. This new feature will zero the offset voltage just before entering Sleep mode which might help the CPU resume from Sleep mode more reliably. Some laptops have problems resuming when using under volts that are on the edge of stability.

The other feature should show the default maximum turbo multiplier.

This version is not signed. If you do not need these new features, I would continue using TS 8.70.6.

@boofbuscus - Thanks for your patience. Let me know if this new feature solves the problem you are having with your Dell XPS.
 

unclewebb

RealTemp Author
Joined
Jun 1, 2008
Messages
1,440 (0.34/day)
@boofbuscus - Your suggestion and feedback are appreciated. There are a lot of different laptops that are going to benefit from this new feature.
 

Notbillgates

New Member
Joined
Nov 13, 2019
Messages
1 (0.10/day)
@unclewebb I was having similar issues. My Lenovo Y540 9750h was 100% stable while up and running, but it would sometimes randomly crash and reboot during sleep. Because of that issue, I had been using a smaller undervolt.

I began using the test version you posted here on Saturday. I wanted to test it well before reporting back my results. I again lowered my undervolt and have not yet had one crash or reboot while in sleep or wake. This appears to have fixed my issue!

Thank you for your work, time, and amazing program. You are a credit to the tech community. Please, let me know if I can do anything for you, testing or whatever else.
 

unclewebb

RealTemp Author
Joined
Jun 1, 2008
Messages
1,440 (0.34/day)
@Notbillgates - Perhaps Intel includes a little bit of extra voltage so CPUs will resume reliably. Resetting the offset voltage to default values seemed like a good idea. There are probably quite a few laptops that are going to benefit from this new feature. Thanks for the feedback.
 

rrock_15

New Member
Joined
Nov 15, 2019
Messages
2 (0.29/day)
@Notbillgates - Perhaps Intel includes a little bit of extra voltage so CPUs will resume reliably. Resetting the offset voltage to default values seemed like a good idea. There are probably quite a few laptops that are going to benefit from this new feature. Thanks for the feedback.
Hi, just stopping by to say thanks for the update! I switched to throttlestop on my new XPS 15 7590 with i7 7590U after XTU gave me grief with sleeping while undervolted, only to find that throttlestop has been doing the same thing when I opened up my laptop today. Went to google looking for a solution only to find that a fix was implemented just last week! Can't believe my timing here haha, thanks again for the work you're doing :)
 

unclewebb

RealTemp Author
Joined
Jun 1, 2008
Messages
1,440 (0.34/day)
I switched to throttlestop on my new XPS 15 7590 with i7 7590U
Is your CPU the Core i7-9750H? I do not think Dell is installing any 7590U CPUs in any recent laptop.

It is good to hear that this new feature has helped solve your problem. Your under volt is probably right on the edge of stability. Try running the TS Bench test and set it to 1 Thread. This will get the CPU using the highest multiplier. You should not see any errors during any test.

Post an update in a week or two if your CPU is still resuming from sleep without any issues.
 

rrock_15

New Member
Joined
Nov 15, 2019
Messages
2 (0.29/day)
Is your CPU the Core i7-9750H? I do not think Dell is installing any 7590U CPUs in any recent laptop.

It is good to hear that this new feature has helped solve your problem. Your under volt is probably right on the edge of stability. Try running the TS Bench test and set it to 1 Thread. This will get the CPU using the highest multiplier. You should not see any errors during any test.

Post an update in a week or two if your CPU is still resuming from sleep without any issues.
Yes indeed, its a 9750H :) "Right on the edge" is a good way to put it, I wanted to maximize performance to power consumption ratios, while improving battery/normal AC usage thermals. Currently running a -110mv cache and -220mv core undervolt that is now quite stable with the new zero offset whilesleep feature. Only consuming 45w under heavy load at 2.6ghz with this undervolt as opposed to 56w, and have 3.7ghz stable @56w. EST set to 255 on battery profile, 0 on AC and performance beause dynamic clock on wall power is pointless to me. Really good stuff here!
 
Last edited:
Top