-
Notifications
You must be signed in to change notification settings - Fork 8
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
Comments
Do you have a screen called eDP1? What's the output of xrandr? |
I have the same issue, and I do have a screen called eDP1 |
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! |
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. |
Thanks for getting back. Let me know if you can't get it working once xrandr is. |
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. |
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). |
I setup the screen, touschreen, touchpad, and keyboard variables to match my hardware. |
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). |
this mayyyyy be super sloppy but changing 2 lines got it working on my setup:
Thanks @yourealwaysbe for the phenomenal script, I definitely would have been lost without it! |
from ./grox.rb +left
grox:78 (getOrientation)
grox:90 (getNewOrientation)
grox:33 (main)
grox:108 (<main>)
The text was updated successfully, but these errors were encountered: