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

Half height of the external display (left rotated) remains unlocked. #44

Closed
invano opened this issue Nov 16, 2015 · 8 comments
Closed
Assignees

Comments

@invano
Copy link

invano commented Nov 16, 2015

The issue affects the latest release of i3lock and has not been tested on previous releases.

I use i3 and i3lock on xubuntu 14.04 (Trusty Tahr) with 2 displays:

  1. Laptop display
  2. External display placed as "right of" the laptop display

If the external display is rotated 90° to left, i3lock does not draw its overlay in a good way on it. In particular, the overlay is perfectly drawn on the laptop display but it only covers 50% of the height of the external display.
Since only half of the external display is "locked", i3lock does not completely secure the underlying tiles/windows.

However, as soon as a key is pressed and the password validation routine starts working, the new overlay containing the login animation finally occupies the entire screen.
To have an unsecure lockscreen again it is enough to login with the correct password and then lock the screen again.

@stapelberg
Copy link
Member

What’s the output of i3lock --version (“latest” is not a version number :)) and what’s the output of xrandr?

@Airblader
Copy link
Member

Are you running a compositor? Does not running it fix it?

@invano
Copy link
Author

invano commented Nov 17, 2015

What’s the output of i3lock --version (“latest” is not a version number :))

With latest I mean i3lock 2.7:
i3lock: version 2.7 (2015-05-20) © 2010 Michael Stapelberg

and what’s the output of xrandr?

Screen 0: minimum 8 x 8, current 3120 x 1920, maximum 32767 x 32767
eDP2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
1920x1080 60.1*+ 59.9
1680x1050 60.0 59.9
1600x1024 60.2
1400x1050 60.0
1280x1024 60.0
1440x900 59.9
1280x960 60.0
1360x768 59.8 60.0
1152x864 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
DP2 connected 1200x1920+1920+0 left (normal left inverted right x axis y axis) 518mm x 324mm
1920x1200 60.0*+
1920x1080 59.9
1600x1200 60.0
1680x1050 60.0
1280x1024 75.0 72.0 60.0
1440x900 75.0 59.9
1024x768 75.1 70.1 60.0
800x600 72.2 75.0 60.3
640x480 75.0 72.8 66.0 60.0 59.9
720x400 70.1
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
eDP-1-1 disconnected
DVI-D-1-1 disconnected

Where DP2 is the external display rotated.

Are you running a compositor? Does not running it fix it?

No compositor is running but I will check with it as soon as I get the opportunity.

@stapelberg stapelberg self-assigned this Nov 17, 2015
@stapelberg
Copy link
Member

Please run sudo apt-get install xtrace, then use Ctrl+Alt+F1 to switch to a text console, log in, run DISPLAY=:0 xtrace -o /tmp/xtrace.log i3lock -n, use Ctrl+Alt+F7 to switch to X11 (do not enter your password), then switch back and cancel the i3lock process using Ctrl+C.

Then, compress /tmp/xtrace.log using bzip2 -9 /tmp/xtrace.log and provide /tmp/xtrace.log.bz2 please.

@stapelberg
Copy link
Member

(If xtrace prints “Error parsing xauth list data”, add the -n flag, i.e. DISPLAY=:0 xtrace -n -o /tmp/xtrace.log i3lock -n)

@invano
Copy link
Author

invano commented Nov 23, 2015

The xtrace log is available here: https://www.dropbox.com/s/2bw2gv5901gguyt/xtrace.log.bz2?dl=0

@stapelberg
Copy link
Member

From the logfile, i3lock creates a 3120x1920 window:

000:<:00b9: 44: Request(1): CreateWindow depth=0x00 window=0x04e00003 parent=0x000000c6
x=0 y=0 width=3120 height=1920 border-width=0 class=InputOutput(0x0001)
visual=CopyFromParent(0x00000000)
value-list={background-pixmap=0x04e00000
override-redirect=true(0x01)
event-mask=KeyPress,KeyRelease,Exposure,VisibilityChange,StructureNotify}

From the xrandr output you provided, that matches up the X server’s root window size:

Screen 0: minimum 8 x 8, current 3120 x 1920, maximum 32767 x 32767

Hence, I think i3lock is behaving correctly here.

I’m not sure why you are running into the problem you’ve described. Could you boot from a live linux distribution and run i3lock there to make sure it’s not something in your setup?

@Airblader
Copy link
Member

Closing due to inactivity.

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

3 participants