Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22
  1. #11
    Quote Originally Posted by paul- View Post
    Its in the piCorePlayer applet.
    So where do I find that? From what I have read the brightness script should get called if it is not an offical display right?

  2. #12
    found it in /opt/jivelite/share/jive/applets/piCorePlayer/piCorePlayerApplet.lua line 387 on but getting out of my depth now.

    I'm wondering if the screen is being seen as an official screen even if its not?
    Last edited by garym999; 2020-07-04 at 14:51.

  3. #13
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,257
    The rpi firmware probably sees it as an official display, and enables the rpi standard backlight control..... if the applet sees the rpi backlight control, it tries to use that......unfortunately, there is no feedback to know if it worked.

    You can see in the lua code what it’s looking for.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  4. #14
    Yes I can see that in definition of piCorePlayerApplet.lua

    local pCP_display_brightness_current = "/sys/class/backlight/rpi_backlight/brightness"
    local pCP_display_brightness_max = "/sys/class/backlight/rpi_backlight/max_brightness"
    local pCP_display_backlight = "/sys/class/backlight/rpi_backlight/bl_power"

    And if I physically check those they are all there so I think the screen is being seen as an offical screen. So what is the work around? If I knew what was doing rather than just being dangerous I'd just edit the Applet but its on a read-only file system so keeping me safe.

    Again if I knew what I was doing I guess the device (screen) properties could be editied to remove the rpi_backlight
    Last edited by garym999; 2020-07-05 at 03:33.

  5. #15
    If I run lsmod...

    Code:
    clk_hifiberry_dacpro    16384  1
    rpi_ft5406             16384  0
    fixed                  16384  3
    rpi_backlight          16384  0
    squashfs               45056  76
    sch_fq_codel           20480  3
    so the backlight is there

    Code:
    tc@Bathroom-pCP:/proc$ modinfo rpi_backlight
    filename:       /lib/modules/4.19.122-pcpCore_v7/kernel.tclocal/drivers/video/backlight/rpi_backlight.ko
    license:        GPL
    description:    Raspberry Pi mailbox based Backlight Driver
    author:         Gordon Hollingworth <gordon@raspberrypi.org>
    srcversion:     F28B14D84DF7AF92BB5A4D7
    alias:          of:N*T*Craspberrypi,rpi-backlightC*
    alias:          of:N*T*Craspberrypi,rpi-backlight
    depends:
    intree:         Y
    name:           rpi_backlight
    vermagic:       4.19.122-pcpCore_v7 SMP mod_unload modversions ARMv7 p2v8
    and guess what

    Code:
     sudo rmmod rpi_backlight
    removes the module and the dimming works! Until I power off.

    The screen then drops to the off level but the "power on" button is missing. I can still power toggle the player via LMS and also checked the piCoreSettings menu to ensure "Enable Power On Button When Powered Off" is checked.
    Last edited by garym999; 2020-07-05 at 04:33.

  6. #16
    So I'm there!

    Edited bootlocal.sh to include
    Code:
    sudo modprobe -r  rpi_backlight
    The issue with the power button is odd though. Under settings/piCorePlayer if I uncheck "Enable Power On Button When Powered Off" when I power off the screen dims and goes to the off screen saver but responds to a screen touch and powers up.

    With it checked when the screen is touched no power button comes up as it did with the rpi_backlight module installed so I cant power back up from the touch screen. Not the end of the world but odd?

  7. #17
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,257
    The rpi firmware automatically loads the rpi screen overlay, so your solution to remove the module is the best way.

    Not sure on the power button, but that ralphy’s area of expertise......
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #18
    I know this good work does not come without considerable effort so some beer tokens have been donated. Thanks All

  9. #19
    And the result of your continued work, some 3D printing and a weekend of mine is an in-wall player (UK double gang)

    Name:  IMG_6538.jpg
Views: 74
Size:  115.7 KBName:  IMG_6537.jpg
Views: 76
Size:  99.5 KBName:  IMG_6536.jpg
Views: 77
Size:  65.7 KB

  10. #20
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,724
    Great way of doing it.
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •