matttbe, Monday 29 July 2013 à 00:45
|
|
Subscription date : 24 January 2009
Messages : 12573
|
@4javier: what's your problem exactly?
If you don't have any DM, I guess it's normal to have these warnings (not possible to easily switch between users)
About suspend and hibernate, it's possible that it's not supported by your system/kernel. What's the output messages produced by these commands: dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanPowerOff
dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanReboot
dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanHibernate
dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanHybridSleep
dbus-send --print-reply --system --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanSuspend |
4javier, Monday 29 July 2013 à 01:05
|
|
Subscription date : 15 October 2008
Messages : 67
|
The answer is always yes. In fact I can suspend without root privileges, by systemctl suspend. |
matttbe, Monday 29 July 2013 à 01:10
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Ok but are you using the development version? (now logind is used first instead of UPower)
('cairo-dock-bzr' and 'cairo-dock-plugins-bzr' have been updated but I don't know if the latest version is already available on AUR) |
4javier, Monday 29 July 2013 à 01:26
|
|
Subscription date : 15 October 2008
Messages : 67
|
No, I use 3.2.1. But if I'm not wrong, it worked 'til yesterdy. These are the packages upgraded in the last days
a52dec (0.7.4-6 -> 0.7.4-7)
glib2 (2.36.3-2 -> 2.36.3-3)
avahi (0.6.31-9 -> 0.6.31-10)
clutter-gst (2.0.4-2 -> 2.0.6-1)
colord (1.0.2-1 -> 1.0.2-2)
fontforge (20120731_b-3 -> 20120731_b-4)
gnome-themes-standard (3.8.1-1 -> 3.8.2-1)
libdatrie (0.2.5-1 -> 0.2.6-1)
libpng (1.6.2-3 -> 1.6.3-1)
libthai (0.1.18-1 -> 0.1.19-1)
libusbx (1.0.15-1 -> 1.0.16-1)
xcb-proto (1.8-1 -> 1.8-2)
libxcb (1.9.1-1 -> 1.9.1-2)
videoproto (2.3.1-2 -> 2.3.2-1)
pragha (1.1.2-1 -> 1.1.2-2)
twisted (13.0.0-1 -> 13.1.0-1)
d-feet (0.3.5-1 -> 0.3.6-1)
git (1.8.3.3-1 -> 1.8.3.4-1)
harfbuzz (0.9.18-1 -> 0.9.19-1)
linux (3.9.9-1 -> 3.10.2-1)
linux-headers (3.9.9-1 -> 3.10.2-1)
sdlmame (0.149.u0-1 -> 0.149.u1-1)
xorg-iceauth (1.0.5-1 -> 1.0.6-1)
gnome-themes-standard (3.8.2-1 -> 3.8.3-1)
gnutls (3.2.2-1 -> 3.2.2-2)
linux (3.10.2-1 -> 3.10.3-1)
linux-headers (3.10.2-1 -> 3.10.3-1)
mkinitcpio-busybox (1.20.2-1 -> 1.21.1-1)
fontforge (20120731_b-4 -> 20120731_b-5)
meld (1.7.3-1 -> 1.7.4-1)
python2-docutils (0.10-1 -> 0.11-1)
libcacard (1.5.2-1)
qemu (1.5.1-2 -> 1.5.2-1)
I can't see anything related.
EDIT
Hmmmmmmmm... just tried to access org.freedesktop.UPower through d-feet, and it goes in timeout. But systemctl status shows upwerd service loaded and active. Really strange. |
4javier, Monday 29 July 2013 à 01:51
|
|
Subscription date : 15 October 2008
Messages : 67
|
OMG. Sorry... It just needed to restart the service.
I'm really sorry for you've been wasting your time.
Just to let these posts make a sense: from next major realease will I be able to get rid of pm-utils and upower? Have I understood correctly?
P.S.
Revision Control PKGBUILD on AUR (bzr, svn, git etc,) are made to download always a fresh copy of the repo's branch of interest. So everytime you compile from that PKGBUILD you'll have the up-to-date version of the sources, with no need of any change by the PKGBUILD maintainer. |
matttbe, Monday 29 July 2013 à 16:12
|
|
Subscription date : 24 January 2009
Messages : 12573
|
No problem
Just to let these posts make a sense: from next major realease will I be able to get rid of pm-utils and upower? Have I understood correctly? The current development version uses logind first (via DBus) then if there is a problem (e.g. logind not available) Upower/ConsoleKit is used (if it's available) and then the fallback method (a custom command).
Revision Control PKGBUILD on AUR (bzr, svn, git etc,) are made to download always a fresh copy of the repo's branch of interest. So everytime you compile from that PKGBUILD you'll have the up-to-date version of the sources, with no need of any change by the PKGBUILD maintainer. Yes but the current Cairo-Dock packages on Aur (cairo-dock-bzr and cairo-dock-plugins-bzr) use an older method and it seems it install a old revision (and there are other problems). You can find a new version there bg_topic.php?t=7069
@lesebas: do you have the right to update Cairo-Dock Bzr pkgbuild files? |
4javier, Monday 29 July 2013 à 22:46
|
|
Subscription date : 15 October 2008
Messages : 67
|
Sorry, but my french really sucks, so I can't understand if PKGBUILDs proposed by lesebas work or not. If there are some problems so far, I think I can give a hand. But please, if needed ask me for that in english |
matttbe, Monday 29 July 2013 à 23:51
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Sorry
They are working but now I'm not sure that the latest version is available.
@lesebas: is it possible to share the latest version here? |
lesebas, Tuesday 30 July 2013 à 06:46
|
|
Subscription date : 24 November 2008
Messages : 298
|
Hello, here are the PKGBUILD that work (I don't have rights to update the packages on AUR, I've requested for that):
core :
pkgname=cairo-dock-bzr
pkgver=3.2.99
pkgrel=1
pkgbranch=cairo-dock-core
pkgdesc="Light eye-candy fully themable animated dock"
arch=('i686' 'x86_64')
url="http://www.glx-dock.org/index.php"
license=('GPL')
depends=('curl' 'dbus-glib' 'gtk3' 'librsvg')
makedepends=('cmake')
optdepends=('cairo-dock-plugins: Plugins for Cairo-Dock', 'gnome-session: Cairo-Dock session')
options=('!libtool')
conflicts=('cairo-dock' 'cairo-dock-svn')
provides=('cairo-dock')
source=(bzr+lp:cairo-dock-core)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgbranch"
bzr revno
}
build() {
cd "${srcdir}"/$pkgbranch
if [[ -d build ]]; then
rm -rf build
fi
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -Denable-desktop-manager=ON
make
}
package() {
cd "${srcdir}"/$pkgbranch/build
make DESTDIR="${pkgdir}" install
}
plugins :
pkgname=cairo-dock-plugins-bzr
pkgver=3.2.99
pkgrel=1
pkgbranch=cairo-dock-plug-ins
pkgdesc="Plugins for Cairo-Dock"
url="https://launchpad.net/cairo-dock"
license=('GPL')
arch=('i686' 'x86_64')
depends=('cairo-dock-bzr')
makedepends=('cmake' 'alsa-lib' 'gnome-menus' 'gvfs' 'libetpan' 'libexif' 'libpulse' 'libxklavier' 'libzeitgeist' 'lm_sensors' 'python' 'python2' 'upower' 'vte3')
optdepends=('alsa-lib: Sound Control, Sound Effects applets'
'fftw: Impulse applet'
'gnome-menus: Applications Menu applet'
'gtk-sharp-2: Mono API'
'gvfs: GIO-GVFS integration - open files with the right application'
'libetpan: Mail applet'
'libexif: Slider applet'
'libical: Clock applet'
'libpulse: Impulse applet'
'libxklavier: Keyboard Indicator applet'
'zeitgeist: Recent Events applet'
'lm_sensors: System Monitor applet'
'ndesk-dbus-glib: Mono API'
'python: Python 3 API'
'python2: Python 2 API'
'ruby: Ruby API'
'upower: Logout, PowerManager applets'
'vte3: Terminal applet'
'webkitgtk3: Weblets applet')
provides=('cairo-dock-plugins')
options=('!libtool')
source=(bzr+lp:cairo-dock-plug-ins)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgbranch"
bzr revno
}
build() {
cd $pkgbranch
if [[ -d build ]]; then
rm -rf build
fi
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "${srcdir}"/$pkgbranch/build
make DESTDIR="${pkgdir}" install
}
@Mattbe :
With rev 2905 shutdown options are available for all users but it works only with the first user logged, on the second here are the messages :
(Il s'éteindra automatiquement dans 59 secondes))
warning : (/home/sebastien/cairo-dock-plugins/src/cairo-dock-plug-ins/logout/src/applet-logout.c:_logind_action:691)
Logind error: Operation not permitted
And Gmail applet still not working...
[sebastien@Vulpus cairo-dock-bzr]$ find /usr/lib -name CDApplet.py
/usr/lib/python2.7/site-packages/CDApplet.py
/usr/lib/python3.3/site-packages/CDApplet. |
matttbe, Tuesday 30 July 2013 à 08:29
|
|
Subscription date : 24 January 2009
Messages : 12573
|
With rev 2905 shutdown options are available for all user but it works only with the first user, on the second here are the messages : Extras permissions are needed but your DE doesn't display any dialogue.
@Fabounet: should we display a message (you can't do that because another session is open, please close it first) or is there another way?
And Gmail applet still not working... With which error message? Does it work with the stable version? |
lesebas, Tuesday 30 July 2013 à 08:59
|
|
Subscription date : 24 November 2008
Messages : 298
|
With which error message? Does it work with the stable version?
Yes it was working. Actually the plugin is not included in the package, I have uplodaded it on the website. The problem is that I don't have acces to the account configuration menu.
I've just notice something strange in the message from applet logout :
warning : (/home/sebastien/cairo-dock-plugins/src/...
It calls the function from the package building directory as I was on the second user session. May I miss something in the PKGBUILD to install the package in the right directory? |
matttbe, Tuesday 30 July 2013 à 10:07
|
|
Subscription date : 24 January 2009
Messages : 12573
|
lesebas : I've just notice something strange in the message from applet logout : warning : (/home/sebastien/cairo-dock-plugins/src/...
It calls the function from the package building directory as I was on the second user session. May I miss something in the PKGBUILD to install the package in the right directory?
No, it's normal because cd_warning fonctions (or cd_debug, cd_message and cd_error) display the path of the file (+ the line number) where these functions are called in the source code (better for the debugging ) |
lesebas, Tuesday 30 July 2013 à 12:36
|
|
Subscription date : 24 November 2008
Messages : 298
|
Pourrais-tu éventuellement ajouter cette info dans le wiki (ici et/ou là où tu as vu l'astuce pour lxdm?)
J'ai préparé ça par exemple... mais je le met ou dans le wiki? (si c'est OK je traduirai en anglais)
Lxde
Utiliser lxdm pour changer d’utilisateur
Lxdm (le display manager de lxde) ne permet pas de switcher vers un autre utilisateur, il existe cependant une commande pour rappeler l’écran d’accueil :
Vous pouvez renseigner cette commande dans le champ « specific action to switch user » de l’applet log-out. Cela aura pour effet de vous renvoyer vers le greeter lorsque vous cliquerez sur un autre utilisateur.
Switch avancé :
Ci-joint 2 petits scripts qui permettent de contourner le problème :
init_user_list.sh :
list_user="/tmp/list_user_connected"
user_tty=$(sudo fgconsole)
user_name=$(eval whoami)
if test -e $list_user
then
sed -i "/$user_name/d" $list_user
echo -e $user_tty" "$user_name\\r >> $list_user
else
echo -e $user_tty" "$user_name\\r > $list_user
chmod g+rw $list_user
chmod o+rw $list_user
fi
glx_dock_swap_user.sh :
#!/bin/bash
list_user="/tmp/list_user_connected"
user_to_swap=$(grep "$1" "$list_user")
if (("$?" > 0 ))
then
lxdm -c USER_SWITCH
else
longueur=$(expr index "$user_to_swap" " " )
((longueur = longueur - 1))
terminal=$(expr substr "$user_to_swap" 1 "$longueur")
sudo chvt "$terminal"
fi
Enregistrez ces 2 fichiers par exemple dans /usr/share/lxdm (ou tout autre dossier accessible en lecture aux utilisateurs).
Le premier fichier est à ajouter dans les applications à lancer à l’ouverture de la session graphique de chaque utilisateur. Le second est la commande à mettre dans le champ « specific action to switch user » de l’applet log-out.
Attention pour que cela fonction vous devez autoriser l’exécution des commandes « sudo fgconsole » et « sudo chvt » sans mot de passe. Pour cela il faut modifier le fichier de config sudoers (visudo). Exemple :
…
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL) ALL, NOPASSWD:/usr/bin/chvt, /usr/bin/fgconsole
%user_switch ALL= (ALL) NOPASSWD: /usr/bin/chvt, /usr/bin/fgconsole
…
Ici l’administrateur (qui fait partie du groupe wheel) a les droits et les autres utilisateurs devront être ajoutés au groupe « user_switch »
Attention en théorie cette modification amène un trou de sécurité… sachant que les commandes « fgconsole » et « chvt » nécessitent les droits root uniquement en exécution depuis X11 mais pas depuis un terminal… à vous de voir. |
lesebas, Tuesday 30 July 2013 à 13:20
|
|
Subscription date : 24 November 2008
Messages : 298
|
|
matttbe, Tuesday 30 July 2013 à 14:17
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Oui, ça semble pas mal et très complet, merci!
Peut être juste dire qu'il faut les droits robot pour éditer les fichiers dans /sur/share? (ou montrer une commande qui utilise l'éditeur de texte par défaut? mais d'un autre côté, ce n'est pas un truc pour les débutants )
Et pour la localisation, dans le wiki d'archlinux et ajouter un lien ici dans les problèmes récurrent? |
lesebas, Tuesday 30 July 2013 à 17:21
|
|
Subscription date : 24 November 2008
Messages : 298
|
matttbe : With rev 2905 shutdown options are available for all user but it works only with the first user, on the second here are the messages : Extras permissions are needed but your DE doesn't display any dialogue.
@Fabounet: should we display a message ( you can't do that because another session is open, please close it first) or is there another way? :)
... Je me permet un p'tit up vu que le message est dans loin dans le fil du post... |
lesebas, Wednesday 31 July 2013 à 15:00
|
|
Subscription date : 24 November 2008
Messages : 298
|
J'ai mis à jour la doc:
ici
et
here
|
matttbe, Wednesday 31 July 2013 à 15:35
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Merci!
Reste plus qu'à attendre la réponse de Fabounet pour voir ce qu'il faut faire lorsque l'on n'a pas les permissions pour éteindre le pc! |
lesebas, Wednesday 31 July 2013 à 17:13
|
|
Subscription date : 24 November 2008
Messages : 298
|
Y'a quand même un truc bizarre, en fait je n'arrivais pas à monter les partitions avec thunar, c'est parce que je n'avais pas installé d'agent d'identification :
http://wiki.archlinux.fr/Polkit#Agent_d.27authentification
Depuis que je l’ai fait (polkit-gnome) ça marche mais par contre si je le fais depuis une deuxième session ça m'affiche la fenêtre pour entrer le mot de passe sur le bureau du 1er utilisateur connecté (pas très pratique! )
En fait depuis le début je contourne l'obstacle, mais le problème est que logind ne voit qu'une seule session X:
[root@Vulpus sebastien]# loginctl
SESSION UID USER SEAT
1 1001 stephanie seat0
1 sessions listed.
[root@Vulpus sebastien]#
Le détail ici : http://forums.archlinux.fr/post119588.html#p119588
peut-être un élément de réponse ici... à intégrer dans xfce intégration?:
https://bbs.archlinux.org/viewtopic.php?pid=1247658#p1247658 |
matttbe, Wednesday 31 July 2013 à 17:45
|
|
Subscription date : 24 January 2009
Messages : 12573
|
Depuis que je l’ai fait (polkit-gnome) ça marche mais par contre si je le fais depuis une deuxième session ça m'affiche la fenêtre pour entrer le mot de passe sur le bureau du 1er utilisateur connecté (pas très pratique! ) Oui mais c'est logique: tu te connectes à ton pc, tu ouvres des applications puis tu mets le pc en veille. Quelqu'un d'autre va sur le pc, il se connecte avec son profile. Si ce dernier veut éteindre l'ordi, il va quitter ta session en cours avec toutes les applications ouvertes. Du coup, soit le root force l'extinction, soit l'autre utilisateur.
Sinon, je ne connais pas assez logind pour dire s'il y a un soucis avec ; après tout, il est encore en développement.
EDIT: j'ai ajouté un message (dans une bulle de dialogue) si logind renvoi une erreur |
|