Parando a tela de ficar preta após travar no Ubuntu 14.04

6

No Ubuntu 14.04 quando eu bloqueio minha tela, ele mostra minha tela de login e o plano de fundo é uma boa idéia, mas depois de alguns segundos a tela fica preta.

Como posso impedir o Ubuntu de fazer isso para ver minha tela de login até que eu faça login novamente?

    
por RazorBack11 08.05.2014 / 14:53

1 resposta

3

A resposta na verdade vem de outra pergunta: Como controlar Preferências de economia de energia LightDM?

[...]I've added a script to handle turning off the X dpms timeouts when the user logs in. Here are the three files that I've created. First, the config file:

/etc/lightdm/lightdm.conf.d/50-dpms.conf

[SeatDefaults] 
display-setup-script=/etc/lightdm/dpms-enable
session-setup-script=/etc/lightdm/dpms-disable

Make sure the above is owned by root. Easiest is to create it with sudoedit.

Next are the two scripts. These need to be owned by root and made executable (chmod +x).

/etc/lightdm/dpms-enable

#!/bin/sh

(
    # This delay is required. Might be because the X server isn't
    # started yet.
    sleep 10

    # Set up a 5 minute timeout before powering off the display.
    xset dpms 0 0 300 
) &

/etc/lightdm/dpms-disable

#!/bin/sh

(
    # This delay is required. Might be because the X server isn't
    # started yet.
    sleep 10

    # Turn off X's handling of dpms timeout. Otherwise
    # gnome-settings-daemon and gnome-screensaver will fight over it.
    xset dpms 0 0 0 
) &

Given the above, I get monitor power-down at the login screen, and the dpms timeouts are set to zero for a user session, so the screensaver works properly.

Em teoria, basta definir todos os valores para xset dpms para zero e você deve ser golden:)

    
por ilarsona 02.09.2014 / 00:17

Tags