If you have to set native resolution on system console (if for example you have to run scfb driver for X), first check resolutions supported by UEFI - escape to loader prompt when booting OS and type:
mode
That should list all textual modes recognized by loader (alternatively you can also try gop list or uga list, but saving gop mode setting using following method won't work (I don't know about uga since my computer doesn't support it)). After this you can set mode you want to use using
mode NUMBER