Jump to content

Volume keys control does not work when the screen is off


Ali Rahal
 Share

Recommended Posts

Hi, 

Thanks for your mind blowing work :)

The volume buttons controls does not work when the screen is off, i have to turn it on before using the volume buttons (even to increase/decrease the volume)... unlocking the device is not required, just screen on... when the feature is disabled the buttons work on screen off... 

Using Lineage 18.1, Android 11, Device: Mido

Thanks

 

 

Link to comment
Share on other sites

Interesting. Equalizer doesn’t intercept or otherwise handle volume keys for volume at all. The only volume keys related functionality is long press track change, but in this case volume keys not intercepted as well (Equalizer gets only long presses).

Link to comment
Share on other sites

I just double checked to be sure... pause/resume on volume 0 feature is not affecting this, its only related to "change track by long press"... but I kind a find the cause...

I am using android 11 (lineage 18.1 by zeelog for mido) which have a built-in feature "control playback" when screen is off (long press change track) when this feature is disabled PAE long press function does not affect volume control anymore when screen is off BUT it does not work when screen is off (does not change track on long press) only work when screen is on

to summarize (this is only affecting screen off) :

1. lineage 18.1 control playback enabled + PAE long change track function enabled = volume button not working at all when screen off

2. lineage 18.1 control playback disabled + PAE long change track function enabled = volume button working when screen off but PAE function not working when screen is off

3. lineage 18.1 control playback enabled + PAE long change track function disabled = volume button working when screen off and lineage playback feature works (but this feature is just meant for screen off)

Note that when screen is off PAE does not receive long press action (checked on last processed commands)

I don't know if there is a solution here, also don't know if android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER is limited to screen on, or if this is related to Lineage... 

I may test this feature on Gravitybox I think its available there as well to have it working on screen on and off.

 

Link to comment
Share on other sites

Solved with gravitybox :)

1. Using volume long press control for screen off on Gravitybox

2. Having the feature enabled on PAE for when the screen is on 

3. Lineage built-in function is disabled

everything works :) ... its probably a Rom/Lineage bug... because the gravitybox hooked function fix the issue... but its PAE related anyway :)

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...