Peppermint OS Community Forum

Support => New Users => Topic started by: completeidiot on August 26, 2019, 02:41:53 am

Title: Lockscreen Suddenly Changing (SOLVED)
Post by: completeidiot on August 26, 2019, 02:41:53 am
Hi there!

So what happened is, without a warning, the lockscreen changed. Instead of the usual blurred screen with timer, it's black. When I start typing the password, it turns to blue. If I hold the backspace until the password is erased, the screen turns red.

It's funny alright, but I wonder how we got there and how to change it back  :o
Title: Re: Lockscreen Suddenly Changing
Post by: alynur on August 28, 2019, 11:08:13 am
 :o
Title: Re: Lockscreen Suddenly Changing
Post by: completeidiot on August 30, 2019, 02:08:51 pm
Right?

However, I recall that on the day after which this paranormal occurrence became a reality for me, I installed a couple of browsers, namely Dillo and UZBL and then uninstalled those again, and I also briefly installed ICQ (I know, nostalgia), only to uninstall it again.

I wonder if some these (un)installs could have somehow altered the file(s) responsible for the lockscreen?
Title: Re: Lockscreen Suddenly Changing
Post by: PCNetSpec on August 30, 2019, 02:47:57 pm
What's the output from
Code: [Select]
dpkg -l | grep i3lock
Title: Re: Lockscreen Suddenly Changing
Post by: completeidiot on August 30, 2019, 05:21:29 pm
ii  i3lock                                     2.7-1+peppermint0.0.2                                       i386         improved screen locker
Title: Re: Lockscreen Suddenly Changing
Post by: PCNetSpec on August 30, 2019, 05:42:14 pm
If you run:
Code: [Select]
/usr/lib/i3lock-fancy/i3lock-fancy
then unlock

is there any error reported in the terminal ?
Title: Re: Lockscreen Suddenly Changing
Post by: completeidiot on August 30, 2019, 05:44:45 pm
No. It pulls off the normal screen lock with no snags.
Title: Re: Lockscreen Suddenly Changing
Post by: PCNetSpec on August 30, 2019, 06:13:12 pm
so the screenlock works perfectly when called that way ?
Title: Re: Lockscreen Suddenly Changing
Post by: completeidiot on August 30, 2019, 06:17:50 pm
That's right.

EDIT: Could I create an extra keyoboard shortcut that runs this screen lock?
Title: Re: Lockscreen Suddenly Changing
Post by: PCNetSpec on August 30, 2019, 06:19:31 pm
How about if called via Ctrl+Alt+L ?

or by running
Code: [Select]
peppermint-logout
then clicking the 'Lock Screen' button ?

If both those work .. how is the screenlock being applied when it misbehaves ?
Title: Re: Lockscreen Suddenly Changing
Post by: completeidiot on August 30, 2019, 06:25:17 pm
No. Both of these ways lead to the screen lock I have already described. The non-standard one.

Could I just create a keyboard shortcut that runs the same command we used to call the screen lock in the terminal? That would do.
Title: Re: Lockscreen Suddenly Changing
Post by: PCNetSpec on August 30, 2019, 06:44:50 pm
Yes but let's try fix things first...

What's the contents of
Code: [Select]
xed /usr/bin/lxlock
Title: Re: Lockscreen Suddenly Changing
Post by: completeidiot on August 31, 2019, 01:34:07 am
Code: [Select]
#!/bin/sh
#
#
#  Copyright (C) 1999, 2003 Olivier Fourdan (fourdan@xfce.org)
#  Copyright (C) 2012 Julien Lavergne (gilir@ubuntu.com)
#  Copyright (C) 2013 Jarno Suni (8@iki.fi)
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
#  MA 02110-1301, USA.

# Try to lock the screen with thos applications (in this order) :
# light-locker-command, xscreensaver, gnome-screensaver, slock, xlock, i3lock and xdg-screensaver

if pidof light-locker >/dev/null; then
    light-locker-command -l >/dev/null 2>&1
elif pidof xscreensaver >/dev/null; then
    xscreensaver-command -lock >/dev/null 2>&1
elif pidof gnome-screensaver >/dev/null; then
    gnome-screensaver-command --lock
elif which slock >/dev/null; then
    slock &
elif which xlock 2>/dev/null; then
    xlock $*
elif which i3lock >/dev/null; then
    wmctrl -c Whisker Menu ; /usr/lib/i3lock-fancy/i3lock-fancy
else
    # In the end, try to fallback to xscreensaver

    # assert: gnome-screensaver is not running
    xscreensaver -nosplash >/dev/null 2>&1 &
    xscreensaver-command -lock >/dev/null 2>&1
fi
exit 0
Title: Re: Lockscreen Suddenly Changing
Post by: PCNetSpec on August 31, 2019, 11:21:59 am
Have you shortened that ?

and do you get any output from this command
Code: [Select]
dpkg -l | grep "light-locker\|xscreensaver\|gnome-screensaver\|slock\|suckless-tools\|xlock"
Title: Re: Lockscreen Suddenly Changing
Post by: completeidiot on August 31, 2019, 12:29:44 pm
Yes. I reposted it without the license note. It's now edited.

This is the latest command output:

Code: [Select]
ii  suckless-tools                             42-1                                                        i386         simple commands for minimalistic window managers
Title: Re: Lockscreen Suddenly Changing
Post by: PCNetSpec on August 31, 2019, 12:45:00 pm
Okay the suckless-tools package contains 'slock' which takes priority over i3lock in the in the screenlock script (/usr/bin/lxlock), so....

Uninstall suckless-tools and the screensaver should work again:
Code: [Select]
sudo apt-get remove --purge suckless-tools



if for some reason you cannot uninstall suckless-tools (maybe because something else you have installed depends on it), instead run:
Code: [Select]
gksudo xed /usr/bin/lxlock
and comment out these 2 lines
Code: [Select]
elif which slock >/dev/null; then
    slock &
so they now read
Code: [Select]
# elif which slock >/dev/null; then
#     slock &
SAVE the file .. and now test the screenlock
Title: Re: Lockscreen Suddenly Changing
Post by: completeidiot on August 31, 2019, 02:26:53 pm
Suckless tools sucked for me, but now they're gone.

Thank you.
Title: Re: Lockscreen Suddenly Changing (SOLVED)
Post by: PCNetSpec on September 01, 2019, 04:42:58 pm
You're welcome .. thanks for marking the topic solved :)