Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wired DualShock4 controller no longer being recognized after upgrade to retroarch 1.10 on Ubuntu 20.04 #52

Open
exerf opened this issue Jan 22, 2022 · 41 comments

Comments

@exerf
Copy link

exerf commented Jan 22, 2022

After snapd automatically updated my version of retroarch to 1.10.0, my gamepad stopped working. I use a DualShock4 controller wired into USB. Historically, I have always used the "x" input driver and "udev" controller driver.

Here is how the problem manifests:

  • In previous versions of retroarch (1.9.x), upon launching retroarch I would get a notification at the bottom of the screen stating that my DualShock4 controller had been detected. That notification no longer appears.

  • Previously, I could use my controller to navigate the retroarch GUI, but now I can't.

  • In Settings -> Input -> Port 1 Controls, the Device Index is "Disabled" with no other available options.

  • When I try to re-map the buttons on the controller, the dialog box times out.

More observations:

  • I know that Ubuntu still recognizes my DS4 because I can use it outside of retroarch, which rules out something like a problem with my USB cable.

  • I did a diff of the current active retroarch.cfg file against a recent backup copy, and the only changes appear to be new lines corresponding to new settings introduced by 1.10.0.

  • I tried using other controller drivers. The only one I could get to work -- that is, the only one that allowed me to re-map buttons via the Settings -> Input -> Port 1 Controls screen -- was "linuxraw". But I couldn't get "linuxraw" to allow me to use my left analog stick to act as a D-pad, which is how the controller just naturally worked before (or perhaps because of the Analog to Digital Type setting). And using "linuxraw" didn't cause the controller notifications to reappear upon launching retroarch.

  • Previous versions of retroarch would print the following lines to the log:

    [INFO] [udev]: Pad #0 (/dev/input/event256) supports force feedback.
    [INFO] [udev]: Pad #0 (/dev/input/event256) supports 16 force feedback effects.
    [INFO] [Joypad]: Found joypad driver: "udev".
    

    But now, the log only contains:

    [INFO] [Joypad]: Found joypad driver: "udev".
    
  • After the update to 1.10.0, I tried running both the Update Assets and Update Controller Profiles commands. Neither had any noticeable effect.

Any idea what might have caused the problem, or how I might troubleshoot or fix?

Thanks in advance.

UPDATE: Oh, and one more thing. Ever since the upgrade to 1.10.0, when launching retroarch I now get the following error message on the command line (although it doesn't seem to prevent retroarch from running):

ERROR: ld.so: object '/snap/retroarch/1178/lib/libsnapcraft-preload.so' from
LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

It may be unrelated to the controller detection issue, but I thought I'd mention it anyway.

UPDATE2: To the extent that the above ld.so error is something that needs to be fixed, it would appear that something is looking for libsnapcraft-preload.so in the wrong location. It appears to reside in usr/lib/libsnapcraft-preload.so, not lib/libsnapcraft-preload.so.

@gouchi
Copy link
Member

gouchi commented Mar 24, 2022

Hi,

Is it still an issue with latest stable ?

@exerf
Copy link
Author

exerf commented Mar 24, 2022

Unfortunately, it appears so.

I've been on on retroarch 1.10.2 for a few days now. I changed the controller driver from "linuxraw" back to "udev", then quit and restarted retroarch. Upon re-launch, the UI no longer responded to my controller buttons. 😕

@exerf
Copy link
Author

exerf commented Mar 24, 2022

For anyone else inconvenienced by this issue, here is my workaround in Ubuntu 20.04:

  1. Use "linuxraw" as the retroarch controller driver (and "x" as the input driver).
  2. Then install AntiMicroX and configure it to map either (or both) analog sticks to the arrow keys. I was able to use the .deb package without any issues.
  3. I think this is already the default, but make sure that the D-pad entries in Settings -> Input -> Port 1 Controls accept the arrow keys.

@xard-dev
Copy link

xard-dev commented Mar 30, 2022

Hello,

I've encountered this same issue with any game controllers since the version 1.10.0 update and the 1.10.2 update unfortunately did not fix this either.

I also have the preload library error on startup and I can confirm that the library is placed in incorrect place inside the snap filesystem:

ERROR: ld.so: object '/snap/retroarch/1318/lib/libsnapcraft-preload.so' from 
LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

However as a not so great mitigation I can get controllers to work by unplugging and plugging them in while the retroarch is running. I think that might be related to something the preload is supposed to do but can't at the moment.

@joaorb64
Copy link

joaorb64 commented Apr 5, 2022

I have the same issue. A Wii U Pro Controller works if I reconnect while the emulator is running, but I just can't get a Switch Pro Controller to be detected at all. Both controllers work with an old apt-get installable Retroarch version in Ubuntu.

@haydnjonesdesign
Copy link

I too have the extract same issues with a Bluetooth PS3 controller. Controller is not detected if retro arch is launched and the controller is already on. Turning it off and on connects it. Then when running a core the controller is disconnected again. Turning it off and on again reconnects. Same when exiting a core. Seems only related to snap. I have plugged usb-raw, joystick, bluez no luck.

@xard-dev
Copy link

xard-dev commented Apr 9, 2022

I'm quite sure the root cause of this issue is tied to the preload library put in incorrect location. Shame that snap filesystems are immutable by design and debugging this issue would require installing the whole snap development and packaging environment which considerably raises the effort needed for casual debugging.

@gouchi
Copy link
Member

gouchi commented Apr 11, 2022

Hi,

Can you try to install it from edge channel (in about one hour) as we have just added one export ?

It might help to solve this issue.

sudo snap install retroarch --edge

Thank you.

@xard-dev
Copy link

Well,
I tried the installation, but it seems that snap does not like it when you have the retroarch already installed:

sudo snap install retroarch --edge
snap "retroarch" is already installed, see 'snap help refresh

Uh oh... if I go through the removal route it sounds very much like it's going to destroy my configuration (yet again).

Fortunately refreshing (probably) did the trick:

sudo snap refresh retroarch --edge
retroarch (edge) 1.10.2 from hunterk (libretro) refreshed

The core version is now 1.10.3 but the problem is still present:

retroarch 
ERROR: ld.so: object '/snap/retroarch/1350/lib/libsnapcraft-preload.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

And the game controllers are not detected.

@haydnjonesdesign
Copy link

You can backup your config files, mine are under USER/snap/retroarch/latest/.confg.

I haven't had a chance to test the edge version.

@hizzlekizzle
Copy link
Collaborator

hizzlekizzle commented Apr 12, 2022

I pushed some more updates to the edge channel. It seems to have gotten rid of the preload error, so if the ds4 is still not working, they were probably not related.

I'm going to hold off pushing these builds to the stable channel until I get confirmation that they help (or at least don't hurt)

