我用来xscreensaver
锁定屏幕。除此之外,我的显示器在 30 分钟不活动后进入“待机”状态,即关闭显示器。
我现在已经发生过两次这种情况,我已经锁定了屏幕,使用 xscreensaver-command --lock
几个小时后回来并移动鼠标时,显示器从待机状态恢复,但不是预期的 xscreensaver 登录窗口,而是直接进入我的屏幕。桌面会话 - 无需进行身份验证。
我不知道是否与电源管理功能有任何相关性,但以前当我不使用自动监视器暂停时,这种情况没有发生在我身上。
.Xauthority
另外,我家里没有任何文件,但再次不确定这是否相关。
我正在使用 Debian Wheezy 和 LXDE
有人可以建议如何调查这个问题吗?
$ xdpyinfo
name of display: :0.0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 11204000
X.Org version: 1.12.4
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x1e00004, revert to Parent
number of extensions: 26
BIG-REQUESTS
Composite
DAMAGE
DOUBLE-BUFFER
DPMS
DRI2
Generic Event Extension
MIT-SCREEN-SAVER
MIT-SHM
RANDR
RECORD
RENDER
SECURITY
SHAPE
SYNC
X-Resource
XC-MISC
XFIXES
XFree86-DGA
XFree86-VidModeExtension
XINERAMA
XInputExtension
XKEYBOARD
XTEST
XVideo
XVideo-MotionCompensation
default screen number: 0
number of screens: 1
screen #0:
dimensions: 1920x1080 pixels (508x285 millimeters)
resolution: 96x96 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x6f
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0x7a003c
ButtonPressMask ButtonReleaseMask EnterWindowMask
LeaveWindowMask StructureNotifyMask SubstructureNotifyMask
SubstructureRedirectMask FocusChangeMask PropertyChangeMask
number of visuals: 3
default visual id: 0x21
visual:
visual id: 0x21
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x22
class: DirectColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x6d
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
答案1
我肯定会说这听起来像是一个错误。我的建议是,如果您要使用 xscreensaver,请允许它处理电源管理。在命令行中键入xscreensaver-demo
,然后在 GUI 中转到“高级”选项卡,并确保选中“启用电源管理”(还可以根据您的需要调整设置)。
另外,从命令行启动 xscreensaverxscreensaver -log ~/xscreensaver.log
并查看发生这种情况时日志中的内容。