You are not logged in.

#1 2024-02-01 17:54:20

benslinux
Member
Registered: 2024-01-31
Posts: 13

Boron - How to prevent logging out when inactive?

SOLVED

Boron is logging out to the lockscreen if inactive for 10 minutes. I've tried the following to try and solve:

Set Power Mgmt Settings to remain on under all conditions

LightDM GTK+ Greeter:settings (Misc) to Never

I even created a .desktop script in .config/autostart:

Type=Application
Name=Disable Screen Lock
Exec=xset s off -dpms

But no matter what, it shuts off after just 10 minutes if inactive. Any ideas?

Thanks

Last edited by benslinux (2024-02-02 13:17:40)

Offline

#2 2024-02-01 23:00:51

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: Boron - How to prevent logging out when inactive?

@benslinux
Unless

xset -q | grep timeout:

timeout:  0    cycle:  0

insert to
~/.config/bunsen/autostart

xset s 0 0

But with me it was enough to set in Power Management / Security / Light Locker all to Never and on all tabs Display Power Management On battery and Plugged in as well .

Last edited by Robi (2024-02-01 23:04:37)


...Welcome to the family...

Offline

#3 2024-02-01 23:21:56

benslinux
Member
Registered: 2024-01-31
Posts: 13

Re: Boron - How to prevent logging out when inactive?

Power Mgr was NOT set to Never, but to 'when screensaver is activated' - I though unchecking the Lock screen was enough. But I set it to 'Never' and I'm sure that will solve it - thanks!

But for the record:

ben@optiplex:~$
xset -q | grep timeout:
timeout:  600    cycle:  600

-- Not sure if you meant I should add the script IF timeout and cycle are zero? They're not as you can see. For now, I added the following anyway (but can remove it)

insert to
~/.config/bunsen/autostart

xset s 0 0

Thanks again.

Last edited by benslinux (2024-02-01 23:28:27)

Offline

#4 2024-02-02 00:05:51

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,659

Re: Boron - How to prevent logging out when inactive?

benslinux wrote:

But no matter what, it shuts off after just 10 minutes if inactive. Any ideas?

Thanks

BL runs the light-locker screen locker by default. The *.desktop file for it is located in /etc/xdg/autostart

Try moving that light-locker.desktop file to a temp location (as backup) and see if that fixes the problem next time you log in. I don't think you need to reboot to clear light-locker from memory.


You must unlearn what you have learned.
    -- yoda

Offline

#5 2024-02-02 01:03:22

benslinux
Member
Registered: 2024-01-31
Posts: 13

Re: Boron - How to prevent logging out when inactive?

jgmenu user Numero Uno -
Setting Power Mgr Security to 'Never' fixed the logging out issue. I didn't know how to access light-locker to deactivate and thought unchecking 'Lock screen when computer is going to sleep' in Power Mgr would cover it, since I had it set never to sleep.
It's no longer logging me out but I'd still like to disable the screensaver/light-locker entirely if I can figure out how to do that. I moved the light-locker.desktop file to a temp dir as you suggested and rebooted, but it still turns off the display after 10 minutes. Thanks.

Last edited by benslinux (2024-02-02 01:43:34)

Offline

#6 2024-02-02 09:26:53

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: Boron - How to prevent logging out when inactive?

So if only blanking remained.
I simple made an experiment. The output of

xset -q

has different sections:
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0

DPMS (Energy Star):
  Standby: 0    Suspend: 0    Off: 0
  DPMS is Enabled
  Monitor is On

xset s 60 60

activates screensaver after a 60 second inactivity.
After login I checked with

xset -q

for me they were originally 600
That's why I put in ~/.config/bunsen/autostart the last line
## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 300 20
xset s 0 0

Relogin and check with

xset -q

Are there other factors that influence?

Last edited by Robi (2024-02-02 09:34:27)


...Welcome to the family...

Offline

#7 2024-02-02 10:22:52

benslinux
Member
Registered: 2024-01-31
Posts: 13

Re: Boron - How to prevent logging out when inactive?

Robi - thanks for your info, but I'm not able to understand what it means. I think you're right that xset might be the solution, but I don't know how to input the correct values.

(Logging out problem has been fixed - I had Power Mgmt Options set incorrectly). My goal now is to completely disable light-locker - I don't want the machine to go into screensaver mode - ever.

I tried this method (from BL forums past)

1. Copy the `light-locker.desktop` file from `/etc/xdg/autostart/` to `~/.config/autostart/` using the command: `cp /etc/xdg/autostart/light-locker.desktop ~/.config/autostart/light-locker.desktop`[4].
2. Open the copied file `~/.config/autostart/light-locker.desktop` in a text editor.
3. Find the line that starts with `Exec=` and comment it out by adding a `#` at the beginning of the line.
4. Save and close the file.
5. Log out and log back in for the changes to take effect

- it didn't work. Still goes into screensaver mode after 10 minutes.

Last edited by benslinux (2024-02-02 10:41:29)

Offline

#8 2024-02-02 10:35:48

benslinux
Member
Registered: 2024-01-31
Posts: 13

Re: Boron - How to prevent logging out when inactive?

Trying this as last resort:

sudo apt purge light-locker

Last edited by benslinux (2024-02-02 11:20:20)

Offline

#9 2024-02-02 11:36:20

Jimbo_G
Member
From: France
Registered: 2017-05-12
Posts: 326

Re: Boron - How to prevent logging out when inactive?

benslinux wrote:

1. Copy the `light-locker.desktop` file from `/etc/xdg/autostart/` to `~/.config/autostart/` using the command: `cp /etc/xdg/autostart/light-locker.desktop ~/.config/autostart/light-locker.desktop`[4].
2. Open the copied file `~/.config/autostart/light-locker.desktop` in a text editor.
3. Find the line that starts with `Exec=` and comment it out by adding a `#` at the beginning of the line.
4. Save and close the file.
5. Log out and log back in for the changes to take effect

I think your step 3 should be:

Add a line to the copied file:
Hidden=true

Source: Arch wiki (https://wiki.archlinux.org/title/XDG_Autostart)

Offline

#10 2024-02-02 12:12:47

benslinux
Member
Registered: 2024-01-31
Posts: 13

Re: Boron - How to prevent logging out when inactive?

Jimbo_G - thanks, but I just purged light-locker from the OS. I will try that if I re-install light-locker. But with light-locker gone, it must be something else - maybe LightDM or something else that has the ability to turn off the display - ? I'm going to see if I can fix it with xset.

Offline

#11 2024-02-02 12:49:02

benslinux
Member
Registered: 2024-01-31
Posts: 13

Re: Boron - How to prevent logging out when inactive?

SOLVED

I figured out that the xfce-power-manager settings also needed to be set and they weren't. This solved it - I tend to look too deep when troubleshooting because I enjoy it - then find it's a simple GUI setting I missed. But you always learn something - thanks guys, for the education in better understanding my system.

Last edited by benslinux (2024-02-02 23:03:29)

Offline

#12 2024-02-02 13:34:02

Robi
Member
Registered: 2024-01-30
Posts: 43

Re: Boron - How to prevent logging out when inactive?

Good.

Last edited by Robi (2024-02-02 13:36:09)


...Welcome to the family...

Offline

Board footer

Powered by FluxBB