moonlight-embedded icon indicating copy to clipboard operation
moonlight-embedded copied to clipboard

Client mouse cursor appears over stream but does not interact with it

Open bdcarr opened this issue 3 years ago • 1 comments

I'm using a Dualshock 4 as my only input device for the Pi, with the touchpad acting as a mouse trackpad.

NVidia Geforce Experience version: 3.20.5.70 Moonlight Embedded version: 2.4.11-1buster1 Moonlight Embedded source: Repository: sudo apt-get install moonlight-embedded Moonlight Embedded running on: Raspberry Pi 4b Moonlight Embedded running on distribution: Raspbian Buster

Verbose output -verbose of Moonlight Embedded:

❯ moonlight stream -1080 -fps 60 -bitrate 50000 -app Steam -input /dev/input/event2 -verbose
Moonlight Embedded 2.4.10 (PI;ALSA;EMBEDDED)
Searching for server...
Connect to 192.168.0.116...
NVIDIA GeForce RTX 2080 Ti, GFE 3.20.5.70 (gs_04_24_28968357, 7.1.424.0)
Platform Raspberry Pi (Broadcom)
Loading mappingfile /usr/share/moonlight/gamecontrollerdb.txt
Add input /dev/input/event2...
Detected Wireless Controller (050000004c050000c405000000810000) on /dev/input/event2 as PS4 Controller
Stream 1920 x 1080, 60 fps, 50000 kbps
Initializing platform...done
Resolving host name...done
Starting RTSP handshake...done
Initializing control stream...done
Initializing video stream...done
Initializing audio stream...done
Initializing input stream...done
Starting control stream...done
Starting video stream...done
Starting audio stream...done
Starting input stream...done
Error: cannot keep up
Server notified termination reason: 0x0100
Control stream received disconnect event
Stopping input stream...done
Stopping audio stream...Failed to send ENet control packet
Loss Stats: Transaction failed: 0
done
Stopping video stream...done
Stopping control stream...done
Cleaning up input stream...done
Cleaning up audio stream...done
Cleaning up video stream...done
Cleaning up control stream...done
Cleaning up platform...done

What is the expected result? Stream starts, client mouse cursor disappears.

What happens instead of that? Stream starts, client mouse cursor is displayed over the stream. Moving and clicking the mouse does not interact with the host.

The issue doesn't happen with moonlight-qt, but stream quality & performance is bad in qt (for me at least), so I'd rather use embedded even this issue can't be resolved.

Oh, I've tried passing extra -input params in too. Here's my device info:

❯ cat /proc/bus/input/devices
I: Bus=0005 Vendor=054c Product=05c4 Version=8100
N: Name="Wireless Controller Touchpad"
P: Phys=dc:a6:32:1c:e0:5b
S: Sysfs=/devices/platform/soc/fe201000.serial/tty/ttyAMA0/hci0/hci0:11/0005:054C:05C4.0002/input/input4
U: Uniq=1c:96:5a:46:57:13
H: Handlers=mouse0 event0 
B: PROP=5
B: EV=b
B: KEY=2420 0 10000 0 0 0 0 0 0 0 0
B: ABS=2608000 3

I: Bus=0005 Vendor=054c Product=05c4 Version=8100
N: Name="Wireless Controller Motion Sensors"
P: Phys=dc:a6:32:1c:e0:5b
S: Sysfs=/devices/platform/soc/fe201000.serial/tty/ttyAMA0/hci0/hci0:11/0005:054C:05C4.0002/input/input5
U: Uniq=1c:96:5a:46:57:13
H: Handlers=event1 
B: PROP=40
B: EV=19
B: ABS=3f
B: MSC=20

I: Bus=0005 Vendor=054c Product=05c4 Version=8100
N: Name="Wireless Controller"
P: Phys=dc:a6:32:1c:e0:5b
S: Sysfs=/devices/platform/soc/fe201000.serial/tty/ttyAMA0/hci0/hci0:11/0005:054C:05C4.0002/input/input3
U: Uniq=1c:96:5a:46:57:13
H: Handlers=event2 js0 
B: PROP=0
B: EV=20001b
B: KEY=7fdb0000 0 0 0 0 0 0 0 0 0
B: ABS=3003f
B: MSC=10
B: FF=1 7030000 0 0

Running it with moonlight stream -1080 -fps 60 -bitrate 50000 -app Steam -input /dev/input/event2 -input /dev/input/event1 -input /dev/input/event0 results in no input being sent to the host - except if I press the touchpad, it seems to register a mouse click because I see the Big Picture cursor appear briefly.

Running it with no -input params seems to treat the touchpad like a joystick - if I tap on the right side of the pad, the menu scrolls right until I re-center the touchpad etc. The cursor remains over the stream except I'm unable to move it away in this case.

bdcarr avatar Oct 31 '20 02:10 bdcarr

Still getting this issue on 2.5.1-1

bdcarr avatar Sep 07 '21 11:09 bdcarr