I am running FreeBSD 12.1 on a Lenovo Thinkpad X1 Carbon successfully.
I created a
This is obviously far from good and I'd like to learn what the best way of handling this is.
Should the locking script also be part of the system itself and not of the user? My reasoning was that the graphical user interface is ran by the user using the system - not by the system itself (or root).
So far I have only used FreeBSD on servers & infrastructure and I never came across a situation like this - time to learn!
I created a
devd
rule that executes a script when the lid switch is toggled so I can lock my screen and suspend the system (enter S3). The script executed by devd
does two thingss:- Lock screen - This is done by running a separate script.
- Enter suspend mode
devd
is located under /etc/acpi/lid.conf as this is a system file. That file in turn runs /usr/home/my_user/scripts/lock_screen.sh. Therefore, the system file has a hardcoded path to a user's custom lock script (as $HOME
doesn't point to the "proper" user).This is obviously far from good and I'd like to learn what the best way of handling this is.
Should the locking script also be part of the system itself and not of the user? My reasoning was that the graphical user interface is ran by the user using the system - not by the system itself (or root).
So far I have only used FreeBSD on servers & infrastructure and I never came across a situation like this - time to learn!
