Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up --- Bug Reports --- Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: current status of gentoo linux / advmame  (Read 19152 times)

0 Members and 1 Guest are viewing this topic.

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
current status of gentoo linux / advmame
« on: December 05, 2005, 03:02:25 pm »
My Hardware:
P4 2.4 GHz, 512 MB Ram, SB Live! (emu10k1), ATI Radeon 7000 VE (rv100)

My OS:
gentoo-sources 2.6.14-r2 kernel, emerge'd advancemame, alsa

Other:
for development, I also emerged X and fluxbox as a WM.

The Situation:
I am trying to get the framebuffer version working, which I assume SHOULD work since I have tried with AdvanceCD and I got good video and audio.  Perhaps this is a bad assumption.

after following the gentoo alsa HOWTO, I have a working sound device, which I have confirmed by running advs with an .mp3 and it plays beautifully.

From the cmd line I can run advmame mspacman -- works GREAT.  When I run advmame suprmrio -- it looks great, but as soon as I hit '5' to coin-up, the audio comes through, but is very wavy - like a record when you grab a hold/let go of the record as it's playing to slow it down/speed it back up.  Then when gameplay starts, it's terrible.  It's as if the aforementioned record player effect is applied to the whole game (not just audio).

I have some other issues too, but I'm using this as a ping to see if anyone out there is a guru at gentoo/ advmame... barvaz? whammoed? desmatic? others?

Thanks ahead of time,
Rock

starnix17

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 67
  • Last login:December 19, 2011, 11:00:29 am
Re: current status of gentoo linux / advmame
« Reply #1 on: December 05, 2005, 03:22:22 pm »
I'm not that much of a Linux guru, but try searching the Gentoo Wiki. Lot's of good stuff in there!

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #2 on: December 05, 2005, 03:50:48 pm »
post your advmame.rc file contents
have you made any changes to the file, especially dealing with audio?
after loading suprmrio, hit F11 to bring up the speed and report the results after coining up and playing
have you tried other games and had similar/different reactions?

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #3 on: December 05, 2005, 04:12:20 pm »
thanks, you guys...

post your advmame.rc file contents
have you made any changes to the file, especially dealing with audio?
after loading suprmrio, hit F11 to bring up the speed and report the results after coining up and playing
have you tried other games and had similar/different reactions?

I will post the advmame.rc file and results of the F11 tests tonight when I get home...  I have tried other games and had similar reactions: stunrun.

I'm not that much of a Linux guru, but try searching the Gentoo Wiki. Lot's of good stuff in there!

yeah, I hoped there might be something there... but searches for 'mame', 'advmame', and 'advancemame' all turned up nil.  :P  There seems to be a bit more (still not much) in the gentoo forums.

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:May 07, 2019, 09:23:10 pm
  • penguin poker
    • StickFreaks
Re: current status of gentoo linux / advmame
« Reply #4 on: December 06, 2005, 12:19:57 am »
Which FBDev device are you using (ie: what did you compile intro your kernel)?  SVGA FBDev won't work very well with Advmame.  Make sure you are using the proper radeon one.

Otherwise, I'll wait until I see your .conf files for more comments.

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #5 on: December 06, 2005, 01:36:37 am »
OK, did the f11 test for suprmrio - says Auto 100% - 8?% - it flickers around 84% most of
the time.  Occasionally the game will hang and then the f11 display will then blink briefly to what appears to be Auto 1??% - 1??% (both numbers > 100), then back to ~84%.  The coin up and game play didn't seem to move it much from 84%, which is what it shows during attract mode.

Also, I should probably note that I have X running on console 7 and I switch
to console 2 to log in as root when I run in fb mode from the cmd line.  I
would assume that since I've switched consoles, that X shouldn't be
interfering... well, I tried it to be sure - I exited from X and that didn't make a difference.

