Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LightDM switches between VT7 and VT8
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
alogim
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2015
Posts: 127

PostPosted: Wed May 08, 2019 12:04 pm    Post subject: LightDM switches between VT7 and VT8 Reply with quote

I decided to use lightdm and light-locker as display manager and to lock the screen respectively.
Code:
x11-misc/lightdm-1.26.0-r1::gentoo was built with the following:
USE="gnome gtk introspection -audit -qt5 -vala" ABI_X86="(64)"
Code:
x11-misc/light-locker-1.8.0-r1::gentoo was built with the following:
USE="consolekit dpms gtk3 screensaver upower -elogind -systemd" ABI_X86="(64)"

When I boot, I have no problems. However, if I try to lock the screen with Ctrl + Alt + L or by running xflock4, which was modified as follows,
Code:
PATH=/bin:/usr/bin
export PATH

# Lock by xscreensaver, gnome-screensaver or light-locker, if a respective
# daemon is running
for lock_cmd in \
    "light-locker-command --lock"
do
    $lock_cmd >/dev/null 2>&1 && exit
done

# else run another access locking utility, if installed
for lock_cmd in \
  "xlock -mode blank" \
  "slock" \
  "alock -bg blank -auth pam"
  do
    set -- $lock_cmd
    if command -v -- $1 >/dev/null 2>&1; then
        $lock_cmd >/dev/null 2>&1 &
        # turn off display backlight:
        xset dpms force off
        exit
    fi
done

# else access locking failed
exit 1

the following happens:
  • the screen goes black
  • if I enter Ctrl + Alt + F8 a black screen is shown
  • if I go back to the VT7 (by entering Ctrl + Alt + F7) a lock icon appears saying that the session is locked and that I will be redirected, but nothing actually happens
  • if I enter Ctrl + Alt + F8 then the lightdm-gtk-greeter is shown

If I close the laptop's lid and open it again, then only a black screen is shown. Both Ctrl + Alt + F7/F8 show a black screen.
My /etc/lightdm.conf is as follows:
Code:
[LightDM]
[Seat:*]
session-wrapper=/etc/lightdm/Xsession
[XDMCPServer]
[VNCServer]

Notice that I am using Xfce4 as desktop environment and OpenRC as init system.
_________________
Desktop: i5-3570k - 2x4 GB - Sapphire HD 7950 Dual-X - 500 GB WD Caviar Black - Dell SE2717H 27"
Laptop: HP EliteBook 850 G5 - i7-8550U - 1x16GB - Intel UHD 620 - 512 GB Samsung NVMe SSD
Phone: OnePlus 5T - SD835 - 8 GB - Adreno 540 - 128 GB
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum