Folgende Warnungen sind aufgetreten:
Warning [2] Undefined variable $unreadreports - Line: 34 - File: global.php(961) : eval()'d code PHP 8.2.26 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 34 errorHandler->error_callback
/global.php 961 eval
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 43 - File: showthread.php(1621) : eval()'d code PHP 8.2.26 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1621) : eval()'d code 43 errorHandler->error_callback
/showthread.php 1621 eval




Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
CW2 PiUPS+ und Pi 3
#31
This is a piups related bug
CarPi: RPi 3 mit 7" RPi Touchscreen & PiUSV+, Jessie, Kodi 15.2
Testing: Raspbian Jessie mit Kodi 15.2 - Step by Step
Projekte: SmartHome, Ambilight
Zitieren
#32
Ok, and a solution to this bug ??
Zitieren
#33
i don`t know
CarPi: RPi 3 mit 7" RPi Touchscreen & PiUSV+, Jessie, Kodi 15.2
Testing: Raspbian Jessie mit Kodi 15.2 - Step by Step
Projekte: SmartHome, Ambilight
Zitieren
#34
Hi, not a solution but a workaround.
I have the piusv+ since today and I installed the system 2 days ago, so it should be the newest raspbian (not the light version, I followed the steps from cbrauweiler - thanks a lot :-))

By reading this thread and following the links I do the following and it fits my needs:
  • Install piusv software as described in the manual
  • changed in /etc/piupsmon/piupsmon.conf:
    ShutdownCmd=shutdown -h now &
    (I think init 0 & will do the job too) - that is the bug in piusv, it seems to me that the job to shutdown needs to run in background, so that the piusv daemon get control back even if it is for a short time, but I'm not sure
  • copied a small script from a user in another forum and modified it slightly, store it under /usr/local/bin/allOff.sh and make it executable (sudo chmod +x ... ) code see below
    I changed the python-script /home/pi/.kodi/addons/skin.carpc-xtouch/scripts/system_poweroff.py to call "my" script.
After that you can shutdown the raspberry from kodi. If you press the resetbutonn on piusv+ or give power back, the system will start. I have tested it not in my car so I don't know if it will work with the external power connector, I check it with usb power supply.

code of /usr/local/bin/allOff.sh:
Code:
#!/bin/bash
#Skript zum programmatischen Abschalten der PiUSV+
#gpio-tools müssen installiert sein
#Autor: raspiuser, 2015-08-10
#Benutzung auf eigenes Risiko !
echo "$(date +%Y-%m-%d" "%H:%M:%S) [NOTICE] Programmatic system shutdown!" >> /var/log/piupsmon.log
#systemctl stop piupsmon         # arch linux
/etc/init.d/piupsmon stop      # raspbian
#systemctl poweroff &            #arch linux
#init 0 &                       #raspbian
i2cset -y 1 0x18 0x10
i2cset -y 1 0x18 15
shutdown -h now &
echo "$(date +%Y-%m-%d" "%H:%M:%S) [NOTICE] System halted!" >> /var/log/piupsmon.log
exit

 
code of /home/pi/.kodi/addons/skin.carpc-xtouch/scripts/system_poweroff.py
Code:
import os
import xbmc

xbmc.executebuiltin('XBMC.Quit');
# os.system("sudo poweroff &");
os.system("sudo /usr/local/bin/allOff.sh &")



Good luck
 Karsten
Zitieren
#35
Thanks , i will try next week, I don't have nothing to lose Smile
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 2 Gast/Gäste
RasPiCarProjekt