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

Not working after suspend #49

Open
stekman opened this issue Nov 13, 2015 · 3 comments
Open

Not working after suspend #49

stekman opened this issue Nov 13, 2015 · 3 comments

Comments

@stekman
Copy link

stekman commented Nov 13, 2015

The orientation functionality stops working after suspend. I use this crude script as a workaround on Ubuntu 15.10:

/etc/pm/sleep.d/restart_orientation

#!/bin/bash 
case "$1" in
    hibernate|suspend)
         killall orientation &
         ;;
    thaw|resume)
         sleep 30
         nohup /usr/bin/orientation > /dev/null &
         ;;
esac
@pfps
Copy link
Owner

pfps commented Nov 13, 2015

Hmm, I'm not seeing that.

However, maybe suspend/resume does interfere with something in the program. Has anyone else seen this behaviour?

@chhtz
Copy link
Contributor

chhtz commented Nov 13, 2015

I sometimes had this issue (after suspending) -- however not always. I haven't investigated yet what is/was causing it. Before my change in pull request #47 I also sometimes got this after pressing the rotation-lock button multiple times (this was probably because the wrong thread still had some kind of file-lock on the sensor readings)
Addendum: I'm also on Ubuntu 15.10, and I'm using XFCE (if that helps investigating)

@dehuszar
Copy link

dehuszar commented Jan 2, 2017

I'm seeing this. On Ubuntu 16.10 (and 16.04) suspend/wake actually works now. But I find that the orientation script only works when run after boot with sudo priveleges. Doing a suspend and wake causes the script to become unresponsive. Killing the orientation processes and running the script again returns iio device number being used is 2 iio trigger number being used is 2 and no new sensor data is output as the laptop is reoriented.

A fresh boot gets it working again.

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

4 participants