Gentoo on a laptop
Jump to navigation
Jump to search
This page contains additional information for installing Gentoo on a laptop computer.
Networking
- It's highly recommended to install the NetworkManager (it will be pulled as a dependency by emerging knetworkmanager) as it allows to easily connect to networks through a GUI. You can change networks easily.
- Another network manager is wicd, untried yet.
Touchpad
- To support the touchpad the kernel should be configured with PS/2 mouse support and INPUT_DEVICES in /etc/make.conf should contain "synaptics".
- The xorg.conf file should have the following section:
Section "InputDevice" Driver "synaptics" Identifier "TouchPad" Option "SendCoreEvents" Option "Protocol" "auto-dev" Option "SHMConfig" "on" EndSection
Battery
- To install a base KDE applet to monitor your battery, emerge klaptopdaemon. This will add a new control panel in Control Center, and will start the applet (KLaptop).
- You don't need to start the acpi daemon (acpid) to have the battery monitor working.
- If you have a recent kernel (like 2.6.28), you need to build the deprecated /proc/acpi files and directories, else klaptopdaemon won't work. This will probably be fixed in future versions of KDE (as userspace programs will move to the new ACPI APIs). You don't need the deprecated APM drivers.
ACPI
- If you cannot see the ACPI event, it means there is a problem with your kernel configuration / BIOS / DSDT. For example on my Asus M51Sn the ACPI video module was needed in order to get the events from the brightness keys. Check if you have all the needed ACPI modules.
Debugging ACPI
- To debug ACPI (if some keys are not working for example):
- Try to cat the keyboard device. Real ACPI events won't generate an output; keypresses will.
- Check if your DSDT has a known problem (a DSDT can be decompiled to human form by running cat /proc/acpi/dsdt > dsdt; iasl -d dsdt).
Hotkeys
- Warning: deprecated architecture, see below.
Previous (Ubuntu) architecture
- A nice overall explanation.
- Some keypresses generate ACPI events caught by the ACPI daemon, not standard X events. You can see if some ACPI events were generated by starting a logging daemon and doing a tail /var/log/messages.
- Normally the ACPI daemon can launch scripts to handle the event action. Currently it seems there are plans to bypass the use of acpid (which runs in the userspace), and use the kernel (in conjunction with HAL) to generate direct X input events that can be used directly by your desktop manager. This is for example detailed in this blog.
ACPI scripts
- The Ubuntu acpi-support package was previously used to provide scripts ran for some ACPI events. In Gentoo it is available in the Sunrise overlay.
- In Ubuntu most of the ACPI scripts just generate a key event (via acpi_fakekey command). This indeed shows that the new way of generating directly events within the kernel is better than this roundtrip to userspace land.
Hotkeys (volume up, etc)
- acpi_fakekey no longer correctly works on newer kernels, so the acpi-support package should not be installed. The correct way is now to use a proper kernel driver that will correctly generate the key presses events, depending on your laptop model. For ASUS laptops, kernel-2.6.29 already handles this.