Giter VIP home page Giter VIP logo

Comments (18)

jasongraham avatar jasongraham commented on July 18, 2024

I am also seeing a similar error as above, using the slimlock-git package in the Arch Linux AUR freshly installed just a moment ago.

(Using the existing default slimlock.conf).

$ slimlock
X Error of failed request:  BadRRCrtc (invalid Crtc parameter)
  Major opcode of failed request:  154 (RANDR)
  Minor opcode of failed request:  20 (RRGetCrtcInfo)
  Crtc id in failed request: 0x0
  Serial number of failed request:  18
  Current serial number in output stream:  18

Not sure if the information is relevant, but I use slim, xmonad, and do not have compositing enabled.

from slimlock.

solarshado avatar solarshado commented on July 18, 2024

Another Arch user here, same AUR package, exact same error message.

Also using slim, openbox, no compositing. Systemd if it matters, just trying to launch from command line.

from slimlock.

karmicdude avatar karmicdude commented on July 18, 2024

in my laptop it's ok, but in desktop i have the same problem

from slimlock.

Bladtman242 avatar Bladtman242 commented on July 18, 2024

Confirming the issue.
slim version 1.3.4-4
slimlock-git version 20121114-1

from slimlock.

karmicdude avatar karmicdude commented on July 18, 2024

slimlock's developer declined further application support.

from slimlock.

Bladtman242 avatar Bladtman242 commented on July 18, 2024

Thanks for letting me know.
Sigh might be time for a switch then.

from slimlock.

WorMzy avatar WorMzy commented on July 18, 2024

This may be due to an X configuration problem. I've just started experiencing it myself (I'm the maintainer of the AUR -git package), and I've just switched from nouveau without an xorg.conf (which worked fine), to nvidia with a xorg.conf.

I'll have a poke around and see if I can find a solution. It may be helpful if you can confirm whether you're using the same sort of setup (nvidia+xorg.conf) or not.

from slimlock.

karmicdude avatar karmicdude commented on July 18, 2024

Yes, I used Nvidia card, without xorg.conf

from slimlock.

WorMzy avatar WorMzy commented on July 18, 2024

Yes, but are you using the nvidia driver, or nouveau?

from slimlock.

karmicdude avatar karmicdude commented on July 18, 2024

In desktop computer I use nvidia driver, proprietary. Slimlock doesn't work, in my laptop i use intel + nvidia bumblebee, by default used intel driver, slimlock works

from slimlock.

WorMzy avatar WorMzy commented on July 18, 2024

Seems like it may be a bug in the nvidia driver then. I've a tried out a number of xorg "device" options to no avail, so I don't think this is something that can be fixed on a configuration level.

I guess we'll either have to switch to something else or petition one of the active forks to investigate. Boo.

from slimlock.

dannyn avatar dannyn commented on July 18, 2024

in panel.cpp around line 597
replace
crtc_info = XRRGetCrtcInfo(Dpy, resources, primary_info->crtc);

with

if (primary_info->crtc < 1) {
    if (primary_info->ncrtc > 0) {
        // just use the first one. 
        // i do not know what the consequences
        // of this will be. it seems to be that the index
        // is which monitor to use.  
        crtc = primary_info->crtcs[0];
    } else {
        cerr << "Cannot get crtc from xrandr.\n";
        exit(EXIT_FAILURE);
    }
} else {
    crtc = primary_info->crtc;
}

the call to XRRGetOutputInfo is returning the RRCrtc in the members that are for arrays instead of the single ones.

from slimlock.

dannyn avatar dannyn commented on July 18, 2024

eh left a few things out.

here is a working fork. https://github.com/dannyn/slimlock-ABANDONED

from slimlock.

karmicdude avatar karmicdude commented on July 18, 2024

Thanks, dannyn

from slimlock.

dooway avatar dooway commented on July 18, 2024

dear dannyn,
Well, thank you very much.
Date: Thu, 6 Dec 2012 23:04:53 -0800
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [slimlock-ABANDONED] Can not lock the screen (#19)

eh left a few things out.

here is a working fork. https://github.com/dannyn/slimlock-ABANDONED

          ¡ª

          Reply to this email directly or view it on GitHub.

from slimlock.

WorMzy avatar WorMzy commented on July 18, 2024

Many thanks, dannyn!

If you could rename your fork and pull in renatoaguiar's minor changes, I'll update the AUR package's PKGBUILD to point at your fork instead of theirs. Or, if you'd prefer, could you send a pull request to them?

Thanks again!

from slimlock.

dannyn avatar dannyn commented on July 18, 2024

I've merged his changes. I've also added it so if you have multiple monitors the background should display on all of them (although it will use the resolution of the first one for all of them, I plan on fixing that).

Before you update the AUR, somebody should probably test to make sure that it works on one monitor, and that it still works for people who didnt have the problem I fixed in the first place. I feel pretty confident that there will not be an issue, but you never know.

from slimlock.

WorMzy avatar WorMzy commented on July 18, 2024

Well it's been working fine all day here, so it seems to work okay on single-monitor setups. I implemented the crtc fix yesterday by way of a patch, and I haven't had any complaints from anyone yet. Assuming that there's none overnight, I'll update the AUR package tomorrow. I still think you should drop the "ABANDONED" from the repo name though. :P

Cheers!

from slimlock.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.