datasone / setup_var.efi

UEFI command-line tool for read/write access of variables
Apache License 2.0
210 stars 7 forks source link

Error parsing arguments #20

Open sheef0 opened 6 months ago

sheef0 commented 6 months ago

Hi there! I was trying to unlock CPU undervoltage on my hp gaming laptop 15-dk1. when I run .\setup_var.efi CpuSetup:0xDA=0x0 I get the error "Error parsing arguments: Unexpected value: CpuSetup:0xDA=0x0" . Any Ideas? Thanks !

GeographicCone commented 6 months ago

Note the following:

The new usage document is for git master version. For current newest release (0.2.x), refer to document of that version.

To use the new-style syntax, feel free to use a fork I created a while ago: https://github.com/GeographicCone/UefiVarTool

sheef0 commented 6 months ago

Hey thanks a lot for the answer ! So I used the right syntax and I got "error while writing data ... Variable CpuSetup WRITING PROTECTED". Do you think there is a way around this other than physically flashing the bios? I'm desperately trying to undervolt the cpu on my laptop. Cheers!

GeographicCone commented 6 months ago

Do you think there is a way around this

Not by using this utility, which simply makes a call to UEFI Runtime Services: https://github.com/datasone/setup_var.efi/blob/7cc892972aba1a384e32f1555964e19724b5b20b/src/utils.rs#L166-L167

Unless you have a setting for this in your BIOS (UEFI) Setup, ways to bypass any such restrictions are platform-dependent.

Check out https://winraid.level1techs.com/ as a good starting point.