Window manager

The place to share and discuss your Ultibo projects.
Gavinmc42
Posts: 1656
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Window manager

Postby Gavinmc42 » Sun Jul 09, 2017 1:07 am

What is of interest is the Intel i950 gpu is similar to the VC4.
The Linux drivers for both are moving towards using tile based acceleration.
And if there is going to be a Pi4 with VC5, get a set top box with BCM7268 to practice with first.
BCM chips with even less documentation? Most of the stb chips are still 32bit :(
pik33
Posts: 887
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Window manager

Postby pik33 » Fri Aug 11, 2017 5:14 pm

Official 7" screen displaying GUI @ 1600x960. The screen and RPi 3 is mounted in the 3D printed case - my department bought a 3D printer this week so I had to learn how to 3D-print :) which ended with some toys and this case: https://www.thingiverse.com/thing:1646204

The Pi is non overclocked here but it overheats :( and throttles - a fan is mandatory. This doesn't harm the sound :) To finish the standalone playing system I need some cables and then I need to add the fan.

The mp3 playing procedure has changed (= major rewrite - not committed yet) to allow (near) gapless playing (Jarre!) and rewind/fast forward. This will allow to add and enable position slider.

Touch is not enabled yet. I run the (near) completed device first time some minutes ago :)
Attachments
20170811_185744.JPG
20170811_185744.JPG (169.51 KiB) Viewed 2047 times
develone
Posts: 315
Joined: Wed Dec 28, 2016 7:40 pm
Location: El Paso Tx USA

Re: Window manager

Postby develone » Fri Aug 11, 2017 8:03 pm

great work :D what printer did you use? What system ran the 3D printer Windows or Linux?
Cheers
pik33
Posts: 887
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Window manager

Postby pik33 » Fri Aug 11, 2017 8:42 pm

Ultimaker 2+. To prepare - Cura on Windows, then print from SD
pik33
Posts: 887
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Window manager

Postby pik33 » Wed Aug 16, 2017 11:48 am

First run this thing on Raspberry Pi 2 - old type RPi2 with BCM 2836. It works, although windows time @ 1920x1200 are somewhat too big. The window redrawing procedure is to rewrite-and-optimize.

... edit: not all things work with RPi2

(1) 96 kHz, 32 bit wav file - wav processing goes over 100% cpu time
(2) SID with equalizer. SID is processing in 2.5 ms chunks, then emulation takes over 650 us and EQ is something about 1300 us. This cannot give a buffer in time - pops and silence periods occur.

All of this @ 1040 MHz CPU, which is the ceiling for this RPi - it is unstable @ 1050 MHz. The core and ram is set @ 520 MHz.

SID and EQ are already assembler; EQ (maybe) can be optimized: it works @960 kHz sample rate which gives it high quality and independence from source sampling frequency, but then 10-point EQ at 960 kHz is computing power hungry.
pik33
Posts: 887
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Window manager

Postby pik33 » Sat Sep 30, 2017 9:07 pm

Project restart

I lost the gapless procedure by not committing it and then HD crash

Now I started to prepare the program for DispmanX hardware accelerated windows by allowing 256 MB GPU memory, which required changing two constants - display start and system variable base - from $30000000 and $2F000000 to $24000000 and $23000000 - and then hunting for some hardcoded $30000000 left here and there in the code.

Changes committed.
pik33
Posts: 887
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Window manager

Postby pik33 » Sun Oct 01, 2017 7:36 pm

First dispmanx window test in the Retromachine environment. To run the test, double click "C drive" icon. You should see a white window with a text going down-right. If your screen y resolution is less than 1200, you can also see some strange distortions while the window hides under the bottom of the screen - there is a correction added for y=1200 so no distortion will be seen in this case. Committed.
pik33
Posts: 887
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Window manager

Postby pik33 » Mon Oct 02, 2017 10:10 am

The mouse cursor is now dispmanx powered. Instead of software sprite it is now dispmanx element. There is no visible difference on the screen :)
pik33
Posts: 887
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Window manager

Postby pik33 » Tue Nov 07, 2017 9:04 am

After a report of (false positive) virus detection in the repository I somewhat cleaned it up deleting no more used mp2 and mp3 libraries. The virus was detected in mp3 x86 compiled file I downloaded with the rest of minimp3 repository.

The wallpaper.rbm is no longer needed in main directory.

Adding a hardware mouse cursor caused a bug which may prevent the program to start. This is random behavior, Before the bug is removed, simply try to restart the RPi. The hardware cursor version was not tested with dedicaded display and with screen resolution different than 1920x1200x60 Hz. If your monitor uses different resolution/refresh rate and the program doesn't work at all, please report this here along with your screen parameters so I can try to test this.
pik33
Posts: 887
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Window manager

Postby pik33 » Tue Nov 07, 2017 6:26 pm

The bug causing problems with start seems to be fixed now (I am not yet 100% sure but I restarted the Pi several times without a hangup). The problem was initiating the BCM host, setting a dispmanx layer and setting a new framebuffer at the same time - I moved the mouse cursor initiation to the end of all this init stuff, after the new framebuffer is up and running.

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 9 guests