For comparison purposes, I fired up mspacman again and it was a solid 100%, occasionally blinking a 98% or something (so fast I couldn't see it).  Great authentic flickery video!

OK, here is my .advance/advmame.rc:
------snip---------
device_video fb
device_video_clock 25.2 - 202.5 / 30 - 96 / 48 - 120
device_video_interlace no
device_video_output fullscreen
dir_artwork /home/sloaner/.advance/artwork:/usr/share/games/advance/artwork
dir_diff /home/sloaner/.advance/diff
dir_hi /home/sloaner/.advance/hi
dir_image /home/sloaner/.advance/image:/usr/share/games/advance/image
dir_inp /home/sloaner/.advance/inp
dir_memcard /home/sloaner/.advance/memcard
dir_nvram /home/sloaner/.advance/nvram
dir_rom /home/sloaner/.advance/rom:/usr/share/games/advance/rom:/ntfs/roms
dir_sample /home/sloaner/.advance/sample:/usr/share/games/advance/sample:/ntfs/samples
dir_snap /home/sloaner/.advance/snap:/ntfs/snap
dir_sta /home/sloaner/.advance/sta
display_resizeeffect none
------snip---------

you'll notice ranges given for device_video_clock - these were for a Dell Ultrascan P990 Multisync monitor.  I guessed at the range of pclock values but the others came from here:
http://support.dell.com/support/edocs/monitors/p990/specs.htm


Thanks again,
Rock

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #6 on: December 06, 2005, 01:37:59 am »
Also, I forgot to mention, I used the -log option when running these tests.  I uploaded them to a buddy's
webserver... here they are, but mind the file sizes:

http://www.ninjaboot.com/suprmrio_log.txt (25 MB)
and
http://www.ninjaboot.com/mspacman_log.txt (1.9 MB)

thanks again,
Rock

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #7 on: December 06, 2005, 01:45:44 am »
Which FBDev device are you using (ie: what did you compile intro your kernel)? SVGA FBDev won't work very well with Advmame. Make sure you are using the proper radeon one.

I did a grep FB /usr/src/linux/.config and here were the results:

# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_FB=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SOFT_CURSOR=y
# CONFIG_FB_MACMODES is not set
CONFIG_FB_MODE_HELPERS=y
# CONFIG_FB_TILEBLITTING is not set
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_VESA is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I810 is not set
# CONFIG_FB_INTEL is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON_OLD is not set
CONFIG_FB_RADEON=y
CONFIG_FB_RADEON_I2C=y
CONFIG_FB_RADEON_DEBUG=y
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_CYBLA is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_VIRTUAL is not set

... so it looks like the CONFIG_FB_RADEON is correct - I'll try the RADEON_OLD in a minute

thanks always,
Rock

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #8 on: December 06, 2005, 10:08:34 am »
OK, tried the old radeon driver, that didn't work even for mspacman... I got:

No video modes available for the current game.
Unable to start video emulation

 :-\

EDIT:  OOPS!  I had tweaked some device_video_clock  numbers to cause this failure - not a scientific test, but I retried with the correct numbers and the changing to the old radeon driver still didn't fix the suprmrio problem
« Last Edit: December 07, 2005, 03:11:16 am by Major Rock Hardy »

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #9 on: December 06, 2005, 10:32:16 am »
oh yeah,

try changing advmame.rc with this setting:
device_sound none

this will turn off the sound and narrow down the problem to either your audio or video config.  I'm sure either one can cause your choppy play.  Play a troublesome game with hitting f11 to see if you can get smooth play.  A 2.4 ghz processor should be plenty to run all but the few oddball games at full speed.

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:May 07, 2019, 09:23:10 pm
  • penguin poker
    • StickFreaks
Re: current status of gentoo linux / advmame
« Reply #10 on: December 06, 2005, 06:33:12 pm »
What mode is video being chosen by the system when you play the slow games?  (Use the TAB menu to find out).  Also check to make sure you're not applying a resize or filter, as these slow things down a lot.

Always try to use generate or 1.0X modes, and not scale modes.  The scaling is done by software for FBDev and SVGALib, and makes things very slow.

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #11 on: December 07, 2005, 02:40:13 am »
oh yeah,

try changing advmame.rc with this setting:
device_sound none

this will turn off the sound and narrow down the problem to either your audio or video config. I'm sure either one can cause your choppy play. Play a troublesome game with hitting f11 to see if you can get smooth play. A 2.4 ghz processor should be plenty to run all but the few oddball games at full speed.

OK, did this w/ suprmrio and now we're at ~99%, but it still freezes (although much more briefly), then sort of 'bursts' (over 100%) to 'keep up' I guess.  So I guess it's still a video problem.



What mode is video being chosen by the system when you play the slow games? (Use the TAB menu to find out). Also check to make sure you're not applying a resize or filter, as these slow things down a lot.

Always try to use generate or 1.0X modes, and not scale modes. The scaling is done by software for FBDev and SVGALib, and makes things very slow.


for mspacman, it chooses 720x576x16 28.2/31.5/50.0  ... now when I have the menu up, I can switch the resize mode to mixed, and the rgb mode on scan2horiz and apply a resize effect of 'filter' (or 'scale') and mspacman still runs at 100% when I'm playing it... so I suppose that confirms there's plenty of horsepower behind the emulation...  ???

now, for some reason, I can't start suprmrio again (black/blank screen).  AARRRRGGGGHHHHH!  >:(

rebooting...

Rock

« Last Edit: December 07, 2005, 02:44:34 am by Major Rock Hardy »

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #12 on: December 07, 2005, 03:16:43 am »
HAHAHA  SUCCESS !  ;D  (well sort of).

I now have acheived 100% emulation speed in suprmrio by going into the menu and turning off vsync.  That alone did it, regardless of scaling/resizing.  However, it seems now I can't run suprmrio without a reboot.

one step forwards and 1/2 step back I guess.

I am beginning to believe that I have a bit too much faith  :angel: in this piece of junk Radeon 7000 VE.  Has anyone gotten framebuffer mode to work w/ advmame under linux... if so, what card?

Thanks always,
Rock

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #13 on: December 07, 2005, 10:06:16 am »
I have used framebuffer with a radeon 7000 before.  I believe brand can make a difference though.  I don't remember what mine is.  This was at cga resolution, so i wasn't using any kind of scaling and was running at the original refresh rates so sync issues wouldn't have been a problem.  Anyway, I ended up switching to svgalib because you can use lower pclocks.

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #14 on: December 07, 2005, 01:18:13 pm »
This was at cga resolution, so i wasn't using any kind of scaling and was running at the original refresh rates so sync issues wouldn't have been a problem.

Thanks whammoed, perhaps you could expand on this... if I am using a Multiscan monitor is "running at the original refresh rates" impossible?  The advmame documentation sort of leads me to believe that anything is possible with a multiscan monitor.

Another issue that has been always present is the fact that whenever I exit advmame, it doesn't return to the console prompt - at least not visibly.  The screen has a few lines of colored dots - ctrl+L doesn't help, reset command doesn't help.  I have to Ctrl+Alt+F7 to my X session and then switch back in order for it to be useable again.  Would running advmame in conjunction w/ advmenu help solve this problem?

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #15 on: December 07, 2005, 03:15:39 pm »
Well, you won't be able to run at the original resolution exactly but I would think you should be able to at least find something to use at the original Vertical refresh.
« Last Edit: December 07, 2005, 03:23:31 pm by whammoed »

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #16 on: December 07, 2005, 04:19:27 pm »
Mr. whammoed, thank you again...

I will try the display_adjust clock line.

I would love to run advv - but as far as I can tell when I emerged advancemame on gentoo, it did not build the advv or advcfg binaries.  Is there a trick for this, like manually editing a build script or something on the emerge commandline?  Sorry for the gentoo noob question.

Thanks,
Rock

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #17 on: December 07, 2005, 04:29:13 pm »
This was fixed in newest advmame release 102.  Installing it should work now for the utilities.

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #18 on: December 07, 2005, 05:33:39 pm »
cool, I will re-emerge tonight and report results... do you happen to know if it applies the fb patches when it builds?  Or wait, I would have to rebuild my kernel with the fb patches that come with advmame, correct?  Do you know if the emerge build patches the kernel source?

thanks again,
Rock

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:May 07, 2019, 09:23:10 pm
  • penguin poker
    • StickFreaks
Re: current status of gentoo linux / advmame
« Reply #19 on: December 07, 2005, 08:34:26 pm »
cool, I will re-emerge tonight and report results... do you happen to know if it applies the fb patches when it builds?  Or wait, I would have to rebuild my kernel with the fb patches that come with advmame, correct?  Do you know if the emerge build patches the kernel source?

thanks again,
Rock

Gentoo does not apply the fb nor svgalib patches when compiling from portage.

However the patches supplied by the advmame authors are generally only for low-res (15KHz) modes anyway.  If you're using a 31KHz VGA monitor, you don't generally need these patches.

If you are using an arcade monitor and want to use low res modes, I suggest downloading the advmame source and compiling it yourself manually (including the fb patches against the kernel), rather than letting gentoo portage deal with it.

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #20 on: December 14, 2005, 07:39:10 pm »
elvis, whammoed-

are you using fb in your latest projects?  or did you get tired of fighting it and switch to svgalib?  I'm beginning to think I'm going to do that since other emulators I want to run will support svgalib but I don't know of any that support fb...

Thanks,
Rock

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #21 on: December 14, 2005, 08:46:15 pm »
The only reason I switched to svgalib was to get lower pclocks.

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:May 07, 2019, 09:23:10 pm
  • penguin poker
    • StickFreaks
Re: current status of gentoo linux / advmame
« Reply #22 on: December 14, 2005, 09:04:41 pm »
I use SVGALib.  It was the first method I tried, and it worked, so I've used it ever since on all of my projects and never bothered to test FBDev out of sheer laziness. :)

From what I can see, SVGALib supports more chipsets too.  Not that it matters for most ATi/Nvidia owning people.

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #23 on: December 15, 2005, 03:53:05 pm »
K, thanks you two...

so I'm going about the SVGA path and I've run into a wierd message..

I downloaded svgalib-1.9.19 and advancemame-0.102.0... now, following desmatic's patch instructions on easymamecab, here are the results:

me@persephone /usr/src/svgalib-1.9.19 $ sudo patch -p1 < ../advancemame-0.102.0/contrib/mame/svgalib/svgalib-1.9.19-force.diff
patching file src/timing.c
patching file src/timing.h
me@persephone /usr/src/svgalib-1.9.19 $ sudo patch -p1 < ../advancemame-0.102.0/contrib/mame/svgalib/svgalib-1.9.19-radeon.diff
patching file src/drivers/r128.c
patch unexpectedly ends in middle of line
Hunk #4 succeeded at 862 with fuzz 1.

...
any thoughts about my fuzzy hunk?  :o

thanks,
Rock



whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #24 on: December 15, 2005, 04:03:51 pm »
I got errors when the radeon files were patching too.  I ignored them without issue and I am using a radeon.

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #25 on: December 15, 2005, 05:01:22 pm »
K, I ignored them and went on... and I got this when I tried to insmod:

persephone svgalib-1.9.19 # insmod /lib/modules/2.6.14-gentoo-r2/kernel/misc/svgalib_helper.ko
insmod: error inserting '/lib/modules/2.6.14-gentoo-r2/kernel/misc/svgalib_helper.ko': -1 Unknown symbol in module


any thoughts?  should I be doing this a different way for Gentoo?

Thanks again,
Rock

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #26 on: December 15, 2005, 05:37:41 pm »
desmatic suggests:

If the svgalib_helper module won't load
1. you compiled svgalib with a different compiler than the one used to compile your kernel
2. you are trying to load the wrong version of the module. 2.6.x modules end in .ko and 2.4.x modules in .o Both modules can be found in the kernel/svgalib_helper directory. The SVGAlib make install by default places these modules in /lib/modules/`uname -r`/kernel/misc directory.

as far as I can tell, NEITHER apply to me... FYI:

me@persephone /usr/src/svgalib-1.9.19 $ gcc --version; cat /proc/version
gcc (GCC) 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Linux version 2.6.14-gentoo-r2 (root@persephone) (gcc version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)) #10 PREEMPT Sat Dec 3 20:16:04 MST 2005

