Snaps can't edit config.txt on RPI

Bug #1587137 reported by Sergey Borovkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned

Bug Description

Config.txt is part of gadget snap and can't be edited by another snap. This is needed to enable/disable overscan, set correct resolution, etc.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I suspect this might become a gadget specific hook that gets to write to this file as a part of the configuration system but I'm not sure if the details are fleshed out yet.

Changed in snappy:
status: New → Confirmed
Revision history for this message
Jamie Bennett (jamiebennett) wrote :

Do you envisage that this file will be written to more than once i.e. something more than first configuration? If not could you instead just use a custom gadget snap with the correct values from the offset?

Revision history for this message
Sergey Borovkov (serge-borovkov) wrote :

I don't think it can be written once. When user connects rpi to some weird display we might need to change hdmi_mode/hdmi_drive. If there is new rpi model we might have to adjust gpu_mem and so on. A lot of stuff might be changed dynamically.

Revision history for this message
Penk Chen (penk) wrote :

Commonly used properties list are:

disable_overscan
framebuffer_width
framebuffer_height
framebuffer_depth'
framebuffer_ignore_alpha
overscan_left
overscan_right
overscan_top
overscan_bottom
overscan_scale
display_rotate
hdmi_group
hdmi_mode
hdmi_drive
avoid_warnings
gpu_mem_256
gpu_mem_512
gpu_mem

Here's the full list from official documentation:
https://www.raspberrypi.org/documentation/configuration/config-txt.md

Revision history for this message
Jamie Bennett (jamiebennett) wrote :

Could we instead, for the short term, have a separate gadget snap per different target device which the options already set. This requires knowledge of the target hardware up-front but does unblock things until we have a generic solution.

Revision history for this message
Michael Vogt (mvo) wrote :

Here is a first strawman branch to make progress on this https://github.com/snapcore/snapd/pull/2471

Revision history for this message
Michael Vogt (mvo) wrote :

And here is the corresponding pi2 gadget PR (still WIP at this time of writing): https://github.com/snapcore/pi2-gadget/pull/6

Revision history for this message
Michael Vogt (mvo) wrote :

This is implemented now via the core snap config.

Changed in snappy:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.