grox icon indicating copy to clipboard operation
grox copied to clipboard

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

Open enexusde opened this issue 9 years ago • 10 comments

from ./grox.rb +left

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

enexusde avatar Mar 23 '16 18:03 enexusde

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

yourealwaysbe avatar May 21 '16 19:05 yourealwaysbe

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

rootexpression avatar May 18 '18 01:05 rootexpression

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!

yourealwaysbe avatar May 18 '18 09:05 yourealwaysbe

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.

rootexpression avatar May 18 '18 11:05 rootexpression

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

matthewhague avatar May 21 '18 10:05 matthewhague

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.

rootexpression avatar May 21 '18 18:05 rootexpression

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).

yourealwaysbe avatar May 21 '18 20:05 yourealwaysbe

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

rootexpression avatar May 22 '18 00:05 rootexpression

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).

yourealwaysbe avatar May 22 '18 08:05 yourealwaysbe

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!

cjseaslug avatar May 03 '21 03:05 cjseaslug