#1 20/07/2013 07:55:18

arno
Membre
Inscription : 22/08/2010
Messages : 35

[0.26] MYTHWELCOME ne fait pas son boulot

Bonjour,

J'ai configuré mythwelcome pour le réveil auto et l'extinction mais ça ne fonctionne pas.

Le test de redémarrage fonctionne

gedit /etc/sudoers

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults	env_reset
Defaults	secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root	ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo	ALL=(ALL:ALL) ALL
%mythtv  ALL=NOPASSWD: /sbin/shutdown,/sbin/poweroff,/usr/local/bin/setwakeup.sh
%arno  ALL=NOPASSWD: /sbin/shutdown,/sbin/poweroff,/usr/local/bin/setwakeup.sh ,/sbin/reboot
# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

gedit /usr/local/bin/setwakeup.sh

#!/bin/sh
  #$1 c'est l'argument du script. Il s'agit de l'heure fournie en secondes depuis 1970
  #à laquelle vous souhaitez le réveil.
  #par exemple,  /usr/bin/setwakeup.sh `date '+%s' -d '+ 5 minutes'`
  #doit redémarrer votre ordinateur dans 5 minutes
  
  #à utiliser pour le debug de votre script
  echo "$*"  > /var/log/mythtv/myth.wakeup.args
  
  #à utiliser si l'heure du bios n'est pas l'heure UTC
  sfn=$(($1 + 0)) # remplacer 0 par votre décalage en secondes
  
  #Effacer l'ancienne heure de réveil.
  echo 0 > /sys/class/rtc/rtc0/wakealarm
  
  #écrire la nouvelle heure de réveil     
  echo $sfn > /sys/class/rtc/rtc0/wakealarm

Si vous avez des idées????????

Hors ligne

#2 20/07/2013 18:18:17

gilles74
Administrateur, expert MythTVExpert en configuration du DVB-SAT., développeurMembre de l'équipe de traduction, s'occupe de l'adaptation francophone de accuweather.
Inscription : 20/02/2008
Messages : 3 914
Mythbox

Re : [0.26] MYTHWELCOME ne fait pas son boulot

Regarde cette discussion, ça devrait t'aider à comprendre wink

le bug sera peut être corrigé dans 0.27, j'ai vu qu'il y avait quelque chose de corriger pour l'heure UTC mais je n'ai pas regardé le détail.

Hors ligne

#3 20/07/2013 22:43:21

arno
Membre
Inscription : 22/08/2010
Messages : 35

Re : [0.26] MYTHWELCOME ne fait pas son boulot

Bonjour,

je crois que je n'ai pas été assez clair dans ma présentation du problème.

Dans mythwelcomme
Quand je clique éteindre le pc ça ne fonctionne pas,
quanq je prog un enregistrement et que j'éteins le pc, il ne se rallume pas du tout.


Quand le pc est allumé il n'y a pas de pb

Dernière modification par arno (21/07/2013 07:31:30)

Hors ligne

#4 21/07/2013 07:56:14

arno
Membre
Inscription : 22/08/2010
Messages : 35

Re : [0.26] MYTHWELCOME ne fait pas son boulot

De plus le script renvoi vers un log qui n'est pas présent sur mon pc donc à priori pas lancé

Hors ligne

#5 21/07/2013 08:14:58

gilles74
Administrateur, expert MythTVExpert en configuration du DVB-SAT., développeurMembre de l'équipe de traduction, s'occupe de l'adaptation francophone de accuweather.
Inscription : 20/02/2008
Messages : 3 914
Mythbox

Re : [0.26] MYTHWELCOME ne fait pas son boulot

Pour le problème d'extinction, lancer le commande d'extinction dans une console pour vérifier les droits.
Chez moi, l'action de cette commande dans mythwelcome prend 2 minutes environ avant d'être exécuter, j'ai mis ça sur le dos de systemd mais c'est peut-être une tempo de mythtv ? mais je serai étonné.

Pour le problème d'allumage, est ce que le script écrit bien la date de reveil dans le fichier de log. Tu peux aussi lancer mythwelcome dans une console pour avoir les erreurs.

Hors ligne

#6 21/07/2013 17:57:30

arno
Membre
Inscription : 22/08/2010
Messages : 35

Re : [0.26] MYTHWELCOME ne fait pas son boulot

gilles74 a écrit :

Pour le problème d'extinction, lancer le commande d'extinction dans une console pour vérifier les droits.
Chez moi, l'action de cette commande dans mythwelcome prend 2 minutes environ avant d'être exécuter, j'ai mis ça sur le dos de systemd mais c'est peut-être une tempo de mythtv ? mais je serai étonné..

si je lance la commande sudo poweroff -h dans un terminal avec l'identifiant arno le pc d'éteint de suite sans mot de passe

si je lance mythwelcome par un terminal avec l'identifiant arno , et que je fait une extinction par mythwelcome il y a une demande de mot de passe dans le terminal????????????pourquoi??????

si je lance mythwelcome par l'icone sur le bureau , et que je fait une extinction par mythwelcome il ne se passe rien

gilles74 a écrit :

Pour le problème d'allumage, est ce que le script écrit bien la date de reveil dans le fichier de log. Tu peux aussi lancer mythwelcome dans une console pour avoir les erreurs.

je ne sais pas ou regarder ni à quel moment mais vu que le sudo sans mot de passe ne semble pas fonctionner, j'imagine que la demande n'est pas prise en compte à cause du mot de passe

Hors ligne

#7 21/07/2013 18:07:30

gilles74
Administrateur, expert MythTVExpert en configuration du DVB-SAT., développeurMembre de l'équipe de traduction, s'occupe de l'adaptation francophone de accuweather.
Inscription : 20/02/2008
Messages : 3 914
Mythbox

Re : [0.26] MYTHWELCOME ne fait pas son boulot

et qu'est ce que tu as mis dans la commande d'extinction de mythwelcome ?

le fichier de vérification de l'heure est dans le script : /var/log/mythtv/myth.wakeup.args

donne aussi les log de l'extinction quand tu lances mythwelcome en console, svp

Inspire toi de ce tuto qui fonctionne (hormis les problème de référence de l'heure) pour régler les différents paramètres de mythwelcome et du setup.

Hors ligne

#8 21/07/2013 21:53:16

arno
Membre
Inscription : 22/08/2010
Messages : 35

Re : [0.26] MYTHWELCOME ne fait pas son boulot

gilles74 a écrit :

et qu'est ce que tu as mis dans la commande d'extinction de mythwelcome ?

config de mythwelcome
sudo /usr/local/bin/setwakeup.sh $time
time_t
sudo /sbin/reboot
sudo /sbin/poweroff -h
xterm
/usr/bin/mythfrontend

gilles74 a écrit :

le fichier de vérification de l'heure est dans le script : /var/log/mythtv/myth.wakeup.args

trouvé merci

gilles74 a écrit :

donne aussi les log de l'extinction quand tu lances mythwelcome en console, svp

gilles74 a écrit :

Inspire toi de ce tuto qui fonctionne (hormis les problème de référence de l'heure) pour régler les différents paramètres de mythwelcome et du setup.

J'ai carrement pompé le tuto

Dernière modification par arno (21/07/2013 21:53:43)

Hors ligne

#9 22/07/2013 19:09:45

gilles74
Administrateur, expert MythTVExpert en configuration du DVB-SAT., développeurMembre de l'équipe de traduction, s'occupe de l'adaptation francophone de accuweather.
Inscription : 20/02/2008
Messages : 3 914
Mythbox

Re : [0.26] MYTHWELCOME ne fait pas son boulot

Donne les log SVP car dans l'état actuel de ce que tu nous dit, tout est bien configuré mais ça ne fonctionne pas et les log te/nous diront ce qui ne va pas. C'est le seul moyen de t'aider efficacement wink

Hors ligne

#10 22/07/2013 21:56:34

arno
Membre
Inscription : 22/08/2010
Messages : 35

Re : [0.26] MYTHWELCOME ne fait pas son boulot

arno@salon:~$ tail -f /var/log/mythtv/mythshutdown.log
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: N CoreContext mythcorecontext.cpp:1283 (InitLocale) Setting QT default locale to fr_US
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: I CoreContext mythcorecontext.cpp:1316 (SaveLocaleDefaults) Current locale fr_US
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: E CoreContext mythlocale.cpp:108 (LoadDefaultsFromXML) No locale defaults file for fr_US, skipping
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: I CoreContext main.cpp:234 (getStatus) Mythshutdown: --status
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: I SystemManager system-unix.cpp:263 (run) Starting process manager
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: I SystemSignalManager system-unix.cpp:490 (run) Starting process signal handler
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: I SystemIOHandlerW system-unix.cpp:90 (run) Starting IO manager (write)
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: I SystemIOHandlerR system-unix.cpp:90 (run) Starting IO manager (read)
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: I Logger logging.cpp:447 (initialTimeout) Added logging to mythlogserver at TCP:35327
Jul 21 22:26:10 salon mythlogserver: mythshutdown[14976]: I CoreContext main.cpp:347 (getStatus) Mythshutdown: --status returned: 0
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: C thread_unknown mythcommandlineparser.cpp:2545 (ConfigureLogging) mythshutdown version: fixes/0.26 [v0.26.0-214-gce8f070] www.mythtv.org
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: C thread_unknown mythcommandlineparser.cpp:2547 (ConfigureLogging) Qt version: compile: 4.8.1, runtime: 4.8.1
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: N thread_unknown mythcommandlineparser.cpp:2549 (ConfigureLogging) Enabled verbose msgs:  general
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: N thread_unknown logging.cpp:837 (logStart) Setting Log Level to LOG_INFO
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrompre handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Complété handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur de segmentation handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Abandon handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur du bus handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Exception en point flottant handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Instruction non permise handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Signal de temps-Réel 0 handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: N thread_unknown mythdirs.cpp:55 (InitializeMythDirs) Using runtime prefix = /usr
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: N thread_unknown mythdirs.cpp:68 (InitializeMythDirs) Using configuration directory = /home/arno/.mythtv
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I CoreContext mythcorecontext.cpp:231 (Init) Assumed character encoding: fr_FR.UTF-8
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: N CoreContext mythcontext.cpp:493 (LoadDatabaseSettings) Empty LocalHostName.
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I CoreContext mythcontext.cpp:501 (LoadDatabaseSettings) Using localhost value of salon
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I Logger logging.cpp:306 (run) Added logging to the console
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: N CoreContext mythcorecontext.cpp:1283 (InitLocale) Setting QT default locale to fr_US
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I CoreContext mythcorecontext.cpp:1316 (SaveLocaleDefaults) Current locale fr_US
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: E CoreContext mythlocale.cpp:108 (LoadDefaultsFromXML) No locale defaults file for fr_US, skipping
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I CoreContext main.cpp:703 (startup) Mythshutdown: --startup
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I CoreContext main.cpp:731 (startup) looks like we were started manually: 1
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2829]: I CoreContext main.cpp:738 (startup) Mythshutdown: --startup returned: 1
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: C thread_unknown mythcommandlineparser.cpp:2545 (ConfigureLogging) mythshutdown version: fixes/0.26 [v0.26.0-214-gce8f070] www.mythtv.org
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: C thread_unknown mythcommandlineparser.cpp:2547 (ConfigureLogging) Qt version: compile: 4.8.1, runtime: 4.8.1
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: N thread_unknown mythcommandlineparser.cpp:2549 (ConfigureLogging) Enabled verbose msgs:  general
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: N thread_unknown logging.cpp:837 (logStart) Setting Log Level to LOG_INFO
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I Logger logging.cpp:306 (run) Added logging to the console
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrompre handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Complété handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur de segmentation handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Abandon handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur du bus handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Exception en point flottant handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Instruction non permise handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Signal de temps-Réel 0 handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: N thread_unknown mythdirs.cpp:55 (InitializeMythDirs) Using runtime prefix = /usr
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: N thread_unknown mythdirs.cpp:68 (InitializeMythDirs) Using configuration directory = /home/arno/.mythtv
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I CoreContext mythcorecontext.cpp:231 (Init) Assumed character encoding: fr_FR.UTF-8
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: N CoreContext mythcontext.cpp:493 (LoadDatabaseSettings) Empty LocalHostName.
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I CoreContext mythcontext.cpp:501 (LoadDatabaseSettings) Using localhost value of salon
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: N CoreContext mythcorecontext.cpp:1283 (InitLocale) Setting QT default locale to fr_US
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I CoreContext mythcorecontext.cpp:1316 (SaveLocaleDefaults) Current locale fr_US
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: E CoreContext mythlocale.cpp:108 (LoadDefaultsFromXML) No locale defaults file for fr_US, skipping
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I CoreContext main.cpp:234 (getStatus) Mythshutdown: --status
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I SystemIOHandlerW system-unix.cpp:90 (run) Starting IO manager (write)
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I SystemIOHandlerR system-unix.cpp:90 (run) Starting IO manager (read)
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I SystemSignalManager system-unix.cpp:490 (run) Starting process signal handler
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I SystemManager system-unix.cpp:263 (run) Starting process manager
Jul 22 21:43:18 salon mythlogserver: mythshutdown[2841]: I Logger logging.cpp:447 (initialTimeout) Added logging to mythlogserver at TCP:35327
Jul 22 21:43:19 salon mythlogserver: mythshutdown[2841]: I CoreContext main.cpp:347 (getStatus) Mythshutdown: --status returned: 0
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: C thread_unknown mythcommandlineparser.cpp:2545 (ConfigureLogging) mythshutdown version: fixes/0.26 [v0.26.0-214-gce8f070] www.mythtv.org
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: C thread_unknown mythcommandlineparser.cpp:2547 (ConfigureLogging) Qt version: compile: 4.8.1, runtime: 4.8.1
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: N thread_unknown mythcommandlineparser.cpp:2549 (ConfigureLogging) Enabled verbose msgs:  general
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: N thread_unknown logging.cpp:837 (logStart) Setting Log Level to LOG_INFO
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I Logger logging.cpp:306 (run) Added logging to the console
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrompre handler
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Complété handler
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur de segmentation handler
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Abandon handler
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur du bus handler
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Exception en point flottant handler
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Instruction non permise handler
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Signal de temps-Réel 0 handler
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: N thread_unknown mythdirs.cpp:55 (InitializeMythDirs) Using runtime prefix = /usr
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: N thread_unknown mythdirs.cpp:68 (InitializeMythDirs) Using configuration directory = /home/arno/.mythtv
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I CoreContext mythcorecontext.cpp:231 (Init) Assumed character encoding: fr_FR.UTF-8
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: N CoreContext mythcontext.cpp:493 (LoadDatabaseSettings) Empty LocalHostName.
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I CoreContext mythcontext.cpp:501 (LoadDatabaseSettings) Using localhost value of salon
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: N CoreContext mythcorecontext.cpp:1283 (InitLocale) Setting QT default locale to fr_US
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I CoreContext mythcorecontext.cpp:1316 (SaveLocaleDefaults) Current locale fr_US
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: E CoreContext mythlocale.cpp:108 (LoadDefaultsFromXML) No locale defaults file for fr_US, skipping
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I CoreContext main.cpp:234 (getStatus) Mythshutdown: --status
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I SystemIOHandlerW system-unix.cpp:90 (run) Starting IO manager (write)
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I SystemSignalManager system-unix.cpp:490 (run) Starting process signal handler
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I SystemIOHandlerR system-unix.cpp:90 (run) Starting IO manager (read)
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I SystemManager system-unix.cpp:263 (run) Starting process manager
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I Logger logging.cpp:447 (initialTimeout) Added logging to mythlogserver at TCP:35327
Jul 22 21:44:10 salon mythlogserver: mythshutdown[2994]: I CoreContext main.cpp:347 (getStatus) Mythshutdown: --status returned: 0
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: C thread_unknown mythcommandlineparser.cpp:2545 (ConfigureLogging) mythshutdown version: fixes/0.26 [v0.26.0-214-gce8f070] www.mythtv.org
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: C thread_unknown mythcommandlineparser.cpp:2547 (ConfigureLogging) Qt version: compile: 4.8.1, runtime: 4.8.1
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: N thread_unknown mythcommandlineparser.cpp:2549 (ConfigureLogging) Enabled verbose msgs:  general
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: N thread_unknown logging.cpp:837 (logStart) Setting Log Level to LOG_INFO
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I Logger logging.cpp:306 (run) Added logging to the console
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrompre handler
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Complété handler
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur de segmentation handler
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Abandon handler
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur du bus handler
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Exception en point flottant handler
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Instruction non permise handler
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Signal de temps-Réel 0 handler
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: N thread_unknown mythdirs.cpp:55 (InitializeMythDirs) Using runtime prefix = /usr
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: N thread_unknown mythdirs.cpp:68 (InitializeMythDirs) Using configuration directory = /home/arno/.mythtv
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I CoreContext mythcorecontext.cpp:231 (Init) Assumed character encoding: fr_FR.UTF-8
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: N CoreContext mythcontext.cpp:493 (LoadDatabaseSettings) Empty LocalHostName.
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I CoreContext mythcontext.cpp:501 (LoadDatabaseSettings) Using localhost value of salon
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: N CoreContext mythcorecontext.cpp:1283 (InitLocale) Setting QT default locale to fr_US
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I CoreContext mythcorecontext.cpp:1316 (SaveLocaleDefaults) Current locale fr_US
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: E CoreContext mythlocale.cpp:108 (LoadDefaultsFromXML) No locale defaults file for fr_US, skipping
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I CoreContext main.cpp:234 (getStatus) Mythshutdown: --status
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I SystemManager system-unix.cpp:263 (run) Starting process manager
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I SystemSignalManager system-unix.cpp:490 (run) Starting process signal handler
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I SystemIOHandlerW system-unix.cpp:90 (run) Starting IO manager (write)
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I SystemIOHandlerR system-unix.cpp:90 (run) Starting IO manager (read)
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I Logger logging.cpp:447 (initialTimeout) Added logging to mythlogserver at TCP:35327
Jul 22 21:44:11 salon mythlogserver: mythshutdown[3019]: I CoreContext main.cpp:347 (getStatus) Mythshutdown: --status returned: 0
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: C thread_unknown mythcommandlineparser.cpp:2545 (ConfigureLogging) mythshutdown version: fixes/0.26 [v0.26.0-214-gce8f070] www.mythtv.org
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: C thread_unknown mythcommandlineparser.cpp:2547 (ConfigureLogging) Qt version: compile: 4.8.1, runtime: 4.8.1
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: N thread_unknown mythcommandlineparser.cpp:2549 (ConfigureLogging) Enabled verbose msgs:  general
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: N thread_unknown logging.cpp:837 (logStart) Setting Log Level to LOG_INFO
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I Logger logging.cpp:306 (run) Added logging to the console
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrompre handler
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Complété handler
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur de segmentation handler
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Abandon handler
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur du bus handler
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Exception en point flottant handler
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Instruction non permise handler
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Signal de temps-Réel 0 handler
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: N thread_unknown mythdirs.cpp:55 (InitializeMythDirs) Using runtime prefix = /usr
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: N thread_unknown mythdirs.cpp:68 (InitializeMythDirs) Using configuration directory = /home/arno/.mythtv
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I CoreContext mythcorecontext.cpp:231 (Init) Assumed character encoding: fr_FR.UTF-8
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: N CoreContext mythcontext.cpp:493 (LoadDatabaseSettings) Empty LocalHostName.
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I CoreContext mythcontext.cpp:501 (LoadDatabaseSettings) Using localhost value of salon
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: N CoreContext mythcorecontext.cpp:1283 (InitLocale) Setting QT default locale to fr_US
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I CoreContext mythcorecontext.cpp:1316 (SaveLocaleDefaults) Current locale fr_US
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: E CoreContext mythlocale.cpp:108 (LoadDefaultsFromXML) No locale defaults file for fr_US, skipping
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I CoreContext main.cpp:234 (getStatus) Mythshutdown: --status
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I SystemSignalManager system-unix.cpp:490 (run) Starting process signal handler
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I SystemIOHandlerR system-unix.cpp:90 (run) Starting IO manager (read)
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I SystemManager system-unix.cpp:263 (run) Starting process manager
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I SystemIOHandlerW system-unix.cpp:90 (run) Starting IO manager (write)
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I Logger logging.cpp:447 (initialTimeout) Added logging to mythlogserver at TCP:35327
Jul 22 21:44:12 salon mythlogserver: mythshutdown[3042]: I CoreContext main.cpp:347 (getStatus) Mythshutdown: --status returned: 0
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: C thread_unknown mythcommandlineparser.cpp:2545 (ConfigureLogging) mythshutdown version: fixes/0.26 [v0.26.0-214-gce8f070] www.mythtv.org
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: C thread_unknown mythcommandlineparser.cpp:2547 (ConfigureLogging) Qt version: compile: 4.8.1, runtime: 4.8.1
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: N thread_unknown mythcommandlineparser.cpp:2549 (ConfigureLogging) Enabled verbose msgs:  general
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: N thread_unknown logging.cpp:837 (logStart) Setting Log Level to LOG_INFO
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I Logger logging.cpp:306 (run) Added logging to the console
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Interrompre handler
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Complété handler
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur de segmentation handler
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Abandon handler
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Erreur du bus handler
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Exception en point flottant handler
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Instruction non permise handler
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Signal de temps-Réel 0 handler
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: N thread_unknown mythdirs.cpp:55 (InitializeMythDirs) Using runtime prefix = /usr
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: N thread_unknown mythdirs.cpp:68 (InitializeMythDirs) Using configuration directory = /home/arno/.mythtv
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I CoreContext mythcorecontext.cpp:231 (Init) Assumed character encoding: fr_FR.UTF-8
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: N CoreContext mythcontext.cpp:493 (LoadDatabaseSettings) Empty LocalHostName.
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I CoreContext mythcontext.cpp:501 (LoadDatabaseSettings) Using localhost value of salon
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: N CoreContext mythcorecontext.cpp:1283 (InitLocale) Setting QT default locale to fr_US
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I CoreContext mythcorecontext.cpp:1316 (SaveLocaleDefaults) Current locale fr_US
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: E CoreContext mythlocale.cpp:108 (LoadDefaultsFromXML) No locale defaults file for fr_US, skipping
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I CoreContext main.cpp:234 (getStatus) Mythshutdown: --status
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I SystemManager system-unix.cpp:263 (run) Starting process manager
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I SystemIOHandlerR system-unix.cpp:90 (run) Starting IO manager (read)
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I SystemSignalManager system-unix.cpp:490 (run) Starting process signal handler
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I SystemIOHandlerW system-unix.cpp:90 (run) Starting IO manager (write)
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I Logger logging.cpp:447 (initialTimeout) Added logging to mythlogserver at TCP:35327
Jul 22 21:44:42 salon mythlogserver: mythshutdown[3119]: I CoreContext main.cpp:347 (getStatus) Mythshutdown: --status returned: 0

quand je clique sur éteindre rien ne se passe dans les logs

quand je clique sur vérouille l'extinction "Mythshutdown: --status returned: 16"


En console j'ai fais un Mythshutdown: --shutdown ==> le pc s'est éteint de suite san mot de passe

arno@salon:~$ mythwelcome
2013-07-22 21:51:19.124484 C  mythwelcome version: fixes/0.26 [v0.26.0-214-gce8f070] www.mythtv.org
2013-07-22 21:51:19.124539 C  Qt version: compile: 4.8.1, runtime: 4.8.1
2013-07-22 21:51:19.124552 N  Enabled verbose msgs:  general
2013-07-22 21:51:19.124586 N  Setting Log Level to LOG_INFO
2013-07-22 21:51:19.125149 I  Added logging to the console
2013-07-22 21:51:19.126998 I  Setup Interrompre handler
2013-07-22 21:51:19.127046 I  Setup Complété handler
2013-07-22 21:51:19.127088 I  Setup Erreur de segmentation handler
2013-07-22 21:51:19.127123 I  Setup Abandon handler
2013-07-22 21:51:19.127157 I  Setup Erreur du bus handler
2013-07-22 21:51:19.127186 I  Setup Exception en point flottant handler
2013-07-22 21:51:19.127220 I  Setup Instruction non permise handler
2013-07-22 21:51:19.127263 I  Setup Signal de temps-Réel 0 handler
2013-07-22 21:51:19.127363 N  Using runtime prefix = /usr
2013-07-22 21:51:19.127395 N  Using configuration directory = /home/arno/.mythtv
2013-07-22 21:51:19.127574 I  Assumed character encoding: fr_FR.UTF-8
2013-07-22 21:51:19.128585 N  Empty LocalHostName.
2013-07-22 21:51:19.128603 I  Using localhost value of salon
2013-07-22 21:51:19.167158 N  Setting QT default locale to fr_US
2013-07-22 21:51:19.167314 I  Current locale fr_US
2013-07-22 21:51:19.167434 E  No locale defaults file for fr_US, skipping
2013-07-22 21:51:19.168068 I  Starting process manager
2013-07-22 21:51:19.172088 I  Starting process signal handler
2013-07-22 21:51:19.172301 I  Starting IO manager (write)
2013-07-22 21:51:19.172570 I  Starting IO manager (read)
2013-07-22 21:51:19.274752 I  ScreenSaverX11Private: DPMS is active.
2013-07-22 21:51:19.303031 N  Desktop video mode: 1920x1080 60.000 Hz
2013-07-22 21:51:19.359673 I  Added logging to mythlogserver at TCP:35327
cannot find CECInit
2013-07-22 21:51:19.531839 I  Loading fr translation for module mythfrontend
2013-07-22 21:51:19.543637 E  LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
			eno: Aucun fichier ou dossier de ce type (2)
2013-07-22 21:51:19.543689 E  JoystickMenuThread: Joystick disabled - Failed to read /home/arno/.mythtv/joystickmenurc
2013-07-22 21:51:19.559504 E  CECAdapter: Failed to load libcec.
2013-07-22 21:51:19.559544 I  UDPListener: Enabling
2013-07-22 21:51:19.566012 I  Binding to UDP 127.0.0.1:6948
2013-07-22 21:51:19.566136 I  Binding to UDP [::1]:6948
2013-07-22 21:51:19.566241 I  Binding to UDP [fe80::6ef0:49ff:fe0c:7df5%eth0]:6948
2013-07-22 21:51:19.616392 I  Using Frameless Window
2013-07-22 21:51:19.780491 I  Trying the OpenGL painter
2013-07-22 21:51:19.782684 I  OpenGL: Sync to VBlank is enabled (good!)
2013-07-22 21:51:19.886633 I  OpenGL1: Fragment program support available
2013-07-22 21:51:19.886693 I  OpenGL: OpenGL vendor  : NVIDIA Corporation
2013-07-22 21:51:19.886699 I  OpenGL: OpenGL renderer: GeForce 7600 GS/PCIe/SSE2/3DNOW!
2013-07-22 21:51:19.886704 I  OpenGL: OpenGL version : 2.1.2 NVIDIA 304.88
2013-07-22 21:51:19.886712 I  OpenGL: Max texture size: 4096 x 4096
2013-07-22 21:51:19.886718 I  OpenGL: Max texture units: 4
2013-07-22 21:51:19.886723 I  OpenGL: Direct rendering: Yes
2013-07-22 21:51:19.886729 I  OpenGL: PixelBufferObject support available
2013-07-22 21:51:19.886733 I  OpenGL: Initialised MythRenderOpenGL
2013-07-22 21:51:20.093668 I  MythCoreContext: Connecting to backend server: 127.0.0.1:6543 (try 1 of 1)
2013-07-22 21:51:20.094888 I  Using protocol version 75
2013-07-22 21:51:20.107694 I  Locking input devices
2013-07-22 21:51:20.914321 I  Locking input devices
2013-07-22 21:51:21.188890 N  mythshutdown --startup returned: 1
2013-07-22 21:51:21.194547 I  Locking input devices
2013-07-22 21:51:21.998336 I  Unlocking input devices
2013-07-22 21:51:21.998357 I  Unlocking input devices
2013-07-22 21:51:22.008698 I  Unlocking input devices
2013-07-22 21:51:22.162358 I  Locking input devices
2013-07-22 21:51:22.162369 I  UDPListener: Disabling
^[2013-07-22 21:52:06.758295 I  Locking input devices
2013-07-22 21:52:07.569643 I  UDPListener: Enabling
2013-07-22 21:52:07.569937 I  Binding to UDP 127.0.0.1:6948
2013-07-22 21:52:07.570103 I  Binding to UDP [::1]:6948
2013-07-22 21:52:07.570269 I  Binding to UDP [fe80::6ef0:49ff:fe0c:7df5%eth0]:6948
2013-07-22 21:52:07.570342 I  Unlocking input devices
2013-07-22 21:52:07.580597 I  Unlocking input devices
2013-07-22 21:52:14.848290 I  Locking input devices
2013-07-22 21:52:15.590938 I  Unlocking input devices
2013-07-22 21:52:19.136515 I  Locking input devices
2013-07-22 21:52:19.892194 I  Locking input devices
[sudo] password for arno: 2013-07-22 21:52:20.189758 I  Locking input devices

Quand je lance mythwelcome en console, si je veux éteindre mar mythwelcome il me demande le mot de passe de sudo

arno@salon:~$ ps -aef | grep myth
mythtv    2444     1  0 21:42 ?        00:00:02 /usr/bin/mythbackend --syslog local7 --user mythtv --daemon
mythtv    2468     1  1 21:42 ?        00:00:09 /usr/bin/mythlogserver --daemon --verbose general --loglevel info --quiet --syslog local7
arno      3640  3581  1 21:51 pts/3    00:00:02 mythwelcome
arno      3841  3640  0 21:52 pts/3    00:00:00 sh -c sudo /usr/bin/mythshutdown --shutdown --verbose general --loglevel info 
root      3842  3841  0 21:52 pts/3    00:00:00 sudo /usr/bin/mythshutdown --shutdown --verbose general --loglevel info
arno      3939  3878  0 21:53 pts/2    00:00:00 grep --color=auto myth
arno@salon:~$

On dirait qu'il y a un gros pb de droit???????

Hors ligne

#11 23/07/2013 12:53:28

Ookaze
Expert MythTVMembre de l'équipe de traduction et traducteur de la documentation.
Inscription : 15/01/2008
Messages : 884
Mythbox

Re : [0.26] MYTHWELCOME ne fait pas son boulot

J'avais prévenu que la configuration du tutoriel était fausse (en tout cas les images), il faudrait au moins mettre un avertissement.

D'une part, ne rentre pas de commande de reboot s'il n'y en a pas besoin (et à priori si tu n'utilises pas nvram, pas besoin).
Ca ne fonctionnera jamais de toutes façons car cette commande n'est pas dans le fichier sudoers.
D'autre part, ne lance pas de "sudo /.../mythshutdown", pour deux raisons :
- cela lance ton mythshutdown en root et va aller chercher la configuration définie par root avec possibilité qu'il n'y en ait pas ou qu'elle soit différente de celle de ton utilisateur mythtv, avec possibilité (faible) de passer des fichiers à root alors qu'ils devraient appartenir à mythtv;
- cela ne fonctionnera pas puisque /.../mythshutdown n'est pas dans le fichier sudoers, ce qui est une configuration correcte;

mythshutdown est lancé par l'utilisateur mythtv ou n'importe qui d'autre, il n'a pas besoin d'avoir les droits root, et c'est ensuite lui qui va faire des sudo pour appeler les fonctions qui en ont besoin, celles qui sont configurées dans le fichier sudoers, à partir du moment où l'utilisateur qui a lancé la commande est dans le groupe mythtv (selon ta configuration sudoers).
Bref, il ne faut pas mettre cette ligne "sudo /usr/bin/mythshutdown" dans la configuration de MythTV, juste "/usr/bin/mythshutdown".

Pour info, dans les dernières versions de sudo, il y a possibilité de placer un fichier dans /etc/sudoers.d, ce que j'ai fait, ça évite de modifier un fichier global.

Dernière modification par Ookaze (23/07/2013 12:55:03)

Hors ligne

#12 23/07/2013 21:25:41

arno
Membre
Inscription : 22/08/2010
Messages : 35

Re : [0.26] MYTHWELCOME ne fait pas son boulot

C'était précisé dans le tuto voici maConfig dans mythtv-setup

yyyy-MM-ddThh:mm:ss
/usr/bin/mythshutdown  --setwakeup $time
/usr/bin/mythshutdown --shutdown
/usr/bin/mythshutdown --check

Je pense que c'est bon, je ne vois pas ce qui cloche

Hors ligne

#13 23/07/2013 23:51:58

gilles74
Administrateur, expert MythTVExpert en configuration du DVB-SAT., développeurMembre de l'équipe de traduction, s'occupe de l'adaptation francophone de accuweather.
Inscription : 20/02/2008
Messages : 3 914
Mythbox

Re : [0.26] MYTHWELCOME ne fait pas son boulot

Est ce que tu n'aurais pas fait une erreur dans le fichier sudoers? Tu as déclaré les commandes pour le groupe "arno" mais est ce que ce groupe existe? sinon remplace la ligne par

arno localhost=/sbin/poweroff

Hors ligne

#14 24/07/2013 12:56:46

Ookaze
Expert MythTVMembre de l'équipe de traduction et traducteur de la documentation.
Inscription : 15/01/2008
Messages : 884
Mythbox

Re : [0.26] MYTHWELCOME ne fait pas son boulot

Il y a ça qui montre que tu as un "sudo /usr/bin/mythshutdown" quelque part :

arno@salon:~$ ps -aef | grep myth
mythtv    2444     1  0 21:42 ?        00:00:02 /usr/bin/mythbackend --syslog local7 --user mythtv --daemon
mythtv    2468     1  1 21:42 ?        00:00:09 /usr/bin/mythlogserver --daemon --verbose general --loglevel info --quiet --syslog local7
arno      3640  3581  1 21:51 pts/3    00:00:02 mythwelcome
arno      3841  3640  0 21:52 pts/3    00:00:00 sh -c sudo /usr/bin/mythshutdown --shutdown --verbose general --loglevel info 
root      3842  3841  0 21:52 pts/3    00:00:00 sudo /usr/bin/mythshutdown --shutdown --verbose general --loglevel info
arno      3939  3878  0 21:53 pts/2    00:00:00 grep --color=auto myth

Dernière modification par Ookaze (24/07/2013 12:57:13)

Hors ligne

#15 27/07/2013 07:07:27

arno
Membre
Inscription : 22/08/2010
Messages : 35

Re : [0.26] MYTHWELCOME ne fait pas son boulot

nft0.png
2rrd.png

%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/local/bin/setwakeup.sh, /sbin/poweroff, [b]/usr/bin/mythshutdown[/b]

Après moulte recherche j'abandonne j'écris /usr/bin/mythshutdown dans sudoers et tout fonctionne.

J'ai meme viré les deux ligne de mythtv-setup

/usr/bin/mythshutdown --shutdown
/usr/bin/mythshutdown --check

Le machin me demandait toujours un mot de passe pour éteindre??? à n'y rien comprendre???et en plus il s’éteignait???

Dernière modification par arno (27/07/2013 07:14:05)

Hors ligne

#16 28/07/2013 11:28:08

gilles74
Administrateur, expert MythTVExpert en configuration du DVB-SAT., développeurMembre de l'équipe de traduction, s'occupe de l'adaptation francophone de accuweather.
Inscription : 20/02/2008
Messages : 3 914
Mythbox

Re : [0.26] MYTHWELCOME ne fait pas son boulot

Il ne faut pas virer les 2 lignes de commande du setup

le check permet de ne pas éteindre si une tache de MythTV est en cours d'exécution.

et normalement la seconde est celle qui donne l'ordre d'extinction.

Et je te rassure, je n'ai jamais réussi à faire fonctionner l'extinction sans mettre mythshutdown dans le sudoer mais c'est peut être aussi parce que je lance mythbackend en root.

Et puis il y cela dans le tuto anglais de mythwelcome

If your mythtv user is not root you will need to run Mythshutdown with root privileges, see the section below on root privileges

Pourtant les explications d'Ookaze sont logiques ....

Hors ligne

Réponse rapide

Veuillez composer votre message et l'envoyer
Si vous êtes un être humain ne changez pas le contenu de ces deux champs.

Pied de page des forums

Propulsé par FluxBB

Webmasteur SnouF

Hébergé par Tuxfamily

Valid XHTML 1.0 Strict