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

rotate script crashes /usr/lib/unity-settings-daemon/unity-settings-daemon #8

Open
sjjh opened this issue May 30, 2015 · 6 comments
Open

Comments

@sjjh
Copy link

sjjh commented May 30, 2015

HW: Thinkpad Yoga 12
SW: Vanilla Ubuntu 15.04
See apport report at http://muenster.de/~simonh/_usr_lib_unity-settings-daemon_unity-settings-daemon.1000.crash

Is there anything I can debug, if yes -- how?

@sjjh
Copy link
Author

sjjh commented Jun 1, 2015

I recognised that after rotating the laptop once certain keyboard combinations as CTRL + ALT + T to open a terminal or Fn + F1, Fn + F2, Fn + F3, Fn + F4 to control volume/mic or Fn +F5, Fn + F6 to control display brightness don't work any more. Fn + F8 to toggle WiFi still works though, as well as Fn + Space for the keyboard lightning.
Any idea on how to debug it? If I run the python script directly in the console I don' get any (error) output.

@admiralakber
Copy link
Owner

Try run the xrandr orientation rotation directly through console with xrandr -o right then bring it back with xrandr -o normal. It is possible this is a Unity specific issue.

@sjjh
Copy link
Author

sjjh commented Jun 1, 2015

I experienced a strange behaviour...
First of all I made sure that the systemd service is not running by stopping it. The key combo Fn + F2 is working. After issuing xrandr -o right the screen turns right and then immediately back to normal again. The key combo Fn + F2 is not working anymore.
If I run xrandr -o right a second time the screen stay right rotated and I can bring it back to normal with xrandr -o normal.
I have no idea what happens here...

@sjjh
Copy link
Author

sjjh commented Jun 3, 2015

caught another error log: http://muenster.de/~simonh/_usr_lib_unity-settings-daemon_unity-settings-daemon.1000.crash.2
Not sure how to debug it and not sure who is creating problems for whom here, does the rotate script fail because there is a bug in X on this hardware, or does X get problems because the rotate script breaks something....?

@admiralakber
Copy link
Owner

The rotate script simply reads the value out of the accelerometer in /sys/bus/iio/devices/iio:device*/ where * may be different on any computer and runs xrandr -o <orientation> accordingly to those numbers.

I believe this is not an issue with X, or the script, but rather the unity-settings-daemon not playing well with xrandr for some reason. You probably are best taking this crash to them and they may be able to help you.

I'll keep this as an open issue on Unity at this stage.

@sjjh
Copy link
Author

sjjh commented Jun 6, 2015

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

2 participants