...
and see above for proof that I tried to load the .ko instead of the .o

 :-\

Rock

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:May 07, 2019, 09:23:10 pm
  • penguin poker
    • StickFreaks
Re: current status of gentoo linux / advmame
« Reply #27 on: December 15, 2005, 08:57:17 pm »
Oooh that rings a bell.  I got an "unknown symbol" error a while back from memory.

Check:

a) If you *need* the patches for your kernel (I believe one of the patches does not need issuing after 2.6.8 because something was fixed in the kernel)

b) That your kernel revision is supported (you might need to downgrade your kernel).

Check the readme's that go with the patches, and read them all start to finish whether they seem obvious or not.

Bugger... there was something else I had to do to get rid of that "unknown symbol" error but I can't remember what!  Time to google...

[edit] a voice in my head is telling me it was something to do with a udev/devfs problem... still googling...

[edit2] run:

dmesg | grep -i 'svga'

And see what get's spat out.  If you get an error about it not being able to make a symlink in devfs or something similar, read the following thread and see if it helps:
http://forums.gentoo.org/viewtopic-t-331838-highlight-svgalibhelper.html
« Last Edit: December 15, 2005, 09:12:55 pm by elvis »

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #28 on: December 16, 2005, 01:19:46 pm »
Man I'm getting into the nitty-gritty...

