We have moved to a new Sailfish OS Forum. Please start new discussions there.

Bug: Changing volume turns on display

asked 2014-03-03 02:34:30 +0300

sjn gravatar image

updated 2014-09-18 20:15:14 +0300

chemist gravatar image

If one changes the volume while the display is off and something is playing sounds, this action turns on the display.

To reproduce this error:

  1. Start playing some music.
  2. Turn off screen.
  3. Change (increase/decrease) the volume
  4. The screen is now turned on, in order to give visual feedback of volume level.

There's no need to give a visual feedback about volume level when auditory feedback is both available and sufficient.

This also happens with locked (device lock) screen and no playback, with or without covered proximity sensor you may change the volume and turn on the screen (or trigger a 2 sec timer for showing the change in volume).

edit retag flag offensive close delete


https://together.jolla.com/question/27089/bug-screen-turns-on-after-volume-rocker-was-pressed-and-proximity-sensor-is-opened/ interesting that this had no personal bug-report yet, it was mentioned together with several other issues like pocket-calling (which actually does not unlock the display while the proximity-sensor is covered.

chemist ( 2014-03-03 10:13:44 +0300 )edit

Yeah, seems the proximity sensor affects this bug too. If you place the phone screen-down on a surface (while playing music), changing volume doesn't turn on the screen.

sjn ( 2014-03-03 12:00:37 +0300 )edit

Even if the player is turned off later, it still keeps doing this by the way

Bulder ( 2014-03-03 12:12:48 +0300 )edit

So it it not necessarily a bug, it may be intention. (Actually, I like it to have a feed back about the actual setting of the volume control: It could be that not knowing you have a very low sound source at the moment, turn it up and then louder sources unexpectedly blow out your ears.)

jgr ( 2014-03-03 12:28:10 +0300 )edit

Volume control unlocks the display regardless if any media is played. ie. pressing volume control while phone is locked means after the visual feedback of the volume changing the screen is no longer locked (Although if there is no interaction with the screen, the display returns to locked mode after 2 seconds.)

Sawyer ( 2014-03-03 17:20:14 +0300 )edit

2 Answers

Sort by » oldest newest most voted

answered 2014-09-18 08:43:18 +0300

spiiroin gravatar image

The volume key policy is roughly: Volume keys do nothing, unless

  • display is on and ui is not locked (=not showing locksreen)
  • audio playback ongoing (=latest audio policy decision from ohm)
  • there is a call

When volume key is pressed while they are enabled, a 2 second "exceptional display on" state is started. If proximity sensor is not covered or is uncovered during that period, the display can be turned on to provide visual feedback about the change.

Note that the behavior has changed over the time

  • initially (at sales start) volume keys went through, without any feedback if display happened to be off
  • early 2014 display turns on if proximity etc (part of major refactoring of all display state controls)
  • spring 2014 volume keys are only enabled when policy allows it (input control backend for Jolla hw too)
  • summer 2014 volume keys are disabled when audio playback stops (sailfish apps release audio resources)
  • there still are problems with android apps that do sound -> volume keys can stay active
edit flag offensive delete publish link more


This is not true - My device is locked (lock code required) and no playback at all, volume changes and display gets turned on. Same with covered proximity sensor, I can change the volume and even use the pwrbutton to turn on the display, if I release the proximity sensor within that given 2sec timeframe the display gets lid for the remaining time.

chemist ( 2014-09-18 20:11:32 +0300 )edit

@chemist: If you try it after reboot, does it work right after boot up / when using sailfish apps for audio? As said, there are known problems with android apps and audio. But identifying sailfish apps that cause problems might be useful. Power button is completely different thing and by default pays no attention to proximity sensor. And "for the remaining time" part is what "If proximity sensor is not covered or is uncovered during that period" meant.

spiiroin ( 2014-09-18 21:20:40 +0300 )edit

right after boot it is behaving like you said, so it is actually an aliendalvik bug... thanks

chemist ( 2014-09-18 22:06:34 +0300 )edit

answered 2014-03-06 09:50:56 +0300

updated 2014-03-07 10:03:32 +0300

Actually it seems like a bug in the stock media player app. When audio is played using QML's MediaPlayer element, the screen does not turn on while changing the volume. I can absolutely reproduce this with my own app, I am currently developing (internet radio player).

Update 1:

I think, the following would be the best behavior:

  • When media is playing, while phone is locked, the screen should not be turned on*
  • When no media is playing, the screen should be turned on, so that we know, which volume-level is set
  • On the latter, the proximity sensor should disable the volume-rocker, because we can't notice the volume-change at all

* This is the current behavior, except for the stock media player / custom player backends

Update 2: Now I am confused... This morning I tested this again and the screen turned on when I changed the volume, even with my app. Yesterday I was absolutely able to reproduce this behavior... I don't get it :D

edit flag offensive delete publish link more


The screen turns on even without anything playing...

chemist ( 2014-03-06 11:09:44 +0300 )edit

I think, that is the correct behavior. When nothing is playing and you change the volume while the device is locked, how would you know, which volume is set? In my opinion, either the volume rocker should be disabled while the phone is locked and nothing is playing - or the current behavior should remain.

ejjoman ( 2014-03-06 11:16:34 +0300 )edit

And that is in another question already, proximity sensor does not disable volume-rocker when idle... It could be "if screen is off and nothing is playing don't change the volume"

chemist ( 2014-03-06 11:49:25 +0300 )edit

Yes, that is another question and should maybe discussed in another topic? I've updated my answer.

ejjoman ( 2014-03-06 12:08:52 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2014-03-03 02:34:30 +0300

Seen: 916 times

Last updated: Sep 18 '14