On my laptop running kali the screen started rotating randomly, sometimes it gets inverted, others left or right. I found the command xrandr -o normal to fix it but that is temporal, a few minutes later it changes orientation for no reason and i hate going back to the terminal and using that over and over again, so if someone knew how to stop it i would be grateful.

closed as off-topic by Kusalananda, Rui F Ribeiro, Jesse_b, vonbrand, DopeGhoti May 4 '18 at 21:04

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Kusalananda, Rui F Ribeiro, Jesse_b, vonbrand, DopeGhoti
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    I suppose you have iio-proxy-sensor installed in your system by default. This utility reports the status of the orientation sensor to your DE environment which in turn rotates the screen. Have a look in this post to see how you will identify where is the bug. It could be the iio-sensor-proxy that gives wrong commands to your DE : unix.stackexchange.com/questions/335260/… – George Vasiliou Jan 31 '17 at 1:12
  • I've just removed the 'iio-sensor-proxy' that was installed, as suggested in the link you gave me, but this keeps on happening – agustinsantellan Jan 31 '17 at 1:26
  • What is your desktop environment? Did you reboot after removal? – George Vasiliou Jan 31 '17 at 7:01
  • I just figured out what was wrong, the accelerometer, so i disabled It. So far, the problem is solved – agustinsantellan Jan 31 '17 at 7:25