Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sleepy time -- Fixed itself sometime ago
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
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Dec 10, 2010 4:46 pm    Post subject: Sleepy time -- Fixed itself sometime ago Reply with quote

I'm running a amd64~ system. Gnome was working fine after the latest upgrade, but after a recent reboot, something wants to open things in sleep mode. Thus you can start firefox for example, but there is nothing to see as it is sleeping. The problem only occurs in terminal windows that are open initially. Say the user that I log in as is "u". then su u password does not help, but su -u password gets things in a mode where all works! Some icons on my toolbar work others don't.

After more messing around, firefox will start from the original windows and from the toolbar, but others don't. There seems to be no reason for the change of heart on the part of firefox. To focus on one program, emacs has the same problem but despite the power of emacs does not correct itself. Of course I can always use it my logging in with su - u, but this seems a bit of a pain, and I can't even open a new terminal window from the toolbar.

I had thought early in the game that perhaps the problem here https://forums.gentoo.org/viewtopic-t-855808.html might have something to do with the problem, and it might. But the warning messages I've been getting have disappeared after
Quote:
cd /usr/lib64/gtk-2.0/modules
ln -s libgnomesegvhandler.so libgnomebreakpad.so
as suggested in the topic linked to. Any guesses? Thanks,
Fred

Later edit -- I had thought a reboot fixed things, but the fix was temporary. Things only work if I log in from a window from which I am already logged in, in which case I can start programs from the command line.

Still later -- It seems that after a reboot, all always works as it should. Then after some indefinite time things go south, but it seems go bad in different ways. For example sometimes I can't start emacs from a terminal window, sometimes some launchers on the tool bar work some don't. Sometimes when things don't run from a terminal window, doing an su - <same user> gets things working again. Thus right now emacs will start, I can launch firefox, but not a terminal from the toolbar. For some reason rhythmbox has become a zombie and an attempt to start another opens it in sleep mode which is not useful.


Last edited by Fred Krogh on Wed Mar 13, 2013 2:33 am; edited 5 times in total
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Thu Dec 30, 2010 7:39 pm    Post subject: Reply with quote

I'm hoping someone will have an idea on this problem. I've just done an emerge -e world using gcc-4.5.2 in the hope that this would make a change, but still after running for a bit, I can't start emacs in a terminal window without first doing an su - <same user> in that window. Any wild ideas out there? Thanks,
Fred
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Dec 30, 2010 9:47 pm    Post subject: Reply with quote

Some of your problems are caused by a tighter dbus integration, which makes 'su -' a necessity to reset
dbus vars. However, this should not affect the actively logged in user.

Unless you have a consolekit problem.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Dec 31, 2010 12:12 am    Post subject: Reply with quote

Thanks -- a little background is nice. Thanks to your comment, I discovered that sudo /etc/init.d/dbus restart, also gets things working. Since everything has been recently compiled I don't see why I should be the only one with a consolekit problem. Is anyone else out there seeing this kind of weirdness?
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Fri Dec 31, 2010 1:53 am    Post subject: Reply with quote

It seems that rhythmbox will not start under by primary user no matter what I do. The error message may suggest something to someone.
Quote:
(rhythmbox:3701): GVFS-RemoteVolumeMonitor-WARNING **: invoking IsSupported() failed for remote volume monitor with dbus name org.gtk.Private.GduVolumeMonitor: org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/libexec/gvfs-gdu-volume-monitor received signal 6
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Dec 31, 2010 2:49 am    Post subject: Reply with quote

Well, there's also the mysterious bug 297483.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sat Jan 08, 2011 8:10 pm    Post subject: Reply with quote

It appears that my problem was due to starting dbus. Deleted that using rc-config and the system appears to be working the way it should. Hald does start dbus, so dbus is still running.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sat Jan 08, 2011 8:14 pm    Post subject: Reply with quote

Well, that depends on your definition - there's no point of hal in Gnome anymore.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sat Jan 08, 2011 8:38 pm    Post subject: Reply with quote

Thanks, I removed hald, and all still seems to work. Something is starting dbus, which I presume is what is desired.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Thu Jan 20, 2011 10:06 pm    Post subject: Reply with quote

I was premature in thinking this has been resolved. It seems that the first sign of a problem is that the mouse moves, but clicking on something does nothing. Then if I use <cntl><alt><F1> to get a console window and then return to X, the mouse action has been done, and all appears normal, but certain things no longer work. The work around of changing user (to the same user) in a terminal window seems to make it possible to do most of the things that I want to do. I'm still looking for ideas. Thanks,
Fred
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sun Feb 06, 2011 9:13 pm    Post subject: Reply with quote

I believe that I have pinpointed the place when things go bad. All seems to work normally until I click on the gnome icon (the foot print) that is on the tool/menu bar. Perhaps this suggests where the problem is?? (Not to me!)
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Feb 07, 2011 12:39 am    Post subject: Reply with quote

Pastebin your xorg.conf and check ck-list-sessions.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Mon Feb 07, 2011 1:16 am    Post subject: Reply with quote

My xorg.conf (comments and blank lines removed)
Quote:
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "glx"
EndSection
Section "Files"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
FontPath "/usr/share/fonts/Speedo/"
EndSection
Section "ServerFlags"
Option "AllowEmptyInput" "false"
Option "AutoAddDevices" "false"
Option "blank time" "10" # Blank the screen after 10 minutes (Fake)
Option "standby time" "15" # Turn off screen after 15 minutes (DPMS)
Option "suspend time" "20" # Full suspend after 20 minutes
Option "off time" "30" # Turn off after half an hour
EndSection
Section "InputClass"
Identifier "Keyboard1"
Driver "evdev"
Option "AutoRepeat" "500 30"
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
Option "XkbVariant" ",querty"
Option "XkbRules" "xorg"
MatchIsKeyboard "on"
EndSection
Section "InputClass"
Identifier "Mouse1"
Driver "evdev"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5" # adding this enables the scroll wheel
MatchIsPointer "on"
EndSection
Section "Monitor"
Identifier "Samsung T260HD"
ModelName "Generated by Another Modeline Calculator, amlc -c"
HorizSync 30-81
VertRefresh 56-75
DisplaySize 543 339 # Aspect ratio 1.600:1
# Custom modes
Modeline "1920x1200" 194.16 1920 2056 2248 2536 1200 1201 1204 1276 +HSync -VSync # 194.16 MHz, 76.56 kHz, 60.00 Hz
Modeline "960x600" 97.08 960 1024 1120 1264 600 601 604 640 doublescan # 97.08 MHz, 76.80 kHz, 60.00 Hz
EndSection # Samsung T260HD
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
Driver "vga"
EndSection
Section "Device"
Identifier "NVidia GForce FX"
Driver "nvidia"
Option "NoLogo" "true"
Option "RenderAccel" "true"
Option "backingstore" "true"
# Insert Clocks lines here if appropriate
EndSection
Section "Screen"
Identifier "Screen 1"
Device "NVidia GForce FX"
Monitor "Samsung T260HD"
DefaultDepth 24
Subsection "Display"
Depth 8
Modes "1920x1200" "960x600"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "1920x1200" "960x600"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1920x1200" "960x600"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Option "AutoAddDevices" "off"
Screen "Screen 1"
EndSection

cl-list-sessions (after the problem has already occurred)
Quote:
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 = '2011-02-06T20:22:11.771771Z'
login-session-id = ''

Many thanks for looking at this.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Tue Feb 08, 2011 7:19 pm    Post subject: Reply with quote

I think I have this fixed. A close look at ~/.xsession-errors suggested a problem with dbus. After
Quote:
chmod o+x /usr/libexec/dbus-daemon-launch-helper
things all seem to be working.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Mon Feb 28, 2011 5:37 pm    Post subject: Reply with quote

This problem returned after emerging an update to dbus, although it took a long time after the update for the problem to show up. The fix above worked again.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Mon Feb 28, 2011 6:58 pm    Post subject: Reply with quote

I posted a bug report here: https://bugs.gentoo.org/show_bug.cgi?id=356877 and got this response
Quote:
As you may have suspected, it's not a correct solution.
That executable has sticky bit set, so you've opened a large security hole.

Most likely, it's either a permission problem on the services or perhaps a
consolekit related issue. Maybe your user wasn't added to correct groups too.

Anyway, you're better off asking support questions on the forum.


So I'm back to wondering just what to try next. Any ideas? Thanks,
Fred
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Mon Feb 28, 2011 7:09 pm    Post subject: Reply with quote

I should have added the list of groups that my user is not in, that root is in. Is it possible that putting my user in one of these groups: "root, bin, daemon, dialout", would make a difference?
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Feb 28, 2011 7:45 pm    Post subject: Reply with quote

Fred Krogh wrote:
Is it possible that putting my user in one of these groups: "root, bin, daemon, dialout", would make a difference?

Unlikely. These groups shouldn't matter in this case.
Which exactly services are the problem and what is their dbus config ?
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Mon Feb 28, 2011 7:51 pm    Post subject: Reply with quote

The icon for gnome-terminal when clicked on opens the terminal in sleep mode. Firefox has the same problem. Emacs starts in sleep mode if I start it in a terminal window. All of these things used to work if I did su - "same user" in a terminal window. But this last time around it wouldn't open a new user claiming that the password was wrong. I could get to the user I wanted if I got to it through a root window. Does this suggest anything? Thanks.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Feb 28, 2011 9:27 pm    Post subject: Reply with quote

Honestly, I've got no idea what "opens <whatever> in sleep mode" means.

How do you start X server anyway ?
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Mon Feb 28, 2011 9:36 pm    Post subject: Reply with quote

I'd have no idea either if it wasn't happening to me! Start firefox (for example) nothing happens. With the alias
alias psg='ps -eo "%p %u %a" -o s | grep -v grep | grep -v "ps -eo" | grep -i',
psg firefox shows firefox was started and is now sleeping. Pehaps there was a way to wake it up, but I didn't find it.

X starts with no problem, and in fact when I have had problems they only showed up after I clicked on the gnome footprint on the tool bar. I have DISPLAYMANAGER="gdm", in /etc/conf.d/xdm.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Feb 28, 2011 10:00 pm    Post subject: Reply with quote

Does anything interesting gets printed if you start one of those "sleepy" apps via terminal ?
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Mon Feb 28, 2011 10:03 pm    Post subject: Reply with quote

No nothing is printed.
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