Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Wim Brul

Pages: [1] 2 3 ... 19
1
Hardware / Re: Touch Screen and Pen support on ArcaOS 5.1.0
« on: September 14, 2023, 03:13:51 pm »
Hallo Martin,

Alas, in ..generic.log the touch screen device does not show up as a USB device nor as a COM device. In Linux Debian it shows up as an SMBus attached I2C device from Synopsys Designware. That system knows how to deal with that and represents it as USB device 056A:508C:0001 (which we tried and failed on our system). As far as I know there is no software to deal with I2CBus/SMBus devices from an application in our operating system. Therefore pen and touch cannot be supported on this laptop.

Regards, Wim.     

2
Hardware / Re: Touch Screen and Pen support on ArcaOS 5.1.0
« on: September 12, 2023, 05:27:04 pm »
While searching the internet I found "GNU Linux Debian 11 hardware review - Lenovo Ideapad MIIX 510 12ISK_dmesg.txt" which I attached here.

It appears there as a USB device and its device driver statement would be:

Code: [Select]
DEVICE=C:\OS2\BOOT\USBECD.SYS /D:056A:508C:0001 /N:$LENOVO$ /S /V

To be on the save side use the wildcard character # for the device release number:

Code: [Select]
DEVICE=C:\OS2\BOOT\USBECD.SYS /D:056A:508C:#### /N:$LENOVO$ /S /V

After reboot you may run the USBWRITE.CMD script to obtain and display the device descriptor, configuration descriptors and associated interface and endpoint descriptors. Use  USBWRITE $LENOVO$ for this particular USB device.

3
Programming / Re: Strange behaviour in SDL2
« on: June 27, 2023, 06:12:42 pm »
I did some tests on my Dell Latitude e6500 laptop with ArcaOS 5.0 and Lars' USB 10.249 drivers installed.

1) USBAUDIO.SYS selected as default audio device. Every time I start PrBoom I get sound and PrBoom keeps running with sound. Its SfxVolume control works. Its Music Volume has no effect. Perhaps because I have no MIDI support installed. With rocksndiamonds there is always sound.

2) USBAUD2.SYS selected as default audio device. Every time I start PrBoom I rarely get sound and PrBoom keeps running that way. Once I use its SfxVolume control then most of the time only the next invokation of PrBoom produces sound. With rocksndiamonds there is never sound.

Once USBAUD2.SYS does not get an audio buffer in time it stops sending audio to the device.
This is a flaw in USBAUD2.SYS. I have prepared a fix for that.

4
Hardware / Re: PSCOM.SYS problem
« on: December 21, 2022, 10:04:04 am »
Blonde Guy has some notes on Serial Cards on eComstation.

It say a.o. and I quote "The PSCOM.SYS driver supports the /F option, and along with specifying the built-in motherboard ports makes this and a lot of other serial cards work."

Reading the notes I think you will have just to specify:

DEVICE=C:\OS2\BOOT\PSCOM.SYS /F /V (1,3F8,4) (2,2F8,3)

even when there are no built-in motherboard ports.

5
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: November 09, 2022, 05:18:45 pm »
Hi David,

..
  Here is the line I use in CONFIG.SYS:

DEVICE=C:\OS2\BOOT\USBECD.SYS /D:046D:C21#:4014 /N:$GAMEPD$ /S

 seems to work fine in XInput mode, not so in DirectInput mode.
..

I think that is because bcdDevice 4014 applies to XInput mode whereas bcdDevice 0414 applies to DirectInput mode.

Regards,
Wim

P.S. I am already lurking for quite a while now and gradually beginning to like to react again.

6
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: June 16, 2022, 05:26:06 pm »
Hi Mark,

Quote
The only problem I foresee with that, Wim, is that you may be literally inundated with data from all sides, and it may overwhelm in that sense. You have already done a lot for this project, and being overwhelmed is the last thing we want, because, strangely you also have a life.

Thank you Mark, for your compassion. Right now I am already grinding to a standstill. This is all too much for me to handle. In light of my health I have to let go.

Will send you an email soon.

Best regards, Wim.

7
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: June 15, 2022, 10:11:37 am »
Hi Martin and Mark,

I am a little bit disappointed. What you are doing is not the way to go. The "PlayStation 3 controller (USB Connected)" and the "Genius MaxFighter F-31U Vibration" are controllers not yet tested at all. Remember the method we used in the past. You need to follow the step by step approach as outlined in the "testing.txt" files that are part of the package. For the huskee device that procedure starts as follows:

Code: [Select]
Installation Instructions - Part A
==================================

A1. Ensure that USBECD.SYS has been installed.

A2. Put the following line in your CONFIG.SYS file:
(Use the proper drive and directory for your system).

DEVICE=H:\OS2\BOOT\USBECD.SYS /D:0C12:0005:0001 /N:$HUSKEE$ /V

