You are not logged in.
Pages: 1
i have a related Q: my laptop is connected to my monitor with the lid closed. After i suspend i have to open the lid to see the log in screen. If i just hit a key without opening the lid then i see a black screen and not the wild flowers backdrop and log in. Is this expected?
Last edited by neverdimed (2023-03-16 07:15:42)
Offline
i have a related Q: my laptop is connected to my monitor with the lid closed. After i suspend i have to open the lid to see the log in screen. If i just hit a key without opening the lid then i see a black screen and not the wild flowers backdrop and log in. Is this expected?
Which screensaver and version are you running?
Can you just type the password and it appears?
Is the external monitor set as primary?
Moderator Edit: split into its own thread.
Last edited by ToZ (2023-01-04 12:02:44)
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
thanks.
i have the monitor as the primary display, i tried making the laptop primary but it is disabled when the lid is close. I can't type anything. My keyboard lights up showing the laptop is awake, but i have to open the lid for the lock screen to appear
how can i find out what screen saver i am using? it will be whatever the default it because I don't think I have changed anything. i'm using mx linux, xfce 4.16
Offline
i have the monitor as the primary display, i tried making the laptop primary but it is disabled when the lid is close. I can't type anything. My keyboard lights up showing the laptop is awake, but i have to open the lid for the lock screen to appear
If you blindly type your password, does it unlock the computer for you?
how can i find out what screen saver i am using? it will be whatever the default it because I don't think I have changed anything. i'm using mx linux, xfce 4.16
ps -ef | grep screensaver
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
if i type my password and enter nothing happens
i ran the command and it seems i'm not running a screensaver(?), the only line produced from grep relates to the command itself i think
i'm not clear how the screensaver is relevant, i am using the suspend button, so it goes to sleep, not really a screensaver?
it has something to do with closing the lid, if i don't close the lid the problem is solved, but i want to close the lid to keep the laptop out of the way
thanks
Offline
i ran the command and it seems i'm not running a screensaver(?), the only line produced from grep relates to the command itself i think
On a fresh login, post back the results of:
ps -ef | grep $USER
...lets see whats running.
i'm not clear how the screensaver is relevant, i am using the suspend button, so it goes to sleep, not really a screensaver?
Depends on how your system is configured. In most (?) instances, the screensaver will kick in when the system is suspended. Since you are being asked to enter a password, it would imply the presence of a screensaver or screen locker program.
it has something to do with closing the lid, if i don't close the lid the problem is solved, but i want to close the lid to keep the laptop out of the way
Trying to determine if the screensaver/locker is the problem (placing its dialog on the wrong screen) or an Xfce display problem (incorrect screen logic on resume).
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
thanks
that command produces quite a bit of output. I sent the output to a file. The only thing i can see that might be relevant is light-locker https://github.com/the-cavalry/light-locker/ I can't see anything about screen or screen saver when i search the output
i should note: when i restart with the lid closed it works perfectly, i guess the problem might be suspend then
... wait, it works now! after the restart, now when i suspend i get the lock screen, strange
Last edited by neverdimed (2023-01-06 04:45:20)
Offline
Glad to hear its resolved. If the issue returns, there are some related light-locker bugs (e.g. https://github.com/the-cavalry/light-locker/issues/102). Using the "--no-late-locking" flag worked around the issue there.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
this problem has returned. I thought i'd try a different lock screen ie i3lock. How can i tell xfce to use i3lock instead of light-locker? i checked the power manager settings but it is not specified there. cheers
Offline
this problem has returned. I thought i'd try a different lock screen ie i3lock. How can i tell xfce to use i3lock instead of light-locker? i checked the power manager settings but it is not specified there. cheers
Try running this command:
xfconf-query --create -c xfce4-session -p /general/LockCommand -t string -s "i3lock"
If it doesn't work, you'll need to delete the key to go back - to do so, you can find it in xfce4-settings-editor, select the entry and press the "Reset" option.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
thanks again for your help. I ran the command and restarted but it didn't work unfortunately. I reset as you described
should i uninstall light-locker? someone here says they did that: https://old.reddit.com/r/MXLinux/commen … dmi_issue/ "sudo apt remove light-locker and then in Synaptic package manager install i3lock and i3lock-fancy."
i feel i should backup my system before i tinker anymore though
Last edited by neverdimed (2023-03-06 18:05:30)
Offline
Can you post back:
xfconf-query -c xfce4-session -p /general/LockCommand
...as well as the contents of your xflock4 script file (should be in /usr/bin).
xflock4 should indicate that it will look to /general/LockCommand first. If it still doesn't work, you can try removing light-locker as linked.
What version of xfce4-session are you running?
Edit: Do you have xfce4-screensaver installed?
Last edited by ToZ (2023-03-06 19:03:16)
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
thanks! here's the info:
xfce4-session version 4.18.0
xfce4-screensaver: not installed/not recognised
the xfconf-query command produces no output
xflock4 script is as follows after removing comments at top:
# Wait a bit so that user have time to raise finger from a key if
# the script is run in terminal.
[ -t 0 ] && sleep 1
# First test for the command set in the session's xfconf channel
LOCK_CMD=$(xfconf-query -c xfce4-session -p /general/LockCommand)
if [ -n "$LOCK_CMD" ]; then
/bin/sh -c "$LOCK_CMD" && exit
exit_code=$?
>&2 printf "'%s' exited with status %d\n" "$LOCK_CMD" $exit_code
exit $exit_code
fi
for lock_cmd in \
xscreensaver-command \
light-locker-command \
xfce4-screensaver-command
do
$lock_cmd --lock </dev/null 2>/dev/null && exit
done
# else access locking failed
exit 1
Offline
the xfconf-query command produces no output
It should output "i3lock". Can you post back the full settings dump?
xfconf-query -c xfce4-session -lv
xflock4 script is as follows after removing comments at top:
Confirmed that it first looks for the value in LockCommand and uses that as the screenlocker. If that is not set, then it won't work. Can you confirm that you ran the:
xfconf-query --create -c xfce4-session -p /general/LockCommand -t string -s "i3lock"
...command as a regular user (not root or sudo)?
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
i can confirm that i ran the command as user. But i reset it afterwards as you suggested - I guess this is why the xfconf-query produced no output. I ran it again and then ran 'xfconf-query -c xfce4-session -p /general/LockCommand' and now it shows i3lock as you expected
in xfce4-settings-editor the screensaver doesn't refer to i3lock, is that ok?
full settings dump:
/general/FailsafeSessionName Failsafe
/general/LockCommand i3lock
/general/SaveOnExit false
/general/SessionName Default
/sessions/Failsafe/Client0_Command <<UNSUPPORTED>>
/sessions/Failsafe/Client0_PerScreen false
/sessions/Failsafe/Client0_Priority 15
/sessions/Failsafe/Client1_Command <<UNSUPPORTED>>
/sessions/Failsafe/Client1_PerScreen false
/sessions/Failsafe/Client1_Priority 20
/sessions/Failsafe/Client2_Command <<UNSUPPORTED>>
/sessions/Failsafe/Client2_PerScreen false
/sessions/Failsafe/Client2_Priority 25
/sessions/Failsafe/Client3_Command <<UNSUPPORTED>>
/sessions/Failsafe/Client3_PerScreen false
/sessions/Failsafe/Client3_Priority 30
/sessions/Failsafe/Client4_Command <<UNSUPPORTED>>
/sessions/Failsafe/Client4_PerScreen false
/sessions/Failsafe/Client4_Priority 35
/sessions/Failsafe/Count 5
/sessions/Failsafe/IsFailsafe true
/shutdown/ShowHibernate false
/shutdown/ShowHybridSleep false
/splash/Engine
/splash/engines/simple/BgColor #000000
/splash/engines/simple/FgColor #ffffff
/splash/engines/simple/Font Liberation Sans Bold 10
/splash/engines/simple/Image
cheers
edit: i'm mostly interested in 'suspend', i3lock appears if i lock the screen but not if i suspend
edit2: in case i3lock does not solve this, above you noted: "--no-late-locking" flag worked around the issue there", how would i implement this fix?
Last edited by neverdimed (2023-03-08 07:34:23)
Offline
in the end i gave up on i3lock and went back to light-locker, i ran command 'light-locker --no-late-locking', it seems to be working, although i don't know where i can confirm that this flag is enabled
Last edited by neverdimed (2023-03-09 16:09:01)
Offline
Try using the previous command to set it as the default method:
xfconf-query --create -c xfce4-session -p /general/LockCommand -t string -s "light-locker --no-late-locking"
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
thanks
Offline
i feel i should note this problem returned after a restart, running the commands above again has no effect, i have given up trying to solve this. I have the same issue on an ubuntu laptop that is not xfce. The only solution that really works is to never close the laptop lid
Offline
Pages: 1
[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 633.34 KiB (Peak: 666.19 KiB) ]