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

Errormessage in grox.rb:78 at getOrientation: Could not determine orientation of eDP1 #2

Open
enexusde opened this issue Mar 23, 2016 · 10 comments

Comments

@enexusde
Copy link

from ./grox.rb +left

grox:78 (getOrientation)
grox:90 (getNewOrientation)
grox:33 (main)
grox:108 (<main>)

@yourealwaysbe
Copy link
Owner

Do you have a screen called eDP1? What's the output of xrandr?

@rootexpression
Copy link

I have the same issue, and I do have a screen called eDP1

@yourealwaysbe
Copy link
Owner

yourealwaysbe commented May 18, 2018

Could you post the output of the xrandr command? To get the orientation the script just greps the output of xrandr; hence, i'd guess the output of your xrandr is different to the output of mine!

@rootexpression
Copy link

I fussed with xrandr for maybe a few hours off and on and concluded it was not behaving. I ran xrandr --listmonitors or something like that, and a few others and got errors or no response, so I concluded it was xrandr and wiped the disk and moved on for the day. Sadly I was in a hurry to get something working this time, but I'd like to circle back to what you have put together here when I have the time and see if I can't sort out the issue.

@matthewhague
Copy link

Thanks for getting back. Let me know if you can't get it working once xrandr is.

@rootexpression
Copy link

I have it working.. The problem was sometimes things would report eDP1, but it should be eDP-1 on my system. That got the rotation of the screen working. I am still having trouble getting it to rotate inputs. If I run "xinput --set-prop 10 --type=float 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1" it'll rotate the input, but for some reason the script isn't doing it automatically.

@yourealwaysbe
Copy link
Owner

The script tries to adjust the touchscreen identified by "'Atmel Atmel maXTouch Digitizer'". I think i got that from running xinput without any arguments. Likely you need to change this variable in the script to something else (or delete the --set-prop argument from the rotateTouchscreen command around line 40).

@rootexpression
Copy link

I setup the screen, touschreen, touchpad, and keyboard variables to match my hardware.

@yourealwaysbe
Copy link
Owner

It's quite difficult to debug this remotely. What I'd do now is double check the variables at the top are exactly correct.

Next, i would add a puts statement to the orientateCmd function to find out what command it is returning. You can then try running that command directly on the shell and seeing where it fails (or post the output here of you need me to look at it).

@cjseaslug
Copy link

cjseaslug commented May 3, 2021

this mayyyyy be super sloppy but changing 2 lines got it working on my setup:

$orientationCmd = 'xrandr --query --verbose''
$orientationRE = /#{$screen}.*\) (normal|left|inverted|right) \(/

Thanks @yourealwaysbe for the phenomenal script, I definitely would have been lost without it!

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

5 participants