Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-01-04 06:49:42

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Dual Monitor - Screensaver Dialog not Displaying

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

#2 2023-01-04 12:01:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,019

Re: Dual Monitor - Screensaver Dialog not Displaying

neverdimed wrote:

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

#3 2023-01-05 05:50:14

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#4 2023-01-05 11:30:53

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,019

Re: Dual Monitor - Screensaver Dialog not Displaying

neverdimed wrote:

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

#5 2023-01-05 17:28:54

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#6 2023-01-05 17:48:55

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,019

Re: Dual Monitor - Screensaver Dialog not Displaying

neverdimed wrote:

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

#7 2023-01-06 04:43:12

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#8 2023-01-06 13:39:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,019

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#9 2023-03-06 16:45:39

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#10 2023-03-06 17:44:15

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,019

Re: Dual Monitor - Screensaver Dialog not Displaying

neverdimed wrote:

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

#11 2023-03-06 18:04:59

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#12 2023-03-06 19:02:08

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,019

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#13 2023-03-07 08:15:47

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#14 2023-03-07 13:49:03

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,019

Re: Dual Monitor - Screensaver Dialog not Displaying

neverdimed wrote:

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

#15 2023-03-07 15:27:42

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#16 2023-03-09 16:08:34

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#17 2023-03-09 16:28:16

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,019

Re: Dual Monitor - Screensaver Dialog not Displaying

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

#18 2023-03-10 11:22:33

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

thanks smile

Offline

#19 2023-03-16 07:18:51

neverdimed
Member
Registered: 2022-07-04
Posts: 19

Re: Dual Monitor - Screensaver Dialog not Displaying

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

Board footer

Powered by FluxBB