EDIT: anybody had a chance to test the latest edge build?
EDIT2: well, it seemed okay in my testing and we needed to get the stable build out, so I went ahead and promoted it to all of the channels. We'll see if anything blows up. Please still report back if your controller issue is/isn't fixed.

@joaorb64
Copy link

I have just tested using a Wii U Pro Controller connected via Bluetooth. It still wasn't detected until reconnected.

@hizzlekizzle
Copy link
Collaborator

Ok, thanks for testing/reporting. I think we can safely assume the preload stuff is/was unrelated.

As a bit of a sanity check, can anyone roll back to a previous version and verify that this is indeed a problem on our end and not something upstream (i.e., via snapcraft-core, etc.)?

To do so, you need to list the versions installed on your system and then select one to roll back to:

$ snap list retroarch  --all
$ sudo snap revert retroarch --revision [whatever]

@haydnjonesdesign
Copy link

Can confirm the preload stuff was unrelated. Just tested 1.10.3 and the preload error is now gone but the issue with controllers remains.

I was unable to get a previous version list to rollback to using

snap list retroarch —all

The options available are 1.10.2 and 1.10.3. .2 is already to confirmed to have the issue. If anyone else has older versions previously installed to test that would be great.

@xard-dev
Copy link

Can confirm the preload stuff was unrelated. Just tested 1.10.3 and the preload error is now gone but the issue with controllers remains.

Yes, I can also confirm this. The preload error is now fixed 1.10.3 - 1365 build but the controller issue remains.

As a bit of a sanity check, can anyone roll back to a previous version and verify that this is indeed a problem on our end and not something upstream (i.e., via snapcraft-core, etc.)?

If there is a way to rollback to a version 1.9.x snap then this could be tested but so far the rollback does not promising:

snap list retroarch  --all
Name       Version  Rev   Tracking     Publisher  Notes
retroarch  1.10.3   1365  latest/edge  libretro   disabled
retroarch  1.10.3   1373  latest/edge  libretro   -

@joaorb64
Copy link

joaorb64 commented May 10, 2022

I was wondering if this could have any connection to the connected interfaces, does it?

For testing, I ran this command to get all interfaces that Yuzu uses but Retroarch doesn't:

snap interfaces | grep "yuzu" | grep -v "retroarch"

gtk-common-themes:icon-themes                                             citra-emu,discord,dolphin-emulator,firefox,gimp,inkscape,kdenlive,krita,obs-studio,snap-store,yuzu
gtk-common-themes:sound-themes                                            citra-emu,discord,dolphin-emulator,firefox,gimp,kdenlive,krita,obs-studio,snap-store,yuzu
nightmayr-kf5-qt-5-15-2-core20:nightmayr-kf5-qt-5-15-2-core20             citra-emu,dolphin-emulator,yuzu
:browser-support                                                          discord,firefox:browser-sandbox,gimp,obs-studio,yuzu
:desktop-legacy                                                           citra-emu,discord,dolphin-emulator,firefox,gimp,inkscape,kdenlive,krita,moonlight,obs-studio,snap-store,yuzu
:gsettings                                                                citra-emu,discord,dolphin-emulator,firefox,gimp,inkscape,obs-studio,snap-store,yuzu
:hardware-observe                                                         firefox,yuzu
:mount-observe                                                            yuzu

The only interesting entries here would be hardware-observe and mount-observe, even though I do not know their exact purposes.

@hizzlekizzle
Copy link
Collaborator

desktop-legacy could be another possibility, I guess /shrug

You could try connecting them and see if it improves anything.

@joaorb64
Copy link

When I try to manually connect any interface, I get errors:

sudo snap connect retroarch:desktop-legacy  :desktop-legacy 
snap "retroarch" has no plug named "desktop-legacy"

@hizzlekizzle
Copy link
Collaborator

I just added desktop-legacy to the plugs. It should be available in the next edge build: https://github.com/libretro/retroarch-snap/blob/master/snapcraft.yaml#L58

@xard-dev
Copy link

