Monday, April 30, 2012

Android and USB Tethering v2

I've cleanup my kernel settings for using USB tethering with Android.
There aren't many modules needed to make it work.

Also DHCP is fetching an IP as soon as you enable tethering on your phone when you don't manage your connections with wicd or another client.

The following modules are needed in your kernel: -> Device Drivers -> Network device support -> USB Network Adapters <*> Multi-purpose USB Networking Framework -*- CDC Ethernet support (smart devices such as cable modems) <*> Host for RNDIS and ActiveSync devices (EXPERIMENTAL)
That's actually all you need. You can also build them as modules.

To use tethering with wicd, change your wired device in wicd settings from eth0 to usb0.

If your dhcpcd doesn't fetch an IP, use the following command: dhcpcd usb0

Tuesday, April 24, 2012

Acer Aspire 5755G - 14 - Bumblebee

It was surprisingly easy to get hybrid graphics to work.
I'm using the closed source nvidia-drivers and won't cover noveau in this post.

Check if nvidia is added to your make.conf: VIDEO_CARDS="nvidia i915 intel"

Add Bumblebee Overlay: layman -a bumblebee

Emerge Bumblebee and nvidia-drivers: emerge bumblebee emerge nvidia-drivers

Check the Bumblebee config file in /etc/bumblebee/bumblebee.conf: # The Driver used by Bumblebee server. If this value is not set (or empty), # auto-detection is performed. The available drivers are nvidia and nouveau # (See also the driver-specific sections below) Driver=nvidia

Add Bumblebee to autostart: rc-update add bumblebee default

Add your user to the bumblebee group: usermod -a -G bumblebee <user>

That's it so far, but there's still a small problem.
Bumblebee will start a desktop manager as soon as you boot. I'm using slim for that and it's working well.
Install any desktop manager you like and set it up before rebooting.

To use nvidia for special tools use: optirun <tool>

Remember to rebuild bbswitch every time you update your kernel: emerge -1 bbswitch

Acer Aspire 5755G - 13 - Xorg

Some changes in make.conf and the useflags are needed for a smooth experience in Xorg with the integrated Intel Graphics.

Changes in make.conf:

Mesa comes with a i915 flag for video cards support: VIDEO_CARDS="nvidia i915 intel"

Touchpad works only with synaptics support: INPUT_DEVICES="evdev synaptics wacom keyboard mouse"

Useflag changes: # disabled useflags USE="-joystick -caps -nls" # minimal qt support with egl instead of glx USE="${USE} -qt4 -accessibility -plasma -exceptions -jit -gstreamer gtkstyle qt3support egl" # fonts USE="${USE} fontconfig corefonts truetype cleartype" # system USE="${USE} threads acpi mmx sse sse2 ssse3 sse4_1" # services USE="${USE} udev dbus policykit udisks hibernate-script" # display and graphic USE="${USE} vdpau vaapi sna X opengl cairo v4l ffmpeg xinerama gtk gtk3" # media USE="${USE} alsa jack lensfun lcms exif png svg jpeg jpeg2k svg xmp" # audio dev USE="${USE} ladspa lash" # others USE="${USE} vim-syntax cjk"
Important useflags:
egl: Make use of egl instead of glx for qt rendering, egl is smaller and fully supported by mesa
vdpau: Adds support for outsourcing video decoding to nvidia
vaapi: Adds support for intel HD Video Acceleration API for hardware decoding
sna: SandyBridge's new acceleration

Changes in /etc/portage/package.use:

### media-libs #mesa vdpau media-libs/mesa g3dvl #mesa intel media-libs/mesa gbm gles2 openvg osmesa shared-dricore xa xvmc

Build Xorg: emerge xorg-server

Changes in xorg.conf:
Xorg is starting without any xorg.conf at all, but we can add some custom stuff to it.
We need to use the modular configs for xorg because of bumblebee.
Create the directory /etc/X11/xorg.conf.d: mkdir -p /etc/X11/xorg.conf.d
The naming of the files in /etc/X11/xorg.conf.d isn't important at all, choose whichever you like.

Keyboard Layout:
/etc/X11/xorg.conf.d/01-keyboard.conf Section "InputClass" Identifier "Logitech USB Receiver" Driver "evdev" #add german and us keyboard layout Option "XkbLayout" "de,us" Option "XkbVariant" "nodeadkeys," #make them toggle by using alt+shift; add termination of xorg by using ctrl+alt+backspace Option "XkbOptions" "grp:alt_shift_toggle,terminate:ctrl_alt_bksp" MatchIsKeyboard "on" EndSection

Acer Aspire 5755G - 12 - Fixing ACPI for backlight

My Acer Aspire came with a buggy dsdt image which didn't allow me to change the backlight of my screen and minor other things.

Things which are still not working after my changes:

  • Multimedia keys are unhandled
  • Fan control

Things which are working:

  • Backlight
  • Battery Status
  • Switch off Screen
  • Switch off Wifi
  • Changing CPU Frequency with laptop mode tools and cpufreqd
  • Bumblebee
    • Turn on/off Nvidia on fly
    • Dualscreen mode

I'm still not really happy with the bugfixes and will do further updates to the dsdt file. But all I really need is working now.

I've added the dsdt files to my git: Zentoo

How to use the dsdt.hex:

Copy the hex file to /usr/src as dsdt.h: cp dsdt.hex /usr/src/dsdt.h

Include it into your Kernel: Power management and ACPI options ---> [*] ACPI (Advanced Configuration and Power Interface) Support ---> (/usr/src/dsdt.h) Custom DSDT Table file to include

