USB HID (USB Mouse software not detecting device)

Questions about Wine on Linux
Locked
woobilicious
Newbie
Newbie
Posts: 2
Joined: Wed May 19, 2021 1:23 am

USB HID (USB Mouse software not detecting device)

Post by woobilicious »

So I'm trying to get the software for my mouse working, I have a Glorious Model O.

It does not seem to install any driver /sys files.

I can get the software installed, using wine 6.7 as root:

Code: Select all

WINEDEBUG=+hid wine cmd
net start winebus
OemDrv.exe
I get this message:

Code: Select all

0118:trace:hid:HidD_GetHidGuid (0031B420)
0118:trace:hid:HidD_GetHidGuid (0031B440)
0118:trace:hid:HidD_GetHidGuid (0031B418)
0118:trace:hid:HidD_GetHidGuid (0031B420)
0118:trace:hid:HidD_GetHidGuid (0031B440)
0118:trace:hid:HidD_GetHidGuid (0031B418)
0118:trace:hid:HidD_GetHidGuid (0031B420)
0118:trace:hid:HidD_GetHidGuid (0031B440)
0118:trace:hid:HidD_GetHidGuid (0031B418)
And then the software says It can't find the device.

Code: Select all

$ lsusb
Bus 001 Device 006: ID 258a:0036 SINOWEALTH Wired Gaming Mouse
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: USB HID (USB Mouse software not detecting device)

Post by jkfloris »

The program is probably looking for a Windows driver.
Unfortunately, Windows drivers cannot be used in Wine.
Fortunately, there is a Linux option (if you have the non-wireless mouse): https://github.com/libratbag/piper

On Debian/Ubuntu/etc. you could install this program with:

Code: Select all

sudo apt install piper
woobilicious
Newbie
Newbie
Posts: 2
Joined: Wed May 19, 2021 1:23 am

Re: USB HID (USB Mouse software not detecting device)

Post by woobilicious »

I don't think my mouse includes a custom driver, all features are handled in software on the OS, and firmware on the device.

Looks like piper/libratbag seems like a better option though.
simorgh
Newbie
Newbie
Posts: 1
Joined: Tue Mar 29, 2022 10:14 am

Re: USB HID (USB Mouse software not detecting device)

Post by simorgh »

woobilicious wrote: Wed May 19, 2021 10:52 am I don't think my mouse includes a custom driver, all features are handled in software on the OS, and firmware on the device.

Looks like piper/libratbag seems like a better option though.
Did you manage to install the Model O software with wine?

I tried with the application called Bottles, and get the same results. "Device not connected"
I am on openSUSE 15.3

Code: Select all

Unhandled exception: page fault on write access to 0x00000004 in 32-bit code (0x6bc0bd18).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:6bc0bd18 ESP:0088c770 EBP:0088c798 EFLAGS:00010202(  R- --  I   - - - )
 EAX:00000000 EBX:00750067 ECX:0088c770 EDX:00000000
 ESI:0088c888 EDI:0061289c
Stack dump:
0x0088c770:  6bc19080 6bc190a0 6bc1ce00 6bc1c78f
0x0088c780:  00750067 014bfa58 0088c7d8 00580573
0x0088c790:  0088c7b0 00750067 0088c7d8 6ed43805
0x0088c7a0:  014b0000 00000000 00580592 6ed43805
0x0088c7b0:  00750067 014bfa58 00000000 0048b468
0x0088c7c0:  0088c7ac 0048b468 0088c838 00581ce0
Backtrace:
=>0 0x6bc0bd18 AuditComputeEffectivePolicyBySid+0xacd8() in sechost (0x0088c798)
  1 0x6ed43805 BlockInput+0xbe5() in user32 (0x0088c7d8)
  2 0x0045ade7 in oemdrv (+0x5ade7) (0x0088c844)
  3 0x00459f2d in oemdrv (+0x59f2d) (0x0088fe8c)
  4 0x0059a2e7 in oemdrv (+0x19a2e7) (0x0088fea0)
  5 0x0057ec60 in oemdrv (+0x17ec60) (0x0088ff30)
  6 0x7b62e140 ActivateActCtx+0x23830() in kernel32 (0x0088ff48)
  7 0x7bc58fa7 A_SHAFinal+0x395a7() in ntdll (0x0088ff5c)
  8 0x7bc59660 A_SHAFinal+0x39c60() in ntdll (0x0088ffec)
