Max2Play Home › Forums › Max2Play on Raspberry PI › LCD illumination turns on when not needed
Tagged: Illumination, Jivelite, LCD, max2play
- This topic has 4 replies, 2 voices, and was last updated 7 years, 2 months ago by Heiner premium.
-
Posted in: Max2Play on Raspberry PI
-
20. August 2017 at 15:42 #30697
I often control Max2play/Jivelite with SqueezePlay (on Windows) or Squeeze Commander (on a mobile phone). I often play Internet radio. I use screensaver which makes screen black and turns off illumination after 10s of inactivity. The problem is that when I press the pause („||“) on Squeeze Commander or SqueezePlay, then LCD illumination activates on max2play and screen displays black screen (with illumination). Furthermore it stays illuminated forever (until I do some tricks). It is inconvenient as power consumption of raspberry multiplies and illumination system wears out. Please help or correct software.
In above scenario to turn off the LCD illumination I have to tap on LCD/touchscreen, which brings on the displayed context and after 10s screen illumination is automatically turned off (which is good).In Jivelite I have screensavers delay=10s and screensavers settings:
When playing: Blank screen
When stopped: Blank screen
When off: Blank screen
Raspberry PI 3, 7″ official LCD/touchscreen, Hifibverry Dac+ Pro
Max2play 2.44, Jivelite updated today.
Logitech Media Server on NAS – Synology25. August 2017 at 11:01 #30877Hi Ravenik,
Sorry about the late reply.
Could you please share your Squeezelite command line options and your Audioplayer debug log?
25. August 2017 at 15:51 #30918Squeezelite:
Soundcard: sysdefault – snd_rpi_hifiberry_dacplus …
ALSA Parameter: 80:4::
Command Line Options :
(no command line options)I don’t know where to find Audioplayer debug log (in GUI or in shell, and where is it?)
I use squeezelite+jivelite on max2play and I control it using Squeezeplay/Windows or Squeeze Commander/Android.Below I include „Debug Informationen“ from Audioplayer card in my max2play web interface.
Note that I have just written a working workaround as a script in bash (autostarted in /etc/rc5.d – /etc/init.d) which every 5 seconds checks if the screen is all blank/black. If the screen is all blank/black, then the script turns off LCD illumination. If not, it turns illumination on. I use xwd to dump the current screenshot to file. Then my script compares current dump file with black screen file dumped earlier. I use diff to compare files.
So it is no longer an urgent issue for me, however I would appreciate if you provide a more subtle solution.
Below I include „Debug Informationen“ from Audioplayer card in my max2play web interface.
#### SQUEEZELITE VERSION ####
Squeezelite Max2Play v1.0.2 based on v1.8.4-726, Copyright 2012-2015 Adrian Smith, 2015-2016 Ralph Irving.#### SQUEEZELITE BUILDOPTIONS ####
Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR GPIO DSD CONTROLSBS ALSASYNC BLUETOOTHSYNC#### AUDIOPLAYER CONFIG ####
### Configuration of Audioplayers
SQUEEZELITE_PARAMETER=-o sysdefault:CARD=sndrpihifiberry -a 80:4::
SQUEEZESLAVE_PARAMETER=-n plugequal
SHAIRPORT_PARAMETER=-d default:CARD=sndrpihifiberry
USE_USB_DAC=0
USE_EQUALIZER=1
SYSTEM_USER=pi
SPOTIFYCONNECT_PARAMETER=–username xxxxxx –password „xxxxxx“ –device sysdefault:CARD=sndrpihifiberry#### SQUEEZELITE -l ####
Output devices:
null – Discard all samples (playback) or generate zero samples (capture)
pulse – PulseAudio Sound Server
equal
plugequal – Equalizer for plughw:1,0
default:CARD=ALSA – bcm2835 ALSA, bcm2835 ALSA – Default Audio Device
sysdefault:CARD=ALSA – bcm2835 ALSA, bcm2835 ALSA – Default Audio Device
dmix:CARD=ALSA,DEV=0 – bcm2835 ALSA, bcm2835 ALSA – Direct sample mixing device
dmix:CARD=ALSA,DEV=1 – bcm2835 ALSA, bcm2835 IEC958/HDMI – Direct sample mixing device
dsnoop:CARD=ALSA,DEV=0 – bcm2835 ALSA, bcm2835 ALSA – Direct sample snooping device
dsnoop:CARD=ALSA,DEV=1 – bcm2835 ALSA, bcm2835 IEC958/HDMI – Direct sample snooping device
hw:CARD=ALSA,DEV=0 – bcm2835 ALSA, bcm2835 ALSA – Direct hardware device without any conversions
hw:CARD=ALSA,DEV=1 – bcm2835 ALSA, bcm2835 IEC958/HDMI – Direct hardware device without any conversions
plughw:CARD=ALSA,DEV=0 – bcm2835 ALSA, bcm2835 ALSA – Hardware device with all software conversions
plughw:CARD=ALSA,DEV=1 – bcm2835 ALSA, bcm2835 IEC958/HDMI – Hardware device with all software conversions
default:CARD=sndrpihifiberry – snd_rpi_hifiberry_dacplus, – Default Audio Device
sysdefault:CARD=sndrpihifiberry – snd_rpi_hifiberry_dacplus, – Default Audio Device
dmix:CARD=sndrpihifiberry,DEV=0 – snd_rpi_hifiberry_dacplus, – Direct sample mixing device
dsnoop:CARD=sndrpihifiberry,DEV=0 – snd_rpi_hifiberry_dacplus, – Direct sample snooping device
hw:CARD=sndrpihifiberry,DEV=0 – snd_rpi_hifiberry_dacplus, – Direct hardware device without any conversions
plughw:CARD=sndrpihifiberry,DEV=0 – snd_rpi_hifiberry_dacplus, – Hardware device with all software conversions#### SHAIRPORT VERSION ####
2.8.0-openssl-Avahi-ALSA-soxr#### OUTPUT SOUND DETAILS CARD 0 ####
closed#### OUTPUT SOUND DETAILS CARD 1 ####
access: RW_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 44100 (352800/8)
period_size: 882
buffer_size: 352828. August 2017 at 12:41 #30935Hi Ravenik,
Thanks for the detailed response.
We will look into a solution for web interface implementation. In the meantime, you could quickly create a plugin based on your current script with our plugin builder: https://www.max2play.com/en/portfolio/plugin-pluginbuilder-2/
13. September 2017 at 12:36 #31301Hi Ravenik,
We checked the situation with a fresh setup again and a simple update in Jivelite (pre-compiled by Max2Play) solves the issue. You also have to make sure that the Screensaver settings are set to „blank screen“ when off and when paused. This should get the trick done.
Nonetheless, we appreciate the DIY solution and will continue to link to it if other users experience similar issues. Thanks for your detailed contributions and for pointing out this problem.
Cheers
Heiner -
You must be logged in to reply to this topic.