# Emuelec 4.2 setres.sh

**URL:** <https://emuelec.discourse.group/t/emuelec-4-2-setres-sh/316>\
**Category:** Amlogic Devices\
**Created:** [July 30, 2021, 5:30pm UTC](https://emuelec.discourse.group/t/emuelec-4-2-setres-sh/316 "2021-07-30T17:30:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ducdreamer](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@ducdreamer](https://emuelec.discourse.group/u/ducdreamer)\
**Post date:** [July 30, 2021, 5:30pm UTC](https://emuelec.discourse.group/t/emuelec-4-2-setres-sh/316/1 "2021-07-30T17:30:54Z")

</div>

I have made A new install of emuelec 4.2 on a 32 gb card  
But now I have the same problem as my old 3.x install  
Screen overscan.  
When I try the same method i used on the 3.x version by modifying setres.sh, I get the error the file is unwritable.  
Copy the file to another location as suggested by ShantyGilbert make the file editable.  
But when i try to copy it back to the original location i cannot overwrite the original setres.sh  
I have set the file attibutes to 777  
I am hoping somebody can give me a tip how the overswite the original file with the new file

---

<div class="post-metadata">

**Author:** ![EmuELEC](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/emuelec/32/26_2.png) [@EmuELEC](https://emuelec.discourse.group/u/EmuELEC)\
**Post date:** [July 30, 2021, 5:52pm UTC](https://emuelec.discourse.group/t/emuelec-4-2-setres-sh/316/2 "2021-07-30T17:52:21Z")

</div>

Do not copy it to the original location, edit and leave it in `/emuelec/bin`

---

<div class="post-metadata">

**Author:** ![ducdreamer](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@ducdreamer](https://emuelec.discourse.group/u/ducdreamer)\
**Post date:** [July 31, 2021, 2:13pm UTC](https://emuelec.discourse.group/t/emuelec-4-2-setres-sh/316/3 "2021-07-31T14:13:12Z")

</div>

Hello Emuelec,  
I have tried this but when I reset emuelec the overscan is back  
so this is what I have done:  
copy setres.sh to /emuelec/bin  
nano setres.sh  
under “1080p60hz” as this is the resolution reported back from  
cat /sys/class/display/mode  
i have put this  
fbset -fb /dev/fb0 -g 1920 1080 1920 2160 $BPP  
echo 0 0 1919 1079 \> /sys/class/graphics/fb0/free\_scale\_axis  
echo 45 25 1870 1055 \> /sys/class/graphics/fb0/window\_axis  
echo 0x10001 \> /sys/class/graphics/fb0/free\_scale  
save the file  
these settings executed from the command line the sceen has no overscan.  
When i reset the device the overscan is back

---

<div class="post-metadata">

**Author:** ![EmuELEC](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/emuelec/32/26_2.png) [@EmuELEC](https://emuelec.discourse.group/u/EmuELEC)\
**Post date:** [August 1, 2021, 5:02pm UTC](https://emuelec.discourse.group/t/emuelec-4-2-setres-sh/316/4 "2021-08-01T17:02:44Z")

</div>

Hmmm yeah you might need v4.3 for this:

But try this, put your commands on the `custom_start.sh` file and try if it works like that

---

<div class="post-metadata">

**Author:** ![ducdreamer](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@ducdreamer](https://emuelec.discourse.group/u/ducdreamer)\
**Post date:** [August 2, 2021, 11:41am UTC](https://emuelec.discourse.group/t/emuelec-4-2-setres-sh/316/5 "2021-08-02T11:41:24Z")

</div>

Hello emuelec,  
This works.  
But can you tell me why the file system is read only?  
So I cannot edit any of the files there  
It even is inpossible to set attributes for the files there.  
But anyway thanks for the help  
Greetings Herman

---

<div class="post-metadata">

**Author:** ![EmuELEC](https://yyz2.discourse-cdn.com/free1/user_avatar/emuelec.discourse.group/emuelec/32/26_2.png) [@EmuELEC](https://emuelec.discourse.group/u/EmuELEC)\
**Post date:** [August 2, 2021, 5:26pm UTC](https://emuelec.discourse.group/t/emuelec-4-2-setres-sh/316/6 "2021-08-02T17:26:25Z")

</div>

> [@ducdreamer](#):
>
> But can you tell me why the file system is read only?

Because people kept screwing things up and I am tired of answering the same question 1000 times. People just change stuff that they don’t even know what it does because they read half of a post somewhere, then come to us for support and it gets tiresome and time consuming.

---

<div class="post-metadata">

**Author:** ![ducdreamer](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@ducdreamer](https://emuelec.discourse.group/u/ducdreamer)\
**Post date:** [August 3, 2021, 7:30am UTC](https://emuelec.discourse.group/t/emuelec-4-2-setres-sh/316/7 "2021-08-03T07:30:48Z")

</div>

Hello emuelec  
Thanks for your answer  
So it was not a mistake on my side  
It is by design  
Greetings Herman