Also I noticed that the "reconnecting controller after starting retroarch" mitigation is not that great as the controller is lost every time you launch content using a core.

@joaorb64
Copy link

Is there an estimate of when a new build will be uploaded?

@hizzlekizzle
Copy link
Collaborator

It looks like it does them automatically every 3 days and they just did a new build yesterday, but I went ahead and triggered a new one. It'll probably publish in the next 30 min to an hour.

@joaorb64
Copy link

joaorb64 commented May 11, 2022

So a build was released and I was able to connect desktop-legacy. Not sure if it made any difference.
I also noticed that while my Wii U Pro Controller works the same as before (connects via Bluetooth, I need to connect after opening retroarch to have it detected), my Switch Pro Contoller (I'm connecting via USB) works randomly: if I disconnect and connect many times, sometimes it is detected.

If it helps in any way, here's the Yuzu yaml file for reference/comparison: https://github.com/Nightmayr-snaps/yuzu-snap/blob/master/snap/snapcraft.yaml

@xard-dev
Copy link

Now that a new permission was mentioned I wonder if something broke in the retroarch or the snap itself?

@xard-dev
Copy link

Hmm... retroarch does not have hardware-observe. Could it be related?

@hizzlekizzle
Copy link
Collaborator

alright, i tried adding hardware-observe, mount-observe and browser-support. None of those sound at all related based on their documentation, but whatever. We'll give it a shot :) New builds should publish in an hour or so.

@joaorb64
Copy link

Yeah, no changes coming from the connections... :(

@hizzlekizzle
Copy link
Collaborator

Thanks for checking.

@xard-dev
Copy link

xard-dev commented Jul 2, 2022

I migrated to Ubuntu 22.04 and I can say that this issue is at least consistent: same controller problem with the snap.

I finally gave up and installed the PPA version and everything just worked nicely out of the box and the settings were easy to migrate.

@haydnjonesdesign
Copy link

Yeah this is still occurring. I've just given up on retroarch and am not using it. Not sure even where to start looking to resolve this.

@gouchi
Copy link
Member

gouchi commented Jul 24, 2022

I can't reproduce the issue with fresh install on Ubuntu 22.04.

Some logs

Jul 24 12:00:16 ubuntu kernel: usb 2-1.2.4.3: reset high-speed USB device number 13 using ehci-pci
Jul 24 12:00:16 ubuntu kernel: usb 2-1.2.4.3: USB disconnect, device number 13
Jul 24 12:00:17 ubuntu kernel: usb 2-1.2.4.3: new high-speed USB device number 15 using ehci-pci
Jul 24 12:00:17 ubuntu kernel: usb 2-1.2.4.3: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=88.32
Jul 24 12:00:17 ubuntu kernel: usb 2-1.2.4.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jul 24 12:00:17 ubuntu kernel: usb 2-1.2.4.3: Product: USB2.0 Hub
Jul 24 12:00:17 ubuntu kernel: hub 2-1.2.4.3:1.0: USB hub found
Jul 24 12:00:17 ubuntu kernel: hub 2-1.2.4.3:1.0: 4 ports detected
Jul 24 12:00:17 ubuntu kernel: usb 2-1.2.4.3.1: new full-speed USB device number 16 using ehci-pci
Jul 24 12:00:17 ubuntu kernel: usb 2-1.2.4.3.1: New USB device found, idVendor=054c, idProduct=09cc, bcdDevice= 1.00
Jul 24 12:00:17 ubuntu kernel: usb 2-1.2.4.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 24 12:00:17 ubuntu kernel: usb 2-1.2.4.3.1: Product: Wireless Controller
Jul 24 12:00:17 ubuntu kernel: usb 2-1.2.4.3.1: Manufacturer: Sony Interactive Entertainment
Jul 24 12:00:17 ubuntu kernel: input: Sony Interactive Entertainment Wireless Controller Touchpad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0008/input/input28
Jul 24 12:00:17 ubuntu kernel: input: Sony Interactive Entertainment Wireless Controller Motion Sensors as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0008/input/input29
Jul 24 12:00:17 ubuntu kernel: input: Sony Interactive Entertainment Wireless Controller as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0008/input/input27
Jul 24 12:00:17 ubuntu kernel: sony 0003:054C:09CC.0008: input,hidraw4: USB HID v81.11 Gamepad [Sony Interactive Entertainment Wireless Controller] on usb-0000:00:1d.0-1.2.4.3.1/input3
Jul 24 12:00:17 ubuntu mtp-probe[15244]: checking bus 2, device 16: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1"
Jul 24 12:00:17 ubuntu mtp-probe[15244]: bus: 2, device: 16 was not an MTP device
Jul 24 12:00:17 ubuntu systemd[1]: Starting IIO Sensor Proxy service...
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) config/udev: Adding input device Sony Interactive Entertainment Wireless Controller Touchpad (/dev/input/mouse1)
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) No input driver specified, ignoring this device.
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) This device may have been added with another device file.
Jul 24 12:00:17 ubuntu systemd-udevd[15248]: controlC2: Process '/usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore 2' failed with exit code 99.
Jul 24 12:00:17 ubuntu systemd[1]: Started IIO Sensor Proxy service.
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) config/udev: Adding input device Sony Interactive Entertainment Wireless Controller (/dev/input/js0)
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) No input driver specified, ignoring this device.
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) This device may have been added with another device file.
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) config/udev: Adding input device Sony Interactive Entertainment Wireless Controller Motion Sensors (/dev/input/event17)
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) No input driver specified, ignoring this device.
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) This device may have been added with another device file.
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) config/udev: Adding input device Sony Interactive Entertainment Wireless Controller (/dev/input/event18)
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) No input driver specified, ignoring this device.
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) This device may have been added with another device file.
Jul 24 12:00:17 ubuntu systemd[1]: iio-sensor-proxy.service: Deactivated successfully.
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) config/udev: Adding input device Sony Interactive Entertainment Wireless Controller Touchpad (/dev/input/event16)
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (**) Sony Interactive Entertainment Wireless Controller Touchpad: Applying InputClass "libinput touchpad catchall"
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) Using input driver 'libinput' for 'Sony Interactive Entertainment Wireless Controller Touchpad'
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) systemd-logind: got fd for /dev/input/event16 13:80 fd 68 paused 0
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (**) Sony Interactive Entertainment Wireless Controller Touchpad: always reports core events
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (**) Option "Device" "/dev/input/event16"
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) event16 - Sony Interactive Entertainment Wireless Controller Touchpad: is tagged by udev as: Touchpad
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) event16 - Sony Interactive Entertainment Wireless Controller Touchpad: no resolution or size hints, assuming a size of 69x50mm
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) event16 - Sony Interactive Entertainment Wireless Controller Touchpad: device is a touchpad
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) event16 - Sony Interactive Entertainment Wireless Controller Touchpad: device removed
Jul 24 12:00:17 ubuntu mtp-probe[15277]: checking bus 2, device 16: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1"
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0008/input/input28/event16"
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) XINPUT: Adding extended input device "Sony Interactive Entertainment Wireless Controller Touchpad" (type: TOUCHPAD, id 14)
Jul 24 12:00:17 ubuntu mtp-probe[15277]: bus: 2, device: 16 was not an MTP device
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (**) Option "AccelerationScheme" "none"
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (**) Sony Interactive Entertainment Wireless Controller Touchpad: (accel) selected scheme none/0
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (**) Sony Interactive Entertainment Wireless Controller Touchpad: (accel) acceleration factor: 2.000
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (**) Sony Interactive Entertainment Wireless Controller Touchpad: (accel) acceleration threshold: 4
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) event16 - Sony Interactive Entertainment Wireless Controller Touchpad: is tagged by udev as: Touchpad
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) event16 - Sony Interactive Entertainment Wireless Controller Touchpad: no resolution or size hints, assuming a size of 69x50mm
Jul 24 12:00:17 ubuntu /usr/libexec/gdm-x-session[5455]: (II) event16 - Sony Interactive Entertainment Wireless Controller Touchpad: device is a touchpad
Jul 24 12:00:17 ubuntu pulseaudio[5638]: The decibel volume range for element 'PCM' (-7300 dB - -100 dB) has negative maximum. Disabling the decibel range.
Jul 24 12:00:17 ubuntu pulseaudio[5638]: The decibel volume range for element 'PCM' (-7300 dB - -100 dB) has negative maximum. Disabling the decibel range.
Jul 24 12:00:17 ubuntu pulseaudio[5638]: The decibel volume range for element 'PCM' (-7300 dB - -100 dB) has negative maximum. Disabling the decibel range.
Jul 24 12:00:17 ubuntu pulseaudio[5638]: The decibel volume range for element 'PCM' (-7300 dB - -100 dB) has negative maximum. Disabling the decibel range.
Jul 24 12:00:17 ubuntu pulseaudio[5638]: The decibel volume range for element 'PCM' (-7300 dB - -100 dB) has negative maximum. Disabling the decibel range.
Jul 24 12:00:17 ubuntu upowerd[2263]: treated changed event as add on /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0008/power_supply/sony_controller_battery_a4:53:85:62:9e:a9
Jul 24 12:00:17 ubuntu rtkit-daemon[2133]: Supervising 7 threads of 4 processes of 1 users.
Jul 24 12:00:17 ubuntu rtkit-daemon[2133]: Successfully made thread 15278 of process 5638 owned by '999' RT at priority 5.
Jul 24 12:00:17 ubuntu rtkit-daemon[2133]: Supervising 8 threads of 4 processes of 1 users.
Jul 24 12:00:17 ubuntu rtkit-daemon[2133]: Supervising 8 threads of 4 processes of 1 users.
Jul 24 12:00:17 ubuntu rtkit-daemon[2133]: Successfully made thread 15279 of process 5638 owned by '999' RT at priority 5.
Jul 24 12:00:17 ubuntu rtkit-daemon[2133]: Supervising 9 threads of 4 processes of 1 users.
Jul 24 12:00:22 ubuntu audit[14999]: AVC apparmor="DENIED" operation="open" profile="snap.retroarch.retroarch" name="/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0008/power_supply/sony_controller_battery_a4:53:85:62:9e:a9/scope" pid=14999 comm="retroarch" requested_mask="r" denied_mask="r" fsuid=999 ouid=0
Jul 24 12:00:22 ubuntu audit[14999]: AVC apparmor="DENIED" operation="open" profile="snap.retroarch.retroarch" name="/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0008/power_supply/sony_controller_battery_a4:53:85:62:9e:a9/status" pid=14999 comm="retroarch" requested_mask="r" denied_mask="r" fsuid=999 ouid=0
Jul 24 12:00:22 ubuntu kernel: audit: type=1400 audit(1658664022.484:199): apparmor="DENIED" operation="open" profile="snap.retroarch.retroarch" name="/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0008/power_supply/sony_controller_battery_a4:53:85:62:9e:a9/scope" pid=14999 comm="retroarch" requested_mask="r" denied_mask="r" fsuid=999 ouid=0
Jul 24 12:00:22 ubuntu kernel: audit: type=1400 audit(1658664022.484:200): apparmor="DENIED" operation="open" profile="snap.retroarch.retroarch" name="/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0008/power_supply/sony_controller_battery_a4:53:85:62:9e:a9/status" pid=14999 comm="retroarch" requested_mask="r" denied_mask="r" fsuid=999 ouid=0
snap list retroarch
Name       Version  Rev   Tracking       Publisher  Notes
retroarch  1.10.3   1396  latest/stable  libretro   -

Screenshot from 2022-07-24 12-02-18

@gouchi
Copy link
Member

gouchi commented Sep 29, 2022

@exerf @haydnjonesdesign @xard-dev Do you reproduce the issue using Ubuntu 22.04 ?

@haydnjonesdesign
Copy link

Negative. Debian Buster.

@gouchi
Copy link
Member

gouchi commented Oct 2, 2022

@haydnjonesdesign I made some test on Debian Buster and it is working if you unplug then plug the controller when RetroArch is launched.

Screenshot from 2022-10-02 09-25-13

I enabled the raw-usb and hardware-observe interfaces but it did not help.

snap connections retroarch
Interface               Plug                              Slot                     Notes
alsa                    retroarch:alsa                    -                        -
audio-playback          retroarch:audio-playback          :audio-playback          -
bluez                   retroarch:bluez                   -                        -
browser-support         retroarch:browser-support         :browser-support         -
desktop                 retroarch:desktop                 :desktop                 -
desktop-legacy          retroarch:desktop-legacy          :desktop-legacy          -
hardware-observe        retroarch:hardware-observe        -                        -
home                    retroarch:home                    :home                    -
joystick                retroarch:joystick                :joystick                -
mount-observe           retroarch:mount-observe           -                        -
network                 retroarch:network                 :network                 -
network-bind            retroarch:network-bind            :network-bind            -
opengl                  retroarch:opengl                  :opengl                  -
raw-usb                 retroarch:raw-usb                 -                        -
removable-media         retroarch:removable-media         -                        -
screen-inhibit-control  retroarch:screen-inhibit-control  :screen-inhibit-control  -
unity7                  retroarch:unity7                  :unity7                  -
wayland                 retroarch:wayland                 :wayland                 -
x11                     retroarch:x11                     :x11                     -
sudo snap connect retroarch:raw-usb
sudo snap connect retroarch:hardware-observe
snap connections retroarch
Interface               Plug                              Slot                     Notes
alsa                    retroarch:alsa                    -                        -
audio-playback          retroarch:audio-playback          :audio-playback          -
bluez                   retroarch:bluez                   -                        -
browser-support         retroarch:browser-support         :browser-support         -
desktop                 retroarch:desktop                 :desktop                 -
desktop-legacy          retroarch:desktop-legacy          :desktop-legacy          -
hardware-observe        retroarch:hardware-observe        :hardware-observe        manual
home                    retroarch:home                    :home                    -
joystick                retroarch:joystick                :joystick                -
mount-observe           retroarch:mount-observe           -                        -
network                 retroarch:network                 :network                 -
network-bind            retroarch:network-bind            :network-bind            -
opengl                  retroarch:opengl                  :opengl                  -
raw-usb                 retroarch:raw-usb                 :raw-usb                 manual
removable-media         retroarch:removable-media         -                        -
screen-inhibit-control  retroarch:screen-inhibit-control  :screen-inhibit-control  -
unity7                  retroarch:unity7                  :unity7                  -
wayland                 retroarch:wayland                 :wayland                 -
x11                     retroarch:x11                     :x11                     -

