Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make.conf / kernel and more (ThinkPad T550 / systemd / gnome
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Pawel_S
n00b
n00b


Joined: 22 May 2019
Posts: 4

PostPosted: Wed May 22, 2019 8:03 pm    Post subject: make.conf / kernel and more (ThinkPad T550 / systemd / gnome Reply with quote

Hi! My first post here, so be patient. I have some problems to write what i really have on my mind, but i'll do my best xD
So... i've got Thinkpad T550 laptop with Intel Corporation Dual Band Wireless-AC 7265, Sierra Wireless EM7345 LTE modem, 12GB RAM, and i7 5600U broadwell cpu, hdd drive (hate ssd's)
I'm trying to build my own Gentoo with as much optimizations as it's possible. I'd like to use genoo with gnome and systemd.

I've created partitions sda1 - 1000mb for uefi, sda2 32gb for swap and rest for ext4 rootfs.
(i've already installed gentoo, but i'm about install it again on other hdd but without unneeded modules, functions and packages etc)

Now i'm thinking about best configuration of make.conf and have some questions about it (i tried to google for it but i dont really found good explanations)

Code:
ACCEPT_LICENSE="*"
ACCEPT_PROPERTIES="*"
ACCEPT_KEYWORDS="~amd64 amd64"
VIDEO_CARDS="intel i965"
LINGUAS="en_US"
L10N="en_US"
MAKEOPTS="-j5"
EMERGE_DEFAULT_OPTS="--jobs 5"
OFFICE_IMPLEMENTATION="libreoffice"
GRUB_PLATFORMS="efi-64"
ALSA_CARDS="hda-intel"
FEATURES="${FEATURES} ccache"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_SIZE="8G"
CPU_FLAGS_X86="aes avx avx2 f16c mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 bmi bmi2 fma3"
COMMON_FLAGS=" -march=broadwell -mtune=broadwell -mfpmath=both -m128bit-long-double -m64 -m80387 -mabm -madx -maes -malign-stringops -mavx -mavx2 -mbmi -mbmi2 -mcx16 -mf16c -mfancy-math-387 -mfma -mfp-ret-in-387 -mfsgsbase -mfxsr -mglibc -mhard-float -mhle -mieee-fp -mlong-double-80 -mlzcnt -mmmx -mmovbe -mpclmul -mpopcnt -mprfchw -mpusch-args -mrdrnd -mrdseed -mred-zone -mrtm -msahf -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2 -mssse3 -mstv -mtls-direct-seg-refs -mvzeroupper -mxsaveopt -mxsave -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
USE="${CPU_FLAGS_X86} "


I've tried additional gcc flags such as:
Code:
-ffast-match -flto -fomit-frame-pointer -funroll-loops

however every single one of them make compilation failed... is there any real advantages of using them (is it worth an effort to try compile packages one by one to check where tey will work?)


Next -> i used CK kernel (genkernel-next) with some additional GCC patches (don't worry it work for me already) but i'm not sure how to choose proper options (to disable those i don't need)
for example do i need alle usb controllers or just xhci (i dont have any usb2 and less sockets) and does the usb2 hardware will work> Which of them install as module? (example -> wifi must be compiled as module to work as i found out). Is there any rule for that or should i try many different configurations to found out what i need? Do i need the ntfs support from kernel or just fuse ?

Which driver for intel graphics i should use and which acceleration method use?
How to start pulseaudio as root ?!? (it work when i'm logged in as user but i cannot start it when i'm root - i don't need additional users just root account)
How to connect my bt speakers to laptop and what do i need for it?

My global USE flags looks silly, but i dont really have good idea for them.... i found out that packages dependencies can be a pain in the ass...
Code:
USE="${CPU_FLAGS_X86} a52 aac acpi alsa alsa-plugin apm bash-completion bluetooth branding ccache cups dbus dga dri drm dts encode equalizer ffmpeg ftp gconf gimp git glamor gnome gtk i965 intel ipv6 jpeg libreoffice matroska mp3 mp4 mpeg mplayer nls opengl pdf pm_utils png pulseaudio rar smp sna sound spell ssl symlinks systemd threads truetype udisks unicode upower usb user-session userlocales uxa vaapi vulkan wavpack webkit wifi X x264 x265 xvid xvmc zip zsh-completion"


What do i need for my laptop (kernel functions, drivers and packages) for sleep/hibernation without problems and have not problems with to high temperature ?
Which of my USE flags are senseless for systemd, and what is missing....

Thanks !
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 2127
Location: Frankfurt, Germany

PostPosted: Fri May 24, 2019 3:35 pm    Post subject: Reply with quote

Hi Pawel_S,

welcome to the Gentoo forums!

There are way too many questions in your post, especially since they touch many very different topics. Maybe that's the reason why nobody has answered so far. In future, please group your questions by topics and create one post per topic.

I'll concentrate on make.conf in this post.
  1. Code:
    COMMON_FLAGS=" -march=broadwell -mtune=broadwell -mfpmath=both -m128bit-long-double -m64 -m80387 -mabm -madx -maes -malign-stringops -mavx -mavx2 -mbmi -mbmi2 -mcx16 -mf16c -mfancy-math-387 -mfma -mfp-ret-in-387 -mfsgsbase -mfxsr -mglibc -mhard-float -mhle -mieee-fp -mlong-double-80 -mlzcnt -mmmx -mmovbe -mpclmul -mpopcnt -mprfchw -mpusch-args -mrdrnd -mrdseed -mred-zone -mrtm -msahf -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2 -mssse3 -mstv -mtls-direct-seg-refs -mvzeroupper -mxsaveopt -mxsave -O2 -pipe"
    CFLAGS="${COMMON_FLAGS}"
    CXXFLAGS="${COMMON_FLAGS}"
    FCFLAGS="${COMMON_FLAGS}"
    FFLAGS="${COMMON_FLAGS}"
    USE="${CPU_FLAGS_X86} "

    I don't recommend that. Use
    Code:
    CFLAGS="-march=native -O2 -pipe"
    CXXFLAGS="${CFLAGS}"

    instead. "-march=native" does pretty much what you want. Run
    Code:
    gcc -### -e -v -march=native /usr/include/stdlib.h

    to see which GCC flags will be selected by '-march=native' on your machine. I don't know about FCFLAGS and FFLAGS. Do you need them?

  2. Code:
    EMERGE_DEFAULT_OPTS="--jobs 5"

    It's not wrong - but I wouldn't do it - at least not at the beginning.

  3. Code:
    ACCEPT_KEYWORDS="~amd64 amd64"

    Are you sure you want to switch to unstable? It's not recommended - especially not at the beginning. And it will be difficult to switch back to stable. See this thread. Keep your system on stable and select a few packages, where you really want/need the latest version, to be unstable (using /etc/portage/package.accept_keywords).

  4. Code:
    FEATURES="${FEATURES} ccache"
    CCACHE_DIR="/var/tmp/ccache"
    CCACHE_SIZE="8G"

    Ccache? I don't know. It may or may not help. It may cause problems you wouldn't have without it. I wouldn't start with it - but it's not wrong to use it.

  5. Please post the output of
    Code:
    emerge --info

    and of
    Code:
    lspci
Mike
Back to top
View user's profile Send private message
Pawel_S
n00b
n00b


Joined: 22 May 2019
Posts: 4

PostPosted: Fri May 24, 2019 8:16 pm    Post subject: Reply with quote

About my current C- CXX- FC- and FF- flags i'm pretty much sure (already working on gentoo compiled with them) - FF and FC flags was set by default in "clean" install by default so - ? -
I'm rather interested if there are any more flags that may be worth to try for optimalization.

~amd64 is as i noticed - required for ConKolivas Sources as much as genkernel-next

ccache was working while my first try with gentoo and since im working on it it's working ;)

lspci here:
Code:
00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)
00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09)
00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03)
00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection (3) I218-LM (rev 03)
00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #6 (rev e3)
00:1c.1 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3)
00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03)
00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03)
00:1f.6 Signal processing controller: Intel Corporation Wildcat Point-LP Thermal Management Controller (rev 03)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
03:00.0 Network controller: Intel Corporation Wireless 7265 (rev 59)


But i don't see here my SierraWireless LTE ;) so lsusb:

Code:
Bus 001 Device 002: ID 8087:8001 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 005: ID 04ca:703c Lite-On Technology Corp. Integrated Camera
Bus 002 Device 003: ID 1199:a001 Sierra Wireless, Inc. Sierra Wireless EM7345 4G LTE
Bus 002 Device 002: ID 03f0:a407 HP, Inc Wireless Optical Comfort Mouse
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


output of emerge --info i'll put later, because i'm still trying so many different things on it so .... lets say don't want anybody to have headache ;)

Thanks for answer ;)

Trying to find what i did wrong in my .config -> need to cut out from kernel anything that is unnecessary...

for now i'm sure that i need only iwlwifi / iwlmvm and i1000e for networking

Do i need all of usb (ehci/ohci/uhci/xhci) since i have only usb3 sockets ?

/// Things that i need (+), and don't need(-) <and have no clue(?)> in kernel that i'm already checked:
thinkpad_acpi (+), intel_rapl(+), , hdaps(-), MOUSE_PS2_SYNAPTICS_SMBUS(+), RMI4_SMB(+), e100(-), e1000(-), igb(-), intel_pstate(?), intel and realtek hd (+), intel_idle(+)

and those i think are unnecessary:
Code:
[    5.441101] GDT-HA: Storage RAID Controller Driver. Version: 3.05
[    5.494026] Fusion MPT base driver 3.04.20
[    5.494981] Copyright (c) 1999-2008 LSI Corporation
[    5.498610] Fusion MPT SPI Host driver 3.04.20
[    5.501874] Fusion MPT FC Host driver 3.04.20
[    5.505488] Fusion MPT SAS Host driver 3.04.20
[    5.507667] 3ware Storage Controller device driver for Linux v1.26.02.003.
[    5.510074] 3ware 9000 Storage Controller device driver for Linux v2.26.02.014.
[    5.520698] Adaptec aacraid driver 1.2.1[50877]-custom
[    5.524250] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006)
[    5.525706] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006)
[    5.530369] megasas: 07.706.03.00-rc1
[    5.541141] qla2xxx [0000:00:00.0]-0005: : QLogic Fibre Channel HBA Driver: 10.00.00.08-k.
[    5.552724] Emulex LightPulse Fibre Channel SCSI driver 12.0.0.6
[    5.553683] Copyright (C) 2017-2018 Broadcom. All Rights Reserved. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
[    5.558728] aic94xx: Adaptec aic94xx SAS/SATA driver version 1.0.3 loaded


i'm also wooried about some acpi and other errors in dmesg such as:
Code:

[    3.115357] mic_init not running on X100 ret -19

[    3.465264] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.465265] cfg80211: failed to load regulatory.db

[   17.963479] thermal thermal_zone3: failed to read out thermal zone (-61)

[ 6695.814140] ACPI Error: AE_AML_PACKAGE_LIMIT, Index (0x000000004) is beyond end of object (length 0x4) (20180810/exoparg2-396)
[ 6695.814153] ACPI Error: Method parse/execution failed \_SB.PCI0.LPC.EC.BRNS, AE_AML_PACKAGE_LIMIT (20180810/psparse-516)
[ 6695.814158] ACPI Error: Method parse/execution failed \_SB.PCI0.LPC.EC._Q27, AE_AML_PACKAGE_LIMIT (20180810/psparse-516)



Edit: I'm working on already installed Gentoo on my ThinkPad T550, but i'm looking for "best" options to install it again on other hdd (same laptop), but without unneeded things...

[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15334

PostPosted: Sat May 25, 2019 12:35 am    Post subject: Reply with quote

Pawel_S wrote:
~amd64 is as i noticed - required for ConKolivas Sources as much as genkernel-next
You may need it for a few less popular or experimental packages. You configured your system to accept it for every package.

I can't help with your other questions.
Back to top
View user's profile Send private message
Pawel_S
n00b
n00b


Joined: 22 May 2019
Posts: 4

PostPosted: Sat May 25, 2019 4:21 am    Post subject: Reply with quote

Hu wrote:
You configured your system to accept it for every package.

I know, but as i wroted before - its workinkg for me (at least for now).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum