Go to advanced search

by jdonald
Tue Jul 23, 2019 6:45 pm
Forum: Graphics programming
Topic: Strange segfault after several hours of running program
Replies: 4
Views: 84

Re: Strange segfault after several hours of running program

Reading the code, it looks like it spawns that thread early on in vchiq_connect() then it's basically a waiting loop until it's time to shutdown all resources. I'm no expert, just looking at this for the first time like you. Interestingly if you do a search for completion_thread() in the repo's issu...
by jdonald
Tue Jul 23, 2019 2:16 pm
Forum: General discussion
Topic: Raspberry Pi as keylogger
Replies: 8
Views: 286

Re: Raspberry Pi as keylogger

Good catch davidcoton on the 0, 0W, A, A+, and 3A+ having only a single USB interface.

So that leaves only the Pi 4B.
by jdonald
Tue Jul 23, 2019 2:36 am
Forum: General discussion
Topic: Raspberry Pi as keylogger
Replies: 8
Views: 286

Re: Raspberry Pi as keylogger

Welcome to the forums. :D Making a virtual keyboard or in this case a passthrough keyboard sniffer is typically implemented via a USB gadget. Unless you have software access to the target computer (in which case, this would be moot), you require OTG support so it's not possible with a Pi 3B+. You'll...
by jdonald
Tue Jul 23, 2019 1:08 am
Forum: Graphics programming
Topic: Strange segfault after several hours of running program
Replies: 4
Views: 84

Re: Strange segfault after several hours of running program

Saw your post on Stack Exchange that led me here. I think joan's comment is the most insightful so far... showing that this problem is common with hello_video.c would confirm it's not caused by your code. However, this exact crash certainly wouldn't appear in the vanilla examples because people don'...
by jdonald
Mon Jul 22, 2019 11:34 pm
Forum: Gaming
Topic: Is there any working version of Mame for RPI4 in any form?
Replies: 5
Views: 216

Re: Is there any working version of Mame for RPI4 in any form?

Getting MAME from the apt repository or building from mainline source works, but with ~v0.206 we lose something from the spirit of squid's mame4all-pi: an old version of MAME it plays much faster than the newer versions and as the Pi is rather CPU underpowered it was chosen to get as many games work...
by jdonald
Mon Jul 22, 2019 5:28 pm
Forum: Gaming
Topic: Q3lite - Quake III Arena for the Raspberry Pi
Replies: 118
Views: 69839

Re: Q3lite - Quake III Arena for the Raspberry Pi

Glad to hear you received your Pi 4. Sure, I can help out. I just took a look at the open issue at https://github.com/cdev-tux/q3lite/issues/4 and it appears @jeremyvisser did some good investigation 1.5 years back. If glOrthof() breaks all 2D rendering, that would explain why menus weren't appeari...
by jdonald
Sun Jul 21, 2019 11:30 pm
Forum: Gaming
Topic: XboxOne Controller Pairing
Replies: 2
Views: 115

Re: XboxOne Controller Pairing

First off, congrats on getting your controller paired in the first place. Many people don't even get that far! I don't have my XBox One controller at the moment so here's some armchair advice, but I hope you'd prefer that over silence. I totally hear you on the frustration, and yeah googling for GDB...
by jdonald
Sun Jul 21, 2019 9:52 pm
Forum: Gaming
Topic: How to setup Minecraft 1.12.2 on Pi3 or Pi4
Replies: 47
Views: 3136

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Oh I get it now. You commented out those lines because they weren't working, and not: they weren't working because you commented them out. Most likely it wasn't successfully configuring java initially because you were missing the update-alternatives --config step, but what you have now is cleaner an...
by jdonald
Sun Jul 21, 2019 9:40 pm
Forum: Gaming
Topic: Is there any working version of Mame for RPI4 in any form?
Replies: 5
Views: 216

Re: Is there any working version of Mame for RPI4 in any form?

As I understand it, emulators linking libbrcmGLESv2.so won't work on a Pi 4. That unfortunately includes anything forked from squidrpi's mame4all-pi and the RetroPie forks. For whichever builds you're testing, you can run ldd mame to see if it's got any /opt/vc stuff bound to fail. My Pi 4 hasn't ar...
by jdonald
Sun Jul 21, 2019 8:55 pm
Forum: Gaming
Topic: Q3lite - Quake III Arena for the Raspberry Pi
Replies: 118
Views: 69839

Re: Q3lite - Quake III Arena for the Raspberry Pi

Well you don't need to wait for a Pi 4 to debug this on standard GLES. Just take any existing Pi and enable the Mesa driver via sudo raspi-config . If you've linked to the Mesa headers instead of /opt/vc and removed the custom SDL2, that's usually when we start seeing graphical artifacts or performa...
by jdonald
Sun Jul 21, 2019 5:07 pm
Forum: Gaming
Topic: How to setup Minecraft 1.12.2 on Pi3 or Pi4
Replies: 47
Views: 3136

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

I don't understand why the default java version is not changing. Because you have these lines commented out in setupMC1.sh : #sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_211/bin/java 100 #sudo update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_211/bin/j...
by jdonald
Sun Jul 21, 2019 1:16 am
Forum: Gaming
Topic: Pacman on raspberry pi?
Replies: 7
Views: 942

Re: Pacman on raspberry pi?

I ran pacman on x86 Linux and agree it's not worthwhile. Despite requiring X11, all sprites' positions are rounded to a discrete square like an ASCII game. Moonmarch did you actually run it on the Pi? As far as I can tell, with the X font loading error this has been broken on ARM distros for 15 year...
by jdonald
Sat Jul 20, 2019 11:40 pm
Forum: Gaming
Topic: Need help with mednafen
Replies: 1
Views: 310

Re: Need help with mednafen

Mednafen uses the system's SDL2, which on Raspbian defaults to X11 / GL rendering. I'm guessing when you used mednafen long back you had configured it for the open-source driver, but recently you either switched back or imaged a new SD card. To get it rendering smoothly again, run: sudo raspi-config...
by jdonald
Sat Jul 20, 2019 10:40 pm
Forum: C/C++
Topic: Official Touch Screen with raspbian and SDL
Replies: 2
Views: 961

Re: Official Touch Screen with raspbian and SDL

Apparently SDL_TouchFingerEvent never worked with SDL1.2 on the Pi, but I came across a source from early 2019 suggesting this was fixed in SDL2.
by jdonald
Sat Jul 20, 2019 4:07 am
Forum: Troubleshooting
Topic: Pygame won't play sound over Bluetooth, but other programs work
Replies: 1
Views: 660

Re: Pygame won't play sound over Bluetooth, but other programs work

Saw your bounty. I'm no expert but here are a couple troubleshooting ideas: * If it's not mandatory to use bluealsa, any luck if you try running with SDL_AUDIODRIVER=dsp or SDL_AUDIODRIVER=pulse ? * Try it with PyGame-SDL2. Much like everything else, SDL_mixer changed immensely going from 1.2 to 2.0...
by jdonald
Fri Jul 19, 2019 5:57 pm
Forum: Gaming
Topic: MCPI changes wanted
Replies: 9
Views: 888

Re: MCPI changes wanted

Good job finding the autojump setting, RomoBoom. For instant block destruction, one approach is to loop on events.pollBlockHits() and set any affected block to block.AIR.id . I expect this would be unsatisfactory because there would be no demolition animation, plus you'd have to use the right-click ...
by jdonald
Fri Jul 19, 2019 4:25 pm
Forum: Gaming
Topic: Install instructions for classic DOOM
Replies: 2
Views: 422

Re: Install instructions for classic DOOM

Thanks Izaac I've bookmarked this guide for sharing next time someone asks. As of today, too many stale Pi blogs lead people to believe that they need to build from source.

For downloading the WAD, rather than wget I recall you can do:

Code: Select all

    sudo apt-get install doom-wad-shareware
by jdonald
Wed Jul 17, 2019 2:41 am
Forum: Gaming
Topic: Super Crate Box
Replies: 18
Views: 1286

Re: Super Crate Box

For what it's worth, some time ago I got Super Crate Box running with Mesa instead of the legacy driver.

https://github.com/jdonald/gamemaker-rpi-wrapper

That may be more useful now that the Pi 4 defaults to the new driver.
by jdonald
Fri Jul 12, 2019 11:25 am
Forum: Gaming
Topic: Supertuxkart on Raspberry Pi
Replies: 40
Views: 10780

Re: Supertuxkart on Raspberry Pi

EliCash what’s the version that comes from the Apt repository? If that’s still 0.8.2 then it won’t work and yes you’ll have to build from source. The working 30 FPS Pi 3/3B+ config discussed here must be built with -DUSE_GLES2=1, but note this is Mesa GLES so it requires the open-source driver. That...
by jdonald
Mon Jun 17, 2019 3:18 pm
Forum: Gaming
Topic: Unity in Raspberry Pi 3 or other small computers?
Replies: 7
Views: 7912

Re: Unity in Raspberry Pi 3 or other small computers?

Hmm I thought I had replied on this thread but maybe it was a different one. For what it's worth another approach is to use Unity's WebGL target. I did some tests with https://github.com/zfergus/unity-examples/tree/master/TankGame3rdPS last year. That simple example takes about 1 minute to load (not...
by jdonald
Thu Feb 21, 2019 5:55 pm
Forum: Other projects
Topic: Introducing Pi386
Replies: 65
Views: 21989

Re: Introducing Pi386

That's what I wrote above regarding /lib/modules. This package is not usable until that is addressed.

The only way neoaikon was able to get it to run was that his existing system had a 3G/1G split.
by jdonald
Sat Feb 09, 2019 3:38 am
Forum: Gaming
Topic: Library to develop 2D game?
Replies: 9
Views: 1157

Re: Library to develop 2D game?

WillBoxOwO, The Hello SFML example runs at less than 15% (of a single core) at full screen on my Pi 3B+. It's only when I run with the legacy driver does it have a 350% CPU usage problem. Based on your other posts, I suspect your problems with 2D engines could be related to the same issues you initi...
by jdonald
Tue Feb 05, 2019 2:31 am
Forum: General discussion
Topic: Arm A53 AArch64 Support
Replies: 17
Views: 2916

Re: Arm A53 AArch64 Support

64 bit kernel under a 32 bit raspbian is working fine for me, and I'm in the process of fixing up the bits of the kernel that don't work. All the Mmal and IL apps I've tried still work with that, as the buffers passed from the 32bit app still map correctly onto the Gpu versions of those structures....
by jdonald
Mon Feb 04, 2019 7:56 pm
Forum: General discussion
Topic: Easily run 64-bit Debian Stretch packages on a Raspbian system: new RPi3 demo image released (systemd-nspawn, LXDE)
Replies: 107
Views: 11640

Re: Easily run 64-bit Debian Stretch packages on a Raspbian system: new RPi3 demo image released (systemd-nspawn, LXDE)

how does the 32-bit shell user even get to the point of trying to invoke a 64-bit app in the first place (in order for the binfmt handler to then pick it up)? Would you propose they be navigating inside the /var/lib/machines/debian-stretch-64 folder? This wouldn't happen much with the existing imag...
by jdonald
Sun Feb 03, 2019 11:20 pm
Forum: General discussion
Topic: 64-bit operating system
Replies: 350
Views: 68972

Re: 64-bit operating system

Anyone know where to download or how to build an aarch64 cross compiler for armhf systems? On Debian or Ubuntu for x86_64 you can just run sudo apt install gcc-aarch64-linux-gnu, but this doesn't seem to be available in any armhf repositories. Likewise, the aarch64 systems don't have a gcc-arm-linux...

Go to advanced search