admiralakber / thinkpad-yoga-scripts

Thinkpad Yoga S1 scripts for GNU/Linux
http://blog.admiralakber.com/?p=400
GNU General Public License v3.0
147 stars 31 forks source link

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

Open sjjh opened 9 years ago

sjjh commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

I opened a bug report at ubuntu: https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1462590