Page 1 of 2

SMSQE on Raspberry pi 400

Posted: Sun Mar 07, 2021 3:58 pm
by Tinyfpga
I am in the process of printing (as in 3D) a number of Q68-in-keyboard cases and I wanted to see how well my efforts compare with a modern
mass produced system, so I bought a Raspberry pi 400.

Having bought the Pi I thought I would plug it into an HD TV and try it out with the supplied OS and desktop installation. I was surprised how slow it
was (a bit slower than my father's ancient PC running XP). It was not able to play many of my video files and it was unable to play any of my videos in HD.

I was thinking I could use the PI as a media box but now I am not so sure and so I thought I might use it to run SMSQE via the SMSQmulator.
I soon realised that I was unable to follow the various guides on how to install the JAVA runtime environment on a PI, so Instead I thought I would try and do this
on a PC.
This was much easier but I quickly discovered that JAVA11 is only available as an SDK so I installed the JAVA 8 version of SMSQmulator.
It took me a while to configure the system to my liking and displaying at HD resolutions. I found the configuration slightly flaky at HD resolutions but I was using a TV
as a monitor, connected as a second display device from my laptop. I think this might be confusing the display output of the Qmulator.

Having practiced running Qmulator on a laptop I returned to trying to do the same on my Pi 400. Still no joy and so I read through the Forum topic titled
"QL on the Raspberry Pi" and found the following quote:-

Sparrowhawk ยป Sat Jan 23, 2021 5:28 pm
I also now have SMSQmulator (Java 11 version) running. Very, very nice indeed.

Would Sparrowhawk be kind enough to post a step by step guide on how to do his on a PI for the less gifted members of this forum?

Re: SMSQE on Raspberry pi 400

Posted: Sun Mar 07, 2021 4:41 pm
by Tinyfpga
I had great difficulty trying to start a new topic and have just noticed this topic is under the heading "The dreaded Rule book". I have no idea
how this happened and can only apologise for the error. Maybe the forum controller can correct this.

Further to my previous post; I had another go of outputting SMSQE at HD resolutions from a PC onto a TV. This time I was successful and the result is very nice. For multitasking systems the higher the resolution the better, in my opinion.

I would like to be able to do this from a PI 400.

The following is a screenshot of SMSQE in SMSQmulator running on my Lenovo laptop connected to a TV at full HD resolution.
Capture.jpg

Re: SMSQE on Raspberry pi 400

Posted: Sun Mar 07, 2021 9:22 pm
by ppe
Tinyfpga wrote:just noticed this topic is under the heading "The dreaded Rule book"
It is now a rule that RPi 400 *must* run SMSQE! :D

Re: SMSQE on Raspberry pi 400

Posted: Sun Mar 07, 2021 9:37 pm
by Tinyfpga
If the Raspberry Pi Foundation disobey this new rule they will be in big trouble.

Re: SMSQE on Raspberry pi 400

Posted: Mon Mar 08, 2021 1:13 pm
by vanpeebles
It's a good rule, I'm half tempted to leave this thread here :lol:

Re: SMSQE on Raspberry pi 400

Posted: Mon Mar 08, 2021 2:19 pm
by Sparrowhawk
Hi there, I will try to remember for you and post an update shortly, once I've figured out what I did :D

Re: SMSQE on Raspberry pi 400

Posted: Mon Mar 08, 2021 2:49 pm
by NormanDunbar
This might help?
viewtopic.php?f=19&t=3478&p=40000#p40000

Cheers,
Norm.

Re: SMSQE on Raspberry pi 400

Posted: Mon Mar 08, 2021 3:07 pm
by Sparrowhawk
Caveat: This is all from memory, so things may break. Let me know if so and I'll try to fill in the blanks/correct anything

Also, I am using Ubuntu MATE 64bit - I assume you are using 32bit Raspian / Raspberyy Pi OS? This may have a bearing, I am not sure.

OK, so first off the version of the OpenJDK that I installed is:

Code: Select all

$ java --version
openjdk 11.0.10 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.10)
OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.20.10, mixed mode)
I think I just used the default package to install it:

Code: Select all

$ sudo apt update
$ sudo apt install default-jdk
Then I downloaded SMSQmulator for Java 11 from https://www.wlenerz.com/SMSQmulator/

I created a folder in /opt and made it owned by the current user (which will probably be "pi" for you if using raspian, if so replace "ubuntu" in the 3rd commmand with "pi"

Code: Select all

$ cd /opt
$ sudo mkdir smsqmulator
$ sudo chown -R ubuntu:ubuntu smsqmulator
Copied over the file and unzipped it

Code: Select all

$ sudo cp ~/Downloads/SMSQmulator11229.zip /opt/smsqmulator/
$ cd smsqmulator
$ unzip SMSQmulator11229.zip

$ ls -lha
total 6.8M
drwxr-xr-x 3 ubuntu ubuntu 4.0K Mar  8 14:55 .
drwxr-xr-x 5 root   root   4.0K Jan 23 16:48 ..
-rw-r--r-- 1 ubuntu ubuntu 461K Apr 18  2020 README.pdf
-rw-r--r-- 1 ubuntu ubuntu 309K Apr 18  2020 SMSQE
-rw-r--r-- 1 ubuntu ubuntu 1.7M Apr 18  2020 SMSQmulator.jar
-rwxr-xr-x 1 ubuntu ubuntu 1.0M Apr 18  2020 SMSQmulator.win
-rw-r--r-- 1 root   root   2.8M Mar  8 15:11 SMSQmulator11229.zip
-rw-r--r-- 1 ubuntu ubuntu 477K Apr 18  2020 UserGuide.pdf
drwxr-xr-x 2 ubuntu ubuntu 4.0K Apr 18  2020 lib
-rw-rw-r-- 1 ubuntu ubuntu  738 Jan 23 17:11 smsqmulator.png

Test:

Code: Select all

$ java -jar ./SMSQmulator.jar

Let me know of any problems.

PS - MATE runs way better than Raspian IMO. They have optimized it for 64 bit ARM. Also the UI is much nicer.

Re: SMSQE on Raspberry pi 400

Posted: Mon Mar 08, 2021 3:12 pm
by Sparrowhawk
I had a few problems posting that reply - I got text repeating and missing etc. Have tidied it up and I hope it's now OK

Re: SMSQE on Raspberry pi 400

Posted: Mon Mar 08, 2021 4:37 pm
by NormanDunbar
You missed cd from opt before unzipping.