I ran your
dmesg | grep -i svga
and got:
svgalib_helper: Unknown symbol pci_find_class
svgalib_helper: Unknown symbol io_remap_page_range

so due to this thread on the gentoo forums (http://forums.gentoo.org/viewtopic.php?t=216985) it looks as if the kernel? function "pci_find_class" was at some point (and perhaps only in gentoo kernels?) changed to "pci_get_class".

so from the svgalib-1.9.19 directory, I ran
grep -r pci_find_class *
 and it was only in one source file:
kernel/svgalib_helper/main.c:                                   pci_find_class(PCI_CLASS_DISPLAY_VGA<<8,dev)) &&

so I just went into this file (kernel/svgalib_helper/main.c) and changed "pci_find_class" to "pci_get_class".

Then from the svgalib-1.9.19 directory, I ran
make clean
make install
make demoprogs
cp -f kernel/svgalib_helper/svgalib_helper.ko /lib/modules/2.6.14-gentoo-r2/kernel/misc/svgalib_helper.ko
insmod /lib/modules/2.6.14-gentoo-r2/kernel/misc/svgalib_helper.ko


still got:
insmod: error inserting '/lib/modules/2.6.14-gentoo-r2/kernel/misc/svgalib_helper.ko': -1 Unknown symbol in module

