Open IlgazC opened 5 years ago
Here is the output when I run auto rotate via bash -x bash -x auto-rotate
Hello, Your post helped me fix my issue, so I hope to return the favor.
I have an HP Spectre x360 with the same tablet mode and orientation. On a fresh install of auto-rotate I got similar errors as you, but I also received one indicating that the screen it was attempting to update didn't exist like this:
» ./auto-rotate awk: option `-W interactive' unrecognized, ignored
awk: option -W interactive' unrecognized, ignored right-up Error org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.UPower.KbdBacklight” on object at path /org/freedesktop/UPower/KbdBacklight warning: output not found; ignoring awk: option
-W interactive' unrecognized, ignored
rotate -- pointers: <<12
16>> matrix: <<0 1 0 -1 0 1 0 0 1>>
normal
Error org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.UPower.KbdBacklight” on object at path /org/freedesktop/UPower/KbdBacklight
warning: output not found; ignoring
awk: option `-W interactive' unrecognized, ignored
rotate -- pointers: <<12
16>> matrix: <<1 0 0 0 1 0 0 0 1>>
^C
I believe something must have happened with the 'awk -W interactive' option as well as the command to modify the backlight at some point as that seems to be the issue. Looking at your output I saw that my 'MAIN_SCREEN' variable was different and that I was also getting the errors about awk not recoginized. I ultimately hard coded my screen name and commented out the lines about modifying the backlight (I'll worry about that later). After that I restarted and all seems to be working fine. Still getting the awk errors, but they aren't affecting the rotating. Hope this helps you somehow.
Regardless, thank you for helping me!
I found out the issue. It seems that the service would start too early and then the script couldn't load properly the service. This caused the script to not found the screen. Adding a little bit of delay on the start of the service seems to resolve this issue, will propose a merge after a little bit of testing.
Sorry for unscientific title but I installed this one 2 days ago, it was working when first installed and now it does nothing when I physically rotate the device (hp pavilion 13" x360). I got some system log entries which seem related (taken when I rotated the device)
Kas 06 23:51:23 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: warning: output not found; ignoring Kas 06 23:51:23 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: awk: option
-W interactive' unrecognized, ignored Kas 06 23:51:23 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: rotate -- pointers: <<11 Kas 06 23:51:23 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: 12 Kas 06 23:51:23 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: 15>> matrix: <<-1 0 1 0 -1 1 0 0 1>> Kas 06 23:51:30 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: normal Kas 06 23:51:30 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: Error org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.UPower.KbdBacklight” on object at path /org/freedesktop/UPower/KbdBacklight Kas 06 23:51:30 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: warning: output not found; ignoring Kas 06 23:51:30 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: awk: option
-W interactive' unrecognized, ignored Kas 06 23:51:30 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: rotate -- pointers: <<11 Kas 06 23:51:30 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: 12 Kas 06 23:51:30 ilgaz-HP-Pavilion-13-x360-PC auto-rotate[2409]: 15>> matrix: <<1 0 0 0 1 0 0 0 1>>Ubuntu 19.10 here with "kubuntu-desktop" installed. I already have issues so I stay away from anything advanced (hacks etc), I just have the "kde backports ppa" installed which seems to update kde to current stable version.