Bookworm 64-bit PicoChess 3.2 Images [02 Dec 2023]

674 views
Skip to first unread message

RandyR

unread,
Dec 2, 2023, 3:13:34 PM12/2/23
to PicoChess
Hi everyone,

I have uploaded new Desktop and Lite images based on 64-bit RPiOS Bookworm. The Bullseye versions are still available using the same links (see the other thread for those). The Lite image is set specifically for the DGTPi and will run in 64-bit mode utilizing 64-bit engines (compiled under Bookworm on a Pi4b so they won't run under Bullseye) utilizing a 32-bit python virtual environment.

Unfortunately, the old method of adding a wpa_supplicant.conf file into the boot partition no longer works due to the switch to Network Manager in Bookworm. Therefore, if using the Lite image (i.e., no desktop GUI) in order to set up wifi (if desired), you will need to connect your Pi to your network using an Ethernet cable and setup wifi via ssh (or connect a monitor and keyboard) using raspi-config. For the Desktop image, you probably have a monitor already attached. Just connect a mouse and keyboard and setup wifi on the desktop (or connect using an Ethernet cable as above). See the enclosed documents in each respective image archive.

I have not done extensive testing but everything should work. I don't own a Pi5 so could not test in that model. Let us know if it works for you. If you run into issues, just post in the forum and maybe we can solve it.

Owners of the Pi5 wishing to use the Lite image will have to refer to the v3.2 Bookworm Stand-alone Instructions.txt file in order to switch the image to stand-alone mode (i.e., dgtpi = false) as the dgtpicom program which communicates between the Pi and the clock is not (yet) adapted for the Pi5. The Desktop image is set up for stand-alone mode but there is a document enclosed in the Desktop image archive which explains the steps required to adapt it to a DGTPi (or modified DGT3000/Pi).

Note also that the Lite image will no longer fit on an 8 Gb SD card.

Please read the respective Readme.txt files for important information, especially before asking questions on the forum.

And be aware that the first boot can take a while and the Pi will reboot once or twice.

Finally, thanks for your patience, Peter!

Here are the links to both images:

Bookworm Lite (4.2 GB)

Bookworm Desktop (4.6 GB)

Randy

Wilhelm

unread,
Dec 3, 2023, 2:23:46 AM12/3/23
to PicoChess
Hello

With the “Raspberry Pi Imager” it is possible to enter your own WLAN data before the image is written to the SD card.
The data is then written to the SD card when the image is written and the SD card boots on first boot with WiFi enabled and, if previously specified, SSH enabled.
Your own WLAN data and country-specific settings are saved in the “Raspberry Pi Imager” on the PC and therefore only need to be entered once.
This works with both the official Pi images and those stored on the PC (e.g. Randy's images).
This means you can save yourself the LAN connection with a mouse and keyboard.

Greetings
Wilhelm

Randy Reade

unread,
Dec 3, 2023, 10:07:06 AM12/3/23
to pico...@googlegroups.com
Hi Wilhelm,

I had problems getting the Desktop image working when I used the Imager. The wifi info would work but the desktop would always come up to a login prompt. It would accept the password but a few seconds later the prompt would reappear. Also, the root partition wouldn't get expanded on first boot and sometimes the Pi would shutdown rather than reboot (although it worked fine after the next boot). I thought the first_run.sh script would take care of that. It was just too unstable. That was why it took me so long to get an image ready. I looked into creating my own script to just take care of the wifi part but then people would have to create their own password hash (actually you can use the Imager for that) and edit the script on the boot partition.

I never tried using the Imager with my latest Desktop image (which auto-expands on first boot). If that works now, that's great!

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/c0a13b55-88ef-4b40-9dd3-b336551ca42bn%40googlegroups.com.

Wilhelm

unread,
Dec 3, 2023, 11:31:18 AM12/3/23
to PicoChess

Hello Randy,

I've written all SD cards for the Pi5 like this so far and haven't had any problems. It takes a little longer to fully boot for the first time, but it works.
I did the same thing with your Lite image. I haven't tested your desktop image yet.

Is it correct that you have compiled all included engines (Mame and aarch64 engines) to 64bit?
Do all other engines and roms have to be 64bit?


Thank you very much for your work
Wilhelm

RandyR

unread,
Dec 3, 2023, 11:53:48 AM12/3/23
to PicoChess
Hi Wilhelm,

I just tested using the RPi-Imager to flash the PicoChess Desktop image and it won't initially work for me. The first boot eventually shuts down. Recycling the power leads to a couple more reboots then the desktop appears with a login prompt. I can login via ssh. I can see the root partition is expanded. To get it working, use raspi-config and go into System Options then Boot / Auto Login and select Desktop Autologin (you can also go into System Options/Audio and set your output preference). Then exit and reboot and you should be good to go.

I guess that's an option if you don't want to use the Ethernet cable. But if you don't want to connect your Pi to the network you will be stuck at the login prompt (I'll reconfirm this and report back).

Yes, I compiled all programs/engines for 64-bit Bookworm (except for the 3 in the aarch64/extra folder). Maybe Dirk can help with those. :^)   But 32-bit support is in there so they should run OK.

Randy

RandyR

unread,
Dec 3, 2023, 12:18:43 PM12/3/23
to PicoChess
I just retested and you can get past the login prompt on the desktop by typing in the pi user's password (perhaps earlier issues for me were related to the unexpanded root partition) but when you reboot it will come up again. Somehow auto-login is getting disabled when using the RPi-Imager to flash my Desktop image. So you still need to go into raspi-config and re-enable auto-login. So this still isn't an optimal solution and there is still an issue being detected which is causing the OS to shut down on first boot.

You wouldn't see this issue on the Lite image as it doesn't stop PicoChess from running and you can still login via ssh.

Randy

Wilhelm

unread,
Dec 3, 2023, 12:30:39 PM12/3/23
to PicoChess
Hello Randy,

I also had the problem with switching the Pi off and on again when it was first started with the Lite image. Not a real problem.
The Pi was then accessible via SSH.

There is a difference between your desktop and Lite image. I don't have a monitor for the Pi5 (yet). I could just use my 7" Pi4 for the first boot and then switch to the Pi5.


Another question about the 32Bit engines and the Mame ROMs.
If these continued to run, that would be great.
I haven't managed to add an additional 32-bit engine yet, and adding additional ROMs was unsuccessful.
Can you please give me instructions?

Wilhelm

Randy Reade

unread,
Dec 3, 2023, 1:19:22 PM12/3/23
to pico...@googlegroups.com
Hi Wilhelm,

The Lite image is based on the official Lite image (no desktop GUI or desktop software), hence the name, and best suited for headless systems. And, the Desktop image is based, not surprisingly, on the official Desktop image (which has a desktop GUI and some software but not everything that's on their Full image). Initially, this was a nice tradeoff (before MAME was added) but adding MAME to the Lite image meant installing all the desktop stuff as prerequisites for the libraries required by MAME. (There are certainly ways around this, such as compiling MAME without X11, etc., and maybe adding the --no-install-recommends option to apt, but it's very time consuming and I would have to probably use different builds between the Lite and Desktop images - not ideal). Now, the size of the Lite image is not much less than the Desktop one. Anyways, always room for improvements.

Not much sense using the desktop image in your Pi5 if you don't have a monitor, unless you want to use VNC, which is enabled. You should still be able to boot the Desktop image in the Pi 5. Then, eventually, ssh in and fix the auto-login issue, Then you can see the desktop via VNC. Remember, if using the Lite image, follow the instructions in the archive to switch it to stand-alone mode.

The MAME roms don't depend on 32/64-bit as they are not executables. Just add any rom zip files into engines/mame_emulation/roms and edit the engines/aarch64/retro.ini file to add the new entries, which you can get from the engines/aarch64/engines_ini/all_retro.ini file. Just be aware that we are using MAME 0.259 so the roms need to be compatible.

Randy

RandyR

unread,
Dec 3, 2023, 1:42:39 PM12/3/23
to PicoChess
Btw, the issue with the first boot failing when using RPi-Imager is seen here {from journalctl):

Nov 30 20:08:28 picochess systemd[1]: Starting kernel-command-line.service - Command from Kernel Command Line...
.
.
.
Nov 30 20:08:28 picochess (strun.sh)[442]: kernel-command-line.service: Failed to locate executable /boot/firstrun.sh: No such file or directory
Nov 30 20:08:28 picochess (strun.sh)[442]: kernel-command-line.service: Failed at step EXEC spawning /boot/firstrun.sh: No such file or directory
.
.
.
Nov 30 20:08:28 picochess systemd[1]: kernel-command-line.service: Main process exited, code=exited, status=203/EXEC
Nov 30 20:08:28 picochess systemd[1]: kernel-command-line.service: Failed with result 'exit-code'.
Nov 30 20:08:28 picochess systemd[1]: Failed to start kernel-command-line.service - Command from Kernel Command Line.
.
.
.
Nov 30 20:08:28 picochess systemd[1]: Dependency failed for kernel-command-line.target - Command from Kernel Command Line.
Nov 30 20:08:28 picochess systemd[1]: kernel-command-line.target: Job kernel-command-line.target/start failed with result 'dependency'.
.
.
.
Nov 30 20:08:28 picochess systemd[1]: Doing "poweroff" action instead of an "exit" emergency action.

firstrun.sh is created by the Imager. It doesn't like something. Not sure (yet) why it cannot find it.

Randy

Alan Cooper

unread,
Dec 3, 2023, 1:59:27 PM12/3/23
to pico...@googlegroups.com
Hi Randy,

I’ll try your lite system tomorrow as soon as the 16gb SD cards arrive ….

Thanks,

Al

Sent from Scally's iPhone 15 Pro


On 3 Dec 2023, at 18:42, RandyR <randy...@gmail.com> wrote:

Btw, the issue with the first boot failing when using RPi-Imager is seen here {from journalctl):

RandyR

unread,
Dec 3, 2023, 3:44:06 PM12/3/23
to PicoChess
As an alternate to using an Ethernet cable to set up wifi on the Bookworm images, you can use the Raspberry Pi Imager by following these steps. I would suggest using the latest version of the Imager for your OS:

1. Open the Raspberry Pi Imager (I used version 1.8.3 on my Linux laptop).
2. Press Ctrl+Shift+x to open the settings dialog.
3. Go to the SERVICES tab and make sure Enable SSH is not checked (otherwise you will not be able to remove the checkmark for Set username and password on the GENERAL tab).
4. Go to the OPTIONS tab and set as desired.
5. Go to the GENERAL tab.
    Remove the checkmark for 'Set hostname'.
    Remove the checkmark for 'Set username and password'.
    Check 'Configure wireless LAN' and enter your wifi info, including country from the dropdown list.
    Check 'Set locale settings' and select your 'Time zone' and 'Keyboard layout' from the dropdown lists.
6. Save.
7. Select CHOOSE DEVICE button and select 'No filtering'.
8. Select CHOOSE OS button and select 'Use custom' (at the bottom) to select a custom .img file. Browse to the PicoChess Desktop or Lite image and select it.
9. If you haven't already done so, insert your SD card then press the CHOOSE STORAGE button. Carefully select your SD card device.
10. Click NEXT and either recheck the settings (EDIT SETTINGS) or just press YES to continue.
11. Read the Warning dialogue box and if you are sure you want to continue, press YES.


When the image creation is finished, insert it in your Pi and turn it ON. It will boot and after a short time will shutdown. Cycle the power OFF then back ON and the Pi should continue. It will reboot 2 or 3 times but should eventually start PicoChess. It should also not prompt you for a password on the Desktop image.

Randy

Henri

unread,
Dec 3, 2023, 3:50:06 PM12/3/23
to PicoChess
Hi Randy,

I am working with your Bookworm Desktop version. The good news, it's working, including the kiosk mode. But I do have problems:
- I can't get a display of the Bookworm image on my 7inch LCD Display-H touchscreen. With Pi4 and Pi5 it says 'No signal'. I put commands like 'framebuffer_width=1024
framebuffer_height=600' in /boot/config.txt but to no avail.
-There is a 4 to 5 seconds delay when entering any commands in the menu. Also the pieces move very slow. Sound is ok. I tried also a fresh image  and I get this problem right away.

Any ideas?

Henri

Op zaterdag 2 december 2023 om 21:13:34 UTC+1 schreef RandyR:

Randy Reade

unread,
Dec 3, 2023, 4:14:15 PM12/3/23
to pico...@googlegroups.com
Hi Henri,

Those frame_buffer commands are no longer valid in Bookworm. All video settings are handled in the cmdline.txt file:


