Linux Simulator does not properly unmount device after uploading game to it

I am running the SDK (3.0.5) on KDE Plasma 6.6.5 (Arch Linux). This wouldn’t happen to have been fixed in 3.0.6 would it have? I haven’t been able to upgrade just yet. This has been a long-term issue.

When I connect my device while the simulator is open, it connects just fine. This enables me to successfully run “Upload Game To Device“ just fine. However, when the game finishes uploading, the device doesn’t properly eject. It remains in the Data Disk mode, which requires me to open Disks & Devices on KDE, select Mount, wait for the device to mount, and then select Safely Remove.

I believe that the device should immediately eject after the game has finished uploading. Presumably it should be calling some form of udisksctl power-off -b /dev/sdX.

There’s the possibility that my setup is the issue and not the simulator, in which case, I’d appreciate any insight into why it won’t eject properly after copying the game over.

My issue seems to almost be an inverse of Linux Simulator requires device to be mounted when uploading a game .

The Simulator uses g_mount_eject_with_operation() to unmount the Playdate. I would start by googling why that may not work in KDE.

Thanks. That helped clear things up. I needed to install the gvfs package, which comes standard on Gnome but not on KDE Plasma. Now it unmounts correctly.

I think this process could be more platform agnostic if it directly targeted udisks2 (Drive.PowerOff) rather than relying on gvfs as a wrapper layer.

2 Likes

I’m glad you got it sorted. From my testing, most (?) KDE based distros have it installed. This is the first time I’ve heard of it not working. We’ll keep an eye on it and adjust as needed.

1 Like