OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 884 forks source link

PS3 dualshock controller prevents system suspend #4811

Open MrChromebox opened 8 years ago

MrChromebox commented 8 years ago

When a Sony PS3 dualshock controller is paired/connected, attempting to suspend the system results in the 'working' notification showing briefly then disappearing; the system does not suspend. dmesg log:

PM: Syncing filesystems ... done. PM: Preparing system for sleep (mem) Freezing user space processes ... (elapsed 0.001 seconds) done. Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done. PM: Suspending system (mem) Suspending console(s) (use no_console_suspend to debug) sd 0:0:0:0: [sda] Synchronizing SCSI cache sd 0:0:0:0: [sda] Stopping disk dpm_run_callback(): usb_dev_suspend+0x0/0xb returns -16 PM: Device usb1 failed to suspend: error -16 PM: Some devices failed to suspend, or early wake event detected

tested against OE Generic x86_64, openelec-6 and master branches, on an Asus Chromebox w/Atheros AR9462 BT/WiFi module.

lrusak commented 8 years ago

I can confirm this. not sure if this comes from bluez or the kernel

MrChromebox commented 8 years ago

I'm without a dev box until friday, but will try to dig into it more this weekend

lrusak commented 8 years ago

A quick google didn't turn up much other than suspending specific usb devices before suspending, I don't think that's really possible here. Perhaps the hid-sony kernel driver needs to be built as a module?

MrChromebox commented 8 years ago

well, the Sony PS3 BT remote works just fine (w/r/t suspending), and it's using the same kernel driver, no?