ralph-irving / jivelite

Community Lyrion Music Server control application
https://sourceforge.net/projects/lmsclients/files/jivelite/
Other
65 stars 37 forks source link

Cannot turn a player back on using the touchscreen? #24

Open rppicomidi opened 2 years ago

rppicomidi commented 2 years ago

Hello. Newbie to the jivelite project here. Thanks in advance for any help.

On my Squeezebox Touch, when the player is off, I can turn it back on by touching the screensaver screen, wait for the power button to appear on the screensaver screen, and then press the power button again.

I am running jivelite on an Asus Transformerbook T100TA (1366x768 touchscreen convertable PC tablet) that is running Xubuntu Linux 22.04. I used the instructions in the jivelite/patches/jivelite-lua-5.1.README file. The build generated a jivelite executable file that I installed using the instructions (the second patch didn't apply unless I modified luazipfilter/Makefile first to change += to =. Do you want a pull request?). I can run the program and I use the touchscreen to navigate every skin I tried. Everything seems to work except that once I turn a connected player off, I can't turn it back on using the touchscreen the way I can with the Squeezebox Touch. In this state, the system is locked in the power off screensaver and won't come back on unless I use some other means to turn the player back on. For example, I can use the Squeezer app on my phone to turn the player back on; I can press the T100TA 'k' key or the 'q' key to turn it on; pressing any number key on the T100TA will wake it up and play the corresponding preset, etc. As long as the player comes back on, the touchscreen becomes responsive again.

Did I build the program incorrectly? Is this just the way it is designed to work now? Is this a bug?

Edit: I checked a build I did on a very old core i3 Ubuntu 20.04 system with no touchscreen. The "When off" screensaver option is not available. Is that the way the system should really work?

rppicomidi commented 2 years ago

I was able to make the system show the power button on touch by removing the comment "--" from the line

System:setCapabilities({
    --  ["touch"] = 1,

in jivelite/share/applets/DesktopJive/DesktopJiveMeta.lua.

Was that the correct thing to do?

spaceman1988 commented 1 year ago

If that power button oin Jivelite is triggering the power on-off functionality of CPIO3 it might or might not work depending on your Pi setup. In my case, I have a sound card HAT that doesn't like anything else sharing CPIO3 - it does tolerate the shutdown from the screen but not the start-up. I also have a UPS installed. Since I could "shutdown" using the Jivelite interface I had to add an external button to re-start by shorting my Pi4 pins GLOBAL_EN to GND (not RUN).