Comments (11)
If you see i3lock: unrecognized option '--raw=4720x1920:rgbx'
, you don't have a recent enough i3status build. It was merged only a few days ago i3/i3lock#234 and they haven't made a release yet. So you'll have to build it from the latest git revision.
from i3lockr.
@sinetoami on Arch i3lock-git
should be recent enough.
from i3lockr.
@owenthewizard
Solve to me with i3lock-git
package as you said. Thanks!
from i3lockr.
To build in debug mode, just run cargo build
after cloning the repo. You can run it using cargo run
. This is all assuming you have the rust toolchain installed with cargo
and friends.
As for this:
= note: /bin/ld: cannot find -lxcb-image
/bin/ld: cannot find -lxcb
/bin/ld: cannot find -lxcb
/bin/ld: cannot find -lxcb
/bin/ld: cannot find -lxcb
/bin/ld: cannot find -lxcb-randr
/bin/ld: cannot find -lxcb-render
collect2: error: ld returned 1 exit status
Do you have libxcb installed, including the render and RandR extensions?
from i3lockr.
Can you try again with v0.1.2? I reworked things and have a feeling it might have fixed this.
from i3lockr.
I have them installed, but not the -devel
packages. I will try building it in debug mode tomorrow.
As for version 1.0.0, it still has the problem, albeit stated differently now:
➜ env RUST_BACKTRACE=1 i3lockr
i3lock: unrecognized option '--raw=4720x1920:bgrx'
i3lock: Syntax: i3lock [-v] [-n] [-b] [-d] [-c color] [-u] [-p win|default] [-i image.png] [-t] [-e] [-I timeout] [-f]
thread 'main' panicked at 'Failed to write image to i3lock stdin: Broken pipe (os error 32)', src/main.rs:80:29
stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: __libc_start_main
at ../csu/libc-start.c:308
10: <unknown>
from i3lockr.
Test with version 0.1.2
, not 1.0.0
. Either way you need a more recent version of i3lock
. You'll have to build it from GitHub because they haven't published a release yet.
And the packages need to be the -devel
or -dev
versions to compile.
from i3lockr.
I have tried 0.1.2, but failed with the same error.
Here's the output of the debug version:
➜ env RUST_BACKTRACE=1 cargo run
Finished dev [optimized + debuginfo] target(s) in 0.05s
Running `target/debug/i3lockr`
src/main.rs:173:5 Taking the screenshot took 12.23117ms
src/main.rs:188:5 Decoding the XImage took 72.662452ms
src/main.rs:115:9 Downscaling took 215.52021ms
src/main.rs:127:9 Darkening took 43.948351ms
src/main.rs:133:13 Blurring pass 1 took 638.673117ms
src/main.rs:139:9 Upscaling took 659.670009ms
src/main.rs:81:5 Resizing lock took 144.337799ms
src/main.rs:245:9 Drawing on CRTC-0 took 5.852402ms
src/main.rs:245:9 Drawing on CRTC-1 took 7.326166ms
src/main.rs:245:9 Drawing on CRTC-2 took 8.249312ms
src/main.rs:247:5 Total drawing time: 21.70978ms
src/main.rs:103:5 Calling i3lock with arguments: ["-i", "/dev/stdin", "--raw=4720x1920:rgbx"]
i3lock: unrecognized option '--raw=4720x1920:rgbx'
i3lock: Syntax: i3lock [-v] [-n] [-b] [-d] [-c color] [-u] [-p win|default] [-i image.png] [-t] [-e] [-I timeout] [-f]
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }', src/libcore/result.rs:997:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: std::panicking::rust_panic_with_hook
5: std::panicking::continue_panic_fmt
6: rust_begin_unwind
7: core::panicking::panic_fmt
8: core::result::unwrap_failed
at /builddir/rustc-1.35.0-src/src/libcore/macros.rs:18
9: i3lockr::main
at /builddir/rustc-1.35.0-src/src/libcore/result.rs:798
at src/main.rs:105
10: std::rt::lang_start::{{closure}}
at /builddir/rustc-1.35.0-src/src/libstd/rt.rs:64
11: std::panicking::try::do_call
12: __rust_maybe_catch_panic
13: std::rt::lang_start_internal
14: main
15: __libc_start_main
at ../csu/libc-start.c:308
16: _start
at ../sysdeps/x86_64/start.S:120
Guess I'll have to wait for the new version of i3lock
.
Compiling that one from git too is a bit too involved for me.
from i3lockr.
I have the same problem. In both versions v0.1.2
and v1.0.0
. I'm trying to build on Arch Linux. i3lock version:
i3lock: version 2.12.c-non-git
Any solution? Thanks!
from i3lockr.
v1.0.0
is very heavily experimental, honestly I shouldn't have made a release. If you want to try out the new features I suggest pulling from the v2
branch. If you can't get a recent enough version of i3lock
you'll have to revert to 0.1.1
.
from i3lockr.
I'm fairly certain this an old bug from the master
branch. I'll be merging v2
into master
shortly, if anyone still experiences this bug with the new master
(current v2
) please open a new issue.
from i3lockr.
Related Issues (12)
- PR for New package to Void-packages was created HOT 2
- Combine with suspend/hibernate? HOT 3
- 10ms wait is a stupid solution HOT 5
- Don't encode PNG HOT 2
- xcb-util version update HOT 10
- Implement Stackblur in Rust HOT 5
- Weird image artifacts with --icon on dual-monitor setup HOT 12
- AUR package for i3lockr? HOT 4
- Better Name HOT 2
- Icon doesn't show HOT 1
- Updates required for pkgsrc HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i3lockr.