LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   dell-laptop.c (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/dell-laptop-c-4175663229/)

789 10-26-2019 03:42 PM

dell-laptop.c
 
I would like to compile Dell laptop module

kernel 4.8.9

Quote:

make dell-laptop
cc dell-laptop.c -o dell-laptop
dell-laptop.c:18:26: fatal error: linux/module.h: No such file or directory
#include <linux/module.h>
If I command "make dell-smbios", the compiling starts as expected and a module is made.

"make menuconfig" does not list Dell laptop module

What do I need to do to produce Dell laptop module ?

evo2 10-27-2019 11:00 PM

Hi,

it might help if you give us the bigger picture. I'm assuming you're not just trying to compile the module as an academic exercise. Presumably you are trying to get something on your laptop to work. If so what is the problem and what distro are you using?

Evo2.

Flyingwoodenhorse 10-28-2019 02:17 AM

Quote:

Originally Posted by evo2 (Post 6051332)
Hi,

Presumably you are trying to get something on your laptop to work. If so what is the problem and what distro are you using?
Evo2.

Hope OP can reply to this post as soon as possible.

hazel 10-28-2019 05:40 AM

You must have a kernel config file somewhere, either in /boot or in /proc. Try grepping for "DELL" in that and see what names come up.

789 10-28-2019 04:34 PM

Quote:

Originally Posted by evo2 (Post 6051332)
I'm assuming you're not just trying to compile the module as an academic exercise. Presumably you are trying to get something on your laptop to work.

According to legend, using dell-laptop module I can tell bios to leave backlit keyboard on all the time.
Latitude e6540 does not give an option, so keyboard light goes out after 15 seconds.
https://www.dell.com/community/XPS/X...s/td-p/7346678


dell-laptop.c is in the source (along with dell-smbios.c dell-smo8800.c and dell-rbtn.c), but it would not co-operate


Using windows 7 and the program provided by Dell I was able to tell the machine to leave the light on for 5 minutes (interestingly, it works under Linux, too)

I only care about the keyboard light under Windows, but if dell-laptop.c is in the source, I expect it to co-operate; show up in "make menuconfig"; and compile.


=========================
.config
CONFIG_X86_PLATFORM_DEVICES=y
# CONFIG_ACERHDF is not set
# CONFIG_ASUS_LAPTOP is not set
CONFIG_DELL_SMO8800=y
CONFIG_DELL_RBTN=y
# CONFIG_FUJITSU_LAPTOP is not set

evo2 10-28-2019 07:25 PM

Hi,

so, as I asked before, what distro are you using (and please include the version)?

Evo2.


All times are GMT -5. The time now is 03:27 AM.