yoga-laptop icon indicating copy to clipboard operation
yoga-laptop copied to clipboard

Installing on ubuntu 15.10

Open olekhy opened this issue 9 years ago • 7 comments

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

olekhy avatar Nov 19 '15 16:11 olekhy

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

pfps avatar Nov 19 '15 16:11 pfps

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?

olekhy avatar Nov 20 '15 09:11 olekhy

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

pfps avatar Nov 21 '15 14:11 pfps

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

kbirger avatar Feb 28 '16 17:02 kbirger

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 [email protected] 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.

jymbob avatar Feb 28 '16 18:02 jymbob

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" [email protected] 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 [email protected] 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.

kbirger avatar Feb 28 '16 21:02 kbirger

old kernel, use fedora

olekhy avatar Feb 29 '16 16:02 olekhy