However, I also use a 7-inch touchscreen and it was detected correctly when I put the SD card in it (I built the image on a Pi4b with a 4-inch LCD screen attached. Also, I did not set up video anywhere when I built the image. I know that some video cards (like my 4-inch one) uses dtoverlay drivers but they haven't been updated for Bookworm. I'm not sure that is the case for you, though. You might be able to try this command in config.txt:

disable_fw_kms_setup=1 

Randy

RandyR

unread,
Dec 3, 2023, 4:35:56 PM12/3/23
to PicoChess
Maybe this thread on the Raspberry Pi forums might help.

Randy

Henri Spijkerman

unread,
Dec 3, 2023, 5:01:26 PM12/3/23
to pico...@googlegroups.com
disable_fw_kms_setup=1
Doesn't work

Verzonden vanaf mijn mobiele... huh dinges

Op zo 3 dec. 2023 22:35 schreef RandyR <randy...@gmail.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "PicoChess" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/picochess/jbd9nadNacw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/19e28155-dbdf-4428-bad8-0a17e21170dan%40googlegroups.com.

Marc Hamilton

unread,
Dec 3, 2023, 10:01:55 PM12/3/23
to PicoChess
Booted right up for me... thanx, Randy...

Randy Reade

unread,
Dec 3, 2023, 10:06:28 PM12/3/23
to pico...@googlegroups.com
Good to hear, Mark.

Randy

bartondl

unread,
Dec 3, 2023, 11:32:28 PM12/3/23
to PicoChess
All,

I have booted the Bookworm Desktop image up on my Pi 5 system and it seems to be working well.  I have a Pi 5 installed inside of a Raspad 3 with a 10" display (there is a video posted demonstrating that the Pi 5 works in the Raspad).  The first time I tried it, the system wasn't reading my DGT board correctly all the time.  It was frequently prompting me to place a piece on a square when the piece was already there.  After waiting a few seconds, it would correctly read the board.  I re-built the image again and it seems to be working better with no issues yet.  

I have not been able to remotely login through my VNC viewer yet.  Let me know what the default username and password are for the images that were posted.  

I have been following this group for the past couple of years.  I have built many systems based on the PI 3B+, 4B, 400, and now with the 5.  I just received my Pi 5 a little over a week ago.  I am amazed at how fast this group has mapped Picochess to the new board.  Many thanks!!!!

Dan



IMG_2295.jpg

Wilhelm

unread,
Dec 4, 2023, 4:24:30 AM12/4/23
to PicoChess
Hello Randy,

adding the mame roms works. I don't know what I did wrong yesterday. But now it works.

Since the old and beloved 32-bit engines didn't work, I also carried out point 5a (kernel=kernel8.img) from your instructions here. The 32-bit engines are now also running. (As far as I can tell so far)

Does adding "kernel=kernel8.img" to the config.txt have any negative effects?

Wilhelm

Henri

unread,
Dec 4, 2023, 6:57:24 AM12/4/23
to PicoChess
Coming back to the 'slow' issue in picochess. It is on the Pi4 as well, so it's definitly a bookworm software problem. Am I really the only one encountering this?

Henri

Randy Reade

unread,
Dec 4, 2023, 9:44:03 AM12/4/23
to pico...@googlegroups.com
Hi Wilhelm,

It's probably best to use Google to see what benefits come from using the 16k kernel vs the 4k one, or do some practical experiments yourself (run the stockfish benchmark using each kernel), but you would benefit using 64-bit engines vice the 32-bit ones. That's where you will see the improvements, as you already have.

Randy

Randy Reade

unread,
Dec 4, 2023, 9:50:46 AM12/4/23
to pico...@googlegroups.com
Hi Dan,

I suspect your piece detection issue is your DGT board. I had that issue with both the USB one and the Bluetooth one. In both cases I had to adjust the sensitivity. It could also be caused by RF interference (electronics or other RF generators too close to the board). DGT support can give you the instructions for adjusting the sensitivity.

As for VNC, use the same login as the pi user.

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/48020aab-3917-4b0d-9b7f-db9f0e8a334en%40googlegroups.com.

Wilhelm

unread,
Dec 4, 2023, 12:09:20 PM12/4/23
to PicoChess
Hello Randy

in Pi5:
StockfishNN bench (with “kernel=kernel8.img” active)
===========================
Total time (ms): 3496
Nodes searched: 2593605
Knots/second: 741877

StockfishNN bench (with "kernel=Kernel8.img" disabled)
===========================
Total time (ms): 3487
Nodes searched: 2593605
Nodes/second: 743792

The values are almost the same and vary from measurement to measurement.
So it shouldn't affect the playing strength.


Here are the values for comparison with the same SD card in the Pi4:

StockfishNN bench (with “kernel=kernel8.img” active)
===========================
Total time (ms): 10485
Nodes searched: 2593605
Nodes/second: 247363

StockfishNN bench (with "kernel=Kernel8.img" disabled)
===========================
Total time (ms): 10432
Nodes searched: 2593605
Nodes/second: 248620


Another question about the script engines:
I can only start "SARGON I (1978)" from the aarch64/script folder. The other engines will not start. Is that the case with you too? Here the Pi4 behaves exactly like the Pi5.

Wilhelm

Randy Reade

unread,
Dec 4, 2023, 12:20:47 PM12/4/23
to pico...@googlegroups.com
Hi Wilhelm. I'm glad it isn't affecting the 64-bit engines on the Pi5.

I'll take a look at the script engines shortly. I'm just compiling centaur_stfdd for 64-bit right now.

Randy

RandyR

unread,
Dec 4, 2023, 2:37:52 PM12/4/23
to PicoChess
If anyone downloaded the Desktop Image with the timestamp 03 December, 2023 16:09 (or your timezone equivalent) the image is corrupted. I will fix it and re-upload the image and let you know when it is ready. I'll also check the Lite image. Probably best to hold off on downloading either until I report back.

Sorry for any inconvenience.

Randy

RandyR

unread,
Dec 4, 2023, 6:34:24 PM12/4/23
to PicoChess
Ok. The images are fixed and confirmed to be working. Thanks for your patience.

Here are the links to both images:

Bookworm Lite (4.2 GB)

Bookworm Desktop (4.6 GB)

Randy

bartondl

unread,
Dec 4, 2023, 11:11:09 PM12/4/23
to PicoChess
Randy,

Many thanks for the reply.  VNC is now working (I spaced on the username/password...I just had them backwards).  My DGT board has never missed a beat before and looks to have been just a hiccup.  Everything appears to be working correctly now.   

Thanks,

Dan

Scally

unread,
Dec 5, 2023, 4:59:37 AM12/5/23
to PicoChess
Hi Randy,

I couldn’t test your lite version yesterday as I ordered full size sd cards by mistake.

Today I should receive 2 micro sd cards, so I’ll try then …

Al

Henri

unread,
Dec 5, 2023, 7:25:29 AM12/5/23
to PicoChess
Hi Randy,

Downloaded and wrote the new Bookworm Desktop version. Without making any alterations I tried to run a retro-engine  (Mephisto MMIV). After selecting the level Picochess freezes on 'Engine setup'.

Henri

Op dinsdag 5 december 2023 om 00:34:24 UTC+1 schreef RandyR:

Peter Eggen

unread,
Dec 5, 2023, 8:27:42 AM12/5/23
to PicoChess
Hi Randy,
thanks for updating. Seem to work all Ok for me running on my new Pi Model 5 8GB.
Just a side question as I did not found anything via search.

I understand that Chrome is forced to Kiosk Mode - I am wondering whether there is a hidden option to end this and returning back to the Linux Desktop.When ending via Menu or with exchanging the white King with the white Queen, the Pi shuts down completely (which is fine in some cases but not in all).

I am also looking for the following features that could hopefully be made for a future update/release:
1. A quick and easy option i.e. button on the screen to re-scan the board in order to be able to play test setups more quickly - I know that you can achieve same by navigating though the Web interface menus, but I am looking for a more convenient option.
2. As I am frequently using my Pi & DGT Smartboard setup to record over the board games played in my local chess club (without having a screen&keyboard attached), I am seeking for some automated save options. What I am looking for is that a game played would be auto-saved once recognizing its end (either due to marking the result using the Kings in the middle or by setting up the pieces in a new start configuration). So that all games played throughout that date are getting stored on the Pi in chronological order or in a folder for easy downloading them when back at home. This would overcome the limits of storing the games in the DGT-Board with a Battery. There I sometimes discovered errors & interruptions caused by takebacks etc., where on the other hand the Pi connected to the Smardboard seem to be way more robust/tolerant to takebacks.

3. Maybe a fine tune/addition to 1. - wondering whether there would be an "EVAL always on option that is always evaluating the current position set up - ideally by setting up the position and marking who's turn it is without the requirements to use keyboard and screen environment.
Regards Peter

Randy Reade

unread,
Dec 5, 2023, 9:10:07 AM12/5/23
to pico...@googlegroups.com
Hi Henri, 

I'll check this today.

Randy

Randy Reade

unread,
Dec 5, 2023, 9:19:23 AM12/5/23
to pico...@googlegroups.com
Hi Peter,

To close the browser you have 2 options - either attach a keyboard and press Alt+F4 or via ssh with 'sudo pkill -f chromium'.

To stop PicoChess use 'sudo service picochess stop'.

Any new features in PicoChesss will require someone familiar with python programming. The current code is on Github so anyone can fork it and contribute.

PicoChess automatically saves all games in the /opt/picochess/games folder.

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

RandyR

unread,
Dec 5, 2023, 10:26:14 AM12/5/23
to PicoChess
No problem here, Henri. I tested the first 2 levels.

Could it be your pieces were not in the starting position when you started the MAME engine?

Randy

Peter Eggen

unread,
Dec 5, 2023, 10:35:18 AM12/5/23
to PicoChess
Hi and thanks that have worked (though I was actually seeking some convenient control I could use when using a touchscreen w/o keyboard.

By the way, I may have spotted a bug in this release which is kind a strange. When working with my PI via HDMI Monitor, I could not get the Analyze feature to work properly. 
Strangely it seem to work differently based on whether I work locally via connected Monitor (HDMI) or via another device (iPad/iPhone) via the network. 

In both scenarios, I can start/stop the Analyses function by clicking on the Green Analysis Button in the Chromium-Browser Window. However, I do not even see the +/- control to add/delete additional lines for the Analysis! In the local mode (Monitor connected to Pi via HDMI). When I use another device (iPhone/iPad) over the network, I do see this +/- control and can add/remove addtional lines for the analysis - very strange!
Regards Peter

PS: If you want, I can share a screenshot but I think it is pretty much self-explanatory what I meant.

Randy Reade

unread,
Dec 5, 2023, 10:41:42 AM12/5/23
to pico...@googlegroups.com
That's by design (Dirk can correct me if I'm wrong). The analysis feature actually starts a version of Stockfish via the web browser on the local computer - not something you want taking up resources on the Pi.

Randy

Peter Eggen

unread,
Dec 5, 2023, 11:21:10 AM12/5/23
to PicoChess
Nope - I just tested it even locally on the Pi and it seem to be a difference whether the WebServer is called via 127.0.0.1 or  using the real network address. Bottom line when I start the Chromium-Browser on the Pi and connect to 127.0.0.1 I do not get the +/- control, but when using the same Browser connecting to my local network address, I do get to see this control. So on both scenario I am working locally on the Pi.
Regards Peter 

Randy Reade

unread,
Dec 5, 2023, 11:27:57 AM12/5/23
to pico...@googlegroups.com
Like I said, by design. If you use your network to access your Pi from your Pi (i.e., through your router), it will behave like any other PC on the network and open up threads on the Pi. That's what we don't want. The web server is coded to distinguish between the two. It also disables the 'Get PGN' button locally.

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Scally

unread,
Dec 5, 2023, 12:12:10 PM12/5/23
to PicoChess

Hi Randy,

I finally managed to get you lite image onto a micro sd card.

Unfortunately Picochess doesn’t start, see image

Al
IMG_0622.jpeg

Randy Reade

unread,
Dec 5, 2023, 12:33:08 PM12/5/23
to pico...@googlegroups.com
Hi Al,

Is that a Lite image from today or late yesterday? That error looks like what you see when running 32-bit files on a 64-bit system without 32-bit support enabled. But the Lite image has that. I also assume you are using the Pi4 inside your DGTPi?

Randy

Alan Cooper

unread,
Dec 5, 2023, 12:38:50 PM12/5/23
to pico...@googlegroups.com
Hi Randy,

It was from yesterday, I’m running a RPi5 standalone which works fine with your 5th script. 

Al

Sent from Scally's iPhone 15 Pro


On 5 Dec 2023, at 17:33, Randy Reade <randy...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Wilhelm

unread,
Dec 5, 2023, 12:42:14 PM12/5/23
to PicoChess
Hello Randy,

Your new Lite image works for me. (The dgtpi version on my ChessPI and the standalone version on my Pi5)

New Mame ROMs, 64-bit engines, 32-bit engines, remote engine, all good.
Only the script engines are not running yet.

Wilhelm

Randy Reade

unread,
Dec 5, 2023, 12:42:18 PM12/5/23
to pico...@googlegroups.com
Did you follow the instructions in the v3.2 Bookworm Stand-alone Instructions.txt file?

Randy

Alan Cooper

unread,
Dec 5, 2023, 12:48:06 PM12/5/23
to pico...@googlegroups.com
No I just plugged in the micro sd card, I’ll have a look now

Al

Sent from Scally's iPhone 15 Pro


On 5 Dec 2023, at 17:42, Randy Reade <randy...@gmail.com> wrote:



Randy Reade

unread,
Dec 5, 2023, 12:48:31 PM12/5/23
to pico...@googlegroups.com
Sorry Wilhelm,

I completely forgot about the script engines. I'm just working on a better image creation process and will look at those afterwards.

Thanks for the feedback and reminder.

Randy

Randy Reade

unread,
Dec 5, 2023, 12:50:14 PM12/5/23
to pico...@googlegroups.com

RandyR

unread,
Dec 5, 2023, 1:03:06 PM12/5/23
to PicoChess
Ah, yes. I can see that the won't work as is. I can't test it myself right now but, for example,  the script/adapt file that now looks like:

#!/bin/bash
cd /opt/picochess/engines/script_engines/PyTuroChamp
python3 ptc_xboard.py adapt

Should be changed to:

#!/bin/bash
cd /opt/picochess/engines/script_engines/PyTuroChamp
/home/pi/.pyenv/versions/picochess-3.9.2/bin/python3 ptc_xboard.py adapt

If you could try this it would save me some time.

Randy

Scally

unread,
Dec 5, 2023, 1:15:37 PM12/5/23
to PicoChess
Hi Randy,

As that for Wilhelm or me?

I’ve read your document, there’s nothing for me to do, as I don’t want Samba?

I’ll go back to my own image created by your v5 script

Al.

Randy Reade

unread,
Dec 5, 2023, 1:32:00 PM12/5/23
to pico...@googlegroups.com
No, that was for Wilhlem to get the script engines working.

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Henri

unread,
Dec 5, 2023, 2:36:22 PM12/5/23
to PicoChess
Hate to bring that to you Randy, you full-time picochess teacher, but over here none of the retro-engines start....

Henri

Op dinsdag 5 december 2023 om 16:26:14 UTC+1 schreef RandyR:

Wilhelm

unread,
Dec 5, 2023, 2:44:18 PM12/5/23
to PicoChess

Hello Randy,

Please excuse my delay in responding. I didn't expect an answer so quickly and was busy elsewhere.

Your solution gives me an error message from picochess:
I have attached the log file.

Wilhelm
picochess.log1

Randy Reade

unread,
Dec 5, 2023, 3:20:49 PM12/5/23
to pico...@googlegroups.com
Hi Henry,

What Pi are you using? Is there a working display attached? If the Pi5, what happens if you use the kernel=kernel8.img entry in config.txt?

What do you get when you enter these commands in the terminal on the Pi:

cd /opt/picochess/engines/mame_emulation
SDL_VIDEODRIVER=dummy /opt/picochess/engines/mame_emulation/mess -video none -plugin chessengine mm4

or these commands if using SSH:

cd /opt/picochess/engines/mame_emulation
DISPLAY=:0 SDL_VIDEODRIVER=dummy /opt/picochess/engines/mame_emulation/mess -video none -plugin chessengine mm4

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Henri

unread,
Dec 5, 2023, 3:36:02 PM12/5/23
to PicoChess
First command:
Warning: -video none doesn't make much sense without -seconds_to_run
Warning: layout view 'modular artwork by luis' contains deprecated backdrop element
Warning: layout view 'modular artwork by luis' contains deprecated bezel element
Warning: layout view 'modular 2d artwork by luis' contains deprecated backdrop element
Warning: layout view 'modular 2d artwork by luis' contains deprecated bezel element
Warning: layout view 'modular 3d by volodymyr, adapted by luis' contains deprecated bezel element
Warning: layout view 'modular artwork by luis' contains deprecated backdrop element
Warning: layout view 'modular artwork by luis' contains deprecated bezel element
Warning: layout view 'modular 2d artwork by luis' contains deprecated backdrop element
Warning: layout view 'modular 2d artwork by luis' contains deprecated bezel element
Warning: layout view 'modular 3d by volodymyr, adapted by luis' contains deprecated bezel element
 
Second one (SSH) exactly same reaction

Henri

Op dinsdag 5 december 2023 om 21:20:49 UTC+1 schreef RandyR:

Randy Reade

unread,
Dec 5, 2023, 3:52:06 PM12/5/23
to pico...@googlegroups.com
Ok. That looks correct. But you didn't answer any of my other questions.

Reboot and select MMIV. When/if it crashes, what is the output of this command:

systemctl status picochess

And answer my other questions:

"What Pi are you using? Is there a working display attached? If the Pi5, what happens if you use the kernel=kernel8.img entry in config.txt?"

Randy

Henri

unread,
Dec 5, 2023, 4:06:27 PM12/5/23
to PicoChess
'What Pi are you using? Is there a working display attached?'

Headless Pi5 8gb. Display: On laptop via VNC

'What happens if you use the kernel=kernel8.img entry in config.txt?'

Nothing changes, picochess still hangs after trying to start a MAME engine

systemctl status picochess

● picochess.service - PicoChess Chess Program
     Loaded: loaded (/etc/systemd/system/picochess.service; enabled; preset: enabled)
     Active: active (running) since Tue 2023-12-05 14:55:52 CST; 1min 10s ago
   Main PID: 1740 (python3)
      Tasks: 16 (limit: 9127)
        CPU: 3.491s
     CGroup: /system.slice/picochess.service
             ├─1740 /home/pi/.pyenv/versions/picochess-3.9.2/bin/python3 /opt/picochess/picochess.py
             ├─2193 /opt/picochess/engines/aarch64/a-stockf
             └─2195 /opt/picochess/engines/aarch64/a-stockf

Dec 05 14:56:25 picochess python3[1740]:     return future.result(timeout=FUTURE_POLL_TIMEOUT)
Dec 05 14:56:25 picochess python3[1740]:   File "/home/pi/.pyenv/versions/3.9.2/lib/python3.9/concurrent/futures/_base.py", line 440, in result
Dec 05 14:56:25 picochess python3[1740]:     return self.__get_result()
Dec 05 14:56:25 picochess python3[1740]:   File "/home/pi/.pyenv/versions/3.9.2/lib/python3.9/concurrent/futures/_base.py", line 389, in __get_result
Dec 05 14:56:25 picochess python3[1740]:     raise self._exception
Dec 05 14:56:25 picochess python3[1740]:   File "/home/pi/.pyenv/versions/3.9.2/lib/python3.9/concurrent/futures/thread.py", line 52, in run
Dec 05 14:56:25 picochess python3[1740]:     result = self.fn(*self.args, **self.kwargs)
Dec 05 14:56:25 picochess python3[1740]:   File "/home/pi/.pyenv/versions/picochess-3.9.2/lib/python3.9/site-packages/chess/uci.py", line 697, in command
Dec 05 14:56:25 picochess python3[1740]:     raise EngineTerminatedException()
Dec 05 14:56:25 picochess python3[1740]: chess.engine.EngineTerminatedException

Henri

Randy Reade

unread,
Dec 5, 2023, 4:15:04 PM12/5/23
to pico...@googlegroups.com
It might be because you are headless using the Desktop image.

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Randy Reade

unread,
Dec 5, 2023, 4:20:07 PM12/5/23
to pico...@googlegroups.com
Also, make sure rdisplay = False in your picochess.ini.

Randy

On Tue, Dec 5, 2023 at 3:06 PM Henri <hwspij...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Henri

unread,
Dec 5, 2023, 4:23:08 PM12/5/23
to PicoChess
>It might be because you are headless using the Desktop image.

It works with the Bullseye desktop image without any problem.

Henri


 

Randy Reade

unread,
Dec 5, 2023, 4:32:20 PM12/5/23
to pico...@googlegroups.com
I'm afraid it's not something I can test at the moment. 

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

RandyR

unread,
Dec 5, 2023, 4:53:45 PM12/5/23
to PicoChess
Wilhelm,

I just tested this and it works for me (after I made the entry in engines.ini). Did you make the changes to the correct adapt file (/opt/picochess/engines/aarch64/scripts/adapt)?

Randy

Henri

unread,
Dec 5, 2023, 5:20:37 PM12/5/23
to PicoChess
'Also, make sure rdisplay = False in your picochess.ini.'

MAN, that's it! I am now able to start the MAME engines! In my Pi4, connected to a 7 inch display picochess.ini rdispay and rwindow are set to TRUE, rdisplay = False did the trick.  But we're not there yet, because I can't load the  retro-artwork. Tried both rwindow false and true but both times picochess hangs and after restarting I get the infamous question marks in the engines section. Because I don't know how to solve that I make a fresh image which takes some time.

Any ideas how to solve the (final?) problem of the retro-artwork o mighty one? :)

Henri

Op dinsdag 5 december 2023 om 22:32:20 UTC+1 schreef RandyR:

RandyR

unread,
Dec 5, 2023, 5:32:55 PM12/5/23
to PicoChess
Actually, Wilhelm, I don't need the edit. I didn't check first. I just reverted back and it works for me.

Randy

Randy Reade

unread,
Dec 5, 2023, 5:36:34 PM12/5/23
to pico...@googlegroups.com
I don't think you'll get the artwork working over VNC unless you create a virtual display. I think the previous versions had that but can't remember.

To fix the ?? issue you'll need to edit picochess.ini and remove the mame engine entry (or set display back to false).

Randy

Henri

unread,
Dec 5, 2023, 6:50:22 PM12/5/23
to PicoChess
The retro artwork works very well over VNC on my Pi4 with Bullseye 64bit Desktop Picochess version (connected to 7 inch LCD display). But heck, the retro engines are working without the artwork so I am grateful and satisfied for now....
Thanks again Randy!

Henri

Op dinsdag 5 december 2023 om 23:36:34 UTC+1 schreef RandyR:

Randy Reade

unread,
Dec 5, 2023, 7:10:24 PM12/5/23
to pico...@googlegroups.com
I think I had to install an X11 dummy driver and edit xorg.conf. I'll have a look tomorrow to see if I can figure it out.

Randy

Wilhelm

unread,
Dec 6, 2023, 12:36:09 AM12/6/23
to PicoChess

Hello Randy,

This script engine is now running for me too. (Pi4 and Pi5)
My mistake yesterday was that I had a blank line as the first line in the /script/adapt file.

Wilhelm

Scally

unread,
Dec 6, 2023, 6:38:12 AM12/6/23
to PicoChess
Hi Randy,

I downloaded the latest lite image dated the 4th Nov

I get the same segmentation cult as before?

Al

Randy Reade

unread,
Dec 6, 2023, 10:00:02 AM12/6/23
to pico...@googlegroups.com
Hi Al,

I think you mean 4th Dec. It sounds like you are still in DGTPi mode. What file is causing the seg fault?

Randy

You received this message because you are subscribed to a topic in the Google Groups "PicoChess" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/picochess/jbd9nadNacw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/c1ee7714-33e7-4703-bdf0-7f6a3d40fdcen%40googlegroups.com.

Scally

unread,
Dec 6, 2023, 10:10:47 AM12/6/23
to PicoChess
Hi Randy,

I’ve not done any personal additions, I’ve just run your image.

You’re were right about picochess.ini, which I’ve now changed, but still get the error, see attached file:

Al

IMG_0623.jpeg

Randy Reade

unread,
Dec 6, 2023, 10:22:01 AM12/6/23
to pico...@googlegroups.com
Hi Al,

I can see you are running with the 16k kernel. Try using the 4k kernel.

Randy


On Wed, Dec 6, 2023, 9:10 a.m. Scally <scall...@gmail.com> wrote:
Hi Randy,

Alan Cooper

unread,
Dec 6, 2023, 10:35:06 AM12/6/23
to pico...@googlegroups.com
Hi Randy,

 I was running your image without changing anything

The 4k kernel has fixed it, I’m up & running

Thanks

Al


Sent from Scally's iPhone 15 Pro


On 6 Dec 2023, at 15:22, Randy Reade <randy...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Randy Reade

unread,
Dec 6, 2023, 10:42:11 AM12/6/23
to pico...@googlegroups.com
Hi Al,

There are many changes required for stand-alone mode. You need to go through the document and apply them. The Lite image is set up for a DGTPi running on a Pi4 or earlier.

Randy

On Wed, Dec 6, 2023 at 9:35 AM Alan Cooper <scall...@gmail.com> wrote:
Hi Randy,

 I was running your image without changing anything

The 4k kernel has fixed it, I’m up & running

Thanks

Al


Sent from Scally's iPhone 15 Pro


On 6 Dec 2023, at 15:22, Randy Reade <randy...@gmail.com> wrote:


Hi Al,

I can see you are running with the 16k kernel. Try using the 4k kernel.

Randy


On Wed, Dec 6, 2023, 9:10 a.m. Scally <scall...@gmail.com> wrote:
Hi Randy,

I’ve not done any personal additions, I’ve just run your image.

You’re were right about picochess.ini, which I’ve now changed, but still get the error, see attached file:

Al

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/CAE5Wduu0W3QJEU859oJG%2BCc1_zrpwxGx00uwR4EQf-gnWtZEsA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Peter Eggen

unread,
Dec 6, 2023, 11:11:48 AM12/6/23
to PicoChess
Hi,
Sorry  but I am confused. Let say  if I take the Pi to a place w/o network connection and set it up as a Hotspot and connect to it using my iPad / iPhone, I do get to the Analysis screen and can use the +/- controls. Are you saying that the Stockfish engine is then using my Phone to calculate? Just curious.
Btw. this is the usecase & setup I am using when plying with my DGT-Smartboard to be able to capture games played and eventually using analysis and / or eval scores for training purposes.

On Tuesday, December 5, 2023 at 5:27:57 PM UTC+1 RandyR wrote:
Like I said, by design. If you use your network to access your Pi from your Pi (i.e., through your router), it will behave like any other PC on the network and open up threads on the Pi. That's what we don't want. The web server is coded to distinguish between the two. It also disables the 'Get PGN' button locally.

Randy

On Tue, Dec 5, 2023 at 10:21 AM Peter Eggen <gunha...@gmail.com> wrote:
Nope - I just tested it even locally on the Pi and it seem to be a difference whether the WebServer is called via 127.0.0.1 or  using the real network address. Bottom line when I start the Chromium-Browser on the Pi and connect to 127.0.0.1 I do not get the +/- control, but when using the same Browser connecting to my local network address, I do get to see this control. So on both scenario I am working locally on the Pi.
Regards Peter 

On Tuesday, December 5, 2023 at 4:41:42 PM UTC+1 RandyR wrote:
That's by design (Dirk can correct me if I'm wrong). The analysis feature actually starts a version of Stockfish via the web browser on the local computer - not something you want taking up resources on the Pi.

Randy

On Tue, Dec 5, 2023 at 9:35 AM Peter Eggen <gunha...@gmail.com> wrote:
Hi and thanks that have worked (though I was actually seeking some convenient control I could use when using a touchscreen w/o keyboard.

By the way, I may have spotted a bug in this release which is kind a strange. When working with my PI via HDMI Monitor, I could not get the Analyze feature to work properly. 
Strangely it seem to work differently based on whether I work locally via connected Monitor (HDMI) or via another device (iPad/iPhone) via the network. 

In both scenarios, I can start/stop the Analyses function by clicking on the Green Analysis Button in the Chromium-Browser Window. However, I do not even see the +/- control to add/delete additional lines for the Analysis! In the local mode (Monitor connected to Pi via HDMI). When I use another device (iPhone/iPad) over the network, I do see this +/- control and can add/remove addtional lines for the analysis - very strange!
Regards Peter

PS: If you want, I can share a screenshot but I think it is pretty much self-explanatory what I meant.

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

RandyR

unread,
Dec 6, 2023, 11:35:48 AM12/6/23
to PicoChess
Hi Henri,

Yes, if connected to a display the xorg server will run. With no display you need to create a dummy display. These steps should work for you:

1. Enter the following commands:

sudo service picochess stop
sudo apt install xserver-xorg-video-dummy
sudo nano /etc/X11/xorg.conf                   <-------------------------- Note the capital 'X'

2. Enter the following into the file and save.:

Section "Monitor"
    Identifier "Monitor0"
    HorizSync 28.0-80.0
    VertRefresh 48.0-75.0
    # https://arachnoid.com/modelines/
    # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
    Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection

Section "Device"
    Identifier "Card0"
    Driver "dummy"
    VideoRam 256000
EndSection

Section "Screen"
    DefaultDepth 24
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    SubSection "Display"
        Depth 24
        Modes "1920x1080_60.00"
    EndSubSection
EndSection

3. Reboot:
sudo reboot

Make sure you remove xorg.conf if you ever hook up a monitor. This will probably affect your VNC resolution so adjust ModeLine and Modes (in Monitor and Screen sections, respectively) to your liking.

Randy

Randy Reade

unread,
Dec 6, 2023, 11:58:34 AM12/6/23
to pico...@googlegroups.com
Correct. It runs in the browser.

Randy


Henri

unread,
Dec 6, 2023, 6:15:16 PM12/6/23
to PicoChess
Hi Randy,

It works like a charm. Thank YOU! :)

Henri

Op woensdag 6 december 2023 om 17:35:48 UTC+1 schreef RandyR:

RandyR

unread,
Dec 6, 2023, 8:02:33 PM12/6/23
to PicoChess
Wilhelm,

I just tested this with Sunfish and it DOES need the edit. It appears that some of the 'extra' script engines rely on the python-chess module, which is only installed in the virtual environment python 3.9.2. If anyone just downloaded the Desktop image (within the last hour), you will see that I added the extra engines back into the menu. I'll fix those engines and re-upload both images (I cancelled the Lite image upload when I found the issue so it's still the 04 Dec version. Anyone can make the edits themselves as explained earlier/below.

Randy

On Tuesday, December 5, 2023 at 3:53:45 PM UTC-6 RandyR wrote:
Reply all
Reply to author
Forward
0 new messages