pfps / yoga-laptop

Systems and information to make Lenovo Yoga laptops work better
GNU General Public License v3.0
156 stars 30 forks source link

Installing on ubuntu 15.10 #50

Open olekhy opened 8 years ago

olekhy commented 8 years ago

I've cloned from git master, also linux headers are installed.

I get follow exception

x@1 /x/yoga-laptop (git)-[master] % make ideapad-laptop
cd yoga_laptop && make default
make[1]: Entering directory '/x/yoga-laptop/yoga_laptop'
NOTE: You need to have the kernel-devel package installed
echo /usr/src/linux-headers-4.2.0-18-generic
/usr/src/linux-headers-4.2.0-18-generic
make -C /usr/src/linux-headers-4.2.0-18-generic SUBDIRS=/x/yoga-laptop/yoga_laptop modules
make[2]: Entering directory '/usr/src/linux-headers-4.2.0-18-generic'
  CC [M]  /x/yoga-laptop/yoga_laptop/ideapad-laptop.o
/x/yoga-laptop/yoga_laptop/ideapad-laptop.c: In function ‘ideapad_acpi_add’:
/x/yoga-laptop/yoga_laptop/ideapad-laptop.c:920:7: error: implicit declaration of function ‘acpi_video_backlight_support’ [-Werror=implicit-function-declaration]
  if (!acpi_video_backlight_support()) {
       ^
cc1: some warnings being treated as errors
scripts/Makefile.build:264: recipe for target '/x/yoga-laptop/yoga_laptop/ideapad-laptop.o' failed
make[3]: *** [/x/yoga-laptop/yoga_laptop/ideapad-laptop.o] Error 1

Makefile:1398: recipe for target '_module_/x/yoga-laptop/yoga_laptop' failed
make[2]: *** [_module_/x/yoga-laptop/yoga_laptop] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.2.0-18-generic'
Makefile:24: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/x/yoga-laptop/yoga_laptop'
Makefile:21: recipe for target 'ideapad-laptop' failed
make: *** [ideapad-laptop] Error 2

pls I need a hint

pfps commented 8 years ago

ideapad-laptop is quite old. No one should need it any more.

olekhy commented 8 years ago

thx! after compiling programs and install i get them in /usr/bin.

what would you suggest for the automatic start "orientation" and "light" at boot. i've seen system/*.service in sensors/. or is not possible for current state of development, should sudo orientation used to running program?

pfps commented 8 years ago

You could automatically start these programs I guess. Just make sure that you can kill them if needed.

kbirger commented 8 years ago

I landed here with the acpi_video_backlight_support issue you describe initially. how did you get around it?

jymbob commented 8 years ago

The general consensus is that you shouldn't need to build that component at all - its functions were rolled into the kernel a while ago.

On Sun, 28 Feb 2016, 17:36 kbirger notifications@github.com wrote:

I landed here with the acpi_video_backlight_support issue you describe initially. how did you get around it?

— Reply to this email directly or view it on GitHub https://github.com/pfps/yoga-laptop/issues/50#issuecomment-189912459.

kbirger commented 8 years ago

I just installed the latest Ubuntu, but I'm not getting screen orientation detection. Should I be? Do I need to configure it? On Feb 28, 2016 1:30 PM, "jymbob" notifications@github.com wrote:

The general consensus is that you shouldn't need to build that component at all - its functions were rolled into the kernel a while ago.

On Sun, 28 Feb 2016, 17:36 kbirger notifications@github.com wrote:

I landed here with the acpi_video_backlight_support issue you describe initially. how did you get around it?

— Reply to this email directly or view it on GitHub https://github.com/pfps/yoga-laptop/issues/50#issuecomment-189912459.

— Reply to this email directly or view it on GitHub https://github.com/pfps/yoga-laptop/issues/50#issuecomment-189918084.

olekhy commented 8 years ago

old kernel, use fedora