Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Kegs on Raspberry Pi

234 views
Skip to first unread message

oz390gta

unread,
May 8, 2013, 1:23:03 AM5/8/13
to
I am not sure if there is a more appropriate forum to ask this question but it appears that a few csa2 members are playing with Raspberry Pi's at the moment.

I have been trying to get kegs up and running but keep getting the follow errors at launch. The system is a new vanilla install of wheezy raspbian.

oz390gta


pi@raspberrypi /usr/local/lib $ kegs
Trying 'config.kegs'
Parsing config.kegs file
...parse_option: line 11, 0x6326c,0x6326c = g_cfg_rom_path = /usr/local/lib/rom.kegs (g_cfg_rom_path = /usr/local/lib/rom.kegs) len:40
Read: 262144 bytes of ROM
Patching ROM 03 smartport bug
RAM size is 0 - 900000 (9.00MB)
Preparing X Windows graphics system
Visual 0
id: 00000021, screen: 0, depth: 16, class: 4
red: 0000f800, green: 000007e0, blue: 0000001f
cmap size: 64, bits_per_rgb: 8
Chose visual: 0, max_colors: -1
Will use shared memory for X
Segmentation fault
pi@raspberrypi /usr/local/lib $

Ivan X

unread,
May 8, 2013, 2:27:40 AM5/8/13
to
It's funny, I never actually tried it in its native GUI -- I only ever remotely displayed the X window. I also can't get it to run in the GUI (at least when it's displayed via VNC).

In the GUI, I don't get a segmentation fault, but it seems to conk out at open /dev/dsp failed, followed by "parent dying, can't get sample rate from child". It can't find the sound device and gives up.

One way to fix this is to launch it with "kegs -audio 0". Or, for sound support, you can follow the instructions on the gsport development page which say to add snd-pcm-oss to /etc/modules, rebooting, and then typing sudo chmod 666 /dev/dsp.

Polymorph

unread,
May 8, 2013, 3:05:51 AM5/8/13
to
On Wednesday, May 8, 2013 3:23:03 PM UTC+10, oz390gta wrote:
> I am not sure if there is a more appropriate forum to ask this question but it appears that a few csa2 members are playing with Raspberry Pi's at the moment.
>
>
>
> I have been trying to get kegs up and running but keep getting the follow errors at launch. The system is a new vanilla install of wheezy raspbian.
>
>

If you look for my post on running GSport (which is a direct derivative of Kegs) on the Pi:

https://groups.google.com/d/topic/comp.sys.apple2/3c7P_K-EJn8/discussion

you will note that I had to install the xfonts-base package.

With luck this will also fix your issue.

Cheers,
Mike


oz390gta

unread,
May 8, 2013, 6:30:09 PM5/8/13
to
MIke,

I installed the fonts-base package and now get the following error, seems to still be related to the x system.

oz390gta

pi@raspberrypi ~ $ kegs
Trying 'config.kegs'
Trying 'kegs_conf'
Trying '.config.kegs'
Trying './config.kegs'
Trying './kegs_conf'
Trying './.config.kegs'
Trying '/home/pi/config.kegs'
Trying '/home/pi/kegs_conf'
Trying '/home/pi/.config.kegs'
Trying '/home/pi/Library/KEGS/config.kegs'
Trying '/home/pi/Library/KEGS/kegs_conf'
Trying '/home/pi/Library/KEGS/.config.kegs'
Trying './/Contents/Resources/config.kegs'
Trying './/Contents/Resources/kegs_conf'
Trying './/Contents/Resources/.config.kegs'
Trying '/usr/local/lib/config.kegs'
Parsing config.kegs file
...parse_option: line 11, 0x6326c,0x6326c = g_cfg_rom_path = /usr/local/lib/rom.kegs (g_cfg_rom_path = /usr/local/lib/rom.kegs) len:40
Read: 262144 bytes of ROM
Patching ROM 03 smartport bug
RAM size is 0 - 900000 (9.00MB)
Preparing X Windows graphics system
Visual 0
id: 00000021, screen: 0, depth: 16, class: 4
red: 0000f800, green: 000007e0, blue: 0000001f
cmap size: 64, bits_per_rgb: 8
Chose visual: 0, max_colors: -1
Will use shared memory for X
pipes: pipe_fd = 4, 5 pipe2_fd: 6,7
open /dev/dsp failed, ret: -1, errno:2
parent dying, could not get sample rate from child
ret: 0, fd: 6 errno:11
pi@raspberrypi ~ $

David Schmidt

unread,
May 8, 2013, 7:04:10 PM5/8/13
to
Please follow Ivan X's prior advice...
add snd-pcm-oss to /etc/modules
(reboot)
sudo chmod 666 /dev/dsp
kegs -audio 0

Polymorph

unread,
May 8, 2013, 8:57:15 PM5/8/13
to
Actually, that was also my advice. :-)

Cheers,
Mike

David Schmidt

unread,
May 8, 2013, 9:43:25 PM5/8/13
to
Yes, indeed it was. I think there are definitely some very basic things
that are not being observed here. And it's all on GSport's page, thanks
to you.

oz390gta

unread,
May 8, 2013, 9:49:12 PM5/8/13
to
Oops, I only tried the audio -0 part of Ivan X's advise thinking that they were the same thing. Looking back at it clearly they are not ;-)

oz390gta

oz390gta

unread,
May 8, 2013, 10:43:52 PM5/8/13
to
Success, I finally got it working, as always it looks easy in hindsight. Had a bit of fun with keyboard mapping as kegs wouldn't recognise F4 to get to the configuration menu so I did it manually by editing config.kegs. I then realised the pi itself was not recognising F4 key so once I got that configured all works well. Thanks once again to the community.

oz390gta

Daniel Kruszyna

unread,
May 9, 2013, 10:37:06 AM5/9/13
to
David Schmidt <schm...@my-deja.com> wrote:
> Please follow Ivan X's prior advice...
> add snd-pcm-oss to /etc/modules
> (reboot)
> sudo chmod 666 /dev/dsp
> kegs -audio 0

Another option is to install alsa-oss. I normally run 'aoss gsportx'. I
also have oss emulation enabled in my kernel, but using /dev/dsp
prevents other applications from simultaneously using the sound
device. aoss connects to alsa using a higher layer which supports
mixing.

To clarify, I don't have a Pi but I use gsport on linux.

-- Daniel

0 new messages