Skip to content

Instantly share code, notes, and snippets.

@SmokelessCPUv2
Last active May 28, 2023 12:53
Embed
What would you like to do?
6 line of code to unlock steam Deck BIOS
#include <sys/io.h>
void main(){
ioperm(0x72,2,1);
outb(0xF7,0x72);
outb(0x77,0x73);
}
@SmokelessCPUv2
Copy link
Author

SmokelessCPUv2 commented Apr 12, 2023

compile with gcc -O1 SD_Unlocker.c -o SD_Unlocker
Run with

sudo ./SD_Unlocker

Boot to Steam Deck OG Bios and Enjoy

@parkerlreed
Copy link

What does this do?

@LaurenceGough
Copy link

io.h cannot be found after installing gcc. Any help would be appreciated. Thanks.

@Alia5
Copy link

Alia5 commented Apr 28, 2023

What does this do?

This will give you all the Menus "Smokeless UMAF" gave you, but integrated in the normal Steamdeck BIOS ;)
(I only can confirm this for BIOS v115)

@Falkentyne1
Copy link

Alia5, could you kindly give us a direct 'step by step' for people that have no experience with Linux, the desktop or apps (besides typing a program in discover and clicking "install", etc?).

@tempebe
Copy link

tempebe commented Apr 29, 2023

Heads up, TDP controls don't seem to work using this tool. Thanks for creating it mate!

@tempebe
Copy link

tempebe commented Apr 29, 2023

Alia5, could you kindly give us a direct 'step by step' for people that have no experience with Linux, the desktop or apps (besides typing a program in discover and clicking "install", etc?).

https://www.reddit.com/r/SteamDeck/comments/132ew62/you_can_easily_unlock_the_bios_allowing/?utm_source=share&utm_medium=android_app&utm_name=androidcss&utm_term=1&utm_content=share_button

@Alia5
Copy link

Alia5 commented Apr 29, 2023

Heads up, TDP controls don't seem to work using this tool. Thanks for creating it mate!

They didn't work on v114 with SmokelessUMAF either.
However, you can just disable Power throttling and call it a day ¯\_(ツ)_/¯

@i-lost-my-bagel
Copy link

io.h cannot be found after installing gcc. Any help would be appreciated. Thanks.

Compile it on another machine

@LaurenceGough
Copy link

LaurenceGough commented Apr 30, 2023

Compile it on another machine

Thanks, this was on DietPi which is heavily based off Raspberry Pi OS, which is based off Debian OS. I did try on the Steam Deck itself but it didn't work as gcc wouldn't install at all and I found it was advised not to perform this on the Steam Deck anyway due to limitations.

In the end I didn't want to spend hours on such a simple task so I downloaded some random compiled file from Japan, I wasn't a fan of it but my Steam Deck doesn't store anything confidential anyway and it worked great, a nice -20 undervolt now.

I've mixed thoughts on the gatekeeping of compiled files. I hope it can change in the future, perhaps Valve or AMD could add some further anti bricking steps (wishful thinking I know).

@DenoG1997
Copy link

It worked. But when I disabled the power throttling it ignores the manual edited fast and slow tdp

@DenoG1997
Copy link

how can I reset it to default?

@vicpala
Copy link

vicpala commented May 21, 2023

I have test with BIOS v116 without issues. The two options are enabled.

I have one question.
To undervolt CPU, GPU and SOC on their respective section. What values can I set? Absolut values in mV or just the offset with plus or minus symbols?

@ASmyrnyi
Copy link

ASmyrnyi commented May 21, 2023

@vicpala same question
upd: https://youtu.be/LNEI7BTc87Q?t=648 this explains it

@vicpala
Copy link

vicpala commented May 22, 2023

@ASmyrnyi not the same with BIOS v116
I have seen this tutorial before, however with BIOS v116 there are not any option to choose Negative or positive offset, just only exists one field to set a numerical value and I guess should be the absolute value of total Voltage in mV not just a offset with + or - signal

@ASmyrnyi
Copy link

@vicpala didn't know about that, thanks for explaining

@Falkentyne1
Copy link

The negative and positive offsets are still there for me on 116.

@Shivox
Copy link

Shivox commented May 22, 2023

Just bear in mind, that using the unlocked section to set TDP won't work, it will always get capped at 15w.
In order to override that you have to use Smokeless UMAF after unlocking the BIOS using this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment