Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] no suspend / hibernate (with xfce4-power-manager)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ad_meis
Tux's lil' helper
Tux's lil' helper


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

PostPosted: Sun Mar 04, 2012 10:36 pm    Post subject: [SOLVED] no suspend / hibernate (with xfce4-power-manager) Reply with quote

Dear all,

After a reboot on my laptop, I cannot anymore suspend or hibernate, which were working fine before.
I use xfce4 and xfce4-power-manager. I hope you can give me some useful hint.

This is the output of ck-list-sessions (which I think should be ok)
Quote:
Session3:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2012-03-04T22:38:42.823029Z'
login-session-id = '13'
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2012-03-04T22:38:42.536059Z'
login-session-id = '13'
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat2'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = ''
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2012-03-04T22:38:42.463006Z'
login-session-id = '13'



This is my /etc/make.conf/

Quote:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.


GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.datapipe.net/gentoo http://gentoo.inode.at/ http://gd.tuwien.ac.at/opsys/linux/gentoo/
http://gentoo.modulix.net/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://mirror.netcologne.de/gentoo/ "

SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"


USE="-hal -kde -minimal -gnome -esd -qt4 -arts -apm \
alsa dvd cups foomaticdb mmx sse sse2 lock session thunar \
consolekit device-mapper pam policykit udev gdbm gif gtk ntp ntponly gtk2 jpeg \
mpeg mjpeg pdflib png python X readline multilib slang truetype xface \
f77 dvdr cdr cdda cddb ogg doc oggvorbis vorbis avi dv real live java a52 xvid \
xemacs emacs win32codecs acpi bitmap-fonts truetype-fonts type1-fonts \
atlas blas lapack tiff imagemagick ffmpeg wmf bzip2 tcltk flac theora pcre \
audiofile curl glut lcms usb gd gdu dbus startup-notification xscreensaver \
symlink laptop"



INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="intel"


Last edited by ad_meis on Thu Mar 08, 2012 1:48 pm; edited 1 time in total
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 Mar 04, 2012 10:39 pm    Post subject: Reply with quote

I notice that recompiling xfce-extra/xfce4-power-manager-1.0.10-r1. I get the following warning:
Quote:
* Messages for package xfce-extra/xfce4-power-manager-1.0.10-r1:

* CONFIG_TIMER_STATS: is not set when it should be.
* Please check to make sure these options are set correctly.
* Failure to do so may cause unexpected problems.

Is it something relevant? I could not find how to set it...
Back to top
View user's profile Send private message
WvR
Apprentice
Apprentice


Joined: 03 Mar 2011
Posts: 200
Location: Tsuruga, Japan

PostPosted: Sun Mar 04, 2012 11:34 pm    Post subject: Reply with quote

CONFIG_TIMER_STATS is a kernel option Symbol: TIMER_STATS [=y]

Code:

  │ Type  : boolean                                                           
  │ Prompt: Collect kernel timers statistics                           
  │   Defined at lib/Kconfig.debug:302                                 
  │   Depends on: DEBUG_KERNEL [=y] && PROC_FS [=y]   
  │   Location:                               
  │     -> Kernel hacking


You need to compile a new kernel, with CONFIG_TIMER_STATS set to "yes", and hopefully that will solve your problems.

Note: I used XFCE4 and the xfce4-power-manager on my laptop. Hibernate never worked; suspend worked but only if I clicked the icon from the "power off menu". I set "suspend when lid closed", and also "suspend after XXX minutes idle", but the computer never suspended automatically.
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: Mon Mar 05, 2012 5:47 pm    Post subject: Reply with quote

I set the kernel correctly
Quote:
grep CONFIG_TIME /usr/src/linux/.config
CONFIG_TIMERFD=y
CONFIG_TIMER_STATS=y


but I did not get my functioning suspend yet!

Any other ideas?
Back to top
View user's profile Send private message
WvR
Apprentice
Apprentice


Joined: 03 Mar 2011
Posts: 200
Location: Tsuruga, Japan

PostPosted: Tue Mar 06, 2012 10:58 am    Post subject: Reply with quote

Hey, that is not supposed to happen. Are you sure that the kernel you are using is in fact the same kernel as in /usr/src/linux ? /usr/src/linux is a symlink. Please check 'uname -a' and make sure that the running kernel is the same as what /usr/src/linux is pointing to.
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: Tue Mar 06, 2012 6:01 pm    Post subject: Reply with quote

Actually, it is happaning...
Quote:
uname -a
Linux t420 3.0.0-gentoo #1 SMP Mon Mar 5 10:48:19 CET 2012 x86_64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz GenuineIntel GNU/Linux

and
Quote:
ls -lht /usr/src/linux
lrwxrwxrwx 1 root root 16 Mar 5 13:31 /usr/src/linux -> linux-3.0-gentoo

So those two thing seems correct.
If there are any ideas out there please let me know... (not having the suspend function is frustrating)

thanks
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Tue Mar 06, 2012 6:26 pm    Post subject: Reply with quote

Looking at first post of this thread. You have 2 open ConsoleKit sessions for /dev/tty7. This is not right. There should only be one visible.

Forgot to restore the 'nox11' param to /etc/pam.d/system-login after updating whatever Display Manager you are using to a new version with internal ConsoleKit support?

This is covered by the updated first post of this thread:

https://forums.gentoo.org/viewtopic-t-858965-start-0.html

And this kernel option everyone keeps talking about, is not related to suspending at all, it's more about getting wakeup timing information from CPUs. Sure, you should fix it regardless, but it's unrelated to the topic of this thread.
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: Tue Mar 06, 2012 6:40 pm    Post subject: Reply with quote

ssuominen wrote:
Looking at first post of this thread. You have 2 open ConsoleKit sessions for /dev/tty7. This is not right. There should only be one visible.

Forgot to restore the 'nox11' param to /etc/pam.d/system-login after updating whatever Display Manager you are using to a new version with internal ConsoleKit support?

This is covered by the updated first post of this thread:

https://forums.gentoo.org/viewtopic-t-858965-start-0.html

And this kernel option everyone keeps talking about, is not related to suspending at all, it's more about getting wakeup timing information from CPUs. Sure, you should fix it regardless, but it's unrelated to the topic of this thread.


Yes, it must be the 'nox11' parameter. I had not restored, I did not know I was supposed to.
Can you please post the the correct line of /etc/pam.d/system-login with the 'nox11' parameter?
(I would not know where to put it)

thanks in advance
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Tue Mar 06, 2012 6:44 pm    Post subject: Reply with quote

ad_meis wrote:
ssuominen wrote:
Looking at first post of this thread. You have 2 open ConsoleKit sessions for /dev/tty7. This is not right. There should only be one visible.

Forgot to restore the 'nox11' param to /etc/pam.d/system-login after updating whatever Display Manager you are using to a new version with internal ConsoleKit support?

This is covered by the updated first post of this thread:

https://forums.gentoo.org/viewtopic-t-858965-start-0.html

And this kernel option everyone keeps talking about, is not related to suspending at all, it's more about getting wakeup timing information from CPUs. Sure, you should fix it regardless, but it's unrelated to the topic of this thread.


Yes, it must be the 'nox11' parameter. I had not restored, I did not know I was supposed to.
Can you please post the the correct line of /etc/pam.d/system-login with the 'nox11' parameter?
(I would not know where to put it)

thanks in advance


Code:

$ sudo emerge --noconfmem pambase
$ grep nox11 /etc/pam.d/system-login
session      optional   pam_ck_connector.so nox11


Then also remember to remove any custom ck-launch-session stuff you might have in /etc/slim.conf, or perhaps in your homedirectory in .xinitrc, or any other location.
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: Tue Mar 06, 2012 10:02 pm    Post subject: Reply with quote

I haven't solved yet.
I re-emerged (as you suggested) pambase. And doing that wrote the right /etc/pam.d/system-login (with nox11)
I removed .xinitrc (which contained 'exec ck-launch-session startxfce4').
However I cannot suspend yet.
I get two sessions only, rather than three as it was at the beginning of the thread. This is an improvement, but did not solve the problem
Quote:
ck-list-sessions
Session1:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2012-03-06T22:46:20.202735Z'
login-session-id = '13'
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2012-03-06T22:46:20.546340Z'
login-session-id = '13'

What else should look at?
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Tue Mar 06, 2012 10:06 pm    Post subject: Reply with quote

You simply have to remember where you have put the extra ck-launch-session to ensure only 1 session for tty7 gets visible.
There are way, way, too many places to put it, to start listing here.

Good luck! I'm out.
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: Thu Mar 08, 2012 9:00 am    Post subject: Reply with quote

Can somebody be so nice to suggest some of these places?

I never experimented anything weird on gentoo, I have just followed the installation guide the first time and then updated according to the news that were listed (e.g. eselect read news) or to solve emerge problems.

Thanks for the help of the community
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: Thu Mar 08, 2012 10:53 am    Post subject: Reply with quote

One more precise question:

I have found that I have ck-launch-session inside /home/user/.xsession, is that correct? Or I should drop it also from there? (but then how does it knows what to start?)

Quote:
grep -R "ck-launch-session" /home/user/.*
/home/marco/.xsession:exec ck-launch-session startxfce4


Thanks in advance
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Thu Mar 08, 2012 11:09 am    Post subject: Reply with quote

ad_meis wrote:
One more precise question:

I have found that I have ck-launch-session inside /home/user/.xsession, is that correct? Or I should drop it also from there? (but then how does it knows what to start?)

Quote:
grep -R "ck-launch-session" /home/user/.*
/home/marco/.xsession:exec ck-launch-session startxfce4


Thanks in advance


Remove that one. Leave only 'exec startxfce4'. The Display Managers open the ConsoleKit session now, since they have native support.
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: Thu Mar 08, 2012 1:48 pm    Post subject: Reply with quote

Thanks! It did work
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
Page 1 of 1

 
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