This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Session locks by itself

Tags: None
(comma "," separated)
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS

Session locks by itself

Wed Mar 11, 2009 1:44 pm
I'm using kde 4.1.3 on openSUSE 11.1 64 bits on a laptop. Since last week, the session randomly locks (the screen become black and I need to insert my user password to un-lock it) with a notification from the power manager saying that the screen is locked.
I tried removing the kde4 folder and for some days everything went ok, but everything restarted again. Someone suggest me to stop krunner, and doing so the lock stop, but I still get the notifications. Looking another thread with plasma problems, I issued the following commands:
kquitapp krunner
ps aux | grep krunner
krunner &

and this is the result:
kquitapp krunner
~> ps aux | grep krunner
myuser 6831 0.1 1.4 415944 29964 ? Sl 13:22 0:03 krunner
myuser 7224 0.0 0.0 16116 1000 pts/2 S+ 14:17 0:00 grep krunner
~> krunner &
[1] 7227
[here it is when the problem occurs]~> X Error: BadAccess (attempt to access private resource denied) 10
Major opcode: 2 (X_ChangeWindowAttributes)
Resource id: 0x4200006
krunner_lock(7240) KxkbCore::settingsRead: Kxkb is disabled, exiting...


If I run a program using krunner (in this case, kwrite), I get

findServiceByDesktopPath: not found
Object::connect: No such slot PowerDevilRunner::updateStatus()()
Object::connect: (sender name: 'KDirWatch-2')
Object::connect: (receiver name: 'PowerDevil')
Object::connect: No such slot PowerDevilRunner::updateStatus()()
Object::connect: (sender name: 'KDirWatch-2')
Object::connect: (receiver name: 'PowerDevil')
Object::connect: No such slot PowerDevilRunner::updateStatus()()
Object::connect: (sender name: 'KDirWatch-2')
Object::connect: (receiver name: 'PowerDevil')
findServiceByDesktopPath: not found


When the problem occurs again (and again, and again... only the Resource id change):

[1]+ Done krunner
~>
~> X Error: BadAccess (attempt to access private resource denied) 10
Major opcode: 2 (X_ChangeWindowAttributes)
Resource id: 0x4400006
krunner_lock(7262) KxkbCore::settingsRead: Kxkb is disabled, exiting...


It does not happens all the time. Some days everything is ok but other days is almost impossible to work, specially when running with batteries: instead of a locked screen, I get a warning that suspend to ram will be performed in 10 seconds... something is wrong with the openSUSE's powerdevil backport, I guess... but everything went without problems for two months! Why all this mess now?
Need I upgrade to kde 4.2.1? I don't like factory repos...
Thanks

Last edited by RGB on Wed Mar 11, 2009 1:46 pm, edited 1 time in total.


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS

Session locks by itself

Wed Mar 11, 2009 10:13 pm
Well, I installed 4.2.1 after a burst of rage and now everything is (seems) ok.


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS

RE: Session locks by itself

Fri Mar 13, 2009 9:27 pm
Well, err... I unsolved this because it happened again... Looking at the powerdevil profiles, I've seen that the default settings tell the system to lock the screen if there is no activity for 15 minutes in the case of "performance" profile, or to suspend to ram in the case of "powersave" profiles. It seems that sometimes powerdevil cannot realize that the system is being used, "think" that the user just forgot the computer on and issue the lock screen/suspend to ram command.
I changed those settings to "do nothing". But this is a "work-around", not a proper solution...


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
User avatar
ioveracker
Registered Member
Posts
2
Karma
0
OS

RE: Session locks by itself

Sat Mar 14, 2009 4:43 am
RGB wrote:Well, err... I unsolved this because it happened again... Looking at the powerdevil profiles, I've seen that the default settings tell the system to lock the screen if there is no activity for 15 minutes in the case of "performance" profile, or to suspend to ram in the case of "powersave" profiles. It seems that sometimes powerdevil cannot realize that the system is being used, "think" that the user just forgot the computer on and issue the lock screen/suspend to ram command.
I changed those settings to "do nothing". But this is a "work-around", not a proper solution...


I'm having the same issue. Has anyone found a solution yet?
axiom
Registered Member
Posts
15
Karma
0

RE: Session locks by itself

Sat Mar 14, 2009 8:03 pm
Similar problem here. Changed settings in all 3 places, to no effect.

1. System Settings>General>Desktop>Screen Saver>Require Password to Stop = UNCHECKED
2. System Settings>Advanced>Power Management>Lock Screen on Resume = UNCHECKED
3. ~/kde/share/config/kscreensaverrc: Lock=false

No matter what I do, it still asks for my password I try to get out of screensaver mode.

I think this bug describes the same thing:
https://bugs.kde.org/show_bug.cgi?id=186786
User avatar
ioveracker
Registered Member
Posts
2
Karma
0
OS

RE: Session locks by itself

Sat Mar 14, 2009 10:50 pm
As he mentioned above, killing krunner seems to sort of work around the problem, but the notifications still pop up at the top of the screen.
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS

RE: Session locks by itself

Sun Mar 15, 2009 9:52 am
As I commented above, the "solution" is to change the powerdevil profiles: open the powerdevil applet and click on "more", select "edit profiles" and change, in every profile, the option "when the system is inactive more than..."(1) from "lock screen" (or "suspend to ram") to "do nothing".
The problem is not with the screen saver, but with powerdevil.

(1) I'm translating from Spanish.


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
User avatar
RGB
Registered Member
Posts
346
Karma
0
OS

RE: Session locks by itself

Sun Mar 15, 2009 10:26 am
I filled a new issue:
https://bugs.kde.org/show_bug.cgi?id=187210
Feel free to add comments/votes to it.


RGB, proud to be a member of KDE forums since 2008-Nov.
And proud to be a kde user since 1.1.2
axiom
Registered Member
Posts
15
Karma
0

RE: Session locks by itself

Tue Mar 17, 2009 12:34 am
I fixed this by going to System Setting>Advanced>KDE Services Configuration>Startup Services and then unchecking PowerDevil.

I'm not even on a laptop, this must have been activated during some update, but I don't think I need it at all.

Anycase, screensavers don't ask me for a password anymore. :shade:


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient