xfce4-power-manager

180 views
Skip to first unread message

chodzikman

unread,
May 14, 2012, 5:50:39 AM5/14/12
to archl...@googlegroups.com
Witam, jakiś czas temu zaktualizowałem system i od tego momentu mam problem z prawami power-managera w xfce, np. gdy zamykam klapę (zgodnie z ustawieniami powinien wtedy wykonać suspend to RAM), po otwarciu klapy dostaje tylko informacje "Not authorized", zniknęły (są widoczne, ale nie dostępne) opcje wyłączenia, ponownego uruchomienia, wstrzymania i hibernacji, zostało tylko wylogowanie, męczę się z tym długo, powody widzę 2: aktualizowany był xfce i slim, jednak nie mogę dojść do źródła problemu, jeśli sam chce wywołać wyłączenie systemu etc, to i tak wpisuje polecenie (i działa), natomiast problem jest gdy zostawie netbooka i sobie pójdę - zamiast po wyczerpaniu baterii się zahibernować, to będzie włączony tak długo aż napięcie na baterii spadnie tak bardzo, że zasilanie zostanie odcięte - nie zależy mi na xfce4-power-manager, najchętniej bym go wyrzucił, ale potrzebuję w zamian czegoś co będzie w tle kontrolować poziom baterii i wykrywać zamknięcie klapy (i wtedy wstrzymywać system), macie jakiś pomysł?

dragonn

unread,
May 14, 2012, 5:54:29 AM5/14/12
to archl...@googlegroups.com
W dniu 14.05.2012 11:50, chodzikman pisze:
Problem mi wygląda na braku uprawień poprzez to że używasz slim i pewnie
do startx .xinitrc (pokaż zawartość tego pliku).

Krzysztof Warzecha

unread,
May 14, 2012, 6:08:09 AM5/14/12
to archl...@googlegroups.com
W dniu 14 maja 2012 11:50 użytkownik chodzikman <chodz...@gmail.com> napisał:
> Witam, jakiś czas temu zaktualizowałem system i od tego momentu mam problem
> ...

> sam chce wywołać wyłączenie systemu etc, to i tak wpisuje polecenie (i działa),
Jakie polecenie wpisujesz?

> czegoś co będzie w tle kontrolować poziom baterii i wykrywać zamknięcie klapy (i wtedy wstrzymywać system), macie jakiś pomysł?
acpid i /etc/acpi/handler.sh. Ale najpierw rozwiąż ten problem.

Za obsługę hibernacji, zarządzania energią, i takich tam w xfce
odpowiedzialne jest to:
https://wiki.archlinux.org/index.php/ConsoleKit. Slim to uruchomi
automatycznie (wg. wiki). W tle musi już działać dbus. Sprawdź czy po
zalogowaniu ck-list-sessions zwraca coś sensownego (powinien zwrócić:
"active = TRUE").

Michal Chodzikiewicz

unread,
May 22, 2012, 4:56:57 PM5/22/12
to archl...@googlegroups.com
w .xinitrc mam standardowo
#!/bin/sh

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec ck-launch-session dbus-launch startxfce4

zamiana kolejności ck-launch i dbus nie przyniosła żadnych zmian

[chodzik@chodzik-mini ~]$ ck-list-sessions | grep active
active = TRUE
active = FALSE
active = FALSE
active = FALSE

z czego pierwsza to x11, druga to tty7, a pozostałe 2 to moje automatyczne logowanie i uruchamianie programów w tty1 i tty2 (cmus i rtorrent)

mnie to wygląda na ok... macie tu jeszcze slim.conf

[chodzik@chodzik-mini ~]$ cat slim.conf
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
# numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd some command
# sessionstop_cmd some command

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            xfce4,icewm,wmaker,blackbox

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user        chodzik

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login          yes


# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       default

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log


W dniu poniedziałek, 14 maja 2012 12:08:09 UTC+2 użytkownik hiciu napisał:

piotryna

unread,
May 23, 2012, 10:47:04 AM5/23/12
to archl...@googlegroups.com
Po którejś z kolei aktualizacji też mi się troszkę popitoliło w systemie. Pomogła mi zmiana w .xinitrc

exec dbus-launch --exit-with-session startxfce4

i śmiga wszystko jak wcześniej ;)

2012/5/22 Michal Chodzikiewicz <chodz...@gmail.com>
Reply all
Reply to author
Forward
0 new messages