-
Notifications
You must be signed in to change notification settings - Fork 30
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
Usage (Ubuntu) #3
Comments
Yes, the docs might not match up. I'll check for sure tomorrow. peter On 03/16/2014 03:51 PM, physicalgerard wrote:
|
I got to this earlier than expected. Grabthe README again. The new directions should work. peter On 03/16/2014 03:51 PM, physicalgerard wrote:
|
I'm not sure what the problem with setup is. Could you edit the file to add the -vx options to the first line of the script? Then when you runthe script, you should be able to see what is causing the peter On 03/16/2014 03:51 PM, physicalgerard wrote:
|
It outputs to the terminal
When running ./orientation, output is And ./status returns The problem is, where ubuntu saves its configuration files? |
Hmm. You are running ubuntu, right? Anyway, pull down the latest version, as I've made a few changes. 1/ You maynot have the IIO and sensor hub stuff installed. Could you check whether the directory /sys/bus/iio/devices/iio:device0 See whether the following works:
If it does work, then you can WARNING: This will add new drivers to your installed system. Hopefully 2/The status script used csh. I just fixed it to use sh instead. 3/ I'm not sure what the problem with setup is. I modified it to take an peter On 03/17/2014 11:49 AM, physicalgerard wrote:
|
Yes, ubuntu 13.10 (with unity and gnome 3.10 desktop environments) 1/ there is indeed no such folder. /sys/bus is the furthest I got. 2/ This script also looks for /sys/bus/iio. 3/ It seems to have a problem with
|
result of
|
On Ubuntu you'll need the kernel-headers package, also perhaps build-essentials and then change in the Makefile the KDIR variable to: |
Thanks for the information. I've added this information to the README and adjusted the Makefile to make peter On 03/18/2014 01:06 AM, Nikolaus Polak wrote:
|
Thanks for your help and input. I think the For
Maybe it helps, keeping in mind I might just have done something nooby. Best regards |
Thanks @pfps , the detection doesn't seem to work somehow:
Right path would be /usr/src/linux-headers-3.13.0-18 |
I expect that this is the root cause of this problem. You should update to When I started working on the sensors, I was using kernel 3.12, which had peter On 03/22/2014 11:09 AM, Nikolaus Polak wrote:
|
Alright, I've downloaded and installed the latest image of ubuntu 14.04. Linux kernel version is 3.13.0-19-generic. Here are my experiences: 1| First the sensors/drivers directory: 1.1|
to
it seemed to run as planned. 1.2| The next step
1.3| Testing 'orientation' 1.4| Testing 'status'
And if I include the code in a loop So, the sensors/drivers part runs well this time I think. 2| Then the yoga_laptop part: 2.1|
to
the output is
I guess that was successful. 2.2|
after which it outputs
I think this means success right!? 2.3|
seems OK too. 2.4| Testing So I think that this means that all is working. Thanks!! |
On 03/26/2014 02:44 PM, physicalgerard wrote:
Hmm. What error did you get? What version of make (make --version) is on
Excellent.
status is supposed to take an argument, e.g.,
|Hmm. This needs the same check for distribution as the drivers makefile|.
No error, so successful. ;-)
Yes. Just remember to do the cp. I don't know how to do a copy into a user's
I think that you mean Fn F7 - the airplane key,
Looks good! You should check to see whether Fn F6 works, whether the Novo key produces How you do this depends on your window manager. In XFCE this is in peter |
The Makefile for the sensor drivers, line 7 'ifeq ($shell grep Fedora /etc/issue,"")' should include a check for Ubuntu. I am on version 14.04 same as @physicalgerard. |
I fiddled with this makefile. It now uses /etc/os-release, and should work peter On 03/27/2014 10:54 AM, keshto wrote:
|
Hey peter, Thanks for you support. Understood everything sofar, but I'm stuck at hooking up the orientation lock key to the command. 1| I take it that the orientation lock key send a o key combination? Whenever I press it with a terminal window active, a 'r' is typed. 2| I tried out the command |
@pfps new makefile is perfect, thanks! |
The orientation lock key generates a o The orientation program listens for SIGUSR1 signals. If it gets one, then it |pkill --signal SIGUSR1 --exact orientation |peter On 03/28/2014 02:36 PM, physicalgerard wrote:
|
For home directory its sufficient to use ~ while running sudo, no solution for root shell however. |
Ok, after some digging i found that /usr/bin/logname returns current user name regardless of shell its running in (root or sudo). So something like And since this project basically replaces missing drivers, I think its valid option to make this change system wide in /etc/X11/Xmodmap |
Good. I modified the makefile to incorporate your suggestion. peter On 04/27/2014 02:47 AM, Jakub Buriánek wrote:
|
I'm new to all this, so be gentle ;)
Thanks for writing these patches to get the lenovo 2 pro laptops play nicely with linux!
2 Issues:
Is it possible the documentation in /yoga-laptop/yoga-laptop/README is outdated? It reads
But the .ko file seems to have been removed since.
Then, for /yoga-laptop/sensors:
As soon as I run ./setup, the terminal says
I'm running ubuntu 13.10 with gnome 3.10.
The text was updated successfully, but these errors were encountered: