Bug 8151 - (int-153494) Connecting powered USB cable always activates/unlocks screen
(int-153494)
: Connecting powered USB cable always activates/unlocks screen
Status: NEW
Product: Core
general
: 5.0:(10.2010.19-1)
: All Maemo
: Low minor with 8 votes (vote)
: ---
Assigned To: unassigned
: core-general-bugs
:
:
:
:
  Show dependency tree
 
Reported: 2010-01-17 15:18 UTC by Vladimir Oka
Modified: 2014-03-08 10:43 UTC (History)
5 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Vladimir Oka (reporter) 2010-01-17 15:18:17 UTC
SOFTWARE VERSION:
2.2009.51-1.203.2

EXACT STEPS LEADING TO PROBLEM: 
1. Lock & turn off screen or let N900 sit idle until screen goes off 
2. Connect either charger or USB cable

EXPECTED OUTCOME:
Charging begins, but N900 screen remains off.

ACTUAL OUTCOME:
Charging begins, but N900 always wakes up, either to the Idle screen or asking
for lock code, if enabled.

REPRODUCIBILITY:
always

EXTRA SOFTWARE INSTALLED:
n/a

OTHER COMMENTS:
This started happening after update to 2009.51. I guess it's a side effect of
fixing the issue with original release which didn't always start charging when
cable was plugged in if the screen was off. It'd be nice to have a full fix in
the next release. :)

PS
I tried searching for duplicate bug reports but failed to find one. Feel free
to duplicate.
Comment 1 Ryan Abel maemo.org 2010-01-18 00:00:57 UTC
Not sure if this behavior is as-intended, but I can reproduce it here.
Comment 2 anapospastos 2010-01-19 12:07:11 UTC
I suggest to make an option if someone wants the screen turn on during charging
and not.
Comment 3 Vladimir Oka (reporter) 2010-01-19 16:13:00 UTC
In case it helps any, I would expect the following behaviour when USB cable is
connected:

  If the screen is off: never turn it on.
  If the screen is on:  
    Connecting to computer: ask user to chose USB/PC Suite/Charge only.
    Connecting to wall charger: Charge only, no dialogs.

For "Charge only" it would be more intuitive if it was presented as a third
button, rather than relying on the user figuring out that clicking away means
"charge only".
Comment 4 Bartosz Taudul 2010-01-23 16:27:47 UTC
I see it this way:
- Connecting wall charger: screen is not turned on if it's off. There is sound
played and notification LED starts pulsing; this is enough notification to
user.
- Connecting to PC: screen is turned on, selection dialog appears.
Comment 5 Andre Klapper maemo.org 2010-02-09 00:51:25 UTC
*** Bug 8890 has been marked as a duplicate of this bug. ***
Comment 6 Urho Konttori 2010-02-10 09:37:27 UTC
When plugged to PC (via USB), we definitely need to show the choice. There is
no working around that, as also in comment #4.

For the charger, I agree, we should just start charging without unlocking.
Comment 7 luarvique 2010-02-10 12:31:02 UTC
(In reply to comment #6)
> When plugged to PC (via USB), we definitely need to show the choice. There is
> no working around that, as also in comment #4.
> For the charger, I agree, we should just start charging without unlocking. 
Agreed here. Basically, if the host asks what kind of a USB device you are, the
device should wake up and show the choice. When this does not happen, there is
no need to wake up.
Comment 8 Andre Klapper maemo.org 2010-05-27 02:25:35 UTC
According to internal comments, Nokia management decided that this will most
likely not fix this problem for the update after PR1.2 - Priorities...
Comment 9 luarvique 2010-05-27 08:06:49 UTC
Requesting to change bug description to "Connecting powered USB cable always
unlocks device" because that is what happens. And yes, it is a real pain, when
you keep your device in a pouch all the time: it forces you to take the device
out and lock it manually every time you connect the charger.
Comment 10 Vladimir Oka (reporter) 2010-05-27 08:12:16 UTC
(In reply to comment #9)
> Requesting to change bug description to "Connecting powered USB cable always
> unlocks device" because that is what happens. And yes, it is a real pain, when
> you keep your device in a pouch all the time: it forces you to take the device
> out and lock it manually every time you connect the charger.
> 

Are you sure that's what happens? There is a difference between (un)locking the
device and (un)locking the screen. For the former you need a (un)lock code and
plugging in the charger never skipped that question, i.e. it never unlocked the
*device*. What used to happen, and still happens, is that the screen is turned
on (or unlocked), but *only* if the *device* hasn't been locked. Therefore I
don't think the bug title needs changing.

The confusion may come from the wording when the screen is unlocked after
pressing the power button, where it says "swipe to unlock" under the slider.
Maybe this should be changed to "swipe to unlock screen".
Comment 11 luarvique 2010-05-27 08:22:51 UTC
(In reply to comment #10)
> Are you sure that's what happens? There is a difference between (un)locking the
> device and (un)locking the screen. For the former you need a (un)lock code and
> plugging in the charger never skipped that question, i.e. it never unlocked the
> *device*.
Ok, please, change the title to "Connecting powered USB cable always *unlocks
screen*"
Comment 12 Vladimir Oka (reporter) 2010-05-27 08:43:36 UTC
(In reply to comment #11)
> Ok, please, change the title to "Connecting powered USB cable always *unlocks
> screen*"
> 

Same difference, but there you go...
Comment 13 strank 2010-06-10 11:19:44 UTC
I agree with the original reporter that the best and simplest solution would be
not changing the screen-lock state at all.
What really gets me though, even if screen-unlocking should be the intended
effect, is that it it is unlocked irrespective of the proximity sensor!
N900 in pouch -> attach USB -> screen unlock -> all kinds of unintended
input...

So, even if screen activation should be chosen as the intended action (please
don't), there would still be the bug of not checking the proximity sensor.
Comment 14 Vladimir Oka (reporter) 2010-06-10 11:36:42 UTC
(In reply to comment #13)
> ...
> So, even if screen activation should be chosen as the intended action (please
> don't), there would still be the bug of not checking the proximity sensor.
> 

A very good point methinks!

Andre,
Should we split this bug into the original "enhancement" part, and the above? I
see "screen on while in pouch" as a significant problem as it may lead to all
sorts of random screen presses with unintended consequences.
Comment 15 Andre Klapper maemo.org 2010-06-23 17:18:56 UTC
According to internal comment by Nokia management this will not be investigated
for the next release. No specific reasons given though (propably priorities).