How to make WINE read from a USB device?

Issues and / or general discussion relating to Puppy


Moderator: Forum moderators

Post Reply
User avatar
jp734
Posts: 243
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 110 times
Been thanked: 102 times

How to make WINE read from a USB device?

Post by jp734 »

I recently installed Wine and it's not detecting my usb device. I have a usb key that I need to have plugged in in order to activate my license. I wanted to map it out by creating a symlink

Code: Select all

ln -s /dev/ttyusb0 ~/.wine/dosdevices/com1

My problem is /dev folder has 747 files and not one is ttyusb?

What I have are:
ptya0 to ptyaf (ptyb0 to ptybf.....ptyc? all the way to ptyz?)
tty1 to tty63
ttya0 to ttyaf (ttyb0 to ttybf.....ttyc? all the way to ttyz?)

There is a /dev/usb folder and has one file in it which is hiddev0. I tried linking to that and did not work.

Last edited by Flash on Wed Mar 12, 2025 3:23 am, edited 1 time in total.
Reason: Reworded subject line to better reflect subject of post

The Art of Magic and The Magic of Art

User avatar
mikewalsh
Moderator
Posts: 6487
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 980 times
Been thanked: 2151 times

Re: Which ones are the USB?

Post by mikewalsh »

@jp734 :-

Shouldn't be a problem, TBH. I'm able to open images in Puppy's file system from my favourite PhotoScape, or Irfanview, so I see no reason why you shouldn't be able to read a licence key from a USB drive. Remember.....everything in Linux is a file, so if I can read images from Puppy's file-system, you should be able to read a USB drive.

Are you able to specify a location for progeCAD to read the licence key from? When looking to open a Linux file-system location from inside WINE, you need to be looking inside the ":Z" drive. This is WINE's representation of the Linux 'root' ('/') filesystem. Once you get inside the ":Z" drive, just look for the relevant location of your USB under '/mnt'.

Does that help? :?:

Mike. ;)

User avatar
jp734
Posts: 243
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 110 times
Been thanked: 102 times

Re: Which ones are the USB?

Post by jp734 »

Unfortunately I can't specify a location and it always timed out.

The Art of Magic and The Magic of Art

User avatar
bigpup
Moderator
Posts: 7484
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1016 times
Been thanked: 1679 times

Re: How to make WINE read from a USB device?

Post by bigpup »

Have the USB drive plugged in and mounted.

Run the program wine config and in the Drivers tab.

Add this USB drive to the list of drives by using add option.

When selecting add you give it a identifier (say D )

Then you setup what D is by using the path input slot, navigating to /mnt/sdxx for what Puppy uses for the drive partition identifier.

Example:
I added D to the drive list
D is /mnt/sdc7 partition on my sdc drive in Puppy Linux.
.

Screenshot-20250311T235830.jpg
Screenshot-20250311T235830.jpg (70.01 KiB) Viewed 336 times

.
.
Probably will need to have this USB drive mounted when you boot Puppy and have it always in Puppy as what D has it identified as.

To Windows programs or Wine.
D: drive is my sdc7 drive partition.

Here is Wine File Manager and what it now sees for drives.
.

Screenshot-20250312T000855.jpg
Screenshot-20250312T000855.jpg (60.02 KiB) Viewed 335 times

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
jp734
Posts: 243
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 110 times
Been thanked: 102 times

Re: How to make WINE read from a USB device?

Post by jp734 »

Hey @bigpup

I need to mention

  • It shows up on the list if I run lsusb. I can see the vendor and product numbers

  • It is not a storage flash drive. when I plug it in, no icon appears at the bottom of the screen that I can click to mount.

Is there a way to mount a usb device using its vendor and product number?

Thanks
JP

The Art of Magic and The Magic of Art

User avatar
bigpup
Moderator
Posts: 7484
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1016 times
Been thanked: 1679 times

Re: How to make WINE read from a USB device?

Post by bigpup »

I have a usb key that I need to have plugged in in order to activate my license.

Can you give a little more details on how this is used?

A USB key that does what, to let a license for what, activate?

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
jp734
Posts: 243
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 110 times
Been thanked: 102 times

Re: How to make WINE read from a USB device?

Post by jp734 »

@bigpup - You got it.

You see, the first time I run the program, I have a choice to either test it for 30 days or if I have a license, I can click activate, enter a serial number, then it asks me to plug-in the usb to make sure I own that serial number. This allows me to install ProgeCAD to as many PCs as I want and be able to use it. Unlike, say Windows, one license for each pc. Without the usb key, the program will not run.

The Art of Magic and The Magic of Art

User avatar
jp734
Posts: 243
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 110 times
Been thanked: 102 times

Re: How to make WINE read from a USB device?

Post by jp734 »

Okay. Did more testing. With the usb key unplugged, there are 744 items under /dev folder. Everytime I plug it in, two files are added to it: hidraw0 and a folder /usb with hiddev0 in it. I tried creating symlinks to these two but it still will not detect the usb key. I think as far as linking wine com ports to the correct usb port, I'm all good. Maybe I'll play with wine libraries this time or registry. More research and this is kind of fun. Love troubleshooting. :thumbup:

#NeverGivingUp! :lol:

The Art of Magic and The Magic of Art

User avatar
mikeslr
Posts: 3066
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 988 times

Re: How to make WINE read from a USB device?

Post by mikeslr »

The problem with applications and programs located on a USB-Key is that the path to that key is not created until it is plugged in and mounted.
Maybe attack this problem from a different direction. Right-Click the programs executable and make sure that Select 'set run action' uses the command wine "$@". File-browsing to, then clicking the execuable should start the program.

Edit: Just to be clear, included among executables are those used to install a program.

Last edited by mikeslr on Tue Mar 18, 2025 2:37 pm, edited 1 time in total.
User avatar
bigpup
Moderator
Posts: 7484
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1016 times
Been thanked: 1679 times

Re: How to make WINE read from a USB device?

Post by bigpup »

jp734 wrote: Wed Mar 12, 2025 11:22 am

Hey @bigpup

I need to mention

  • It shows up on the list if I run lsusb. I can see the vendor and product numbers

  • It is not a storage flash drive. when I plug it in, no icon appears at the bottom of the screen that I can click to mount.

What kind of device is it?

Give all information about it provided in lsusb.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
mikeslr
Posts: 3066
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 988 times

Re: How to make WINE read from a USB device?

Post by mikeslr »

Ditto bigpup's question: What kind of device is it?

However, as far as I know, the path to all USB-devices are only dynamically established on boot-up. So the information I posted here, viewtopic.php?p=144958#p144958 is applicable to all USB-devices.

I'd add, that if the USB-Device is connected via a 'caddy' --such as a hard-drive housed in an independently powered caddy which connects to the computer via a USB-port, for example those shown here, https://duckduckgo.com/?t=ffab&q=usb%20 ... &ia=images-- matters become even more complicated. However, once such external hard-drive has been recognized by Puppy and manually mounted, applications and programs located on it can be run as previously noted: file-browse and click the executable.

User avatar
jp734
Posts: 243
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 110 times
Been thanked: 102 times

Re: How to make WINE read from a USB device?

Post by jp734 »

it is a dongle. And I'll add, if I plug in a storage usb flash drive, I can map it on config "drives" tab and can read what's in it.

lsusb command:

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 0529:0003 Aladdin Knowledge Systems
Bus 001 Device 004: ID 10c4:8108 Cygnal Integrated Products, Inc.
Bus 001 Device 006: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 001 Device 005: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 054c:0246 Sony Corp.
Bus 003 Device 002: ID 046d:08d7 Logitech, Inc. QuickCam Communicate STX
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb-t command:

/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 3: Dev 2, If 0, Class=Vendor Specific Class, Driver=gspca_zc3xx, 12M
|__ Port 3: Dev 2, If 1, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 2, If 2, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 4: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 1: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 6, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 12M

[EDIT] I created a script to execute wine pcad.exe and got these errors:

0026:err:hid:PNP_AddDevice Cannot parse Report Descriptor
0026:err:plugplay:handle_bus_relations_AddDevice failed for driver L"WineHID"
0026:err:ntoskrnl:IoCreateDriver failed to insert driver L"\\Driver\\WineHID"

The Art of Magic and The Magic of Art

User avatar
Jasper
Posts: 1781
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 882 times
Been thanked: 374 times

Re: How to make WINE read from a USB device?

Post by Jasper »

@jp734

Why not post your question on WineHQ in their Linux forum?

https://forum.winehq.org/viewforum.php?f=8

User avatar
jp734
Posts: 243
Joined: Fri Jul 17, 2020 10:23 pm
Has thanked: 110 times
Been thanked: 102 times

Re: How to make WINE read from a USB device?

Post by jp734 »

Thanks @Jasper

I searched their forum and the first thing that came up is this :thumbdown: :lol: :

If the software needs to install a windows hardware driver, it won't work at all under wine. Wine doesn't support Windows hardware drivers, apart from HID devices (mainly gamepads).

So, I contacted ProgeSoft this time and asked if they have Linux driver for the dongle. Waiting for my last hope but my bet though is they don't have. Searched their site and couldn't find one.

I think I'm gonna have to say it. I'm giving up on this one...for now. Not losing hope they'll make one though. :thumbup: Thanks everyone

The Art of Magic and The Magic of Art

Post Reply

Return to “Users Help”