LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 10-26-2019, 03:42 PM   #1
789
LQ Newbie
 
Registered: Dec 2017
Posts: 13

Rep: Reputation: Disabled
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 ?
 
Old 10-27-2019, 11:00 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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.
 
Old 10-28-2019, 02:17 AM   #3
Flyingwoodenhorse
LQ Newbie
 
Registered: Oct 2019
Posts: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
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.
 
Old 10-28-2019, 05:40 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
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.
 
Old 10-28-2019, 04:34 PM   #5
789
LQ Newbie
 
Registered: Dec 2017
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
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
 
Old 10-28-2019, 07:25 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

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

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] HP Laser Jet 1200, Ubuntu 16.04, USB to Dell Laptop, and Dell Desktop angelzfish Linux - Hardware 1 01-11-2018 09:33 PM
Dell Laptop and Non-Dell Charger Hack? wagscat123 Linux - Hardware 5 08-31-2015 10:17 PM
Replacing Win XP with Linux on 1) Dell Laptop 2) Dell Desktop JLTStarr Linux - Newbie 7 05-20-2014 04:15 PM
Getting a Dell A940 USB printer to work on Dell Inspiron 1100 Laptop benrose111488 Linux - Hardware 12 09-24-2007 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration