Trouble with XFCE (trixie) timed logouts
- currinh
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 61
- Thank you received: 1
16 Mar 2026 04:23 #344344
by currinh
Trouble with XFCE (trixie) timed logouts was created by currinh
Every few years I upgrade something on my stepper controlled knee-mill. I usually get sucked into upgrading linuxcnc at the same time. I just upgraded the stepper motors and put a new controller on. The new controller is using Mesa 5i25 and 7i76 cards with Gecko drivers. I was running linuxcnc 2.9.4 and decided to upgrade to 2.9.8. Rather than upgrade I did a new install with 2.9.8 (Debian trixie).
After install, and working though several problems, I have linuxcnc 2.9.8 working well with a Pncconf configuration. But, I am having great trouble with the computer logging out every 30-60 minutes. A very bad thing for a machine controller. I suspect this is in the XFCE environment but can not find a solution via Internet searching.
I did find, through searching, and have implemented the following changes:
I changed /etc/ligntdm/ligntdm.conf to implement auto login by un-commenting
autologin-user-[my user name : hugh]
autologin-user-timeout = 0
In the XFCE settings I disabled Lock Screen [disable "Lock screen when idle"] and disabled Screen Saver.
To prevent logout from /etc/syslogout I put an empty file as "$HOME/.nosyslogout"
In XFCE setting, under Power Management, assured the "Suspend When Inactive for" was set to never.
I did try, I believe, disabling the Display Power Management toggle in the setting menu. This caused a broken system. When a login was done the machine thought awhile then returned to the login screen. I could not figure out how to fix this via the terminal so had to re-install linuxcnc. I re-installed once without re-formatting the /home directory but the login loop was still present. Another re-install with re-formatting all partitions brought me back to zero. I'm trying to not repeat this error.
The computer now starts up without requiring a login, that's fine. It works for 30-60 minutes and then logs me out. The result of the logout was a new login screen (user: & password). After the above changes, auto login, it automatically logs me back in. But for both of these, any running applications, like linuxcnc, are killed with the logout/login.
What am I missing? Is there a simple fix or should I step back to linuxcnc 2.9.4 and see if it still works?
I am surprised by this problem. I'd think a linuxcnc ISO should be set up for no screen saver and certainly no timed logout. This seems like death to a machine controller where a complicated program could run for a couple of hours. This tends to convince me I've done something wrong with this new clean install.
Thank you for any help you can provide.
After install, and working though several problems, I have linuxcnc 2.9.8 working well with a Pncconf configuration. But, I am having great trouble with the computer logging out every 30-60 minutes. A very bad thing for a machine controller. I suspect this is in the XFCE environment but can not find a solution via Internet searching.
I did find, through searching, and have implemented the following changes:
I changed /etc/ligntdm/ligntdm.conf to implement auto login by un-commenting
autologin-user-[my user name : hugh]
autologin-user-timeout = 0
In the XFCE settings I disabled Lock Screen [disable "Lock screen when idle"] and disabled Screen Saver.
To prevent logout from /etc/syslogout I put an empty file as "$HOME/.nosyslogout"
In XFCE setting, under Power Management, assured the "Suspend When Inactive for" was set to never.
I did try, I believe, disabling the Display Power Management toggle in the setting menu. This caused a broken system. When a login was done the machine thought awhile then returned to the login screen. I could not figure out how to fix this via the terminal so had to re-install linuxcnc. I re-installed once without re-formatting the /home directory but the login loop was still present. Another re-install with re-formatting all partitions brought me back to zero. I'm trying to not repeat this error.
The computer now starts up without requiring a login, that's fine. It works for 30-60 minutes and then logs me out. The result of the logout was a new login screen (user: & password). After the above changes, auto login, it automatically logs me back in. But for both of these, any running applications, like linuxcnc, are killed with the logout/login.
What am I missing? Is there a simple fix or should I step back to linuxcnc 2.9.4 and see if it still works?
I am surprised by this problem. I'd think a linuxcnc ISO should be set up for no screen saver and certainly no timed logout. This seems like death to a machine controller where a complicated program could run for a couple of hours. This tends to convince me I've done something wrong with this new clean install.
Thank you for any help you can provide.
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11764
- Thank you received: 3984
16 Mar 2026 06:19 #344345
by rodw
Replied by rodw on topic Trouble with XFCE (trixie) timed logouts
Its actually very difficult to stop this. Been there done that.
You could try running this script with sudo. It creates some system settings that have been working for me.
You could try running this script with sudo. It creates some system settings that have been working for me.
#!/bin/bash
set -e
# 1. GLOBAL XFCE SETTINGS (XDG)
# This overrides defaults for ALL users (Live user and installed users)
mkdir -p /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/
# Force Presentation Mode and Disable Sleeping/Blanking
cat <<EOF > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty">
<property name="presentation-mode" type="bool" value="true"/>
<property name="lock-screen-suspend-hibernate" type="bool" value="false"/>
<property name="blank-on-ac" type="int" value="0"/>
<property name="dpms-on-ac-sleep" type="int" value="0"/>
<property name="dpms-on-ac-off" type="int" value="0"/>
<property name="dpms-enabled" type="bool" value="false"/>
</property>
</channel>
EOF
# Disable Screensaver Globally
cat <<EOF > /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/libxfce4ui.xml
<?xml version="1.0" encoding="UTF-8"?>
<channel name="libxfce4ui" version="1.0">
<property name="screensaver" type="empty">
<property name="enabled" type="bool" value="false"/>
</property>
</channel>
EOF
# 2. BRUTE FORCE X11 DISABLE
# This ensures that even if XFCE isn't running, the X server itself won't blank
mkdir -p /etc/X11/xorg.conf.d/
cat <<EOF > /etc/X11/xorg.conf.d/10-disable-blanking.conf
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
EOF
# 3. SYSTEMD MASKING (The Nuclear Option)
# This prevents the OS from sleeping even if a "suspend" command is sent
systemctl mask suspend.target hibernate.target sleep.target hybrid-sleep.target
Please Log in or Create an account to join the conversation.
Time to create page: 0.125 seconds