WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore 9.0.3 boot to python script with GUI  (Read 22317 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: piCore 9.0.3 boot to python script with GUI
« Reply #75 on: May 25, 2020, 06:05:02 AM »
I don't have the means to (easily) test, but on an x86/x86_64 machine you would need the graphics-KERNEL extension, which I see is not present in the piCore-9.x armv6 repo...
« Last Edit: May 25, 2020, 06:07:31 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: piCore 9.0.3 boot to python script with GUI
« Reply #76 on: May 25, 2020, 06:27:12 AM »
graphics-4.9.22-piCore added to the repo

Offline Pacca

  • Newbie
  • *
  • Posts: 37
Re: piCore 9.0.3 boot to python script with GUI
« Reply #77 on: May 25, 2020, 08:55:30 AM »
Hi Juanito,
thank you, I will try to add this extension. Out of curiosity, why do I need it? Only to handle the HDMI connection? I read the comment in the .info file. Just to be sure, do I have to add the line
Code: [Select]
dtoverlay=vc4-fkms-v3d to config.txt?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14799
Re: piCore 9.0.3 boot to python script with GUI
« Reply #78 on: May 25, 2020, 10:07:48 AM »
I suppose the audio is output via a graphics (hdmi) connector, hence the need for graphics-KERNEL.

I don't know if you need "dtoverlay=vc4-fkms-v3d" or not - hdmi graphics works in 2d mode without it, but I don't know if hdmi audio is enabled.

Offline Pacca

  • Newbie
  • *
  • Posts: 37
Re: piCore 9.0.3 boot to python script with GUI
« Reply #79 on: May 25, 2020, 10:29:22 AM »
I can't get the audio working. If I use the overlay for 3d graphics, I don't even get video output. I tried forcing HDMI setting "hdmi_drive=2" in config.txt but nothing changes. Even using the command "amixer cset numid=3 2" does nothing.

Offline Pacca

  • Newbie
  • *
  • Posts: 37
Re: piCore 9.0.3 boot to python script with GUI
« Reply #80 on: May 25, 2020, 10:37:38 AM »
I am sorry Juanito, I made a silly mistake. Now everything is working, thank you so much!

EDIT: alsa-modules-KERNEL.tcz and alsa.tcz are the only extensions needed.
« Last Edit: May 25, 2020, 10:43:15 AM by Pacca »

Offline Pacca

  • Newbie
  • *
  • Posts: 37
Re: piCore 9.0.3 boot to python script with GUI
« Reply #81 on: May 25, 2020, 11:17:23 AM »
I saw that before loading the GUI of my python script, the piCore wallpaper is shown very briefly. Is there any way to remove it completely?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11594
Re: piCore 9.0.3 boot to python script with GUI
« Reply #82 on: May 25, 2020, 11:40:21 AM »
Hi Pacca
It's probably caused by  ~/.xsession  calling  ~/.setbackground.  So you can remove that line from  ~/.xsession.

Offline Pacca

  • Newbie
  • *
  • Posts: 37
Re: piCore 9.0.3 boot to python script with GUI
« Reply #83 on: May 25, 2020, 12:21:09 PM »
Hi Rich,
it was exactly that, thanks!