Add the following kernel parameter to your grub: linux (hd0,msdos5)/vmlinuz-3.3.2-pf rootfstype=btrfs root=/dev/sda7 ro rootflags=subvol=root quiet acpi_osi=Linux acpi_backlight=vendor

Sunday, April 22, 2012

KXStudio Applications for Jack

I'm curious about the applications collection of KXStudio, but I'm still struggling with my new laptop and it's creepy ACPI support. The stupid dsdt is really messed up and totally buggy. That's also the reason why the last parts of the Aspire tutorial are still missing >.<

But well, I've found some really neat tools for Jack today. They look like they could replace the laditray stuff.

There are no ebuilds for them yet, but if somebody wants to have a look and test them, here's the link: KXStudio:Applications

Some feedback would be great though. Let me know if it's worth to test them. ^^

Friday, April 20, 2012

Sunflower Filemanager - Ebuilds

I've finally got time to update the available ebuild for sunflower from maksbotan overlay.
You can find the ebuild for the latest release and a live ebuild on the belak overlay.
layman -a belak emerge sunflower -pv
All credits go to Maxim Koltsov. I've just made some small changes for the updated version.

Wednesday, April 11, 2012

Acer Aspire 5755G - 11 - Final steps before reboot

Some final settings need to be done before rebooting.

Settings in /etc/conf.d:

/etc/conf.d/hwclock: clock="local"

Check the file /etc/conf.d/keymaps and set it to your keyboard layout. keymap="de-latin1-nodeadkeys"


Fstab:

/etc/fstab: # /etc/fstab: static file system information. # # noatime turns off atimes for increased performance (atimes normally aren't # needed); notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail / tail freely. # # The root filesystem should have a pass number of either 0 or 1. # All other filesystems should have a pass number of 0 or greater than 1. # # See the manpage fstab(5) for more information. # # fs mountpoint type opts dump/pass # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. /dev/sda5 /boot ext2 noauto,noatime 1 2 /dev/sda7 / btrfs subvol=root,defaults 0 1 /dev/sda7 /usr/portage btrfs subvol=portage,compress 0 0 /dev/sda7 /var btrfs subvol=var,compress 0 0 /dev/sda7 /home btrfs subvol=home 0 0 /dev/sda6 none swap sw 0 0


Locale:

Edit the file /etc/locale.gen and add all locale you need. en_US ISO-8859-1 en_US.UTF-8 UTF-8 de_DE ISO-8859-1 de_DE@euro ISO-8859-15 de_DE.UTF-8 UTF-8 Run locale-gen: locale-gen

If you want to change your system language (The language in which your gentoo talks to you, system messages and such things), have a look into /etc/env.d.
You have to create a file 02locale with a content similar like this: LANG="de_DE.UTF-8" LC_COLLATE="C"

Root Password:

Set your root password. You aren't able to login without setting it. passwd


Reboot:

exit umount -l /mnt/gentoo/dev{/shm,/pts,} umount -l /mnt/gentoo/usr/portage umount -l /mnt/gentoo{/proc,/boot,/var} reboot


Good Luck! ^^

Acer Aspire 5755G - 10 - Internet and wlan

Android tethering:

Tethering works out of the box, it also fetches an IP via DHCP during boot when you enable tethering on your phone.


Ethernet and Wireless:

First of all we need to create two new init scripts, one for ethernet and one for wireless. cd /etc/init.d cp net.lo net.eth0 cp net.lo net.wlan0

I'm using wicd for managing my connections. emerge wicd rc-update add wicd default

We do not want to hotplug the net.eth0 and net.wlan0 services. Edit /etc/rc.conf and uncomment rc_hostplug. nano /etc/rc.conf # rc_hotplug is a list of services that we allow to be hotplugged. # By default we do not allow hotplugging. # A hotplugged service is one started by a dynamic dev manager when a matching # hardware device is found. # This service is intrinsically included in the boot runlevel. # To disable services, prefix with a ! # Example - rc_hotplug="net.wlan !net.*" # This allows net.wlan and any service not matching net.* to be plugged. # Example - rc_hotplug="*" # This allows all services to be hotplugged rc_hotplug="net.lo !net.*"

That's actually all we need for now.

Remember to set it up after reboot. You can easily do it with the wicd-curses interface.
Press "P" (yes, capitalized) to get into the preferences and alter the Wireless Interface Setting to wlan0, then press F10 to save the settings.
It should scan for available networks as soon as you did this. Choose your network with the cursor keys up and down, then hit cursor key right to configure it.

Acer Aspire 5755G - 09 - Grub2

I'm using Grub2 because it support some nice ways to theme it.
The setup of it is slightly confusing though and I never got around with the auto configuration stuff of it.
I'm going to explain in this post how you can set it up with your own config files which is also a little bit more gentooish.


The Installation:

Grub2 is still masked by keyword **, it needs to be unmasked.
First we need the /etc/portage folder: mkdir -p /etc/portage Then we need to decide which version we want, the latest release snapshot or the live gits.
For gits: echo "sys-boot/grub **" > /etc/portage/package.keywords For the latest release snapshot: echo "=sys-boot/grub-2* **" > /etc/portage/package.keywords I'm using gits without any troubles.

Now we are able to emerge it. emerge grub:2


The Configuration:

We need to disable all autoconfig scripts in /etc/grub.d. cd /etc/grub.d chmod -x 10_linux chmod -x 20_linux_xen chmod -x 30_os-prober

Now the custom configuration for our dualboot system.
Open 40_custom with nano: nano 40_custom

