VICE problem in Ubuntu 16.04.1

You need an actual VIC.

Moderator: Moderators

User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

VICE problem in Ubuntu 16.04.1

Post by ral-clan »

Hi,

I just upgraded my Lubuntu (light Ubuntu) computer from Lubuntu 14.04LTS to 16.04.1LTS. With that came an automatic upgrade of VICE.

VICE used to run just perfectly under 14.04. I could dynamically resize the emulation screen to match the true aspect of a real Commodore computer (VIC / 64 / PET) and in full screen mode it just looked perfect. Full screen mode appeared just like a real Commodore machine.

Now with this new version of VICE, the aspect is off. It's as if a 1:1 pixel ratio is being used so that the emulated Commodore screen is slightly wider than it should be. For example, Commodore 64 or VIC-20 text characters are fatter width-wise than on a real machine. This happens in Windowed mode and I cannot stretch the window to change the aspect as I could before the "upgrade". In full screen mode, the emulation screen no longer scales to fill my monitor properly. The ratio is off just as with the windowed mode (1:1 pixel size). Although I can choose several full screen resolutions within VICE's settings, none of these are perfect. Either the emulated screen (VIC screen for instance) is smaller than my full screen (which means a black area around the VIC screen) or when choosing other VICE full screen resolutions, the VIC screen overflows beyond the borders of my monitor.

I've tried using the -KeepAspectRatio and -TrueAspectRation command line options, but they don't work. I also think that VICE is now not using OpenGL modes properly as when I start VICE from the command line there is some complaint about OpenGL not being available.

Furthermore, in the previous version of VICE, when in full screen mode, I was able to right click with the mouse and pull up context menus which allowed me access to the VICE controls (i.e. to change disks, swap joysticks, etc.). With the new version, right clicking does nothing in full screen mode.

Other emulators (i.e. FS-UAE Amiga emulator, MAME and Kega Sega emulator) work just fine in full screen modes, so I'm guessing this is a VICE problem.

Has anyone experienced this?
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: VICE problem in Ubuntu 16.04.1

Post by groepaz »

first you should check in help->about->features for "arbitrary window scaling" support. if that is not enabled then the package has compiled without support for it (and you can not use it). if it exist, launch one of the emulators in a terminal and look at the log... it should tell something about open gl being initialized (or not). if there is an error, perhaps you need to install support for open-gl (mesa, gtkglext)

the popup menu stuff changed a bit - they are gone in windowed mode (because that is very unexpected and prevents the common "click into window to get focus" thing). some intermediate versions had them disabled in fullscreen too, so depending on what version the ubuntu package is based on you'll have to live with them being not there.
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: VICE problem in Ubuntu 16.04.1

Post by ral-clan »

Hi groepaz,

I am running VICE 2.4.25 (GTK+ Pentium Pro Linux glibc 2.23 GCC-5.3.1) and this is what VICE's HELP/ABOUT/FEATURES reveals regarding my setup:

Code: Select all

no  	Enable arbitrary window scaling (HAVE_HWSCALE)
So, what do I do to enable it?

I also get a message about "HW scale not available" when invoking XVIC from a terminal:

Code: Select all

brent@brent-OptiPlex-GX620:~$ xvic
HW scale not available, forcing to disabled
Reading configuration file `/home/brent/.vice/vicerc'.
HW scale not available, forcing to disabled

(xvic:3167): Gtk-CRITICAL **: gtk_widget_get_allocated_height: assertion 'GTK_IS_WIDGET (widget)' failed

(xvic:3167): Gtk-CRITICAL **: gtk_widget_get_allocated_height: assertion 'GTK_IS_WIDGET (widget)' failed
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: VICE problem in Ubuntu 16.04.1

Post by groepaz »

ok, that means that this package was built without open-gl support. the only thing you can do now is build vice yourself from the source - see here for instructions: https://sourceforge.net/p/vice-emu/code ... -Howto.txt

before that, please run x64/xvic in a terminal and look for a line like this:

Code: Select all

X11: GTK version compiled with: 2.24 (xf86 ext:yes cairo:yes pango:yes VTE:yes hwscale:yes fullscreen:yes ui-threads:no)
XRandR: XRandR reports current display: 1280x1024@60
and paste it here... i'm curious what they are using (gtk2 or gtk3)
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: VICE problem in Ubuntu 16.04.1

Post by ral-clan »

Hi groepaz,

Thanks, you've been very helpful. Here's the complete output shown when I start XVIC from terminal (the line you are interested in is visible if you scroll the text up about five or six lines). PS, I should re-interate that my OS is Lubuntu, not Ubuntu (Ubuntu core, LXDE GUI) in case this is relevant.

Code: Select all

brent@brent-OptiPlex-GX620:~$ xvic
HW scale not available, forcing to disabled
Reading configuration file `/home/brent/.vice/vicerc'.
HW scale not available, forcing to disabled

(xvic:3930): Gtk-CRITICAL **: gtk_widget_get_allocated_height: assertion 'GTK_IS_WIDGET (widget)' failed

(xvic:3930): Gtk-CRITICAL **: gtk_widget_get_allocated_height: assertion 'GTK_IS_WIDGET (widget)' failed
 
*** VICE Version 2.4.25 ***
OS compiled for: Linux glibc 2.23
GUI compiled for: GTK+
CPU compiled for: Pentium Pro
Compiler used: GCC-5.3.1
Current OS: Linux 4.4.0-34-generic (glibc 2.23)
Current CPU: Intel(R) Pentium(R) D CPU 2.80GHz
 
Welcome to xvic, the free portable VIC20 Emulator.
 
Current VICE team members:
Andreas Matthies, Martin Pottendorfer, Marco van den Heuvel, Fabrizio Gennari, 
Groepaz, Marcus Sutton, Kajtar Zsolt, Stefan Haubenthal, BSzili.
 
This is free software with ABSOLUTELY NO WARRANTY.
See the "About VICE" command for more info.
 
X11: GTK version compiled with: 3.18 (xf86 ext:yes cairo:yes pango:yes VTE:yes hwscale:no fullscreen:yes ui-threads:no)
XRandR: XRandR reports current display: 1920x1080@60
Loading system file `/usr/lib/vice/VIC20/kernal'.
Loading system file `/usr/lib/vice/VIC20/basic'.
Loading system file `/usr/lib/vice/VIC20/chargen'.
VIC20 kernal patched to 901486-06.
Joystick: Linux joystick interface initialization...
Joystick: Warning - Cannot open joystick device `/dev/input/js0'.
Joystick: Warning - Cannot open joystick device `/dev/input/js1'.
Joystick: Warning - Cannot open joystick device `/dev/input/js2'.
Joystick: Warning - Cannot open joystick device `/dev/input/js3'.
Joystick: Warning - Cannot open joystick device `/dev/input/js4'.
Joystick: Warning - Cannot open joystick device `/dev/input/js5'.
MPS-803: Error - Could not load MPS-803 charset 'mps803'.
Palette: Loading palette `/usr/lib/vice/PRINTER/mps803.vpl'.
NL10: Error - Could not load NL-10 ROM file 'nl10-cbm'.
Palette: Loading palette `/usr/lib/vice/PRINTER/1520.vpl'.
DriveROM: Error - 1540 ROM image not found. Hardware-level 1540 emulation is not available.
Loading system file `/usr/lib/vice/DRIVES/dos1541'.
Loading system file `/usr/lib/vice/DRIVES/d1541II'.
DriveROM: Error - 1570 ROM image not found. Hardware-level 1570 emulation is not available.
Loading system file `/usr/lib/vice/DRIVES/dos1571'.
Loading system file `/usr/lib/vice/DRIVES/dos1581'.
DriveROM: Error - 2000 ROM image not found. Hardware-level 2000 emulation is not available.
DriveROM: Error - 4000 ROM image not found. Hardware-level 4000 emulation is not available.
Loading system file `/usr/lib/vice/DRIVES/dos2031'.
Loading system file `/usr/lib/vice/DRIVES/dos2040'.
Loading system file `/usr/lib/vice/DRIVES/dos3040'.
Loading system file `/usr/lib/vice/DRIVES/dos4040'.
Loading system file `/usr/lib/vice/DRIVES/dos1001'.
Drive: Finished loading ROM images.
Sound: Available sound devices: pulse alsa uss dummy fs dump wav voc iff aiff soundmovie
Keyboard: Loading keymap `/usr/lib/vice/VIC20/x11_pos.vkm'.
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
'!yboard: Error - Could not find key `
Main CPU: starting at ($FFFC).
Main CPU: RESET.
Drive 8: RESET.
Sound: Opened device `pulse', speed 44100Hz, fragment size 1.5ms, buffer size 100ms
Drive 8: RESET.
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: VICE problem in Ubuntu 16.04.1

Post by groepaz »

ok, so they built with GTK3 - that doesnt work at all with open-gl yet (we are working on it) ... so when you build the package yourself, use the regular GTK2 UI
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: VICE problem in Ubuntu 16.04.1

Post by ral-clan »

groepaz wrote:ok, so they built with GTK3 - that doesnt work at all with open-gl yet (we are working on it) ... so when you build the package yourself, use the regular GTK2 UI
So instead of compiling myself, maybe I should just wait for the upgrade/fix you mention above to make its way into the regular Lubuntu updates? Or will this "working on it" be a long time from now? If so I will compile as instructed. Thanks.
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: VICE problem in Ubuntu 16.04.1

Post by groepaz »

it will still take some time - as we dont have a proper replacement for gtkglext yet (which does not exist for GTK3).

besides that, i recommend building it yourself from SVN in any case - once you have done so, its very easy to keep up with latest changes and fixes :)
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: VICE problem in Ubuntu 16.04.1

Post by ral-clan »

I'm trying to compile VICE for my system but it looks like quite a learning curve. I've never compiled anything before so there are a lot of cryptic step, acronyms and terminal commands: GTK? SVN?

I'm reading about these online so hopefully it'll become clearer.

My main fear is that I don't want to install something during the process that will bugger up my system. I run Lubuntu for its light GUI (I have an older computer), and it seems the instructions linked to above are for Ubuntu. I worried I might inadvertently install something for the VICE compile that will burden the light nature of Lubuntu with some sort of UI enhancement intended for Ubuntu.

I'm particularly worried that the install instructions for require one to install so many versions of the "lib" packages (libgtk, libpulse, libav). I've just recently updated to Lubuntu 16.04.01 and I know all these were updated and are critical parts of the software I need (for video editing, audio recording, etc) and don't want to overwrite them with strange older versions or something.

Isn't there just an older VICE version in a DEB package I can download and install? I was totally happy with the last version and it worked better for me. I didn't need this automatic upgrade. I checked my software repository but it only contains the most current version.
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: VICE problem in Ubuntu 16.04.1

Post by groepaz »

installing the dev packages will not "bugger" your system (except taking up a few megabytes disk space of course). i am not familiar with lubuntu, but if thats not using gnome (which GTK is related to), then just dont install the gtk packages and dont use --use-gnomui when configuring - you'll get the (very lightweight) XAW UI then
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: VICE problem in Ubuntu 16.04.1

Post by ral-clan »

I've been reading about how to compile programs in linux, and think I understand it (mosty) now. There are multiple tutorials out there, and every one recommends different steps (even for the same distribution), which is confusing.

But, should I totally remove my current installation of VICE before doing so?
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: VICE problem in Ubuntu 16.04.1

Post by groepaz »

yes, i would recommend doing that - only that way you can make sure the new installation will not accidently use some files from your old installation (which would probably give all sorts of strange problems). also remove your config file (.vicerc) before using the freshly compiled emulators, for the same reason.
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: VICE problem in Ubuntu 16.04.1

Post by ral-clan »

The compile seemed to succeed okay.
...
EDIT: figured out my problem...will try again and report back.
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Re: VICE problem in Ubuntu 16.04.1

Post by ral-clan »

Okay, the compilation seemed to have gone okay. There are a few problems.

I get the following message when starting x64 from terminal:
Sound: initialization failed for device 'uss'.

And also I still cannot dynamically adjust the screen aspect. It's the the same problem as the VICE installation from the official Lubuntu repository (first message above).

I'm guessing this is because I didn't compile it with special attributes for my system....but I don't know how to do this.

Also (big problem) there now appears to be no full-screen option for the emulation.

Code: Select all

brent@brent-OptiPlex-GX620:~/myworkdir/trunk/vice$ ./src/x64sc
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap not found, this should be fixed. Going on anyway...
Detecting ISA HardSID boards.
Could not open '/dev/port'.
Cannot get permission to access $300.
Detecting PCI HardSID boards.
No PCI HardSID boards found.
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap not found, this should be fixed. Going on anyway...
HW scale not available, forcing to disabled
Warning - The VICE-CBM font is not available.
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap not found, this should be fixed. Going on anyway...
Error - Default keymap not found, this should be fixed. Going on anyway...
HW scale not available, forcing to disabled
 
*** VICE Version 2.4.30 ***
OS compiled for: Linux glibc 2.23
GUI compiled for: NATIVE
CPU compiled for: 80386
Compiler used: GCC-5.4.0
Current OS: Linux 4.4.0-38-generic (glibc 2.23)
Current CPU: Intel(R) Pentium(R) D CPU 2.80GHz
 
Welcome to x64sc, the free portable C64 Emulator.
 
Current VICE team members:
Andreas Matthies, Martin Pottendorfer, Marco van den Heuvel, Fabrizio Gennari, 
Groepaz, Marcus Sutton, Kajtar Zsolt, Stefan Haubenthal, BSzili, AreaScout, 
Bas Wassink.
 
This is free software with ABSOLUTELY NO WARRANTY.
See the "About VICE" command for more info.
 
X11: Found 24bit/TrueColor visual.
X11: Using private colormap.
Loading system file `/home/brent/.vice/C64/kernal'.
Warning - ROM not patched: Already revision #3.
Loading system file `/home/brent/.vice/C64/basic'.
Loading system file `/home/brent/.vice/C64/chargen'.
MPS-803: Error - Could not load MPS-803 charset 'mps803'.
Palette: Error - Palette not found: `mps803.vpl'.
MPS-803: Error - Cannot load palette file `mps803.vpl'.
NL10: Error - Could not load NL-10 ROM file 'nl10-cbm'.
Palette: Error - Palette not found: `1520.vpl'.
plot1520: Error - Cannot load palette file `1520.vpl'.
DriveROM: Error - 1540 ROM image not found. Hardware-level 1540 emulation is not available.
Loading system file `/home/brent/.vice/DRIVES/dos1541'.
Loading system file `/home/brent/.vice/DRIVES/d1541II'.
Loading system file `/home/brent/.vice/DRIVES/dos1570'.
Loading system file `/home/brent/.vice/DRIVES/dos1571'.
Loading system file `/home/brent/.vice/DRIVES/dos1581'.
Loading system file `/home/brent/.vice/DRIVES/dos2000'.
Loading system file `/home/brent/.vice/DRIVES/dos4000'.
Loading system file `/home/brent/.vice/DRIVES/dos2031'.
Loading system file `/home/brent/.vice/DRIVES/dos2040'.
Loading system file `/home/brent/.vice/DRIVES/dos3040'.
Loading system file `/home/brent/.vice/DRIVES/dos4040'.
Loading system file `/home/brent/.vice/DRIVES/dos1001'.
Drive: Finished loading ROM images.
VIC-II: Initializing chip model "MOS6569R3" (63 cycles per line, 312 raster lines).
Warning - Trying to assign value to unknown resource `HwScalePossible'.
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-12-*" to type FontStruct
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-12-*" to type FontSet
Warning: Cannot convert string "-*-lucida-bold-r-*-*-12-*" to type FontStruct
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-lucida-bold-r-*-*-12-*-*-*-*-*-iso8859-1,-*-lucida-bold-r-*-*-12-*-*-*-*-*-iso10646-*" to type FontSet
X11Video: Successfully initialized (768x544), using shared memory.
Sound: Available sound devices: uss dummy fs dump wav voc iff aiff soundmovie
Joystick: Linux joystick interface initialization...
Joystick: Warning - Cannot open joystick device `/dev/input/js0'.
Joystick: Warning - Cannot open joystick device `/dev/input/js1'.
Joystick: Warning - Cannot open joystick device `/dev/input/js2'.
Joystick: Warning - Cannot open joystick device `/dev/input/js3'.
Joystick: Warning - Cannot open joystick device `/dev/input/js4'.
Joystick: Warning - Cannot open joystick device `/dev/input/js5'.
Detecting PCI CatWeasel boards.
No PCI CatWeasel found.
Detecting Linux ParSIDs.
Could not open /dev/parport0.
Could not open /dev/parport1.
Could not open /dev/parport2.
No Linux ParSIDs found.
Detecting direct I/O ParSIDs.
Could not open '/dev/port'.
Could not get permission to access 3BC.
Could not open '/dev/port'.
Could not get permission to access 378.
Could not open '/dev/port'.
Could not get permission to access 278.
Detecting direct I/O ISA SSI2001.
Could not open '/dev/port'.
Cannot get permission to access $280.
Keyboard: Error - Default keymap not found, this should be fixed. Going on anyway...
Main CPU: starting at ($FFFC).
Main CPU: RESET.
Did not find any uss device

Exiting...

brent@brent-OptiPlex-GX620:~/myworkdir/trunk/vice$ 
Image Music I've made with 1980s electronics, synths and other retro-instruments: http://theovoids.bandcamp.com
groepaz
Vic 20 Scientist
Posts: 1180
Joined: Wed Aug 25, 2010 5:30 pm

Re: VICE problem in Ubuntu 16.04.1

Post by groepaz »

i'm not very familiar with XAW.... i think you need libxcb (and the related -dev package). probably also something like mesa (-dev) which is what provides opengl

for sound you may need to install alsa-headers (or whatever your distribution uses)

btw, it'd be great if you could keep track of what you did and what you installed... so i can add it to the respective howto later :)
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
Post Reply