Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  Selective Backlight and Advanced Softlock w/Autolock - TESTING NEEDED
« previous next »
  • Print
Pages: [1]

Author Topic: Selective Backlight and Advanced Softlock w/Autolock - TESTING NEEDED  (Read 5205 times)

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 895
Selective Backlight and Advanced Softlock w/Autolock - TESTING NEEDED
« on: December 03, 2016, 02:12:39 PM »
    Selective Backlight and Softlock

    General Settings>Display>LCD Options>Selective Backlight:
    Allows users to select actions that when within WPS or FMS will not activate the backlight

      Backlight Options:
      • Volume
      • Play
      • Seek
      • Skip
      • Disable Unmapped Buttons
          Buttons that do not call a setting will be ignored (some still do and will get fixed as they are found)
      • Disable on External Power
          When plugged goes back to regular behavior




      General Settings>System>Advanced Softlock: (Devices without a hold button)
      Allows users to select actions that when within WPS or FMS will not be blocked by the screen lock

        Softlock Options:
        • Volume
        • Play
        • Seek
        • Skip
        • Auto Lock
            When the backlight turns off, softlock will lock the screen,
            Activates when you press the lock key and if you manually lock again
            while active it then disables autolock (currently only for devices with backlight)
            • (Lock Button Pressed #1) >Auto Lock On (device still unlocked till backlight timeout)
            • (Lock Button Pressed #2) >Auto Lock Off (device locked)
            • (Lock Button Pressed #3) >(device unlocked)
        • Disable Touch
            Blocks touch screen buttons like the original (only for touch devices)
        • Disable Notify
            Doesn't notify 'Buttons Locked' (still will if power button is pressed)



        Source is on Gerrit
        http://gerrit.rockbox.org/r/#/c/1417/

        (All Sansa, IPOD, Archos, Creative, etc. 73 in all )
        I have a bunch of compiled firmware built with the latest build here:
         
        http://www.mediafire.com/?tl0828dq7lq1c THIS FEATURE IS IN 3.14

        If you don't see your player and would like a build let me know and I will add it to the list.
        Edit: All the firmware is in above link

        Thanks Johnb, TorC, Pamaury, __Builtin, Chrisjj[/list][/list][/list][/list][/list]
        « Last Edit: August 24, 2017, 09:30:12 AM by Bilgus »
        Logged

        Offline johnb

        • Member
        • *
        • Posts: 223
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #1 on: December 05, 2016, 03:21:21 PM »
        Hi Bilgus,

        I feel I still need to understand the use case for "Disable Unknown"...

        For instance, on my FuzeV2 when this is turned on, if I click the Select, Menu or Home button the BL stays off, but it takes me into the respective menu (without really knowing, especially if it was not intended). As soon as I use the scroll wheel or any other button, BL turns on and a real selection might have happened already.

        So what is it good for?




        Logged

        Offline Bilgus

        • Developer
        • Member
        • *
        • Posts: 895
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #2 on: December 05, 2016, 11:55:15 PM »
        The Idea was to prevent an unmapped action from turning on the backlight.
        For instance hitting select and up (or vol up and select) which doesn't map to an action turns on the backlight.

        If this Is causing problems then I'll have to look into it I'm probably overriding the conditional that turns on BL on context change, if it becomes too much of a pain I'll remove it.
        Thanks

        Edit:
        Fixed on Gerrit, Ill add updated firmware soon New Firmware is up
        « Last Edit: December 06, 2016, 12:10:03 PM by Bilgus »
        Logged

        Offline johnb

        • Member
        • *
        • Posts: 223
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #3 on: December 06, 2016, 02:09:33 PM »
        So it's only about unintended concurrent clicks of some keys like my earlier (Vol+ & Vol-)? ;-)

        I just installed the latest version ...
        Logged

        Offline johnb

        • Member
        • *
        • Posts: 223
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #4 on: December 06, 2016, 03:02:27 PM »
        FuzeV2: the behaviour I described above is gone with that build.

        But I believe I found another bug:
        Situation:
        SelBL is on, all in Settings have been active but Seek.

        When I go into Settings and activate Seek and back out, I am asked whether I want to save, which I confirm.
        But now Seek still activates BL. Shutting down the player and restarting, it works as expected.

        I managed to do this several times, but it's not always reproducible.
        Logged

        Offline Bilgus

        • Developer
        • Member
        • *
        • Posts: 895
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #5 on: December 06, 2016, 04:05:50 PM »
        That would be the settings menu missing the activation of the new settings, it happens when you use the cancel button to exit the menu, I actually thought I fixed that already :/
        I imagine the selective softlock menu will do it as well.

        Fixed Ill add it once I get a few other things to add
        « Last Edit: December 06, 2016, 04:14:01 PM by Bilgus »
        Logged

        Offline Bilgus

        • Developer
        • Member
        • *
        • Posts: 895
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #6 on: December 07, 2016, 10:29:39 PM »
        I fixed the menu issue and added an option for Auto Lock to the softlock menu
        Logged

        Offline johnb

        • Member
        • *
        • Posts: 223
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #7 on: December 08, 2016, 02:00:56 PM »
        I assume "Auto Lock" should activate the SL after some timeout. On my clip+ it doesn't ...
        Logged

        Offline Bilgus

        • Developer
        • Member
        • *
        • Posts: 895
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #8 on: December 08, 2016, 02:43:01 PM »
        You have to lock it once to activate then it will auto lock after you unlock Currently it disables when you exit the wps/fms. I really found the disable on exit annoying testing it today so ill probably change it to long press of the key lock disables. Ill probably leave it so locking once activates it though.
        Logged

        Offline Bilgus

        • Developer
        • Member
        • *
        • Posts: 895
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #9 on: December 11, 2016, 02:42:09 AM »
        Latest is on gerrit and link above

        Auto lock now activates when you press the lock key and if you lock again while active it then disables autolock
        I thought about using long press but since some players might use the power button for keylock I decided that could be bad.

        I also fixed a bug where pressing a non filtered key and then pressing a filtered key within the timeout allowed the filtered key through softlock.
        Logged

        Offline chrisjj

        • Member
        • *
        • Posts: 276
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #10 on: December 14, 2016, 01:06:21 PM »
        TEST ENVIRONMENT

        Creative ZEN (2Gb, tester's unit P)

        TEST PREPARATION

        Install https://www.mediafire.com/?tl0828dq7lq1c creativezenmozaic-SEL_BL-SL_-rockbox_Vbf177ae-161210.zip

        TEST PROCEDURE

        1 Unplug external power
        2 Go to Settings, General Settings, Display, LCD Settings, No Backlight on Selected Actions
        3 Select Off (changes to On)
        4 Under Settings, select Volume, Play, Seek, Skip (each changes to show a + to left)
        5 On Now Playing, wait until backlight goes out
        6 Do Volume up/down, Play, Seek right, Skip right (Seek left and Skip left are non-operative)
        7 Verify backlight does not engage.

        8 Go to Settings, General Settings, Display, LCD Settings, No Backlight on Selected Actions, Settings
        9 Select 'Disable on External Power' ("When plugged goes back to regular behavior")
        10 Plug-in external power
        11 On Now Playing, wait until backlight goes out
        12 Do Volume up/down, Play, Seek right, Skip right (Seek left and Skip left are non-operative)
        13 Verify backlight does engage.

        This omits Disable Unknown ("Unknown actions will not turn on the backlight") because I don't know what constitutes an Unknown action.

        This omits Selective Softlock and Softlock Options because TMK (in absence of a Rockbox manual for this model) this model does not have a softlock and none is mentioned in the Rockbox manual for another model https://download.rockbox.org/manual/rockbox-sansaclipplus.pdf

        TEST RESULT

        Success!

        FURTHER COMMENT

        I suggest the UI labelling could be made a lot more comprehensible. For example, I suggest the Settings mutually exclusive commands Off (that turns the feature on) and On (that turns the feature off) would be better replaced by an On command that turns the feature on and an Off command that turns it off, with a suffixed asterisk on whichever was in effect.
        Logged

        Offline Bilgus

        • Developer
        • Member
        • *
        • Posts: 895
        Re: Selective Backlight and Softlock - TESTING NEEDED
        « Reply #11 on: December 17, 2016, 12:00:20 PM »
        Latest firmware is up on mediafire

        Scroll wheel is fixed for the Ipod menu names have changed, code has been cleaned up

        Testing appreciated
        Logged

        Offline Bilgus

        • Developer
        • Member
        • *
        • Posts: 895
        Re: Selective Backlight and Advanced Softlock w/Autolock - TESTING NEEDED
        « Reply #12 on: December 26, 2016, 11:02:54 PM »
        Final code is up on Gerrit as are compiled firmware (see link at top)

        Barring bugs or some awesome feature I consider this patch done.

        There are a few button fixes for Sansa targets as well that haven't been added to the compiled firmware but are on gerrit

        Clip, Clip+ ClipZip:
        Fix FMS Volume-long press Up and Down button actions for SANSA CLIP derivatives
        http://gerrit.rockbox.org/r/#/c/1444/

        Fuze, Fuzev2:
        Make short press of SELECT in FMS return ACTION_NONE on Sansa Fuze
        http://gerrit.rockbox.org/r/#/c/1445/


        * Ss1.png (25.19 kB, 239x322 - viewed 632 times.)

        * Ss2.png (25.79 kB, 240x328 - viewed 1023 times.)
        « Last Edit: December 26, 2016, 11:30:59 PM by Bilgus »
        Logged

        • Print
        Pages: [1]
        « previous next »
        +  Rockbox Technical Forums
        |-+  Rockbox Development
        | |-+  Feature Ideas
        | | |-+  Selective Backlight and Advanced Softlock w/Autolock - TESTING NEEDED
         

        • SMF 2.0.19 | SMF © 2021, Simple Machines
        • Rockbox Privacy Policy
        • XHTML
        • RSS
        • WAP2

        Page created in 0.064 seconds with 17 queries.