OpenELEC / service.openelec.settings

service.openelec.settings - OpenELEC settings addon
Other
12 stars 35 forks source link

PS3 BD Remote doesn't hibernate when system suspends #47

Closed bam80 closed 8 years ago

bam80 commented 10 years ago

Duplicating https://github.com/OpenELEC/OpenELEC.tv/issues/3345: Looks like OE doesn't enter bluetooth hibernate mode when it go to suspend. When screensaver starts, the remote hibernates properly: bluetooth dongle begin blinking slowly and evenly, but when I forcibly put system to sleep mode before streensaver starts - the dongle remain flashing quickly and disorderly - as it was when system was active, so that remote remain connected, and battery lasts about 1 week only.

bam80 commented 10 years ago

See https://github.com/OpenELEC/service.openelec.settings/commit/62476aed1498faf5f05c47f763beb08b80a579c6#inlinecommitcomment-7165736 for the fix. Please, include this or equivalent to the tree

stefansaraev commented 10 years ago

a sane remote would auto suspend after XX minutes of inactivity. quick question. what happens when you cut off the power ?

bam80 commented 10 years ago

I have 2 remotes from different shops and they behave equally, lasting ~week without letting screensaver activate.
Do you mean when I shutdown system? The LED on bluetooth dongle stop blinking. I assume it disconnects, and the remote stops discharging (rapidly). But it doesn't solve above problem - I wouldn't sutdown system every time.

stefansaraev commented 10 years ago

the point is, why would a good remote want something special sent from the os like "hey you muthaf****r go sleep NOW" ? if you leave it idle for 2-3 min it should automaticaly enter battery savingmode. that's what good remotes do.

stefansaraev commented 10 years ago

and btw the "fix" you mentioned, IS already in settings addon. it's not a fix. that "hibernate" thing in OE settings addon is wrong and should have not been added at all.

bam80 commented 10 years ago

I read somewere in OE forum that auto suspend feature after XX minutes of inactivity was intentionally switched off, so that remote doesn't have to be reconnected to i.e. change volume while watching a long video. So, for now that "hibernate" thing in OE settings is the exclusive feature to prevent remote discharging. I just proposed the code to make it more correct..

stefansaraev commented 10 years ago

autosuspend after xx min is something that your HARDWARE (remote) does. if there is a way to tell it to NOT suspend (I am not bt proto pro here but I believe there is NO way), and if that was implemented in OE - that's a BIG mistake and should be reverted/removed immediately. @sraue @lfiebach

bam80 commented 10 years ago

I think the point was that not letting it autosuspend is a smaller harm that if it would take several seconds to reconnect befor you could press something while watching video. As a user of this remote I can imaging it would be very annoing. I agree the remote is not perfect in bluetooth part, but otherwise it somewhat exclusive among bluetooth remote alternatives, so IMHO it worth such a workaround @lfiebach did. Anyway, if that workaround will be removed, I couldn't use my favorite remotes any more :( UPDATE: it worth to mention that in case of reconnection the first press which initiates the reconnection is lost

bam80 commented 10 years ago

Shall anybody else pay attention to this problem? I would make a local patch but can't due to ro filesystem. @stefansaraev: to make it clear, my change only affects those BT devices for which Hibernation was selected, and doesn't do any other impact on the system. It doesn't override @lfiebach's fix but extend it to make it work properly

chewitt commented 8 years ago

I'm closing this ticket due to elapsed time with no update. If this is still a problem please open a thread in the forums. Thanks.