0x6bc0bd18 sechost+0xbd18: movl	%eax,0x4(%edx)
Modules:
Module	Address			Debug info	Name (38 modules)
PE	00130000-0018a000	Deferred        combase
PE	00400000-0068c000	Export          oemdrv
PE	009c0000-00a4e000	Deferred        gdiplus
PE	00a50000-00b1f000	Deferred        winmm
PE	015d0000-01606000	Deferred        uxtheme
PE	01720000-01733000	Deferred        lowerdev
PE	10000000-10041000	Deferred        menuex
PE	61740000-61783000	Deferred        advapi32
PE	62d40000-62eef000	Deferred        windowscodecs
PE	62fc0000-63054000	Deferred        rpcrt4
PE	63480000-6348d000	Deferred        version
PE	63bc0000-63bda000	Deferred        shcore
PE	64a40000-64a9c000	Deferred        shlwapi
PE	64ec0000-64ff5000	Deferred        oleaut32
PE	663c0000-663f4000	Deferred        winspool
PE	664c0000-664f2000	Deferred        oledlg
PE	666c0000-666cf000	Deferred        hid
PE	66b00000-66b3e000	Deferred        win32u
PE	67ec0000-68825000	Deferred        shell32
PE	68e00000-68e11000	Deferred        aclui
PE	69940000-6996b000	Deferred        propsys
PE	6a040000-6a068000	Deferred        msacm32
PE	6a280000-6a334000	Deferred        msvcrt
PE	6a400000-6a53c000	Deferred        ole32
PE	6bc00000-6bc2c000	Dwarf           sechost
PE	6bcc0000-6bd47000	Deferred        setupapi
PE	6c9c0000-6ca4e000	Deferred        gdi32
PE	6cc40000-6cda1000	Deferred        comctl32
PE	6ec40000-6ec4d000	Deferred        dwmapi
PE	6ed00000-6ef46000	Dwarf-4         user32
PE	70b40000-70c22000	Deferred        ucrtbase
PE	70d00000-70e08000	Deferred        comdlg32
PE	70e80000-70e8a000	Deferred        msimg32
PE	71200000-7121c000	Deferred        imm32
PE	7b000000-7b0f2000	Deferred        kernelbase
PE	7b600000-7b826000	Dwarf-2-4       kernel32
PE	7bc00000-7bcaf000	Dwarf-2-4       ntdll
PE	7e190000-7e194000	Deferred        winex11
Threads:
process  tid      prio (all id:s are in hex)
00000020 start.exe
	00000024    0
00000030 services.exe
	00000034    0
	00000038    0
	00000044    0
	00000064    0
	00000088    0
	000000a0    0
	000000cc    0
0000003c winedevice.exe
	00000040    0
	0000004c    0
	00000050    0
	00000054    0
	00000058    0
	000000ac    0
0000005c winedevice.exe
	00000060    0
	00000068    0
	0000006c    0
	00000070    0
	00000074    0
	00000078    0
	0000007c    0
00000080 plugplay.exe
	00000084    0
	0000008c    0
	00000090    0
	00000094    0
00000098 svchost.exe
	0000009c    0
	000000a4    0
	000000a8    0
000000b0 explorer.exe
	000000b4    0
	000000b8    0
	000000bc    0
000000c4 rpcss.exe
	000000c8    0
	000000d4    0
	000000d8    0
	000000dc    0
	000000e0    0
	000000e4    0
	00000114    0
	00000118    0
000000ec (D) C:\Program Files (x86)\Glorious Model O Software\OemDrv.exe
	["C:\Program Files (x86)\Glorious Model O Software\OemDrv.exe" ]
	000000f0    0 <==
	000000f4    0
	00000100    0
00000104 explorer.exe
	00000108    0
	0000010c    0
	00000110    0
System information:
    Wine build: wine-7.2 ( TkG Staging Esync Fsync )
    Platform: i386 (WOW64)
    Version: Windows 10
    Host system: Linux
    Host version: 5.3.18-150300.59.54-default
Locked