however, upon running
dmesg | grep -i svga

now it just says:
svgalib_helper: Unknown symbol io_remap_page_range

so I got one of them, still working on the other... stay tuned.

Thanks again elvis,
Rock



Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #29 on: December 16, 2005, 04:46:30 pm »
Oh boy...

to get the other message (svgalib_helper: Unknown symbol io_remap_page_range) to go away it was a bit more involved... I finally found a french google groups posting (http://groups.google.fr/group/svgalib/browse_thread/thread/baea20cf230bbbf8/2d3796c629b5890c?hl=fr)

So I went to the svgalib-1.9.19 directory and added a few lines (MAKE A BACKUP COPY FIRST) to kernel/svgalib_helper/kernel26compat.h (relative path) to make this:

Code: [Select]
#else /* Kernel 2.6 */

#define NO_TASK

# ifndef KERNEL_2_6
#  define KERNEL_2_6
# endif

# define my_io_remap_page_range(vma, start, ofs, len, prot) \
                io_remap_page_range(vma,start,ofs,len,prot)

look like this:

Code: [Select]
#else /* Kernel 2.6 */

#define NO_TASK

# ifndef KERNEL_2_6
#  define KERNEL_2_6
# endif

// majorrockhardy - added this vvvvvv
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14)
# define io_remap_page_range(vma, vaddr, paddr, size, prot)            \
                remap_pfn_range(vma, vaddr, (paddr) >> PAGE_SHIFT, size, prot)
