Line 91: |
Line 91: |
| ==Step 4: Reboot== | | ==Step 4: Reboot== |
| shutdown -r now | | shutdown -r now |
| + | ================================================================================== |
| + | =Alternate set of instructions= |
| + | |
| + | apt-get install nano |
| + | |
| + | ==1. Update= |
| + | |
| + | cd /zynthian/zynthian-sys; git checkout . |
| + | cd /zynthian/zynthian-ui; git checkout . |
| + | cd /zynthian/zynthian-sys/scripts/ |
| + | ./update_zynthian.sh |
| + | ./update_zynthian.sh #Yes twice - first run returns an error on a fresh installation |
| + | ./update_zynthian_data.sh |
| + | ./update_zynthian_recipes.sh |
| + | ./update_zynthian_sys.sh |
| + | |
| + | ==2. Edit fb1 to fb0 in all three files: |
| + | nano /etc/systemd/system/zynthian.service |
| + | nano /zynthian/zynthian-sys/sbin/splash- screen.sh |
| + | nano /zynthian/zynthian-sys/scripts/zynthian_envars.sh |
| + | |
| + | ==3. Also here: |
| + | nano /zynthian/zynthian-sys/etc/systemd/zynthian.service |
| + | # Find and modify the following line |
| + | Environment=FRAMEBUFFER=/dev/fb0 |
| + | |
| + | ==4. Edit boot/config.txt |
| + | |
| + | nano /boot/config.txt |
| + | |
| + | Edit the following lines according to your screen |
| + | framebuffer_width=1024 |
| + | framebuffer_height=600 |
| + | |
| + | comment out both lines |
| + | #dtoverlay=pitft28-capacitive,rotate=90,speed=32000000,fps=20 |
| + | #dtoverlay=pitft28-resistive,rotate=90,speed=32000000,fps=20 |
| + | |
| + | Add these lines at the end of the file (the values below should be adjusted according to your screen) |
| + | max_usb_current=1 |
| + | hdmi_goup=2 |
| + | hdmi_mode=1 |
| + | hdmi_mode=87 |
| + | hdmi_cvt 1024 600 60 6 0 0 0 |
| + | |
| + | ==5. Configure X11 |
| + | |
| + | cd /etc/X11/xorg.conf.d/ |
| + | |
| + | remove all files except 99-pitft.conf |
| + | |
| + | edit the config |
| + | nano 99-pitft.conf |
| + | |
| + | the file should look like this |
| + | Section "Device" |
| + | Identifier "HDMI" |
| + | Driver "fbdev" |
| + | Option "fbdev" "/dev/fb0" |
| + | EndSection |
| + | |
| + | ==6. In order to increase font size: |
| + | |
| + | nano /zynthian/zynthian-ui/zynthian_gui_config.py |
| + | |
| + | |
| + | Find and modify the following lines |
| + | |
| + | topbar_height=48 |
| + | font_topbar=(font_family,18) |
| + | font_listbox=(font_family,16) |
| + | font_ctrl_title_maxsize=18 |