Linux Part:
menuentry 'Navi 3.0.26' { load_video set gfxpayload=keep insmod gzio insmod part_msdos linux (hd0,msdos5)/vmlinuz-3.0.26-tuxonice rootfstype=btrfs root=/dev/sda7 ro rootflags=subvol=root quiet }

menuentry:
It's the name which should be displayed in grub2, choose whichever you want.

set gfxplayload:
A built in framebuffer. Set it either to keep or auto.

insmod gzio:
Loads the gzip module to unpack the kernel image.

insmod part_msdos:
Load the msdos partition table module.

linux:
Loads the kernel with several parameters.
Let's have a look at it step by step:

(hd0,msdos5):
That's your boot partition where your kernel is located. Grub2 starts to count hdds at 0 and partitions at 1. So (hd0,msdos5) is the first hdd and the fifth msdos partition.

vmlinuz-3.0.26-tuxonice:
That's the kernel which should be loaded when you choose to boot this menu entry. So (hd0,msdos5)/vmlinuz-3.0.26-tuxonice boots the kernel vmlinuz-3.0.26-tuxonice from the first hdd and fifth partition.

rootfstype:
The choosen filesystem for root. It has to match the actual filesystem of your root partition. It's set to btrfs in my case.

root:
This option has to be set to the hdd and partition where your root is located. My grub2 loads /dev/sda7 as root.

ro:
Mount the root readonly during boot time. It will be later remounted with rw flags through fstab.

rootflags:
This is only needed for btrfs. It indicates which subvolume contains the root. Set it to the name of your root subvolume which you've created in your btrfs pool.

quiet:
Prevents spamming tons of debug output during boot time. Unset this option if your system doesn't boot and you'll see some nice error messages.

Windows Part:
menuentry 'The Devils Instrument' { insmod part_msdos insmod chain chainloader (hd0,msdos2)+1 }

menuentry:
Again the name which should be displayed.

indmod part_msdos:
And the partition table type.

insmod chain:
Since Windows comes with an own bootloader on the second partition, we need to chainload it and need the chain module.

chainloader:
The actual chainloader. It loads the Windows bootloader from (hd0,msdos2), the first hdd and second partition.
The addon +1 indicates on which partition Windows is installed. It's on the third partition in my case, so I need to count up one partition.
If the Windows bootloader would be on the second partition but Windows itself on the fifth, then it would look like this: chainloader (hd0,msdos2)+3

This was all we need for now, we will later alter it a little bit for splash support and fancy things but that will be covered in a later chapter.

Hit ctrl+o to save the config, then ctrl+x to leave the editor.


Create config and write Grub2 into mbr:

Now we're going to create the config. Make sure that /boot is mounted and /etc/grub.d/40_custom executeable. mkdir -p /boot/grub2 chmod +x /etc/grub.d/40_custom grub2-mkconfig -o /boot/grub2/grub.cfg It might show some warnings about /sys not loaded or not readable, but you can ignore them.

Check the created config file in /boot/grub2. It sometimes happens that it isn't created at all.
It should look like this, it's only important for now, that the custom part is added to it: navi lia # cat /boot/grub2/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub2-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s $prefix/grubenv ]; then load_env fi set default="0" if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" else menuentry_id_option="" fi export menuentry_id_option if [ "${prev_saved_entry}" ]; then set saved_entry="${prev_saved_entry}" save_env saved_entry set prev_saved_entry= save_env prev_saved_entry set boot_once=true fi function savedefault { if [ -z "${boot_once}" ]; then saved_entry="${chosen}" save_env saved_entry fi } function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } if [ x$feature_default_font_path = xy ] ; then font=unicode else insmod part_msdos insmod btrfs set root='hd0,msdos7' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 79ae43bc-38b5-494b-9f07-0f3190096236 else search --no-floppy --fs-uuid --set=root 79ae43bc-38b5-494b-9f07-0f3190096236 fi font="/root/usr/share/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=1366x768 load_video insmod gfxterm set locale_dir=$prefix/locale set lang= insmod gettext fi terminal_input gfxterm terminal_output gfxterm insmod part_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 b1008699-03ad-4d72-8213-ec028739292a else search --no-floppy --fs-uuid --set=root b1008699-03ad-4d72-8213-ec028739292a fi insmod gfxmenu loadfont ($root)/grub2/themes/remix/bauhaus.pf2 loadfont ($root)/grub2/themes/remix/dejavu.pf2 insmod png set theme=($root)/grub2/themes/remix/theme.txt export theme if sleep --interruptible 0 ; then set timeout=10 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### BEGIN navi main ### menuentry 'Navi 3.0.26' { load_video set gfxpayload=keep insmod gzio insmod part_msdos linux (hd0,msdos5)/vmlinuz-3.0.26-tuxonicenavi rootfstype=btrfs root=UUID=79ae43bc-38b5-494b-9f07-0f3190096236 ro rootflags=subvol=root quiet splash initrd /initramfs-3.0.26-tuxonicenavi.img } menuentry 'The Devils Instrument' { insmod part_msdos insmod chain chainloader (hd0,msdos2)+1 } ### END /etc/grub.d/40_custom ###

And the final step, the install: grub2-install --no-floppy /dev/sda


We are almost ready to reboot, just some minor steps are ahead of us: Internet configuration, fstab and root password.

Acer Aspire 5755G - 08 - Kernel - tuxonice-sources

Hibernation brings some advantages to a Laptop.
It doesn't shutdown the hole system and boots it completely again, but writes a ram image to a swap partition or swap file.
That image will be recovered when the laptop is switched on again which results into a faster boot up.

I've chosen the TuxOnIce kernel for that reason: navi lia # eix tuxonice-sources [I] sys-kernel/tuxonice-sources Available versions: (2.6.38-r1) 2.6.38-r1!b!s (3.0.17-r1) 3.0.17-r1!b!s (3.0.20) (~)3.0.20!b!s (3.0.22) (~)3.0.22!b!s (3.0.24) (~)3.0.24!b!s (3.0.26) (~)3.0.26!b!s {{build deblob symlink}} Installed versions: 3.0.26(3.0.26)!b!s(12:54:11 04/04/12)(-build -symlink) Homepage: http://dev.gentoo.org/~mpagano/genpatches/ http://www.tuxonice.net Description: TuxOnIce + Gentoo patchset sources navi lia # emerge tuxonice-sources

I'm using Pappys kernel seeds as a basic config for years so I've also got tuxonice sources which are matching my kernel version: cd /usr/src/linux wget http://kernel-seeds.org/seeds/64_bit/tuxonice/3.0.26-tuxonice-x86_64-08.config -o .config

I don't use genkernel because I like the full control over my kernel and which drivers are built as static or module. make menuconfig

My kernel is almost only static and only a few drivers are built as modules. But I'll mark those drivers which can be built as modules. They will be indicated with <*/m>.

I'm listing only those settings here which I've altered from the pappy seeds.

General setup:
The only change in general setup is adding my default hostname, the name of my I've set in /etc/conf.d/hostname to the kernel config. General setup ---> (navi) Default hostname

Enable loadable module support:
No changes here.

Enable the block layer:
Also no changes.

Processor type and features:
Main setup for CPU support. Here are several changes to fit the kernel to core i7. Processor type and features ---> Processor family (Core 2/newer Xeon) ---> [*] Machine Check / overheating reporting [*] Intel MCE features <*> /dev/cpu/microcode - microcode support [*] Intel microcode patch loading support

Power management and ACPI options:
Hibernation with TuxOnIce will be covered in a later chapter, so let's just set up ACPI for now. The module for the dock is optional. If you got a docking station, enable it. More settings and special drivers will be part of a later chapter. I haven't figured out the best options yet. Power management and ACPI options ---> [*] Run-time PM core functionality [*] ACPI (Advanced Configuration and Power Interface) Support ---> [ ] Deprecated /proc/acpi files [ ] Deprecated power /proc/acpi directories <*/m> AC Adapter <*/m> Battery <*/m> Fan <*/m> Smart Battery System <*/m> Allow ACPI methods to be inserted/replaced at run time CPU Frequency scaling ---> Default CPUFreq governor (ondemand) ---> <*/m> 'powersave' governor <*/m> 'userspace' governor for userspace frequency scaling <*/m> 'ondemand' cpufreq policy governor <*/m> 'conservative' cpufreq governor [*] Cpuidle Driver for Intel Processors Memory power savings ---> <*> Intel chipset idle memory power saving driver

Bus options (PCI etc.):
My Aspire hasn't any PCMCIA so I've disabled it. Bus options (PCI etc.) ---> < > PCCard (PCMCIA/CardBus) support --->

Executable file formats / Emulations:
No changes

Networking support:
I've enabled IPv6, but it's optional. Most router don't support it yet anyway. You can build it also as module for the case you want to play with it. I've also built in the cfg80211 stack. It's the 'new' main stack for wireless support and needed for the WIFI card. [*] Networking support ---> Networking options ---> <*/m> The IPv6 protocol ---> [*] Wireless ---> <*/m> cfg80211 - wireless configuration API <*/m> Generic IEEE 802.11 Networking Stack (mac80211)

Device Drivers:
The section for all the drivers we need for our hardware. Many changes here. Hardware Monitoring support will be covered in a later chapter about ACPI and power management. Device Drivers ---> <*> Serial ATA and Parallel ATA drivers ---> <*> AHCI SATA support [*] ATA SFF support [*] ATA BMDMA support <*> Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support [*] Network device support ---> [*] Ethernet (1000 Mbit) ---> [*/m] Broadcom Tigon3 support [*] Wireless LAN ---> <*/m> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlagn) # BEGIN Android tethering; optional USB Network Adapters ---> [*/m] Multi-purpose USB Networking Framework -*/m- CDC Ethernet support (smart devices such as cable modems) [*/m] CDC EEM support [*/m] Host for RNDIS and ActiveSync devices (EXPERIMENTAL) [*/m] Simple USB Network Links (CDC Ethernet subset) [*] Embedded ARM Linux links (iPaq, ...) # END Android tethering; optional Input device support ---> {*} Sparse keymap support library # BEGIN touchpad [*] Mice ---> <*> PS/2 mouse [*] Elantech PS/2 protocol extension # END touchpad [ ] Joysticks/Gamepads ---> [ ] Tablets ---> [ ] Touchscreens ---> [ ] Miscellaneous devices ---> Character devices ---> <*> Hardware Random Number Generator Core support <*/m> Intel HW Random Number Generator support [*] Watchdog Timer Support ---> <*/m> Intel TCO Timer/Watchdog [*/m] Multimedia support ---> # BEGIN Acer Crystal Eye Webcam <*/m> Video For Linux < > Remote Controller adapters ---> [*] Video capture adapters ---> [*] V4L USB devices ---> <*/m> USB Video Class (UVC) [*] UVC input events device support < > GSPCA based webcams ---> [ ] Radio Adapters ---> # END Acer Crystal Eye Webcam Graphics support ---> # BEGIN Integrated Intel and Hybrid Graphic Support <*> /dev/agpgart (AGP Support) ---> <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support [*] Laptop Hybrid Graphics - GPU switching support <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> <*> Intel 8xx/9xx/G3x/G4x/HD Graphics [*] Enable modesetting on intel by default # END Integrated Intel and Hybrid Graphic Support # Leave this enabled if you want some fancy bootlogo [ ] Bootup logo ---> <*/m> Sound card support ---> <*/m> Advanced Linux Sound Architecture ---> # BEGIN Modules which are needed by Jack <*/m> Sequencer support <*/m> HR-timer backend support [*] Use HR-timer as default sequencer timer # END Modules which are needed by Jack [ ] Generic sound devices ---> [*] PCI sound devices ---> # BEGIN Intel HDA <*/m> Intel HD Audio ---> [*] Build Realtek HD-audio codec support [*] Build HDMI/DisplayPort HD-audio codec support END Intel HDA [ ] USB sound devices ---> [*] USB support ---> <*/m> xHCI HCD (USB 3.0) support (EXPERIMENTAL) <m> USB Printer support <*/m> MMC/SD/SDIO card support ---> # BEGIN SD-Cardreader <*/m> SDHCI support on PCI bus <*/m> SDHCI support on the platform specific bus # END SD-Cardreader [*] Staging drivers ---> <*/m> Intel Management Engine Interface (Intel MEI) [*] X86 Platform Specific Device Drivers ---> <*/m> Acer WMI Laptop Extras <*/m> WMI <*/m> Intel Intelligent Power Sharin <*/m> WMI support for MXM Laptop Graphics

File systems:
Drivers of your root partition must be built into the kernel and not as module, or your kernel won't be able to mount root. File systems ---> Ext3 journalling file system support The Extended 4 (ext4) filesystem < > Reiserfs support <*> Btrfs filesystem (EXPERIMENTAL) Unstable disk format DOS/FAT/NT Filesystems ---> MSDOS fs support VFAT (Windows-95) fs support NTFS file system support [*] NTFS write support [*] Network File Systems ---> NFS client support NFS server support CIFS support (advanced network filesystem, SMBFS successor)

Partition Types:
The Aspire has a pretty old and limited BIOS. We just need support for MSDOS partition tables. Partition Types ---> [*] PC BIOS (MSDOS partition tables) support


Well, that's it. Exit menuconfig and save your new configuration.

Make sure /boot is mounted for the next steps.
Now we need to compile and install the kernel. make make modules_install cp arch/x86_64/boot/bzImage /boot/vmlinuz-3.0.26-tuxonice

We need to intall the iwlagn firmware for the wireless card in the last step: emerge iwl6005-ucode

Monday, April 9, 2012

Acer Aspire 5755G - 07 - Tools

A small overview of systemtools I've installed. All tools can be installed when you are in chroot.

Recommenced:

System Logger:
app-admin/syslog-ng
Logs all events on your pc and writes them to /var/log/messages emerge syslog-ng rc-update add syslog-ng default

Cron:
sys-process/vixie-cron
Schedules timed events. Some tools need a running cron. emerge vixie-cron rc-update add vixie-cron default

Logrotate:
app-admin/logrotate
Rotates logs on daily basis. I'd really recommence it if you don't want to search for errors in a 30mb+ logfile.
It depends on cron and installs a cron file into /etc/cron.daily. No need to set it up if you're fine with a daily logrotation. emerge logrotate

DHCP Client:
net-misc/dhcpcd
Fetches IP and hostnames from a DHCP server. Dhcpcd sometimes doesn't work for some cards, an alternative would be net-misc/dhcp. emerge dhcpcd

FS tools:
sys-fs/btrfs-progs
Toolchain for the filesystem. You need at least the one matching your filesystems.
btrfs: sys-fs/btrfs-progs
ext2, ext3, ext4: sys-fs/e2fsprogs
xfs: sys-fs/xfsprogs
reiserfs: sys-fs/reiserfsprogs
jfs: sys-fs/jfsutils
emerge btrfs-progs



Optional:

app-portage/gentoolkit
A collection of very useful tools. One tool I use very often is euse. It shows the description of useflags. emerge gentoolkit

app-portage/eix
A shell tool to search portage with many filter options and color highlighting. emerge eix eix-update

app-portage/layman
Layman is a overlay manager. It's the easiest way to use overlays. emerge layman Add to /etc/make.conf: source /var/lib/layman/make.conf

dev-util/ccache
An addon to gcc. It caches bytecode for faster compiling.
emerge ccache ccache -M 2G Add to /etc/make.conf: FEATURES="ccache" CCACHE_DIR="/var/tmp/ccache" CCACHE_SIZE="2G"

sys-apps/pciutils
Provides Tools to deal with the PCI bus. The tool lspci is part of this package. emerge pciutils

sys-apps/usbutils
Same as pciutils but for USB. emerge usbutils

Acer Aspire 5755G - 06 - Useflags

I'm using awesome as window manager and decided to not go for a KDE or Gnome profile.
I went for a plain amd64 profile because I prefer to enable useflags instead of disabling them. navi lia # eselect profile list Available profile symlink targets: [1] default/linux/amd64/10.0 * [2] default/linux/amd64/10.0/selinux [3] default/linux/amd64/10.0/desktop [4] default/linux/amd64/10.0/desktop/gnome [5] default/linux/amd64/10.0/desktop/kde [6] default/linux/amd64/10.0/developer [7] default/linux/amd64/10.0/no-multilib [8] default/linux/amd64/10.0/server [9] hardened/linux/amd64 [10] hardened/linux/amd64/selinux [11] hardened/linux/amd64/no-multilib [12] hardened/linux/amd64/no-multilib/selinux

I've also disabled flags I really never need as first step of my useflag configuration.
You can see all active useflags in the output of emerge --info. #all permanent disabled useflags USE_DISABLE="-qt4 -accessibility -plasma -joystick -caps" These useflags needs some tweaking later when installing a basic qt environment to work with some qt tools.
The tweaks will be done in /etc/portage/package.use.

Have a look at /proc/cpuinfo for all flag you need to fully support your cpu. flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid There aren't useflags for all features, but some can be activated.

Here are the global useflags I've set: USE="${USE_DISABLE} threads vdpau acpi vim-syntax mmx sse sse2 ssse3 sse4 sse4_1 alsa jack dbus truetype X png cjk gtk opengl"

threads:
The core i7 supports threading, so we activate it of course.

vdpau:
That's a feature of Nvidia cards. It allows to offload some CPU processing to the GPU. It's still experimental though but I never had troubles with this useflag.

acpi:
Power Management for your laptop. This useflag is essential for a long life of your battery.

mmx, sse, sse2, sse4 and sse4_1:
These are the cpu useflags to enable support for your hardware.

alsa, jack:
Global alsa and jack support. We want to listen to some music, right?

dbus:
This useflag isn't set in non desktop profiles, so we enable it here manually.

truetype:
We need some global truetype support for xorg. It's also not set in non desktop profiles.

X:
To build the tools with X support and GUIs if available.

png, jpeg, jpeg2k, tiff:
Add the needed image formats here. I've decided to go only with a global png support. Jpeg is enables for some tools in my /etc/portage/package.use file.

cjk:
Support for asian languages. Chinese, Japanese, Korean. Skip it if you don't need support for them.

gtk:
Global gtk support. I'm using almost only gtk tools.

opengl:
Linux 3d support. Yes I want it.


There's still the nls flag if you built your system for other languages than english. It's native language support.


So far so good. I can play games, listen to music, watch videos and do regular tasks with these settings and the system stays small and smooth.

Acer Aspire 5755G - 05 - make.conf and settings

I'm using -march=native for almost two years now and didn't run into any troubles yet. So I've also chosen it for my new Aspire.

My make.conf: CFLAGS="-march=native -O2 -pipe" CXXFLAGS="${CFLAGS}" CHOST="x86_64-pc-linux-gnu" MAKEOPTS="-j2" VIDEO_CARDS="nvidia intel" ALSA_CARDS="" INPUT_DEVICES="evdev keyboard mouse" ACCEPT_KEYWORDS="~amd64" LINGUAS="en en_US" EMERGE_DEFAULT_OPTS="--with-bdeps=y --jobs=10 --load-average=20.0 --keep-going"

Let's go through it step by step.

CFLAGS:
As I said, -march=native. I don't use any fancy parameters. Most bring only a very minor advantage and some tools have troubles to compile with exotic flags. I'm staying on the safe side and just added the supported flags by Gentoo.

CXXFLAGS:
Same as CFLAGS, nothing to say here.

CHOST:
Two options here. For 64bit systems choose x86_64-pc-linux-gnu, for 32bit systems choose i386-pc-linux-gnu.
It's important to match the Gentoo sources you've installed or the compiler will run crazy.

MAKEOPTS:
I always use -j2. Higher values don't bring much speedup and the compile time is way longer.

VIDEO_CARDS:
First of all you need intel for the integrated graphic chip. But you have the choice between nvidia and nouveau.
Nvidia is the closed source driver, nouveau the open source one.
I'm using the driver from nvidia because some 'games' don't work that well with nouveau and the 3d acceleration is still better in the closed source drivers.
My recommendation.. if you don't need fast 3d rendering or want to play games, go for the nouveau driver otherwise set nvidia here.

ALSA_CARDS:
There aren't any special alsa drivers or firmware for the Intel HDA. Set this to empty or alsa will be built with support for all supported cards.

INPUT_DEVICES:
The touchpad and keyboard are working with plain evdev drivers, just the swipe stuff doesn't work. I haven't checked the synaptic support for the touchpad yet.
I'll update this part as soon as I know more about this.
I've also added mouse and keyboard because xorg with bumblebee was keeping complaining about missing drivers. All input devices worked though even without them.

ACCEPT_KEYWORDS:
I'm running unstable amd64 for more than 5 years now and I never had any big troubles with it. It's save to set this to ~amd64.

LINGUAS:
Set this to your prefered system languages.
Keep in mind that this option is just for building the languages your system should talk, not the languages you want to input.
If you don't want to switch the tools interfaces or system outputs to japanese or korean or whatever, then don't add the language here.
Input languages will be covered in a later chapter about iBus. I am using japanese and korean input methods with LINGUAS only set to en.

EMERGE_DEFAULT_OPTS:
The option --with-bdeps=y is important if you want to update world with dependencies of the tool and not only the packages which are recorded in the world file.
Jobs is needed for parallel compiling. Set jobs to 10 if you want to be able to emerge up to 10 tools at the same time. It speeds up the compiling alot because the CPU is waiting for input most of the time when you compile only one tool at a time. So why wasting resources?
The option --load-average limits the load of the overall compiling processes to keep the system responsible even if gcc has a lot to do. I've set it very high to see what my new Aspire is able to do and I've never hit the 20 yet. A value between 5 and 10 seems to be reasonable though.
Keep-going just tells emerge that it should continue with compiling even if some packages fail. It's handy when you do a bigger world update while sleeping or something like that.