A3. Reboot your system.

A4. Run OINPUT.CMD and watch gamepad events in hexadecimal format.
Use Ctrl+C to end this procedure.

Once this is working I would like you to do the following:
---------------------------------------------------------

A5. Run OINPUT.CMD > BUTTON.LOG and press available buttons
(one at a time, after each other, and tell me which ones)
Use Ctrl+C to end this procedure.

A6. Run OINPUT>CMD > STICK.LOG and press stick to different positions
(one at a time, after each other, and tell me what positions)
Use Ctrl+C to end this procedure.

Send me files BUTTON.LOG and STICK.LOG for me to inspect.
--------------------------------------------------------

Since you are preparing oinput.cmd yourself for these new devices, you have to prepare the corresponding testing.text accordingly. It is waste of time and effort to skip these steps.

I am currently investigating what needs to be done to provoke the "PlayStation 3 controller (USB Connected)" to send event records so step A4. can be completed succesfully.

I understand that for the "Genius MaxFighter F-31U Vibration" step A4. has been completed successfully. Why not append some of that output for me to inspect?

Best regards, Wim.

8
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: June 12, 2022, 09:26:08 pm »
Hi Martin,
Hi

I want to try the PlayStation 3 controller (USB Connected).

I had added this on the config.sys:
Code: [Select]
DEVICE=X:\OS2\BOOT\USBECD.SYS /D:054C:0268:0100 /N:$PSX3$ /V
I had changed the "HUSKEE" oiput and xevents scripts to point to "$PSX3$". In xevents I had updated "Line 13" (or 14?) to point to "054C:0268:0100", but I get no output from the scripts. I guess it is not as simple as that.

Any tips?

Regards
Since this controller has not been tried and tested before, it is best to prepare a new oinput.cmd first.
From the attached lsusb -v report (PSX3controller.txt) I learned that it uses 64 byte input records.
I have prepared oinput64.cmd that I attach here for you to tryout first.

Best regards,
Wim.

9
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: June 11, 2022, 06:21:18 pm »
Hi Mark and Martin,

Right now I am reviewing the Testing Guide for Game Controllers - v1.2, in PDF, as attached earlier by Mark Szkolnicki.

Mark, I will send you an email with my comments as soon as possible. Will take some time though.

Martin, I think it is best to wait for Mark to have digested and incorporated my comments.

Best regards, Wim .

10
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: May 23, 2022, 09:17:42 am »
Hi Jochen,
Thanks Wim.

I will try that code snippets and build a test version.


Bye Jochen
Thank you. NOTE1: I have updated lines 440 thru 442 with the new code rather than the old code. NOTE2: Modified line 551 later on too (with proper code I hope)!

Sorry, but this is nowadays really difficult for me to do.

Regards, Wim.

11
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: May 22, 2022, 01:14:30 pm »
Hi Jochen,

I don't know when I can get to it, but I will look into it.
Thank you. For starters I tried and modified SDL_os2joystick.c myself. I could send the modified source code to you or append it here. Please advice.

I replaced lines 440 thru 442 with the following:
Code: [Select]
                        joystick->hwdata->transaxes[i].offset = SYS_JoyData[index].axes_med[i];
                        joystick->hwdata->transaxes[i].scale1 = (float)(SDL_JOYSTICK_AXIS_MIN/(SYS_JoyData[index].axes_med[i]-SYS_JoyData[index].axes_min[i]));
                        joystick->hwdata->transaxes[i].scale2 = (float)(SDL_JOYSTICK_AXIS_MAX/(SYS_JoyData[index].axes_max[i]-SYS_JoyData[index].axes_med[i]));

I replaced lines 550 thru 560 with the following:
Code: [Select]
                value = pos[i];
                if (value < transaxes[i].offset)
                {
                        value = (transaxes[i].offset - value) * transaxes[i].scale1;
                        if (value < SDL_JOYSTICK_AXIS_MIN) value = SDL_JOYSTICK_AXIS_MIN;
                }
                else
                {
                        value = (value - transaxes[i].offset) * transaxes[i].scale2;
                        if (value > SDL_JOYSTICK_AXIS_MAX) value = SDL_JOYSTICK_AXIS_MAX;
                }
 
What I am after is that you build an SDL1 test version of DOSBox for us to try out.
I regard this still very experimental, so not yet suitable for an official release.

EDIT1: 20220523 - Updated lines 440 thru 442 with the new code!
EDIT2: 20220523 - Updated line 551 too (with proper code I hope!

12
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: May 20, 2022, 09:47:19 pm »
Hallo Jochen,
What would be the correct algorithm? Since we have the code, we could fix that. Most likely the code in SDL2 is also wrong, because it is a straight port of the SDL1 code.
I think that my proposed algorithm is the correct algorithm. See my original post.

First the calculation of the offset, scale1 and scale2:
Code: [Select]
offset = axis_center
scale1 = SDL_JOYSTICK_AXIS_MIN / (axis_lower - axis_center)
scale2 = SDL_JOYSTICK_AXIS_MAX / (axis_upper - axis_center)

Followed by the recalculation for all axes:
Code: [Select]
if (axis < axis_center)
then axis = (axis - offset) * scale1
else axis = (axis - offset) * scale2

This has of course to be substituted in SDL_os2joystick.c at the right places. Too difficult for me to do.

Cheers,
Wim.

13
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: May 20, 2022, 02:55:43 pm »
Hi Mark and Jochen,

Running TMScope in DOSBox and VDM gives different results. This occurs because DOSBox obtains calibration values from gamedd.sys and recalculates axes values whereas with VDM no such calculations occur. Unfortunately the recalculation algorithm in SDL_os2joystick is horribly wrong. It is so wrong that it even hangs my laptop when proper calibration values (lower=0, center=128. upper=255 for axes ranging from 0 to 255) are being used. And that is eactly the range of axes values that are currently used. The reason it still works, sort of, is that in gamepad-20220517 calibration values lower=(7*128)/10, center=128+25, upper=(13*128)/10 are being used. That is after my tweaking. Before that center=128 was used which gave even worse readings in TMScope in DOSBox.

My proposed algorithm in rexx code form is as follows:

Code: [Select]
/* proposed algorithm SDL-DOSBox */
SDL_JOYSTICK_AXIS_MAX = +32767
SDL_JOYSTICK_AXIS_MIN = -32768

/* calibration values */
axis_lower = 0
axis_center = 128
axis_upper = 255

/* preparation */
offset = axis_center
scale1 = SDL_JOYSTICK_AXIS_MIN / (axis_lower - axis_center)
scale2 = SDL_JOYSTICK_AXIS_MAX / (axis_upper - axis_center)

/* apply input values and show output values */
do axis = axis_lower to axis_upper
  /* recalculate axis value */
  if (axis < axis_center)
  then value = (axis - offset) * scale1
  else value = (axis - offset) * scale2
  /* show axis input and output values */
  say axis value
end

Best regards,
Wim.

14
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: May 17, 2022, 04:02:40 pm »
Hi Mark,

Congratulations with your upcoming birthday. I celebrated mine last Saturday with my family. Clicking my picture reveals my new age.

Quote
Just installed your new gamepad driver set (gamepad-20220511) and have ran into a problem in DOSBOX in Wolfenstein.

Start-up is fine and runs through the start-up screens (3) as per normal, but then the game immediately shows the messages for ending or continuing the program, where the response Y or N is required. Typing N simply goes to an alternate version of the same shutdown challenge. Typing Y ends the program.
When I implemented the missing functions I made a mistake. This resulted into all 4 buttons being signalled as being pressed on startup. Fixed now.

Quote
Hat functions on the Thrustmaster joysticks still not being recognized under DOSBOX
Perhaps I made another mistake. I did some experimenting and failed to change some values back the way these were before. Try the attached version.

Like before you need to copy *.sym and *.sys files to \OS2\MDOS and copy TRC00E8.TFF to \OS2\SYSTEM\TRACE and then reboot your system.

Happy birthday,

Wim.

15
Games / Re: DOS VDM - USB and Game port Gamepad support
« on: May 11, 2022, 11:51:47 pm »
Hi Mark,

Quote
I was able to move both east and south under Dark Forces, after calibration there, so I went back to Wolfenstein and recalibrated, and both east and south movement is now possible with both joysticks, in both Wolfenstein and Dark Forces, so what I said previously may be a moot point.
Probably not. My experience was that, although Wolfenstein 3D worked after calibration, I still had to recalibrate always first. That was not necessary when running outside DOSBox. So I tweaked gamedd.sys a little bit to remedy that. See attached. Now I don't need to recalibrate anymore and joycheck.exe and TMScope are working satisfactorily too. In dosbox.conf I need to have joysticktype=auto, timed=true and deadzone=0 for that.

Quote
I also played Dark Forces for over 45 minutes without any indication of Loss of Focus and played around with TMScope for over 30 minutes with no freezing requiring input from the keyboard to unlock the joystick, so indeed it might be different between environments. The joystick(s) are both playing nicely with both the keyboard and mouse under DOSBOX.
Makes sense. I have to use Martin Kiewitz's vCOMPAT.SYS with COMPATIBILITY_DPMI_CLI set ON in order to get several games to run.

Quote
This has been a very interesting experience, Wim, in beta testing, and you make an excellent teammate in same. I think we're making great progress in this and Best!
Yes we do. Thank you for that. It is a pleasure working with you.

Regards, Wim.

Pages: [1] 2 3 ... 19