ralphy wrote: 
> Tried this with the official rpi screen and it's turning off the
> backlight same as using /sys/class/backlight/rpi_backlight/bl_power
> 
> I'm expect the screen to blank but the backlight should stay on.

Ralphy,

Attached is a version of the DisplayOff applet which does blank the
screen before turning off the backlight. I also simplified the code and
removed some stuff which is'nt really needed for it to function. The
problem with the old version was that the screen updates were disabled
before the black background was drawn.

I also 'fixed' the 'back' and 'now playing' button height on the
keyboard screens by uncommenting the 'h = 44', and 'padding = { 0, 5, 0,
2 },' lines in JogglerSkinApplet.lua:


Code:
--------------------
    1581    -- input window (including keyboard)
  1582    s.input = _uses(s.window)
  1583    s.input.title = _uses(s.title, {
  1584        -- remove 3px from the height and 3px from the bottom padding
  1585        -- h = 44,
  1586        -- padding = { 0, 5, 0, 2 },
  1587        bgImg = inputTitleBox,
  1588    })
--------------------


Could you also change the following lines in JogglerSkinApplet.lua (h =
100 -> h = 300 (lines 839 and 843) and fontsize upped to 120 (line
846)):


Code:
--------------------
    836     s.text_block_black = {
  837         bgImg = blackBackground,
  838         position = LAYOUT_NORTH,
  839         h = 300,
  840         order = { 'text' },
  841         text = {
  842             w = WH_FILL,
  843             h = 300,
  844             padding = { 10, 160, 10, 0 },
  845             align = "center",
  846             font = _font(120),
  847             fg = TEXT_COLOR,
  848             sh = TEXT_SH_COLOR,
  849         },
  850     }
--------------------


This will be used by a future version of my piCorePlayer applet and is
needed for a new version of the DisplayOff screensaver. This new version
of the piCorePlayer applet has an option for setting an alternative
backlight brightness when powered off and as an user selectable option
reintroduces the 'power-on' button. This allows a 'time peek' function
for the new DisplayOff applet just as on the original Squeezebox Touch:
tap once to show the time and the power-on button and after five seconds
the screen blanks again; tap once and press the power-on button to turn
on the player. This avoids unwanted WOL events to power up the server if
you just want to see the time. These changes are global for all
screensavers but require some dirty hacks in multiple JiveLite files
(ScreenSaversApplet.lua, System.lua and JiveMain.lua). I will submit
these changes when more testing is done.

20778

Also attached is an updated Clock applet which 'fixes' some layout
issues. I also integrated the WordClock clock I found in the O2 Joggler
SqueezePlay image. All necessary new or updated images for all clocks
and skins are included.

The last thing I did address was the visible image dithering of images
and backgrounds (especially visible in smooth gradients e.g. the
background image used in the Spectrum Analyzer: pcp_nocturne.png). I
changed '/usr/sbin/fbset -depth 16' to '/usr/sbin/fbset -depth 32' in
'/opt/jivelite/bin/jivelite.sh'. No visible slowdown as far as I can
tell but a much better image quality. Even a framerate of 60 runs
smoothly on a Raspberry Pi 3.

Regards,
Arie

20777
20776


+-------------------------------------------------------------------+
|Filename: piCorePlayerApplet.png                                   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=20778|
+-------------------------------------------------------------------+

------------------------------------------------------------------------
kolossos4730's Profile: http://forums.slimdevices.com/member.php?userid=63988
View this thread: http://forums.slimdevices.com/showthread.php?t=103330

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to