LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 02-01-2021, 07:00 AM   #1
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64

Rep: Reputation: Disabled
elogind session locking


Hello again everyone,

I have another problem. At first I thought that it was a problem with my cordless mouse because I had just done an upgrade to my slackware current. But on further investigation I found that it was elogind locking my session because I had been away from my computer for a few minutes. I can work around the problem by going to another virtual terminal, logging in as root and using the loginctl command "list-sessions" to find the locked session id and then using the loginctl command "unlock-session" with the session id to be unlocked. And then my mouse magically starts working again.

I am hoping that there is someone here who has more knowledge of elogind and can advise me if there is a change that I can make to its configuration to stop it locking my session when I am away from my computer for a few minutes ?

Thank You.
 
Old 02-01-2021, 11:32 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,336

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
Have a look at System Settings ( I'm assuming you are running KDE ) and type 'lock' in the search box. You should see 'Screen Locking'. Change the settings as you need them. You can turn off Automatic screen locking if you like.
 
Old 02-01-2021, 03:13 PM   #3
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64

Original Poster
Rep: Reputation: Disabled
Thank you for your reply camorri. However, I am using xfce not KDE. I suppose that I should have said in my original question that I am using xfce.

I did try KDE, and did the unlocking in the settings as you suggested, and KDE seems to work fine and not lock the desktop session. I then went back to xfce and I still have the problem with the session locking.

In xfce "Settings Manager" I have turned off the lock settings in "Power Manager" - "System Security" "Lock screen when system is going to sleep" and in "Display" I have set the timeouts for "Blank", "Put to sleep" and "Switch off" to 60 minutes. And in "Session and Startup" I have disabled "Lock screen before sleep". I did all of these before posting my question.

I would like to keep using xfce if the session locking can be fixed.
 
Old 02-01-2021, 04:38 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,336

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
Some thoughts. In XFCE Settings, there are Xscreensaver and xfce4-screensaver. Have you looked in there for a setting that locks your screen?

To make things more interesting, Slackware has a program called xlockmore. You can lock your screen by entering the command xlock in a terminal or from Alt + F2 and type xlock.

Could you try each one, and find out which program is locking the screen? That might get us closer to understanding what is going on.
 
Old 02-01-2021, 05:06 PM   #5
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 899

Rep: Reputation: 1080Reputation: 1080Reputation: 1080Reputation: 1080Reputation: 1080Reputation: 1080Reputation: 1080Reputation: 1080
In /etc/elogind/logind.conf there is the "IdleAction=" and "IdleActionSec=" settings. By default elogind has it set to "ignore" so elogind shouldn't be doing that if its unmodified from stock install. Still check that config though. Maybe the IdleAction was changed to "lock" at some point in time?

I haven't modified my elogind install on my machines and everything is commented out in that conf file.
 
Old 02-01-2021, 06:32 PM   #6
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64

Original Poster
Rep: Reputation: Disabled
Thanks camorri, It was in xfce4-screensaver. Under the "Lock Screen" tab. The "Enable Lock Screen" slider was on so I disabled it and that has solved the problem.

I would never have thought of looking in either of the the screensavers settings. And as loginctl fixed the problem I assumed that elogind was the cause of the problem.

OXBF - I have not changed the default settings in /etc/elogind/logind.conf (all still commented out) but that was the first place that I looked for a solution to my problem.

Thanks again for your help. I can sit and have a drink and a bite to eat at the computer without it locking up on me !
 
Old 02-01-2021, 07:14 PM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,336

Rep: Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922Reputation: 922
Glad to help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" -found; Falling back to default "session." xxxindigo Linux Mint 22 09-01-2019 10:21 AM
How do I get elogind to work with OpenRC? KiwixingDaily Arch 1 03-12-2017 03:34 AM
Session key renegotiation if session lasts longer than configured (e.g. an hour) then session keys needs to be renegotiated. dakshinya Linux - Newbie 1 02-04-2016 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration