You are not logged in.

#1 2024-06-04 07:02:48

ahnue999
Member
Registered: 2024-06-04
Posts: 13

[SOLVED] My screen getting locked even though i'm using the laptop

Been using Hyprland for the last two weeks and then moved to KDE since 2 days ago (wayland if it matters).

Since then my screen gets dimmed every few minutes -even though i'm actively using the device- and then my screen locked (in fact it did happen while i was typing this)

My guess was that the culprit is hypridle or such idle manager. but even after researching about it i couldn't find a way to tell which idle manager is running.
tried things like:

ps aux | grep hypridle

with no result... do they even stay active all the time? + pretty sure hypridle shall only start inside hyprland - specified in an exec-only in hypr.conf -

and KDE settings were no help...

or could it be another problem related to systemd for example?
at the very least is there is a way to tell which idle manager is running...?

Last edited by ahnue999 (2024-06-10 02:16:53)

Offline

#2 2024-06-04 09:32:45

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Maybe should've mentioned that i was using linux-zen kernel.
The problem was fixed when i returned to the vanila.
Will mark this a solved
If someone has a guess on why this has happened pls share it, feels of to getting thing work blindly this way.

Last edited by ahnue999 (2024-06-04 09:33:52)

Offline

#3 2024-06-07 07:33:00

seth
Member
Registered: 2012-09-03
Posts: 58,055

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Check your journal for powerdevil issues, resp. see whether configuring that allows you to control/prevent the timeout.

Offline

#4 2024-06-07 16:45:32

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

wow, sound like it was really caused by powerdevil
used:

journalctl | grep powerdevil

(there is a better way to show this result right?)

got a bunch of:

Jun 07 17:22:57 Ahnue systemd[1]: Started dbus-:1.1-org.kde.powerdevil.backlighthelper@92.service.
Jun 07 17:23:08 Ahnue systemd[1]: dbus-:1.1-org.kde.powerdevil.backlighthelper@92.service: Deactivated successfully.

will look into it and respond!

Last edited by ahnue999 (2024-06-07 18:04:21)

Offline

#5 2024-06-07 17:51:35

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Apparently powerdevil can't (?) sense my activity... At least now i know where the problem is coming from. Will disable all these suspend settings for now and look for a fix in the docs, tell me if u know how to make it recognize my activity...

Thanks aloooot Seth! this has been troubling me so much and u figured it out so simply~

Last edited by ahnue999 (2024-06-07 17:56:59)

Offline

#6 2024-06-07 19:49:10

seth
Member
Registered: 2012-09-03
Posts: 58,055

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Have you confirmed that you can mitigate the problem through configuring/disablign powerdevil?

How do you start the session? SDDM?

loginctl session-status

Does it help to add your user to the "input" group?

Offline

#7 2024-06-08 02:19:25

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Yes! both (making the timeout longer / Disabling the suspend timeout entirely)

using SDDM

adding the user to the input group didn't work.


+ Just noticed that when i hover over the tasks bar (panel in KDE) it re-adjusts the brightness as if  it has just noticed my activity.

after some tests this seems to apply the desktop too, hovering over it restores my activity.

Last edited by ahnue999 (2024-06-08 02:20:48)

Offline

#8 2024-06-08 06:56:17

seth
Member
Registered: 2012-09-03
Posts: 58,055

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Offline

#9 2024-06-08 09:47:05

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Yes, both the task bar and disktop seem to be running via Xwayland.

Offline

#10 2024-06-08 11:54:00

seth
Member
Registered: 2012-09-03
Posts: 58,055

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Probably not - the theory would also have been that whatever else you were interacting with  (steam, …) runs on xwayland and is ignored.
Or is this actually an X11 session?
(xeyes will/can track xwayland windows but ignore wayland ones)

Offline

#11 2024-06-09 05:31:38

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Yes xeyes detects the desktop and task bar and nothing else

This is a plasma 6 wayland session

Offline

#12 2024-06-09 07:29:40

seth
Member
Registered: 2012-09-03
Posts: 58,055

Re: [SOLVED] My screen getting locked even though i'm using the laptop

loginctl session-status
printenv

Offline

#13 2024-06-09 07:55:50

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

loginctl session-status:

2 - ahnue (1000)
  Since: Sun 2024-06-09 08:27:29 EEST; 2h 26min ago
  State: active
 Leader: 732 (sddm-helper)
   Seat: seat0; vc2
    TTY: tty2
 Remote: no
Service: sddm
   Type: wayland
  Class: user
Desktop: KDE
   Idle: no
   Unit: session-2.scope
         ├─732 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth-6e53095f-555b-4d44-8cab-f48bd4fad640 --id 3 --start "/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-waylan>
         ├─767 /usr/bin/kwalletd6 --pam-login 12 14
         └─768 /usr/bin/startplasma-wayland

Jun 09 08:27:30 Ahnue systemd[1]: Started Session 2 of User ahnue.
Jun 09 08:27:30 Ahnue sddm-helper[766]: pam_kwallet5: final socket path: /run/user/1000/kwallet5.socket
Jun 09 08:27:30 Ahnue sddm-helper[768]: Jumping to VT 2
Jun 09 08:27:30 Ahnue sddm-helper[768]: VT mode didn't need to be fixed
Jun 09 08:27:34 Ahnue kwalletd6[767]: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
                                      Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
                                      If this causes problems, reconfigure your locale. See the locale(1) manual
                                      for more information.
lines 1-25/25 (END)

Offline

#14 2024-06-09 07:56:30

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

printenv:

COLORFGBG=15;0
COLORTERM=truecolor
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS=https://debuginfod.archlinux.org 
DESKTOP_SESSION=plasma
DISPLAY=:0
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/ahnue/.gtkrc-2.0:/home/ahnue/.config/gtkrc-2.0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/ahnue/.gtkrc:/home/ahnue/.config/gtkrc
HOME=/home/ahnue
ICEAUTHORITY=/run/user/1000/iceauth_KnMxfU
INVOCATION_ID=7c5f840a5f344e47b58136825762c4ef
JOURNAL_STREAM=9:53320
KDE_APPLICATIONS_AS_SCOPE=1
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=6
KONSOLE_DBUS_SERVICE=:1.88
KONSOLE_DBUS_SESSION=/Sessions/1
KONSOLE_DBUS_WINDOW=/Windows/1
KONSOLE_VERSION=240500
LANG=en_US.UTF-8
LANGUAGE=
LOGNAME=ahnue
MAIL=/var/spool/mail/ahnue
MANAGERPID=739
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/background.slice/plasma-krunner.service/memory.pressure
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
MOTD_SHOWN=pam
OLDPWD=/home/ahnue
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
PATH=/home/ahnue/.local/share/zinit/polaris/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
PROFILEHOME=
PWD=/home/ahnue
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_QPA_PLATFORM=xcb
QT_WAYLAND_RECONNECT=1
SESSION_MANAGER=local/Ahnue:@/tmp/.ICE-unix/903,unix/Ahnue:/tmp/.ICE-unix/903
SHELL=/bin/zsh
SHELL_SESSION_ID=939e2275b48c447285797b0a67e8d261
SYSTEMD_EXEC_PID=5741
TERM=xterm-256color
USER=ahnue
WAYLAND_DISPLAY=wayland-0
WINDOWID=44040226
XAUTHORITY=/run/user/1000/xauth_LCrBgw
XDG_CONFIG_DIRS=/home/ahnue/.config/kdedefaults:/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/home/ahnue/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_MENU_PREFIX=plasma-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session4
XDG_SESSION_TYPE=wayland
XDG_VTNR=2
SHLVL=1
ZPFX=/home/ahnue/.local/share/zinit/polaris
ZSH_CACHE_DIR=/home/ahnue/.cache/zinit
PMSPEC=0uUpiPsf
P9K_SSH=0
_P9K_SSH_TTY=/dev/pts/2
FZF_DEFAULT_COMMAND=fd --hidden --strip-cwd-prefix --exclude .git
FZF_CTRL_T_COMMAND=fd --hidden --strip-cwd-prefix --exclude .git
FZF_ALT_C_COMMAND=fd --type=d --hidden --strip-cwd-prefix --exclude .git
FZF_CTRL_T_OPTS=--preview 'bat -n --color=always --line-range :500 {}'
FZF_ALT_C_OPTS=--preview 'eza --tree --color=always {} | head -200'
BAT_THEME=tokyonight_night
P9K_TTY=old
_P9K_TTY=/dev/pts/2
_=/usr/bin/printenv

Offline

#15 2024-06-09 08:22:16

seth
Member
Registered: 2012-09-03
Posts: 58,055

Re: [SOLVED] My screen getting locked even though i'm using the laptop

In general please don't copy and paste out of a pager, that's only a capped version of the first page of the loginctl statusm but here's your problem:

QT_QPA_PLATFORM=xcb

Offline

#16 2024-06-10 02:15:36

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Spot on!
Seems like i had:

QT_QPA_PLATFORM=xcb

in my /etc/environment, may be a guide i followed blindly, repenting.
removed that line and everything is fine now even with a 1 minute timeout.

Mmm what was the point about the pager? copied the output of the command as it is, how may i get the full output?

Thanks alot Seth! you've been a real great help as this is my very first post here and my very first 2 weeks in arch. Very Appreciated ~!
will mark this as solved

Last edited by ahnue999 (2024-06-10 02:18:29)

Offline

#17 2024-06-10 06:14:34

seth
Member
Registered: 2012-09-03
Posts: 58,055

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Mmm what was the point about the pager? copied the output of the command as it is, how may i get the full output?

Redirect the output into a file, the clipboard, a text editor, a pastebin service or use "--no-pager" (but copypasting out of a terminal is usually clumsy to)

Offline

#18 2024-06-11 01:51:51

ahnue999
Member
Registered: 2024-06-04
Posts: 13

Re: [SOLVED] My screen getting locked even though i'm using the laptop

Got it!

Offline

Board footer

Powered by FluxBB