archcraft-os / archcraft

// Source : ISO
https://archcraft.io
GNU General Public License v3.0
3.01k stars 103 forks source link

Screen lock not working on lid close #370

Closed seeval closed 1 year ago

seeval commented 1 year ago

Screen lock not working on lid close on laptop, system fully updated.

Please see screenshot, see notification upon opening lid again.

Screenshot_2023-05-24-13-24-10_1920x1080

ab0veall commented 1 year ago

appears that you're experiencing an issue where the screen lock feature is not working properly when you close the lid of your laptop, even though your system is fully updated. To troubleshoot this problem, you can try the following steps:

Verify Power Settings: Make sure that your power settings are correctly configured to lock the screen when the lid is closed. You can usually find these settings in the power management or screen settings section of your system preferences. Check if the option to lock the screen on lid close is enabled.

Update Screen Lock Tools: Check if there are any updates available for the screen lock tools installed on your system. You can use your package manager or software update tool to check for updates and install them if there are any. After updating, restart your system and see if the issue is resolved.

Try Different Screen Lock Tools: If updating the screen lock tools doesn't fix the problem, you can try using a different screen lock tool. There are various options available, such as GNOME Screensaver, xscreensaver, or light-locker. Install an alternative screen lock tool using your package manager, set it as the default screen lock tool, and test if it works when you close the lid.

Check System Logs: It's worth checking the system logs for any error messages or clues related to the screen lock issue. The system logs can often provide helpful information about what might be causing the problem. You can typically find the system logs in the /var/log directory. Look for log files related to screen lock tools or power management and examine them for any relevant error messages.

Seek Community Support: If the problem persists, consider seeking help from the Linux community. You can visit forums or online communities specific to your Linux distribution or desktop environment. Provide details about your system, the troubleshooting steps you've already taken, and the exact error message you're encountering. Experienced users and developers in the community may be able to offer additional insights or guidance to help resolve the issue.

itsmokha commented 1 year ago

Ever since I installed the OS on my new laptop I'm having the same issue. The power settings are configured to lock the system on lid close. Betterlockscreen is on Version 4.0.4. Along with the above screenshot posted by @seeval, I also get another message, shown below.

image

matinabbasi788 commented 1 year ago

i have same problem archcraft cant lock screen systemc but with crl alt L everything is okey

jiangtao69039 commented 1 year ago

image how to fix this issue?

itsmokha commented 1 year ago

Found the fix on the Telegram channel:

adi1090x commented 1 year ago

Here's the working fix:



- Edit `/usr/local/bin/xflock4` and put this command there : `betterlockscreen --lock &`