Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tips and tricks for ConsoleKit, PolicyKit, and udev helpers
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4, 5 ... 14, 15, 16  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Fri Jan 28, 2011 9:10 am    Post subject: Reply with quote

It's funny to see all that error messages. If you don't need a KDE session handling (keep inactive user sessions like in Windows), you won't need all that stuff. My system is working perfectly for ages without:
  • pam
  • policykit
  • consolekit
  • hal

For a system which is used most time for only one desktop user, all that stuff isn't necessary, really. 8)
Back to top
View user's profile Send private message
ad_meis
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 120
Location: Tuscany, Italy

PostPosted: Fri Jan 28, 2011 1:37 pm    Post subject: Reply with quote

Dear all,
I followed the instructions at the beginning of the thread. But my results are far from satisfying.
I cannot reboot/suspend/hibernate nor mounting usb stick from Thunar.
For some reasons (and I think this is a relevant issue), my consolekit does not show as running.
Code:
thkpd xxxxx # /etc/init.d/consolekit status
 * status: stopped
thkpd xxxxx # /etc/init.d/consolekit start
 * Starting ConsoleKit daemon ...
 * start-stop-daemon: /usr/sbin/console-kit-daemon is already running                                                                                                         [ !! ]
 * ERROR: consolekit failed to start
thkpd xxxxx # /etc/init.d/consolekit restart
 * Starting ConsoleKit daemon ...
 * start-stop-daemon: /usr/sbin/console-kit-daemon is already running                                                                                                         [ !! ]
 * ERROR: consolekit failed to start

But when I do
Code:
rc-update -v show
           consolekit |                  default

The kernel setting should be fine
Code:
thkpd xxxxx # cat /usr/src/linux/.config|grep AUDITSY
CONFIG_AUDITSYSCALL=y
thkpd xxxx # cat /usr/src/linux/.config|grep USB_SUSPEND
CONFIG_USB_SUSPEND=y
thkpd xxxxx # cat /usr/src/linux/.config|grep CONFIG_IDE 
# CONFIG_IDE is not set
# CONFIG_IDEAPAD_ACPI is not set

Is the last one ok, even if it is not =n (in case, how to set it =n?)
Finally, also note that
Code:
thkpd xxxxx # pkaction -h |grep upower
org.freedesktop.upower.hibernate
org.freedesktop.upower.qos.cancel-request
org.freedesktop.upower.qos.request-latency
org.freedesktop.upower.qos.request-latency-persistent
org.freedesktop.upower.qos.set-minimum-latency
org.freedesktop.upower.suspend

thkpd xxxxx # ck-list-sessions
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat2'
   session-type = ''
   active = FALSE
   x11-display = ':0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = FALSE
   on-since = '2011-01-28T10:26:54.293581Z'
   login-session-id = ''

And the last done as normal user (not root)
Code:
xxxxx@thkpd ~ $ xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 1.0.3
With policykit support
With network manager support
With DPMS support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Can spin down hard disks: True
Authorized to suspend: False
Authorized to hibernate: False
Authorized to shutdown: False
Authorized to spin down hard disks: False
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True


many thanks in advance for any suggestions....
(what/where should I look at...?)
Back to top
View user's profile Send private message
ad_meis
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 120
Location: Tuscany, Italy

PostPosted: Fri Jan 28, 2011 1:53 pm    Post subject: Reply with quote

I found this suggestions here: https://forums.gentoo.org/viewtopic-t-830904-start-0.html

Remove stale pid file

Does it make sense for my case? And what are pid file? How to delete them?
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Jan 28, 2011 2:46 pm    Post subject: Reply with quote

ad_meis wrote:

thkpd xxxxx # pkaction -h |grep upower
thkpd xxxxx # ck-list-sessions


None of this should be run as root, so the output you provided is meaningless.
Back to top
View user's profile Send private message
ad_meis
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 120
Location: Tuscany, Italy

PostPosted: Fri Jan 28, 2011 3:11 pm    Post subject: Reply with quote

Oh, sorry. Here it is.

Quote:
xxxxx@thkpd ~ $ pkaction -h |grep upower
org.freedesktop.upower.hibernate
org.freedesktop.upower.qos.cancel-request
org.freedesktop.upower.qos.request-latency
org.freedesktop.upower.qos.request-latency-persistent
org.freedesktop.upower.qos.set-minimum-latency
org.freedesktop.upower.suspend

xxxx@thkpd ~ $ ck-list-sessions
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = FALSE
on-since = '2011-01-28T14:08:08.831327Z'
login-session-id = ''
Back to top
View user's profile Send private message
v_2e
n00b
n00b


Joined: 28 Dec 2008
Posts: 21

PostPosted: Fri Jan 28, 2011 8:16 pm    Post subject: Reply with quote

I have followed the recipe from the first post step by step too, but unfortunately still cannot get the "Restart" and "Stop" buttons working in Xfce.
And the "ck-list-sessions" gives the following:
Code:
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat2'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = ''
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-28T19:42:55.952450Z'
   login-session-id = ''
Session2:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat3'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = FALSE
   on-since = '2011-01-28T19:42:56.346674Z'
   login-session-id = ''

The session is not active as one may see. So, looks like there are some more problems with it.
Back to top
View user's profile Send private message
Fenril
Apprentice
Apprentice


Joined: 16 May 2009
Posts: 209

PostPosted: Fri Jan 28, 2011 9:23 pm    Post subject: Reply with quote

I have tried all tips and still cannot mount/umount usb correctly as user. But i have maybe a clue :

As i said, when i put an usb drive, Xfce/Thunar detects well media as it shows an icon for my key, but when i try to browse or mount the key it doesn't work and doesn't show any error. However, after doing these stuffs, the gvfs-gdu-volume-monitor process as it's shown by xfce4-taskmanager uses ~10% CPU time. Then, when i kill this process, a dialog is shown saying :

Quote:

Failed on mounting volume.
DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus).


Last edited by Fenril on Fri Jan 28, 2011 10:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Odysseus
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 250
Location: Miami, FL. I miss San Francisco!!!

PostPosted: Fri Jan 28, 2011 10:14 pm    Post subject: Reply with quote

I just got through updating my system to KDE-4.6.0 without HAL following the generic guide in the first post and all is working wonderfully!!!

I first followed closely the steps ssuominen outlined for removing hal. I made sure my kernel had the necessary features enabled. Then I unmasked and installed KDE.

I'm psyched!!!

This was one of the easiest major transitions I ever done in my nearly 8 eight years of running Gentoo.

I just want to personally thank ssuominen for his excellent post and guidance on helping us all make this transition.

Thanks to all the devs who have been working to make this a success!!!
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sat Jan 29, 2011 7:26 am    Post subject: Reply with quote

v_2e wrote:

Code:

   login-session-id = ''

The session is not active as one may see. So, looks like there are some more problems with it.


login-session-id shouldn't be empty, so you propably missed the first post in this thread suggesting to enable CONFIG_AUDIT_SYSCALL in kernel.
that is *really* required to get /proc/<self pid>/sessionid which ConsoleKit then reads, and uses to set login-session-id to proper value.

although, you can propably get similar output by leaving 'ck-launch-session' out from the startup command... that's also covered in the first post for Xfce
Back to top
View user's profile Send private message
ad_meis
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 120
Location: Tuscany, Italy

PostPosted: Sat Jan 29, 2011 2:38 pm    Post subject: Reply with quote

Sorry to step in, but I am still stuck (no usb, no restart/suspend etc).'
I have the correct kernel config, as shown in your post

Code:
thkpd xxxxx # cat /usr/src/linux/.config|grep AUDITSY
CONFIG_AUDITSYSCALL=y
thkpd xxxx # cat /usr/src/linux/.config|grep USB_SUSPEND
CONFIG_USB_SUSPEND=y
thkpd xxxxx # cat /usr/src/linux/.config|grep CONFIG_IDE
# CONFIG_IDE is not set
# CONFIG_IDEAPAD_ACPI is not set


So what do I miss? Any hints? Where else should I look at?
Back to top
View user's profile Send private message
grumblebear
Apprentice
Apprentice


Joined: 26 Feb 2008
Posts: 202

PostPosted: Sat Jan 29, 2011 5:00 pm    Post subject: Reply with quote

If you still have problems with shutdown, reboot, etc. and you use startxfce4 you should read through the whole thread, as the first post is somewhat misleading.

In short, don't use 'ck-launch-session startxfce4' but copy /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/xinitrc and change the line 'xfce4-session' to 'ck-launch-session xfce4-session' then simply go with startxfce4.
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sat Jan 29, 2011 6:00 pm    Post subject: Reply with quote

grumblebear wrote:
If you still have problems with shutdown, reboot, etc. and you use startxfce4 you should read through the whole thread, as the first post is somewhat misleading.

In short, don't use 'ck-launch-session startxfce4' but copy /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/xinitrc and change the line 'xfce4-session' to 'ck-launch-session xfce4-session' then simply go with startxfce4.


No, don't do that. That's exactly what Xfce upstream removed from the xinitrc when it broke 'stuff. The first post is still correct.
Back to top
View user's profile Send private message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Sat Jan 29, 2011 6:24 pm    Post subject: Reply with quote

Ok I attempted these steps but sadly with no success :(


first question:

Will these tips work successfully if one has both thunar-volman and xfce4-mount-plugin installed? Or should only one of those two be installed?


second issue:

1) In order for me to be able to have the "minimum maintainer versions" of the packages that the original post specified, I had to unmask a few of them in /etc/portage/package.keywords.

2) I installed both polkit-gnome and lxpolkit, Do I have to have both of them( I am running Xfce4 4.8) or should I only keep one? I also recompiled my kernel (gentoo sources 2.6.36-r5) with the correct kernel settings and booted into the new kernel.

3) After I set up my USE flags as specified in the original post, I ran emerge --update --deep --newuse world and updated my system (I checked for broken dependencies using revdep-rebuild)

This is what my /etc/slim.conf looks like:

Code:
cat /etc/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 -br -deferglyphs 16

# 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
login_cmd           exec ck-launch-session dbus-launch /bin/bash -login /usr/share/slim/Xsession %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
sessionstart_cmd   /usr/bin/sessreg -a -l :0.0 %user
sessionstop_cmd     /usr/bin/sessreg -d -l :0.0 %user

# 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
# Alternatively, read available sessions from a directory:
sessiondir           /etc/X11/Sessions

# Executed when pressing F11 (requires media-gfx/imagemagick for import)
# Alternative is media-gfx/scrot. See Gentoo bug 252241 for more info.
screenshot_cmd      import -window root /slim.png
#screenshot_cmd      scrot /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        simone

# 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          no


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

# Lock file, /etc/init.d/xdm expects slim.pid
lockfile            /var/run/slim.pid

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



and this is my /etc/pam.d/system-login looks like:

Code:
$ cat /etc/pam.d/system-login
auth      required   pam_tally2.so onerr=succeed
auth      required   pam_shells.so
auth      required   pam_nologin.so
auth      include      system-auth
             
account      required   pam_access.so
account      required   pam_nologin.so
account      include      system-auth
account      required   pam_tally2.so onerr=succeed
 
password   include      system-auth
 
session         optional        pam_loginuid.so
session      required   pam_env.so
session      optional   pam_lastlog.so
session      include      system-auth
session      optional   pam_ck_connector.so
session      optional   pam_motd.so motd=/etc/motd
session      optional   pam_mail.so
 


this is my ~/.xinitrc:

Code:
exec ck-launch-session startxfce4


and my /etc/X11/Sessions/Xfce4:
Code:
ck-launch-session startxfce4


I also reemerge consolekit with --noconfmem as one of the posts in this thread specified

Yet, no matter what I do. i still get this when i run ck-list-sessions as user (even as root):

Code:
$ ck-list-sessions
Session4:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat5'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = FALSE
   on-since = '2011-01-29T10:43:52.359350Z'
   login-session-id = ''
Session5:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat6'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = FALSE
   on-since = '2011-01-29T10:43:52.401847Z'
   login-session-id = ''
Session3:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat4'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = ''
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-29T10:43:52.323843Z'
   login-session-id = ''


I dont know why it just showed session 3 4 and 5, but the first 2 sessions output looked pretty much the same (i.e. active = FALSE on all of them).

The other strange thing is that, after I ran these steps, my soundcard stopped working and whenever I boot into the system, the boot up messages indicate that the sound card driver cannot be loaded. I even tried to rebuild alsa-utils and then run alsaconf but it gives me the same error message. I am not too worried about that as of now, I want to focus on fixing this udev issue first.

I still cannot mount/unmount as user (by right clicking or by going to thunar) nor can I shutdown/reboot/hibernate/sleep using the Xfce4 Menu. Any suggestions? I need help :(
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sat Jan 29, 2011 6:32 pm    Post subject: Reply with quote

xsilentmurmurx wrote:

x11-display-device = '/dev/tty7'
x11-display-device = '/dev/tty7'
login-session-id = ''
login-session-id = ''
login-session-id = ''


- Missing CONFIG_AUDITSYSCALL=y option in kernel. Read the first post for required kernel options, I hate to repeat myself :(
- Also you need only *one* ck-launch-session, that's propably why /dev/tty7 appears *twice* now.
- And you shouldn't even be able to install lxpolkit and polkit-gnome on same system due to blockers... Should have only one of them installed.


Last edited by SamuliSuominen on Sat Jan 29, 2011 6:44 pm; edited 2 times in total
Back to top
View user's profile Send private message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Sat Jan 29, 2011 6:42 pm    Post subject: Reply with quote

ssuominen wrote:
xsilentmurmurx wrote:

login-session-id = ''
login-session-id = ''
login-session-id = ''


Missing CONFIG_AUDITSYSCALL=y option in kernel. Read the first post for required kernel options, I hate to repeat myself :(


actually . its not missing..

Code:
# cat /usr/src/linux/.config|grep AUDITSYS
CONFIG_AUDITSYSCALL=y
Back to top
View user's profile Send private message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Sat Jan 29, 2011 6:53 pm    Post subject: Reply with quote

ssuominen wrote:
xsilentmurmurx wrote:

x11-display-device = '/dev/tty7'
x11-display-device = '/dev/tty7'
login-session-id = ''
login-session-id = ''
login-session-id = ''


- Missing CONFIG_AUDITSYSCALL=y option in kernel. Read the first post for required kernel options, I hate to repeat myself :(
- Also you need only *one* ck-launch-session, that's propably why /dev/tty7 appears *twice* now.
- And you shouldn't even be able to install lxpolkit and polkit-gnome on same system due to blockers... Should have only one of them installed.


ok ill try this :)


ok I did what you recommended and now I have this:

Code:
$ ck-list-sessions
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat2'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = ''
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-29T19:09:10.913892Z'
   login-session-id = ''
Session2:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat3'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = FALSE
   on-since = '2011-01-29T19:09:11.092768Z'
   login-session-id = ''


and once again my CONFIG_AUDITSYSCALL is set to yes
Code:

$ cat /usr/src/linux/.config|grep AUDITSYS
CONFIG_AUDITSYSCALL=y


Last edited by xsilentmurmurx on Sat Jan 29, 2011 7:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sat Jan 29, 2011 7:10 pm    Post subject: Reply with quote

OK, I've edited and cleaned up the first post now per (correct) suggestions in this thread.
Back to top
View user's profile Send private message
elyes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2008
Posts: 121
Location: Calvados Normandie France

PostPosted: Sun Jan 30, 2011 10:04 am    Post subject: Reply with quote

@ssuominen thank you :D

Code:
login_cmd    exec ck-launch-session startxfce4

in my /etc/slim.conf fix the problem :)

Best Regards,
Elyes
Back to top
View user's profile Send private message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Sun Jan 30, 2011 2:01 pm    Post subject: Reply with quote

Does this look correct to you?

Code:
$ ck-list-sessions
Session2:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat1'
   session-type = ''
   active = TRUE
   x11-display = ':0.0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-30T13:56:08.222478Z'
   login-session-id = '1'
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat2'
   session-type = ''
   active = FALSE
   x11-display = ':0.0'
   x11-display-device = ''
   display-device = ''
   remote-host-name = ''
   is-local = TRUE
   on-since = '2011-01-30T13:56:08.022247Z'
   login-session-id = '1'


i got that after following all of the steps ( i set up the kernel and masked hal and set the correct USE flags etc, during my initial base system installation) and then emerged xorg-server xfce4-meta and those packages that you mentioned should be emerged.

I followed the rest of the instructions and i placed ck-session in /etc/slim.conf. Now when I ran ck-list-sessions as user, the output i pasted in the beginning part of my reply, is what was outputted by the terminal after running that command.


Also I have another issue, when I boot into the system and DBUS is booting up, I get this message that says "unknown group plugdev mentioned in message bus configuration" something of that nature. How do i go about resolving that?
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sun Jan 30, 2011 2:16 pm    Post subject: Reply with quote

xsilentmurmurx wrote:
Does this look correct to you?

Code:
$ ck-list-sessions
Session2:
   active = TRUE
   x11-display-device = '/dev/tty7'
   is-local = TRUE
   on-since = '2011-01-30T13:56:08.222478Z'
   login-session-id = '1'


Also I have another issue, when I boot into the system and DBUS is booting up, I get this message that says "unknown group plugdev mentioned in message bus configuration" something of that nature. How do i go about resolving that?


Yes, that output looks correct. The session is active for /dev/tty7.

As for that dbus problem, you could:

$ grep -r plugdev /etc/dbus-1/*

And find out what is referring to it. If it's a file that belongs to some package you have installed, then that package should have created the plugdev group for you.
If it's something you have added yourself at some point, then you need to create the plugdev group yourself.
Back to top
View user's profile Send private message
letsgetlost
n00b
n00b


Joined: 30 Jan 2011
Posts: 1

PostPosted: Sun Jan 30, 2011 2:46 pm    Post subject: Reply with quote

musv wrote:
It's funny to see all that error messages. If you don't need a KDE session handling (keep inactive user sessions like in Windows), you won't need all that stuff. My system is working perfectly for ages without:
  • pam
  • policykit
  • consolekit
  • hal

For a system which is used most time for only one desktop user, all that stuff isn't necessary, really. 8)


Don't you need to have policykit daemon running in order to use media (auto) mounting in KDE? And, won't packages that support policykit detect policykit at buildtime and setup dbus rules to utilize policykit (hence, no need to configure anything, the only thing you have to do is starting this policykit daemon)?
Just asking because I am using a "one man" desktop and I'll be interested to remove unuseful packagesfrom my system.

Maurizio
Back to top
View user's profile Send private message
ad_meis
Tux's lil' helper
Tux's lil' helper


Joined: 17 Feb 2006
Posts: 120
Location: Tuscany, Italy

PostPosted: Sun Jan 30, 2011 7:04 pm    Post subject: Reply with quote

Dear all,
I have followed the most recent guidelines of the threads, as of Sun Jan 30 19:56:01 CET 2011, but still I cannot mount USB, cannot start consolekit, cannot suspend hibernate, etc etc. I could do all these things before the "HAL-ectomy"
My kernel settings are as suggested, package.use are ok, and all the rest.
Still I cannot start or restart consolekit. What is wrong with it? I cannot really get any idea where to look at....
Code:
thkpd xxxxx # /etc/init.d/consolekit start
 * Starting ConsoleKit daemon ...
 * start-stop-daemon: /usr/sbin/console-kit-daemon is already running                                                                                                         [ !! ]
 * ERROR: consolekit failed to start

My ck-list-sessions reads as follows
Code:
xxxxx@thkpd ~ $ ck-list-sessions
Session1:
   unix-user = '1000'
   realname = '(null)'
   seat = 'Seat2'
   session-type = ''
   active = FALSE
   x11-display = ':0'
   x11-display-device = '/dev/tty7'
   display-device = ''
   remote-host-name = ''
   is-local = FALSE
   on-since = '2011-01-30T18:51:29.617384Z'
   login-session-id = ''

Can anybody please help? Any hints is welcome (where should I start to make some checks)
In the hope that it could be useful I paste my emerge --info
Code:
thkpd marco # emerge --info
Portage 2.1.9.25 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 30 Jan 2011 09:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/  ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo  ftp://ftp.unina.it/pub/linux/distributions/gentoo "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 acl acpi alsa atlas audiofile avi berkdb bitmap-fonts blas bzip2 cdda cddb cdr cli consolekit cracklib crypt cups curl cxx dbus device-mapper doc dri dv dvd dvdr emacs f77 ffmpeg flac foomaticdb fortran gd gdbm gdu gif glut gpm gtk gtk2 iconv imagemagick ipv6 java jpeg lapack laptop lcms live mjpeg mmx modules mpeg mudflap ncurses nls nptl nptlonly ntp ntponly ogg oggvorbis openmp pam pcre pdflib perl png policykit pppd python quicktime readline session slang sse sse2 ssl startup-notification symlink sysfs tcltk tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs wmf x86 xemacs xface xorg xscreensaver xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
andrewthomas
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2010
Posts: 93

PostPosted: Sun Jan 30, 2011 7:42 pm    Post subject: Reply with quote

I have done the steps in the first post, yet I cannot get k3b to find any optical device.

When I put a blank disc in the drive it is auto-mounted properly.

I am using gnome, but I prefer to use k3b.

To get k9copy to work, I was able to configure it to use /dev/sr0 with a label of /mnt/dvd after I made a symbolic link from /mnt/dvd > /dev/sr0.

I guess it is really not that big of a deal, since I can use brasero, but I would like to get k3b to work too.
Back to top
View user's profile Send private message
nichocouk
Guru
Guru


Joined: 10 Mar 2005
Posts: 585
Location: Glasgow

PostPosted: Sun Jan 30, 2011 10:49 pm    Post subject: Reply with quote

ad_meis wrote:

Still I cannot start or restart consolekit. What is wrong with it? I cannot really get any idea where to look at....
Code:
thkpd xxxxx # /etc/init.d/consolekit start
 * Starting ConsoleKit daemon ...
 * start-stop-daemon: /usr/sbin/console-kit-daemon is already running                                                                                                         [ !! ]
 * ERROR: consolekit failed to start


I believe I've had that and this was solved after rebooting the system.
Also, have you run
Code:
# emerge -a --depclean
and
Code:
# revdep-rebuild -i -a

Wild guesses, but sometimes they work (at least for me)!
_________________
nichocouk

L'Etat, c'est moi.
Back to top
View user's profile Send private message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Sun Jan 30, 2011 10:59 pm    Post subject: Reply with quote

ssuominen wrote:
xsilentmurmurx wrote:
Does this look correct to you?

Code:
$ ck-list-sessions
Session2:
   active = TRUE
   x11-display-device = '/dev/tty7'
   is-local = TRUE
   on-since = '2011-01-30T13:56:08.222478Z'
   login-session-id = '1'


Also I have another issue, when I boot into the system and DBUS is booting up, I get this message that says "unknown group plugdev mentioned in message bus configuration" something of that nature. How do i go about resolving that?


Yes, that output looks correct. The session is active for /dev/tty7.

As for that dbus problem, you could:

$ grep -r plugdev /etc/dbus-1/*

And find out what is referring to it. If it's a file that belongs to some package you have installed, then that package should have created the plugdev group for you.
If it's something you have added yourself at some point, then you need to create the plugdev group yourself.



Here is my output for grep -r plugdev /etc/dbus-1/*

Code:
# grep -r plugdev /etc/dbus-1/*
/etc/dbus-1/system.d/NetworkManager.conf:        <policy group="plugdev">



what Should i do to resolve the issue?

also is it ok that my output for ck-list-sessions includes both the output for session 1 and session 2? I thought if i only had ck-launch-session in one file, that it would display only the output for 1 session and not session 1 and 2? Why is it displaying both of those sessions output?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, 4, 5 ... 14, 15, 16  Next
Page 4 of 16

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum