[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [SOLVED] Trixie: KDE almost unusable causes plasmashell



On 26/08/25 at 14:41, Franco Martelli wrote:
On 26/08/25 at 02:58, Timothy M Butterworth wrote:


On Mon, Aug 25, 2025 at 7:35 PM Franco Martelli <martellif67@gmail.com <mailto:martellif67@gmail.com>> wrote:

    Hi everybody,

    The issue is that when the monitor goes in standby, I press a key to
    exit locked screen and plasmashell doesn't work anymore.


My systems work fine. Have you installed all the latest updates and rebooted?


It's a fresh Trixie installation from scratch, I chose "Expert install" menu entry and installed a base system then installed a my customized list of packages.

Do your systems run Xorg instead of Wayland and they have "nouveau" as GPU driver?

In the meantime I will try Debian 13 KDE live to check for a configuration issue. Thanks anyway!


I've solved with a workaround, a Bash script that restarts plasmashell every time the screen gets unlocked.

### ### ###

#!/bin/bash

#
# restart_ps.sh : to place under /usr/local/bin/ to restart plasmashell executable
# every time the screen get unlocked.
# In KDE desktop add to: Systemsettings → Autostart → Login Script
#

skip=0	# "skip" variable to execute plasmashell executable only once.

dbus-monitor --session "type='signal',interface='org.freedesktop.ScreenSaver'" |
while read x; do
	case "$x" in
	*"boolean true"*) : ;; # echo SCREEN_LOCKED;;
	*"boolean false"*)
	if [[ $skip == 0 ]]; then
		skip=1
		/usr/bin/sleep 3
		DISPLAY=:0 /usr/bin/plasmashell --no-respawn --replace >/dev/null 2>&1 &
		# echo SCREEN_UNLOCKED
	else
		skip=0
	fi;;
	esac
done

### ### ###

Inspired by a script published here: https://unix.stackexchange.com/a/361614

HTH, kind regards.
--
Franco Martelli


Reply to: