viktorgino / headunit-desktop

HeadUnit Desktop is a car PC software built with Qt 5 and QML
https://github.com/viktorgino/headunit-desktop/wiki
GNU General Public License v3.0
284 stars 64 forks source link

screen shrink after each reboot #21

Closed MrNHQ closed 6 years ago

MrNHQ commented 6 years ago

Hello,

I am using a 7inch hdmi screen 800x480 and i am using your image. I added a auto login and auto start your headunit-app after boot. Each time that the Pi boots, (screen for booting is ok) the app restart and the screen schrinks more and more. At the end I don't see the scren at all (please see attached pictures).

I have the same behavior without touching the image at all.

Would you know why? I shut it down by direcly powering off, is it a problem?

img_20180104_230300 img_20180104_221204 img_20180104_230748

mrsylerpowers commented 6 years ago

I had the same problem but instead of 'every time it rebooted' it was everytime I restarted the program.

denghauser commented 6 years ago

I found the reason why, but can't solve the issue as I'm not deep enough in the code and can't find the place where it save the data. There is a file named "/root/.config/viktorgino/viktorgino's HeadUnit Desktop.conf" In this file there the current config is stored. And it seems that the (screen width - width of menu) is stored back into the General -> width variable. So I found the reason but not the cure :-) Maybe someone can help out here.

viktorgino commented 6 years ago

It's caused by https://github.com/viktorgino/headunit-gui/blob/master/qml/main.qml#L12 I'll do a pull request shortly, and upload a new image that has this change this weekend.

gomme600 commented 6 years ago

I'm having the same problem, was anyone able to resolve it?

viktorgino commented 6 years ago

Hi

This has been resolved with https://github.com/viktorgino/headunit-gui/commit/17700e1b92926a564dcfb3cb823b0957e9b9fe67