Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config does not work if no display config exists in the first place #4

Open
PeterDHabermehl opened this issue Jun 17, 2020 · 4 comments
Assignees
Labels
config-app Config app specific issues

Comments

@PeterDHabermehl
Copy link
Collaborator

I just set up a new TX-pi with 4" MHI display. Std config is landscape. So I started the config app but it does not open the display page. Probably due to the screen orientation.

@PeterDHabermehl
Copy link
Collaborator Author

Sorry, correction.

The display page doesn't open because there's an issue reading the previous config. Should be fixed anyway.

@PeterDHabermehl
Copy link
Collaborator Author

Sorry, correction.

The display page doesn't open because there's an issue reading the previous config. Should be fixed anyway.

Application: /opt/ftc/apps/system/txpiconfig/config.py
Application started at: 2020-06-17T16:15:01.275619
Traceback (most recent call last):
File "/opt/ftc/apps/system/txpiconfig/config.py", line 180, in _show_pane
self.widget(index).before_focus()
File "/opt/ftc/apps/system/txpiconfig/config.py", line 556, in before_focus
self._retrieve_display_config()
File "/opt/ftc/apps/system/txpiconfig/config.py", line 568, in _retrieve_display_config
if config.rotation is not None: # Check for None since 0 is a valid value
AttributeError: 'NoneType' object has no attribute 'rotation'

@heuer heuer self-assigned this Jun 17, 2020
@heuer
Copy link
Collaborator

heuer commented Jun 17, 2020

I asked myself how it is possible to have no config, 2c65536 explains it. ;)

@harbaum
Copy link
Member

harbaum commented Jun 17, 2020

Excellent. I had a need for this with a Waveshare DSI display. Unfortunately DSI displays don't play nicely with the HAT as they redefine the i2c-0. So the eeprom and the rtc don't work.

@heuer heuer changed the title Config does not work in landscape mode Config does not work if no display config exists in the first place Jun 17, 2020
@heuer heuer transferred this issue from ftCommunity/tx-pi Sep 4, 2020
@heuer heuer added the config-app Config app specific issues label Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config-app Config app specific issues
Projects
None yet
Development

No branches or pull requests

3 participants