Here is the log for the Apparmor when I unplug and plug the controller when RA is launched :

Oct 02 09:56:42 debian kernel: usb 2-1.2.4.3.1: USB disconnect, device number 14
Oct 02 09:56:44 debian kernel: usb 2-1.2.4.3: reset high-speed USB device number 13 using ehci-pci
Oct 02 09:56:44 debian kernel: usb 2-1.2.4.3: USB disconnect, device number 13
Oct 02 09:56:44 debian kernel: usb 2-1.2.4.3: new high-speed USB device number 15 using ehci-pci
Oct 02 09:56:44 debian kernel: usb 2-1.2.4.3: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=88.32
Oct 02 09:56:44 debian kernel: usb 2-1.2.4.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Oct 02 09:56:44 debian kernel: usb 2-1.2.4.3: Product: USB2.0 Hub
Oct 02 09:56:44 debian kernel: hub 2-1.2.4.3:1.0: USB hub found
Oct 02 09:56:44 debian kernel: hub 2-1.2.4.3:1.0: 4 ports detected
Oct 02 09:56:44 debian upowerd[1752]: treating change event as add on /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3
Oct 02 09:56:45 debian upowerd[1752]: treating change event as add on /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3
Oct 02 09:56:45 debian upowerd[1752]: treating change event as add on /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3
Oct 02 09:56:45 debian kernel: usb 2-1.2.4.3.1: new full-speed USB device number 16 using ehci-pci
Oct 02 09:56:45 debian kernel: usb 2-1.2.4.3.1: New USB device found, idVendor=054c, idProduct=09cc, bcdDevice= 1.00
Oct 02 09:56:45 debian kernel: usb 2-1.2.4.3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 02 09:56:45 debian kernel: usb 2-1.2.4.3.1: Product: Wireless Controller
Oct 02 09:56:45 debian kernel: usb 2-1.2.4.3.1: Manufacturer: Sony Interactive Entertainment
Oct 02 09:56:45 debian kernel: input: Sony Interactive Entertainment Wireless Controller Touchpad as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0007/input/input29
Oct 02 09:56:45 debian kernel: input: Sony Interactive Entertainment Wireless Controller Motion Sensors as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0007/input/input30
Oct 02 09:56:45 debian kernel: input: Sony Interactive Entertainment Wireless Controller as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0007/input/input28
Oct 02 09:56:45 debian kernel: sony 0003:054C:09CC.0007: input,hidraw3: USB HID v81.11 Gamepad [Sony Interactive Entertainment Wireless Controller] on usb-0000:00:1d.0-1.2.4.3.1/input3
Oct 02 09:56:45 debian mtp-probe[4641]: checking bus 2, device 16: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1"
Oct 02 09:56:45 debian mtp-probe[4641]: bus: 2, device: 16 was not an MTP device
Oct 02 09:56:45 debian systemd[1]: Starting IIO Sensor Proxy service...
Oct 02 09:56:45 debian systemd[1]: Started IIO Sensor Proxy service.
Oct 02 09:56:45 debian systemd-udevd[4616]: controlC1: Process '/usr/sbin/alsactl -E HOME=/run/alsa -E XDG_RUNTIME_DIR=/run/alsa/runtime restore 1' failed with exit code 99.
Oct 02 09:56:45 debian systemd[1]: iio-sensor-proxy.service: Succeeded.
Oct 02 09:56:45 debian mtp-probe[4672]: checking bus 2, device 16: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1"
Oct 02 09:56:45 debian mtp-probe[4672]: bus: 2, device: 16 was not an MTP device
Oct 02 09:56:45 debian upowerd[1752]: treating change event as add on /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0007/power_supply/sony_controller_battery_a4:53:85:62:9e:a9
Oct 02 09:56:45 debian rtkit-daemon[1480]: Supervising 7 threads of 3 processes of 1 users.
Oct 02 09:56:45 debian rtkit-daemon[1480]: Successfully made thread 4673 of process 1431 owned by '1000' RT at priority 5.
Oct 02 09:56:45 debian rtkit-daemon[1480]: Supervising 8 threads of 3 processes of 1 users.
Oct 02 09:56:45 debian rtkit-daemon[1480]: Supervising 8 threads of 3 processes of 1 users.
Oct 02 09:56:45 debian rtkit-daemon[1480]: Successfully made thread 4674 of process 1431 owned by '1000' RT at priority 5.
Oct 02 09:56:45 debian rtkit-daemon[1480]: Supervising 9 threads of 3 processes of 1 users.
Oct 02 09:56:51 debian audit[4512]: AVC apparmor="DENIED" operation="open" profile="snap.retroarch.retroarch" name="/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0007/power_supply/sony_controller_battery_a4:53:85:62:9e:a9/scope" pid=4512 comm="retroarch" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Oct 02 09:56:51 debian audit[4512]: AVC apparmor="DENIED" operation="open" profile="snap.retroarch.retroarch" name="/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0007/power_supply/sony_controller_battery_a4:53:85:62:9e:a9/status" pid=4512 comm="retroarch" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Oct 02 09:56:51 debian kernel: audit: type=1400 audit(1664704611.640:49): apparmor="DENIED" operation="open" profile="snap.retroarch.retroarch" name="/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0007/power_supply/sony_controller_battery_a4:53:85:62:9e:a9/scope" pid=4512 comm="retroarch" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Oct 02 09:56:51 debian kernel: audit: type=1400 audit(1664704611.640:50): apparmor="DENIED" operation="open" profile="snap.retroarch.retroarch" name="/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.4/2-1.2.4.3/2-1.2.4.3.1/2-1.2.4.3.1:1.3/0003:054C:09CC.0007/power_supply/sony_controller_battery_a4:53:85:62:9e:a9/status" pid=4512 comm="retroarch" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Moreover, the profile for RetroArch snap is well activated

sudo aa-status
apparmor module is loaded.
6 profiles are loaded.
6 profiles are in enforce mode.
   /snap/snapd/17029/usr/lib/snapd/snap-confine
   /snap/snapd/17029/usr/lib/snapd/snap-confine//mount-namespace-capture-helper
   /usr/lib/snapd/snap-confine
   /usr/lib/snapd/snap-confine//mount-namespace-capture-helper
   snap-update-ns.retroarch
   snap.retroarch.retroarch
0 profiles are in complain mode.
0 processes have profiles defined.
0 processes are in enforce mode.
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.

@haydnjonesdesign
Copy link

haydnjonesdesign commented Oct 2, 2022 via email

@hizzlekizzle
Copy link
Collaborator

FWIW, I'm still having the same behavior after updating to 22.04.1.

@hizzlekizzle
Copy link
Collaborator

Ok, I finally got a setup where I can build snaps on-demand and I went all the way back to 1.9.3 and it's still doing this controller thing, so I'm beginning to suspect that it' s nothing inside of RetroArch and is instead related to something within snap/craft.

@haydnjonesdesign
Copy link

Thanks Hizzlekizzle. I think I felt that it was related to an interface issue but it's all above my knowledge.

@hizzlekizzle
Copy link
Collaborator

Hmm, I just learned that this issue is affecting the FlatPak package, as well, and that switching the controller driver to sdl2 prevents the disconnection in between games (though it doesn't prevent having to unplug/replug at first launch).

hizzlekizzle added a commit that referenced this issue Aug 23, 2023
This should minimize the impact of #52
@Colani1200
Copy link

Hmm, I just learned that this issue is affecting the FlatPak package, as well, and that switching the controller driver to sdl2 prevents the disconnection in between games (though it doesn't prevent having to unplug/replug at first launch).

Doesn't work for me (snap package, Ubuntu 22.04). Still need to replug every time with sdl2 input driver.

@alexb3d
Copy link

alexb3d commented Nov 7, 2023

I will comment in this thread, because it is not closed.

It stopped recognizing the Xbox 360 controller. This happened recently, maybe 20 days ago.

I have Ubuntu 22.04 and RetroArch 1.16.0 on snap.

Log:

[INFO] RetroArch 1.16.0 (Git f427aaee8f)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Pentium(R) 4 CPU 3.00GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 
[INFO] Version: 1.16.0
[INFO] Git: f427aaee8f
[INFO] Built: Sep 30 2023
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] [Core]: Version of libretro API: 1, Compiled against API: 1
[INFO] [Core]: Geometry: 320x240, Aspect: 1.333, FPS: 60.00, Sample rate: 48000.00 Hz.
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Set video size to: 640x480.
[INFO] [Video]: Starting threaded video driver..
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_EXT_swap_control_tear supported.
[INFO] [GLCore]: Found GL context: "x".
[INFO] [GLCore]: Detecting screen resolution: 1920x1080.
[INFO] [GLX]: X = 0, Y = 0, W = 640, H = 480.
[INFO] [GLX]: Creating context for requested version 3.2.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLCore]: Vendor: X.Org, Renderer: AMD CAICOS (DRM 2.50.0 / 6.2.0-36-generic, LLVM 12.0.0).
[INFO] [GLCore]: Version: 3.3 (Core Profile) Mesa 21.2.6.
[INFO] [GLCore]: Using resolution 640x480.
[INFO] [Joypad]: Found joypad driver: "sdl2".
[INFO] [GLCore]: Loading stock shader.
[INFO] [slang]: Building pass #0 (N/A)
[INFO] [GLCore]: Not using frame history.
[INFO] [GLCore]: Not using framebuffer feedback.
[INFO] [Video]: Found display server: "x11".
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [Audio]: Started synchronous audio driver.
[INFO] [ALSA] Using ALSA version 1.2.2
[INFO] [Microphone]: Initialized microphone driver.
[INFO] [Display]: Found display driver: "glcore".
[ERROR] [MIDI]: snd_seq_open failed with error -1.
[ERROR] [MIDI]: Initialization failed.
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_music_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_video_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_image_history.lpl".
[INFO] [Playlist]: Loading favorites file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_favorites.lpl".
[INFO] [Content]: Updating firmware status for: "/home/lex/snap/retroarch/2448/.config/retroarch/cores/stella_libretro.so" on "/home/lex/snap/retroarch/2448/.config/retroarch/system".
[INFO] [Core]: Using content: "/home/lex/Games/Consoles/Atari 2600/River Raid (USA).zip#River Raid (USA).a26".
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [PulseAudio]: Pausing.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] Threaded video stats: Frames pushed: 1572, Frames dropped: 0.
[INFO] RetroArch 1.16.0 (Git f427aaee8f)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Pentium(R) 4 CPU 3.00GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 
[INFO] Version: 1.16.0
[INFO] Git: f427aaee8f
[INFO] Built: Sep 30 2023
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Core]: Loading dynamic libretro core from: "/home/lex/snap/retroarch/2448/.config/retroarch/cores/stella_libretro.so"
[INFO] [Environ]: SET_VARIABLES.
[INFO] [Overrides]: Redirecting save file to "/home/lex/snap/retroarch/2448/.config/retroarch/saves/Stella/River Raid (USA).srm".
[INFO] [Overrides]: Redirecting save state to "/home/lex/snap/retroarch/2448/.config/retroarch/states/Stella/River Raid (USA).state".
[INFO] [Environ]: GET_LOG_INTERFACE.
[INFO] [Environ]: PERFORMANCE_LEVEL: 4.
[INFO] [Content]: Loading content file: "/home/lex/Games/Consoles/Atari 2600/River Raid (USA).zip#River Raid (USA).a26".
[INFO] [Content]: CRC32: 0xc3eb7e1e.
[INFO] [Environ]: SET_CONTROLLER_INFO.
[INFO] [Environ]: SET_INPUT_DESCRIPTORS:
[INFO] [Environ]: SET_PIXEL_FORMAT: XRGB8888.
[INFO] [Environ]: SET_GEOMETRY: 320x228, Aspect: 1.404.
[INFO] [Replay]: Found last replay slot: #0
[INFO] [SRAM]: Skipping SRAM load.
[INFO] [Core]: Version of libretro API: 1, Compiled against API: 1
[INFO] [Core]: Geometry: 320x228, Aspect: 1.404, FPS: 60.00, Sample rate: 31440.00 Hz.
[INFO] [Audio]: Set audio input rate to: 31440.00 Hz.
[INFO] [Video]: Set video size to: 640x456.
[INFO] [Video]: Starting threaded video driver..
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_EXT_swap_control_tear supported.
[INFO] [GLCore]: Found GL context: "x".
[INFO] [GLCore]: Detecting screen resolution: 1920x1080.
[INFO] [GLX]: X = 0, Y = 0, W = 640, H = 456.
[INFO] [GLX]: Creating context for requested version 3.2.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLCore]: Vendor: X.Org, Renderer: AMD CAICOS (DRM 2.50.0 / 6.2.0-36-generic, LLVM 12.0.0).
[INFO] [GLCore]: Version: 3.3 (Core Profile) Mesa 21.2.6.
[INFO] [GLCore]: Using resolution 640x456.
[INFO] [Joypad]: Found joypad driver: "sdl2".
[INFO] [GLCore]: Loading stock shader.
[INFO] [slang]: Building pass #0 (N/A)
[INFO] [GLCore]: Not using frame history.
[INFO] [GLCore]: Not using framebuffer feedback.
[INFO] [Video]: Found display server: "x11".
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [Audio]: Started synchronous audio driver.
[INFO] [ALSA] Using ALSA version 1.2.2
[INFO] [Microphone]: Initialized microphone driver.
[INFO] [Display]: Found display driver: "glcore".
[ERROR] [MIDI]: snd_seq_open failed with error -1.
[ERROR] [MIDI]: Initialization failed.
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_music_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_video_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_image_history.lpl".
[INFO] [Playlist]: Loading favorites file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_favorites.lpl".
[INFO] [Playlist]: Written to playlist file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_history.lpl".
[INFO] [Environ]: SET_GEOMETRY.
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 02 seconds.
[INFO] [Runtime]: Saving runtime log file: "/home/lex/snap/retroarch/2448/.config/retroarch/playlists/logs/Stella/River Raid (USA).lrtl".
[INFO] [Core]: No content, starting dummy core.
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [Core]: Unloading game..
[INFO] [PulseAudio]: Pausing.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] [Core]: Saved core options file to "/home/lex/snap/retroarch/2448/.config/retroarch/config/Stella/Stella.opt".
[INFO] Threaded video stats: Frames pushed: 194, Frames dropped: 1.
[INFO] RetroArch 1.16.0 (Git f427aaee8f)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Pentium(R) 4 CPU 3.00GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 
[INFO] Version: 1.16.0
[INFO] Git: f427aaee8f
[INFO] Built: Sep 30 2023
[INFO] =================================================
[INFO] [Input]: Found input driver: "x".
[INFO] [Environ]: SET_PIXEL_FORMAT: RGB565.
[INFO] [Core]: Version of libretro API: 1, Compiled against API: 1
[INFO] [Core]: Geometry: 320x240, Aspect: 1.333, FPS: 60.00, Sample rate: 48000.00 Hz.
[INFO] [Audio]: Set audio input rate to: 48000.00 Hz.
[INFO] [Video]: Set video size to: 640x480.
[INFO] [Video]: Starting threaded video driver..
[ERROR] [Wayland]: Failed to connect to Wayland server.
[INFO] [GLX]: GLX_EXT_swap_control_tear supported.
[INFO] [GLCore]: Found GL context: "x".
[INFO] [GLCore]: Detecting screen resolution: 1920x1080.
[INFO] [GLX]: X = 0, Y = 0, W = 640, H = 480.
[INFO] [GLX]: Creating context for requested version 3.2.
[INFO] [GLX]: Found swap function: glXSwapIntervalEXT.
[INFO] [GLCore]: Vendor: X.Org, Renderer: AMD CAICOS (DRM 2.50.0 / 6.2.0-36-generic, LLVM 12.0.0).
[INFO] [GLCore]: Version: 3.3 (Core Profile) Mesa 21.2.6.
[INFO] [GLCore]: Using resolution 640x480.
[INFO] [Joypad]: Found joypad driver: "sdl2".
[INFO] [GLCore]: Loading stock shader.
[INFO] [slang]: Building pass #0 (N/A)
[INFO] [GLCore]: Not using frame history.
[INFO] [GLCore]: Not using framebuffer feedback.
[INFO] [Video]: Found display server: "x11".
[INFO] [PulseAudio]: Requested 24576 bytes buffer, got 18432.
[INFO] [Audio]: Started synchronous audio driver.
[INFO] [ALSA] Using ALSA version 1.2.2
[INFO] [Microphone]: Initialized microphone driver.
[INFO] [Display]: Found display driver: "glcore".
[ERROR] [MIDI]: snd_seq_open failed with error -1.
[ERROR] [MIDI]: Initialization failed.
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_music_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_video_history.lpl".
[INFO] [Playlist]: Loading history file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_image_history.lpl".
[INFO] [Playlist]: Loading favorites file: "/home/lex/snap/retroarch/2448/.config/retroarch/content_favorites.lpl".
[INFO] [Config]: Saved new config to "/home/lex/snap/retroarch/2448/.config/retroarch/retroarch.cfg".
[INFO] [Core]: Content ran for a total of: 00 hours, 00 minutes, 00 seconds.
[INFO] [PulseAudio]: Pausing.
[INFO] [Core]: Unloading core..
[INFO] [Core]: Unloading core symbols..
[INFO] Threaded video stats: Frames pushed: 255, Frames dropped: 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants