Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent Ubuntu desktop lock #50

Open
wiggin15 opened this issue Feb 12, 2015 · 3 comments
Open

prevent Ubuntu desktop lock #50

wiggin15 opened this issue Feb 12, 2015 · 3 comments

Comments

@wiggin15
Copy link
Contributor

If XBMC is not running, the desktop may lock and require user password (when it happened to me, I couldn't input the password too so I had to reboot the computer :/). Please disable desktop locking.

@wiggin15
Copy link
Contributor Author

Apparently, if left for 5 minutes without xbmc running, Ubuntu enters suspend mode and then requires password when unlocking. The settings to change this are in System Settings -> Brightness and Lock.
I found these commands on the internet, maybe running them (in "disable_screensaver") will fix the problem, but I'm not sure:

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false
chmod 000 /usr/lib/pm-utils/bin/pm-action

the latter is a hack because because session.idle-delay is not working - I found the trick here: http://askubuntu.com/questions/452908/how-to-disable-suspend-in-14-04

@GR360RY
Copy link
Owner

GR360RY commented Feb 18, 2015

Nice catch. I will add this to ansible.

@wiggin15
Copy link
Contributor Author

Scratch the previous comment...

The script "disable_screensaver" works, but never runs. The autostart file "disable_screensaver.desktop", copied to .config/autostart, doesn't run its command because of this line:

AutostartCondition=GSETTINGS

Apparently this condition isn't met. I don't know what this condition means, but after removing this line and re-logging in, the script /usr/bin/disable_screensaver runs and sets the proper configuration.
Is it ok to remove this line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants