question

Ian avatar image
Ian asked

Cerbo, where is config.txt file?

Just upgraded from Pi with CAN-hat to Cerbo. Lovely unit BTW.

A few tweaks in Pi for HDMI screen resolution etc required changes to config.txt but I cannot find it on Cerbo.

Many thanks.


cerbo gx
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

4 Answers
Stefanie (Victron Energy Staff) avatar image
Stefanie (Victron Energy Staff) answered ·

Hi @SV-Gabrielle,

there is no such file for the Cerbo GX.

But you can try searching for it using the powerful 'find' command.

find / -name config.txt


2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

Ian avatar image
Ian answered ·

Yes thank you, tried that before posting.

So where can I force a hdmi screen width/height?

My LCD screen is 1024x600 resultion. If reboot wth hdmi disconnected then connect hdmi, I get the correct resolution:-

root@einstein:~# fbset

mode "1024x600-0"

# D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz

geometry 1024 600 1024 1200 32

timings 0 0 0 0 0 0 0

accel true

rgba 8/16,8/8,8/0,0/0

endmode


If however I reboot with hdmi connected, Cerbo sets resultion to 1024x768 so I lose bottom 20% of screen:-

root@einstein:~# fbset

mode "1024x768-0"

# D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz

geometry 1024 768 1024 1536 32

timings 0 0 0 0 0 0 0

accel true

rgba 8/16,8/8,8/0,0/0

endmode


Many thanks.

1 comment
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

@SV-Gabrielle,

it would help a lot when you try to follow some community basics, for example don't write an answer to your own question (unless you answer your question of course).

Instead try using Reply or Comment to keep this in a structure that everyone can follow. And it makes it easier for those trying to help because they get notified of it.


I think the best place for fbset and parameters is /etc/rc.local

But this might not survive a firmware update. Therefor you need to trick it.

Here is how it's done: Hooks to install/run own code at boot

0 Likes 0 ·
aikawa24 avatar image
aikawa24 answered ·

hi,

do you found a solution?

can you post it ?

I want to rotate die screen by 90°

maybe your solution will help me

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

fkai avatar image
fkai answered ·

Hi, anyone found a solution?
I also have the same issue.

2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.