Comments (11)
Well, that is all that you should have to do unless something has gone wrong. You should even be able to
make programs
if nothing else has been installed.
Please include the output when you
make programs
and then
sudo make programs-install
so that I can try to see what is going wrong.
from yoga-laptop.
Thanks for coming back to me.
No rule to make target 'programs'. Stop.
I tried running it from all subdirectories. I'm running ubuntu unity
from yoga-laptop.
Aah.
This should be done in the main directory, i.e., the one that has sensors and
yoga_laptop as subdirectories. There should be a Makefile in that directory
that has programs as a target.
peter
On 08/05/2014 07:42 AM, rwijtvliet wrote:
Thanks for coming back to me.
|No rule to make target 'programs'. Stop.|
I tried running it from all subdirectories. I'm running ubuntu unity—
Reply to this email directly or view it on GitHub
#16 (comment).
from yoga-laptop.
A bit better, but not quite yet:
~/Software/yoga-laptop-master$ make programs
cd sensors && make all
make[1]: Entering directory `/home/user/Software/yoga-laptop-master/sensors'
cc orientation.c -o orientation
In file included from orientation.c:29:0:
libs/common.h:32:35: fatal error: X11/extensions/Xrandr.h: No such file or directory
#include <X11/extensions/Xrandr.h>
^
compilation terminated.
make[1]: *** [orientation] Error 1
make[1]: Leaving directory `/home/user/Software/yoga-laptop-master/sensors'
make: *** [programs] Error 2
I tried installing the package you mentioned was necessary, but couldn't find it:
~/Software/yoga-laptop-master$ sudo apt-get install libXrandr-devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libXrandr-devel
from yoga-laptop.
@rwijtvliet libXrandr-devel
may be the Fedora package name
to find what package you need in Debian, do apt-file search Xrandr.h
, and you'll see that the package name is libxrandr-dev
.
from yoga-laptop.
After installing libxrandr-dev
and glib-2.0
:
yoga-laptop-master$ make programs
cd sensors && make all
make[1]: Entering directory `/home/ruud/Software/yoga-laptop-master/sensors'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ruud/Software/yoga-laptop-master/sensors'
... I'm not sure if things got installed before, but the screen isn't rotating and the mouse pad remains active when putting into tablet mode...
any further suggestions? Thanks again
from yoga-laptop.
You have to run the orientation program, no daemons are set up.
When you run the orientation program, it should output some stuff saying whether it is working. If it is silent after some initial messages then something has gone wrong. Here is what I see:
yoga-laptop> orientation
iio device number being used is 4
iio trigger number being used is 4
Orientation 1, x: -19, y: -933, z: -298
Orientation at 0.0 is normal
Orientation 1, x: -13, y: -937, z: -312
Orientation at 1.0 is normal
ROTATE to normal
Orientation 1, x: -9, y: -939, z: -313
Orientation at 2.0 is normal
Orientation 1, x: -6, y: -938, z: -319
Orientation at 3.0 is normal
Orientation 1, x: -5, y: -939, z: -314
Orientation at 4.0 is normal
Orientation 1, x: -9, y: -939, z: -320
from yoga-laptop.
So I have to run the orientation program on startup in background (eg. via the "Startup Applications" settings in Ubuntu)? Isn't that a bit inperformant?
What about a service that listens to changes?
from yoga-laptop.
Certainly a service setup would be nice. However someone has to do the coding.
from yoga-laptop.
If you what to install the program as system service, the display needs to be set correctly.
I have a few patches which allows to pass the display, but I have to rebase them first. I also have a systemd service file for F20.
from yoga-laptop.
+1 for running as a service, but many congrats on getting it working.
from yoga-laptop.
Related Issues (20)
- Not working on Yoga 2 13 (non-pro) HOT 47
- Can't compile on Ubuntu 14.10 HOT 4
- Not working with Yoga 3 Pro and Ubuntu 14.10 HOT 1
- orientation.c won't compile since last commit HOT 2
- Possible Error in code of orientation HOT 2
- Testing on Yoga 2 11'' HOT 11
- Detecting screen folding degree and deactivating keyboard/touchpad if it passes 180 degree HOT 3
- Kernel 4.0 / Debian: make programs fails with "Undefined reference to `build_channel_array'" HOT 12
- Issue installing HOT 6
- Linux driver in Fedora 19-21 crashing after few seconds after the orientation program is started HOT 5
- no wifi on Yoga 3 14 HOT 1
- Debounce light sensor HOT 1
- Does nothing on Ubuntu 15.04 / 15.10 HOT 1
- Not working after suspend HOT 3
- Installing on ubuntu 15.10 HOT 7
- Ubuntu 15.10 - notify.h not found HOT 9
- Add another input to orientation HOT 2
- how to makethis work HOT 12
- Touchpad not being disabled HOT 1
- Documentation: Add Yoga 460 support start with kernel 4.10 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yoga-laptop.