androidvirtualpen / virtualpen

34 stars 2 forks source link

mouse won't move, permission issue even if udev is setup #4

Open ikke-t opened 4 months ago

ikke-t commented 4 months ago

Hi,

I tried the software with Fedora SilverBlue 40 and Samsung S6 Lite. I setup the udev rules, and my user is in the virtualpen group. I have rebooted since.

So permissions should be fine.

However when I start the android app, set the screen resolution in linux app, and press connect, I get the same permission nag and guidance to run setup.sh. After getting rid of that dialog the linux app shows "connected", but the mouse cursor won't react to any pen events on tablet.

So something still missing from permissions?

Some logs

USB attach from journald:

kesä 27 12:26:58 iklap audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
kesä 27 12:26:59 iklap kernel: usb 3-7: new high-speed USB device number 12 using xhci_hcd
kesä 27 12:26:59 iklap kernel: usb 3-7: New USB device found, idVendor=04e8, idProduct=6860, bcdDevice= 4.00
kesä 27 12:26:59 iklap kernel: usb 3-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kesä 27 12:26:59 iklap kernel: usb 3-7: Product: SAMSUNG_Android
kesä 27 12:26:59 iklap kernel: usb 3-7: Manufacturer: SAMSUNG
kesä 27 12:26:59 iklap kernel: usb 3-7: SerialNumber: R52R207Q7MT
kesä 27 12:26:59 iklap gvfsd[4354]: Device 0 (VID=04e8 and PID=6860) is a Samsung Galaxy models (MTP).
kesä 27 12:26:59 iklap gvfsd[4354]: Received event PTP_EC_DevicePropChanged in session 1

Trying to connect, fails at accessory mode:

kesä 27 12:27:29 iklap audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
kesä 27 12:27:29 iklap audit: BPF prog-id=92 op=UNLOAD
kesä 27 12:27:29 iklap audit: BPF prog-id=91 op=UNLOAD
kesä 27 12:27:29 iklap audit: BPF prog-id=90 op=UNLOAD
kesä 27 12:27:34 iklap io.github.androidvirtualpen.virtualpen.desktop[10062]: Looking for device 04e8:6860
kesä 27 12:27:34 iklap io.github.androidvirtualpen.virtualpen.desktop[10062]: Device supports AOA 2.0!
kesä 27 12:27:34 iklap io.github.androidvirtualpen.virtualpen.desktop[10062]: Sending identification to the device
kesä 27 12:27:34 iklap io.github.androidvirtualpen.virtualpen.desktop[10062]:  sending manufacturer: mbeliveau
kesä 27 12:27:34 iklap io.github.androidvirtualpen.virtualpen.desktop[10062]:  sending model: VirtualStylusHost
kesä 27 12:27:34 iklap io.github.androidvirtualpen.virtualpen.desktop[10062]:  sending version: 1.0
kesä 27 12:27:34 iklap io.github.androidvirtualpen.virtualpen.desktop[10062]: Turning the device in Accessory mode
kesä 27 12:27:34 iklap kernel: usb 3-7: USB disconnect, device number 12
kesä 27 12:27:34 iklap gvfsd[9947]: PTP: reading event an error 0x05 occurred
kesä 27 12:27:34 iklap tracker-miner-f[3361]: g_str_has_suffix: assertion 'str != NULL' failed
kesä 27 12:27:34 iklap tracker-miner-f[3361]: g_str_has_suffix: assertion 'str != NULL' failed
kesä 27 12:27:34 iklap audit: BPF prog-id=93 op=LOAD
kesä 27 12:27:34 iklap audit: BPF prog-id=94 op=LOAD
kesä 27 12:27:34 iklap audit: BPF prog-id=95 op=LOAD