Other setting:

You need to set your system timezone:
cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime echo "Europe/Berlin" > /etc/timezone

And the hostname in /etc/hosts: # IPv4 and IPv6 localhost aliases 127.0.0.1 navi.psyche navi localhost ::1 navi.psyche navi localhost Take care to set host.domain as the first setting or Gentoo will keep to come up with host.unknown_domain all the time which slows down the system because it keeps poking dhcp for a valid domain name.

And this is end of chapter 05. The next chapter will cover my useflags and the profile I've chosen.

Acer Aspire 5755G - 04 - Gentoo: Prepare disks and chroot

The first trouble:
I couldn't boot from my Gentoo thumb. It couldn't find the thumb while mounting root.
So if you have some troubles booting from a thumbdrive, get the Live DVD. It's slow, noisy and runs flawless.

The second trouble:
Fdisk reported "Partition does not start on physical sector boundary" after creating the Linux partitions.
I've really never seen that issue before and was quite confused.

I took the radical way again to figure out what was going on:

  • I've started a X root session
    As root: startx -- :1
  • Opened gparted
  • Deleted all Linux partitions again
  • Created an extended container
  • Recreated the Linux partitions in it
  • Saved the whole thing
  • Reboot

That finally did it and the error messages went away.

My partition table looked like this after a long fight: navi lia # parted /dev/sda GNU Parted 3.1 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ATA TOSHIBA MK1059GS (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 16.1GB 16.1GB primary ntfs diag 2 16.1GB 16.2GB 105MB primary ntfs boot 3 16.2GB 311GB 295GB primary ntfs 4 311GB 1000GB 689GB extended 5 311GB 312GB 105MB logical ext2 6 312GB 322GB 10.5GB logical linux-swap(v1) 7 322GB 637GB 315GB logical 8 637GB 1000GB 364GB logical ntfs

The first three partition are still owned by Windows.
I'm using an extra ext2 partition for grub2 because I had lots of troubles with it on a btrfs partition.

The swapdrive is important for TuxOnIce. It must be as big as your RAM or it won't be able to hold the RAM image on hibernating.

My root partition is a btrfs. I haven't had any troubles with it in the past and it seems to run stable.
And finally the ntfs partition for the shared files (formated in Windows).


The rest of this post follows the Gentoo install guide up to the point where the new Gentoo will be chrooted.

Some filesystems need to be created on the Linux partitions: mkfs.ext2 /dev/sda5 mkswap /dev/sda6 mkfs.btrfs -L gentoo /dev/sda7

Btrfs needs some subvolumes: mkdir -p /mnt/pool mount -t btrfs /dev/sda7 /mnt/pool cd /mnt/pool btrfs subvolume create root btrfs subvolume create var btrfs subvolume create portage btrfs subvolume create home

The partitions have to be mounted: mount -t btrfs -o subvol=root /mnt/gentoo mkdir -p /mnt/gentoo/boot mkdir -p /mnt/gentoo/var mkdir -p /mnt/gentoo/usr/portage mkdir -p /mnt/gentoo/home mount -t btrfs -o subvol=var,compress /mnt/gentoo/var mount -t btrfs -o subvol=portage,compress /mnt/gentoo/usr/portage Important: Do not mount boot at this point. The grub2 configuration script might not recognize it correctly. The boot partition has to be mounted after chrooting into gentoo.

Now it's time to get the Gentoo sources and portage snapshot from a mirror. But take care to get the stage3-amd64 if you want a 64bit system. Yes, Intel 64bit uses also the Gentoo amd64 package.

Sources unpack: cd /mnt/gentoo tar xjpf stage3* cd /mnt/gentoo/usr time tar xjf portage-latest*

Prepare for chroot: mount -t proc proc /mnt/gentoo/proc mount --rbind /dev /mnt/gentoo/dev cp -L /etc/resolv.conf /mnt/gentoo/etc/ chroot /mnt/gentoo /bin/bash env-update && source /etc/profile

Now the boot partition needs to be mounted. Do this from a second terminal as root in the live DVD: mount -t ext2 /dev/sda5 /mnt/gentoo/boot

Well, that's so far for this post. The next steps will be explained in chapter 05.

Sunday, April 8, 2012

Acer Aspire 5755G - 03 - Dualboot with Gentoo and Windows 7

I've decided to go for a dualboot system with Gentoo and Windows 7.
The main problem was to shrink the Windows partition, because the silly swap file is exatly in the middle of it.

I went the radical way and did the following:
  • Created the Recovery DVDs with the Acer Tools
  • Wiped the whole HDD with Gentoo Live DVD and fdisk
  • Booted into the Windows Recovery DVDs
  • Set the new size of the Windows Partition during install

I have a 1TB HDD in my Acer Aspire.
My partitiontable looked like this after the Windows reinstall: Partition 1: 15GB: Acer Stuff, Recovery, Drivers Partition 2: 100MB: Windows Boot and RecoveryPartition Partition 3: 300GB: Windows 7 Partition 4: ~700GB: free space

I also wanted a partition to share files between Gentoo and Windows, but wasn't sure about the filesystem.

I've created a NTFS partition after the install of Gentoo. The Linux NTFS support is pretty good and I won't have to fight with FAT limits.

Acer Aspire 5755G - 02 - Supported Hardware by Gentoo Linux

Intel Core i7-2670QM:
Gentoo Stage: 32bit: stage3-x86 64bit: stage3-amd64 Kernel Modules: Location: -> Processor type and features Processor family (Core 2/newer Xeon)


00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
AGP Controller for Intel Integrated Graphics
Kernel driver in use: agpgart-intel Location: -> Device Drivers -> Graphics support -> /dev/agpgart (AGP Support) <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support


00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
PCI Express Bus
Kernel driver in use: pcieport Location: -> Bus options [*] PCI Express support


00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
Intel Integrated Graphic
Kernel driver in use: i915 Location: -> Device Drivers -> Graphics support [*] Laptop Hybrid Graphics - GPU switching support <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) ---> <*> Intel 8xx/9xx/G3x/G4x/HD Graphics [*] Enable modesetting on intel by default


00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
Intel Management Engine Interface
Kernel driver in use: mei Location: -> Device Drivers -> Staging drivers <*> Intel Management Engine Interface (Intel MEI)


00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
USB 2.0 Controller
Kernel driver in use: ehci_hcd Location: -> Device Drivers -> USB support <*> EHCI HCD (USB 2.0) support


00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
Intel HD Audio
Codec: navi lia # head -n 1 /proc/asound/card0/codec* ==> /proc/asound/card0/codec#0 <== Codec: Realtek ALC269VB ==> /proc/asound/card0/codec#3 <== Codec: Intel CougarPoint HDMI Kernel driver in use: HDA Intel Location: -> Device Drivers -> Sound card support -> Advanced Linux Sound Architecture -> PCI sound devices [*] Build Realtek HD-audio codec support [*] Build HDMI/DisplayPort HD-audio codec support


00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4)
Intel PCI Express Ports
Kernel driver in use: pcieport Location: -> Bus options [*] PCI Express support


00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
USB 2.0 Controller
Kernel driver in use: ehci_hcd Location: -> Device Drivers -> USB support <*> EHCI HCD (USB 2.0) support


00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 04)


00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
SATA Controller
Kernel driver in use: ahci Location: -> Device Drivers -> Serial ATA and Parallel ATA drivers <*> AHCI SATA support


00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
SMBus Controller
Kernel driver in use: i2c_i801 Location: -> Device Drivers -> I2C support -> I2C Hardware Bus support <*> Intel 82801 (ICH/PCH)


01:00.0 VGA compatible controller: NVIDIA Corporation Device 0de9 (rev ff)
Nvidia GeForce GT 640M
Driver: x11-drivers/xf86-video-nouveau x11-base/noveau-drm #addon for 3d acceleration OR x11-drivers/nvidia-drivers


02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe (rev 10)
Broadcom NetLink 1000 Mbit Ethernet Controller
Kernel driver in use: tg3 Location: -> Device Drivers -> Network device support -> Ethernet (1000 Mbit) Broadcom Tigon3 support


02:00.1 SD Host controller: Broadcom Corporation NetXtreme BCM57765 Memory Card Reader (rev 10)


02:00.2 System peripheral: Broadcom Corporation Device 16be (rev 10)
02:00.3 System peripheral: Broadcom Corporation Device 16bf (rev 10)


03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 (rev 34)
Intel Wifi
Kernel driver in use: iwlagn Location: -> Device Drivers -> Network device support -> Wireless LAN <*> Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlagn) Firmware: net-wireless/iwl6005-ucode


05:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
USB 3.0 Controller
Kernel driver in use: xhci_hcd Location: -> Device Drivers -> USB support <*> xHCI HCD (USB 3.0) support (EXPERIMENTAL)


Bus 001 Device 003: ID 064e:d20c Suyin Corp.
Acer Crystal Eye 1.3M HD Webcam
Kernel driver in use: uvc Location: -> Device Drivers -> Multimedia support <*> Video For Linux [*] Video capture adapters ---> [*] Autoselect pertinent encoders/decoders and other helper chips [*] V4L USB devices ---> <*> USB Video Class (UVC) [*] UVC input events device support

Acer Aspire 5755G - 01 - Specifications of my Aspire 5755G

  • Intel Core i7-2670QM 2.2GHz
  • Turbo Boost up to 3.1GHz
  • Nvidia GeForce GT 630M with 2GB Dedicated VRAM
  • 15.6" HD LED LCD with max 1366x768
  • 8GB DDR3 Kingston Memory
  • Intel Wireless Display (WiDi)
  • Intel Crystal Eye HD Webcam
  • HDMI
  • USB 2.0 and 3.0
  • Intel HD Soundcard
  • NO! Bluetooth

navi lia # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz stepping : 7 cpu MHz : 800.000 cache size : 6144 KB physical id : 0 siblings : 8 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid bogomips : 4391.30 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: [... snip the other 7 cores ...]
navi lia # lspci 00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4) 00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4) 00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4) 00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation HM65 Express Chipset Family LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04) 00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04) 01:00.0 VGA compatible controller: NVIDIA Corporation Device 0de9 (rev ff) 02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe (rev 10) 02:00.1 SD Host controller: Broadcom Corporation NetXtreme BCM57765 Memory Card Reader (rev 10) 02:00.2 System peripheral: Broadcom Corporation Device 16be (rev 10) 02:00.3 System peripheral: Broadcom Corporation Device 16bf (rev 10) 03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 (rev 34) 05:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 04)
navi lia # lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 064e:d20c Suyin Corp.

Acer Aspire 5755G - 00 - Overview

I've got a new Acer Aspire two weeks ago, because my old gentoo box died.

This post is a overview of a small tutorial of how to install gentoo on a Acer Aspire 5755G.