Slackware - ARM This forum is for the discussion of Slackware ARM. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-01-2021, 07:00 AM
|
#1
|
Member
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64
Rep:
|
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.
|
|
|
02-01-2021, 11:32 AM
|
#2
|
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
|
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.
|
|
|
02-01-2021, 03:13 PM
|
#3
|
Member
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64
Original Poster
Rep:
|
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.
|
|
|
02-01-2021, 04:38 PM
|
#4
|
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
|
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.
|
|
|
02-01-2021, 05:06 PM
|
#5
|
Member
Registered: Nov 2018
Distribution: Slackware
Posts: 899
|
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.
|
|
|
02-01-2021, 06:32 PM
|
#6
|
Member
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64
Original Poster
Rep:
|
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 !
|
|
|
02-01-2021, 07:14 PM
|
#7
|
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
|
Glad to help.
|
|
|
All times are GMT -5. The time now is 05:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|