{"action":"created","issue":{"url":"https://api.github.com/repos/hadess/iio-sensor-proxy/issues/19","labels_url":"https://api.github.com/repos/hadess/iio-sensor-proxy/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/hadess/iio-sensor-proxy/issues/19/comments","events_url":"https://api.github.com/repos/hadess/iio-sensor-proxy/issues/19/events","html_url":"https://github.com/hadess/iio-sensor-proxy/issues/19","id":75734876,"number":19,"title":"Operation with Fedora 22...","user":{"login":"ratboy666","id":7596496,"avatar_url":"https://avatars.githubusercontent.com/u/7596496?v=3","gravatar_id":"","url":"https://api.github.com/users/ratboy666","html_url":"https://github.com/ratboy666","followers_url":"https://api.github.com/users/ratboy666/followers","following_url":"https://api.github.com/users/ratboy666/following{/other_user}","gists_url":"https://api.github.com/users/ratboy666/gists{/gist_id}","starred_url":"https://api.github.com/users/ratboy666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratboy666/subscriptions","organizations_url":"https://api.github.com/users/ratboy666/orgs","repos_url":"https://api.github.com/users/ratboy666/repos","events_url":"https://api.github.com/users/ratboy666/events{/privacy}","received_events_url":"https://api.github.com/users/ratboy666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-12T20:53:02Z","updated_at":"2015-05-13T14:59:51Z","closed_at":null,"body":"I have an Acer W700 tablet, with Fedora 22 (beta). Gnome 3.16.1, Kernel 4.0.2. I built and installed iio-sensor-proxy 0.1. The tablet screen doesn't rotate. So, I took a debug dump (below) which shows that the rotation is being detected -- but the screen still not rotating. Verified that the daemon process is running after startup:\r\n[root@dejah lengine]# systemctl status iio-sensor-proxy.service\r\n● iio-sensor-proxy.service - IIO Sensor Proxy service\r\n   Loaded: loaded (/usr/lib/systemd/system/iio-sensor-proxy.service; static; vendor preset: disabled)\r\n   Active: active (running) since Tue 2015-05-12 07:13:37 EDT; 9h ago\r\n Main PID: 775 (iio-sensor-prox)\r\n   CGroup: /system.slice/iio-sensor-proxy.service\r\n           └─775 /usr/local/sbin/iio-sensor-proxy\r\n\r\nMay 12 07:13:37 dejah systemd[1]: Started IIO Sensor Proxy service.\r\nMay 12 07:13:37 dejah systemd[1]: Starting IIO Sensor Proxy service...\r\n[root@dejah lengine]# \r\n\r\nAnd now the debug dump (started with tablet in \"normal\" orientation, rotated so right edge up, then rotated back to \"normal\"):\r\n\r\n[root@dejah iio-sensor-proxy-0.1]# G_MESSAGES_DEBUG=all /usr/local/sbin/iio-sensor-proxy\r\n** (process:2856): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:8087:0A04.0001/HID-SENSOR-200073.0.auto/iio:device4\r\n** (process:2856): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:8087:0A04.0001/HID-SENSOR-200073.0.auto/iio:device4 at IIO Buffer accelerometer\r\n** (process:2856): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:8087:0A04.0001/HID-SENSOR-200073.0.auto/trigger4\r\n** (process:2856): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0\r\n** (process:2856): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0\r\n** (process:2856): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0\r\n** (process:2856): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0\r\n** (process:2856): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0\r\n** (process:2856): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0\r\n** (process:2856): DEBUG: Read from IIO: -12, -248, -79\r\n** (process:2856): DEBUG: Sent by driver (quirk applied): 12, 248, -79\r\n** (process:2856): DEBUG: Emitted orientation changed: from undefined to normal\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: Read from IIO: -46, -248, -33\r\n** (process:2856): DEBUG: Sent by driver (quirk applied): 46, 248, -33\r\n** (process:2856): DEBUG: Read from IIO: -209, -120, -76\r\n** (process:2856): DEBUG: Sent by driver (quirk applied): 209, 120, -76\r\n** (process:2856): DEBUG: Emitted orientation changed: from normal to right-up\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: Read from IIO: -230, -33, -92\r\n** (process:2856): DEBUG: Sent by driver (quirk applied): 230, 33, -92\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: Read from IIO: -163, -166, -99\r\n** (process:2856): DEBUG: Sent by driver (quirk applied): 163, 166, -99\r\n** (process:2856): DEBUG: Read from IIO: -23, -243, -69\r\n** (process:2856): DEBUG: Sent by driver (quirk applied): 23, 243, -69\r\n** (process:2856): DEBUG: Emitted orientation changed: from right-up to normal\r\n** (process:2856): DEBUG: Read from IIO: -7, -240, -58\r\n** (process:2856): DEBUG: Sent by driver (quirk applied): 7, 240, -58\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: Read from IIO: -12, -240, -97\r\n** (process:2856): DEBUG: Sent by driver (quirk applied): 12, 240, -97\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: Read from IIO: -15, -248, -69\r\n** (process:2856): DEBUG: Sent by driver (quirk applied): 15, 248, -69\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n** (process:2856): DEBUG: No new data available\r\n^C\r\n"},"comment":{"url":"https://api.github.com/repos/hadess/iio-sensor-proxy/issues/comments/101703567","html_url":"https://github.com/hadess/iio-sensor-proxy/issues/19#issuecomment-101703567","issue_url":"https://api.github.com/repos/hadess/iio-sensor-proxy/issues/19","id":101703567,"user":{"login":"ratboy666","id":7596496,"avatar_url":"https://avatars.githubusercontent.com/u/7596496?v=3","gravatar_id":"","url":"https://api.github.com/users/ratboy666","html_url":"https://github.com/ratboy666","followers_url":"https://api.github.com/users/ratboy666/followers","following_url":"https://api.github.com/users/ratboy666/following{/other_user}","gists_url":"https://api.github.com/users/ratboy666/gists{/gist_id}","starred_url":"https://api.github.com/users/ratboy666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ratboy666/subscriptions","organizations_url":"https://api.github.com/users/ratboy666/orgs","repos_url":"https://api.github.com/users/ratboy666/repos","events_url":"https://api.github.com/users/ratboy666/events{/privacy}","received_events_url":"https://api.github.com/users/ratboy666/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T14:59:51Z","updated_at":"2015-05-13T14:59:51Z","body":"Thanks a whole bunch for having a look! Automatic rotation and ambient light sensing are the two things still missing from my \"tablet experience\", and I am really looking forward to having these working!\r\n\r\nYes, the debug output is accurate -- I ran it and copy/pasted from the terminal.\r\n\r\nYes, this is a \"plain\" gnome 3 -- stock fedora 22 (so, I presume \"plain\" -- not sure precisely what that really is -- I do use a handful of gnome shell extensions: applications menu, battery percentage, battery power statistics shortcut, caffeine, clipboard indicator, coverflow alt-tab,  project hamster extension,  refresh wifi  connections,  settingscenter, suspend button,  topicons, transparent top bar and window overlay icons).\r\n\r\ngnome-setting-daemon is running: as pid 1583 (see below). Note that iio-sensor-proxy is running as pid 762 (I gathered both pids) . Is there a dependency there?\r\n\r\n$ ps ax | grep gnome\r\n 1140 tty1     Ssl+   0:00 /usr/libexec/gdm-x-session --run-script gnome-session\r\n 1288 tty1     Sl+    0:00 gnome-session\r\n 1546 tty1     Sl+    0:00 /usr/libexec/at-spi2-registryd --use-gnome-session\r\n 1579 tty1     Sl+    0:00 /usr/bin/gnome-keyring-daemon --start --components=pkcs11\r\n 1583 tty1     Sl+    0:02 /usr/libexec/gnome-settings-daemon\r\n 1656 tty1     Sl+    8:10 /usr/bin/gnome-shell\r\n 1732 tty1     Sl+    0:00 /usr/libexec/gnome-shell-calendar-server\r\n 1888 tty1     Sl+    0:00 /usr/libexec/gnome-user-share-obexpush\r\n 1900 tty1     Sl+    0:00 /usr/bin/gnome-software --gapplication-service\r\n 2100 tty1     Sl+    0:00 /usr/libexec/evolution-calendar-factory-subprocess --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2042x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2042/2\r\n 2119 tty1     Sl+    0:00 /usr/libexec/evolution-calendar-factory-subprocess --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.Calendarx2042x3 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/Calendar/2042/3\r\n 2154 tty1     Sl+    0:00 /usr/libexec/evolution-addressbook-factory-subprocess --bus-name org.gnome.evolution.dataserver.Subprocess.Backend.AddressBookx2120x2 --own-path /org/gnome/evolution/dataserver/Subprocess/Backend/AddressBook/2120/2\r\n 3729 tty1     Sl+    0:01 /usr/libexec/gnome-terminal-server\r\n 3732 tty1     S+     0:00 gnome-pty-helper\r\n 4758 pts/4    S+     0:00 grep --color=auto gnome\r\n\r\n$ ps ax | grep iio\r\n  762 ?        Ss     0:01 /usr/local/sbin/iio-sensor-proxy\r\n 4877 pts/4    S+     0:00 grep --color=auto iio\r\n\r\nNow the udevadm output:\r\n\r\n$ sudo udevadm monitor --udev\r\nmonitor will print the received events for:\r\nUDEV - the event which udev sends out after rule processing\r\n\r\nUDEV  [6561.064666] change   /devices/virtual/input/input6 (input)\r\nUDEV  [6566.674530] change   /devices/virtual/input/input6 (input)\r\n\r\nI stated udevadm, rotated the table to right edge up, and then back to \"normal\" orientation.\r\n\r\n"}}