#endif
// majorrockhardy - added this ^^^^^^

# define my_io_remap_page_range(vma, start, ofs, len, prot) \
                io_remap_page_range(vma,start,ofs,len,prot)


Then from the svgalib-1.9.19 directory, I ran
make clean
make install
make demoprogs
cp -f kernel/svgalib_helper/svgalib_helper.ko /lib/modules/2.6.14-gentoo-r2/kernel/misc/svgalib_helper.ko


so here's the insmod result:

me@persephone /usr/src/svgalib-1.9.19 $ insmod /lib/modules/2.6.14-gentoo-r2/kernel/misc/svgalib_helper.ko
me@persephone /usr/src/svgalib-1.9.19 $ dmesg -c | grep -i svga
svgalib_helper: Initializing, version 1.9.19
svgalib_helper: device1: vendor:1002 id:5159

no more errors!

success (maybe)... stay tuned...


Rock

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #30 on: December 16, 2005, 06:50:10 pm »
HA HA HA HA!!!  ;D

it worked!

I have advmenu working and advmame loads suprmrio and mspacman and joust and etc...

I have a question though - stunrun is one of my favorite games.  In win2k it plays at pretty much full speed.  However in advmame it doesn't - unless I turn the sound off.  Any ideas?  In other games, sound works just fine.  Surely this isn't a processing overhead issue w/ Linux not being able to do what win2k can do, right?

Anyone using Linux advmame not get stunrun to work w/ sound at full speed?  Or, if it does work for you, what processor do you have?

Thanks,
Rock

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #31 on: December 16, 2005, 07:37:50 pm »
Hmmm, in my experiences Linux has outperformed XP/2000 for game speeds.  I will test that one out when I get a chance.

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:May 07, 2019, 09:23:10 pm
  • penguin poker
    • StickFreaks
Re: current status of gentoo linux / advmame
« Reply #32 on: December 16, 2005, 07:56:36 pm »
so due to this thread on the gentoo forums (http://forums.gentoo.org/viewtopic.php?t=216985) it looks as if the kernel? function "pci_find_class" was at some point (and perhaps only in gentoo kernels?) changed to "pci_get_class".

Ah, that was it!  I had to do the same on my Slackware install to get it working.  Now I remember! :)

But anyways... you're up and running which is good.

I have a question though - stunrun is one of my favorite games.  In win2k it plays at pretty much full speed.  However in advmame it doesn't - unless I turn the sound off.  Any ideas?  In other games, sound works just fine.  Surely this isn't a processing overhead issue w/ Linux not being able to do what win2k can do, right?

Anyone using Linux advmame not get stunrun to work w/ sound at full speed?  Or, if it does work for you, what processor do you have?

AdvMAME sometimes chooses silly display settings for some games (particularly non-CGA games which I have a funny feeling stunrun is).

Make sure that:

1) Video modes are 15, 16 or 32 bit BGR modes only.  Avoid all the other crazy 8bit and YUV mode.  You can hack your advmame.cfg file to limit available modes (I run all my games in 16bit which is fine).

2) AdvMAME is choosing a nice generate or 1X mode.  Don't use software scaling for 2X or greater modes, as this slows things down ALOT.  Scaling might sometimes be "auto", "mixed" or "integer".  Turn these off!

3) There are no scale2x or lq or hq filters being applied, and that.  Same as (2).

4) Turn VSync off, and double-buffer on.

With all those set, you should see full speed games.  Like Whammoed said, I get better performance out of Linux+SVGALib than I do Windows+DirectX (especially on "borderline" hardware), which I assume is thanks to much lower overall overhead and less unecessary desktop-OS fluff.

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #33 on: December 16, 2005, 08:48:00 pm »
OK, thanks elvis...

I changed Resize to no, Color to bgr16, Resize Effect to no, Rgb Effect to no, Vsync to no, SMP to no...

[edit] the above seemed to help a bit, but it's still draggin' a**

where do I find out about double_buffer?

Thanks,
Rock
« Last Edit: December 16, 2005, 09:19:39 pm by Major Rock Hardy »

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #34 on: December 20, 2005, 12:39:44 pm »
sorry, elvis,

I meant where do I find out about double-buffer?

whammoed (or anyone) how does stunrun work under linux/SVGAlib?

Thanks,
Rock

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #35 on: December 20, 2005, 12:41:09 pm »
Sorry, still haven't tried.  Its on my to do list.

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #36 on: December 20, 2005, 06:59:53 pm »
OK, just ran stunrunner. it runs fine with room to spare. this is on a P4 2.8 Ghz

elvis

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1154
  • Last login:May 07, 2019, 09:23:10 pm
  • penguin poker
    • StickFreaks
Re: current status of gentoo linux / advmame
« Reply #37 on: December 20, 2005, 08:18:49 pm »
OK, thanks elvis...

I changed Resize to no, Color to bgr16, Resize Effect to no, Rgb Effect to no, Vsync to no, SMP to no...

[edit] the above seemed to help a bit, but it's still draggin' a**

where do I find out about double_buffer?

Thanks,
Rock

Try these on for size (some you already have):

Reference reading:
http://advancemame.sourceforge.net/doc-advmame.html#8.3

display_scanlines no
display_vsync no
display_buffer no # (try switching to "yes" and seeing what the effect is on your system)
display_resize none
display_magnify 1
display_skiplines auto
display_skipcolumns auto
display_frameskip auto # (try "0" also)
display_resizeeffect none
display_rgbeffect none
display_interlaceeffect none

device_color_palette8 no
device_color_bgr8 no
device_color_bgr15 no
device_color_bgr16 yes
device_color_bgr24 no
device_color_bgr32 no
device_color_yuy2 no

display_color bgr16

Major Rock Hardy

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 261
  • Last login:April 29, 2013, 06:51:45 pm
  • xybots rocks!
Re: current status of gentoo linux / advmame
« Reply #38 on: January 06, 2006, 03:56:45 pm »
S.T.U.N. Runner - Working  :o

you're not going to believe why...  I tried elvis's settings - that made things better but stunrun was still sluggish.

I just happened to plug in a USB Mouse and keyboard today instead of the normal PS2 mouse and keyboard.  Stunrunner was glorious!  It took a bit to realize the USB might be what caused the operational behavior.  I swapped the USB keyboard for a PS/2 keyboard and rebooted - still worked.  Swapped the USB mouse for a PS/2 mouse - broken.  Swapped the PS/2 keyboard for the USB keyboard and left the PS/2 mouse plugged in - still broken.  Swapped the PS/2 mouse for a USB mouse and we're running at full speed again!

So I deduced that the PS/2 mouse driver must be hogging CPU cycles to a degree that dragged emulation down.  That seems pretty crazy to me.  Any ideas why?

thanks for all the help guys,
Rock

whammoed

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2284
  • Last login:May 24, 2019, 10:09:00 am
  • Crack don't smoke itself
    • NiceMite
Re: current status of gentoo linux / advmame
« Reply #39 on: January 06, 2006, 04:06:25 pm »
did you have both an analog control and mouse active for that game in advmame.rc?  If so try setting device_mouse none
and see if you can keep the mouse plugged in.  Don't know why the ps2 vs usb mouse would make a difference though...